From c120fde1d0ead69f18e055f31c16e7e423efb83a Mon Sep 17 00:00:00 2001 From: "quantcloud[bot]" Date: Thu, 5 Mar 2026 10:01:30 +0000 Subject: [PATCH] feat(sdk): v4.12.0 - Auto-generated from unified API spec Generated from unified API spec v4.12.0 Changes: - Auto-generated SDK updates This PR was automatically created by the API generation pipeline. --- .openapi-generator/FILES | 57 +- README.md | 41 +- api/openapi.yaml | 6050 ++++++++++------- api_ai_agents.go | 2 +- api_ai_custom_tools.go | 2 +- api_ai_file_storage.go | 2 +- api_ai_inference.go | 2 +- api_ai_models.go | 2 +- api_ai_monitoring.go | 2 +- api_ai_orchestrations.go | 2 +- api_ai_sessions.go | 2 +- api_ai_skills.go | 1502 ++++ api_ai_task_management.go | 2 +- api_ai_tools.go | 2 +- api_ai_vector_database.go | 14 +- api_applications.go | 2 +- api_backup_management.go | 2 +- api_cdn_metrics.go | 8 +- api_commands.go | 2 +- api_compose.go | 2 +- api_containers.go | 2 +- api_crawler_schedules.go | 2 +- api_crawlers.go | 2 +- api_cron.go | 2 +- api_domains.go | 2 +- api_environments.go | 2 +- api_headers.go | 2 +- api_kv.go | 2 +- api_orchestration.go | 223 - api_organizations.go | 2 +- api_projects.go | 2 +- api_purge.go | 2 +- api_rules.go | 2 +- api_scaling_policy.go | 2 +- api_ssh_access.go | 2 +- api_tokens.go | 437 ++ api_variables.go | 2 +- api_volumes.go | 2 +- client.go | 13 +- configuration.go | 2 +- docs/AISkillsAPI.md | 821 +++ docs/AIVectorDatabaseAPI.md | 6 +- docs/CDNMetricsAPI.md | 12 +- docs/ChatInferenceRequest.md | 26 + docs/ChatInferenceStreamRequest.md | 26 + docs/CreateOrchestrationRequest.md | 36 + docs/CreateSkill201Response.md | 108 + docs/CreateSkillRequest.md | 301 + docs/DeleteSkill200Response.md | 82 + ...md => DeleteSkillCollection200Response.md} | 30 +- docs/GetSkill200Response.md | 56 + docs/GetSkill200ResponseSkill.md | 394 ++ docs/ImportSkill201Response.md | 82 + docs/ImportSkillCollection201Response.md | 160 + docs/ImportSkillCollectionRequest.md | 124 + docs/ImportSkillCollectionRequestSource.md | 124 + docs/ImportSkillRequest.md | 259 + docs/ImportSkillRequestSource.md | 155 + docs/ListSkillCollections200Response.md | 56 + ...lCollections200ResponseCollectionsInner.md | 108 + docs/ListSkills200Response.md | 82 + docs/ListSkills200ResponseSkillsInner.md | 264 + docs/OrchestrationAPI.md | 82 - docs/SyncSkillCollection200Response.md | 186 + docs/TokensAPI.md | 220 + docs/TokensCreate201Response.md | 108 + docs/TokensCreateRequest.md | 51 + docs/TokensDelete200Response.md | 56 + docs/TokensList200ResponseInner.md | 144 + docs/UpdateSkill200Response.md | 108 + docs/UpdateSkillRequest.md | 316 + model_application.go | 2 +- model_application_database.go | 2 +- ...pplication_deployment_information_inner.go | 2 +- model_application_environments_inner.go | 2 +- model_application_filesystem.go | 2 +- model_application_image_reference.go | 2 +- ..._bulk_set_environment_variables_request.go | 2 +- ...ent_variables_request_environment_inner.go | 2 +- model_chat_inference_200_response.go | 2 +- model_chat_inference_200_response_response.go | 2 +- ...nference_200_response_response_tool_use.go | 2 +- ...e_200_response_response_tool_use_one_of.go | 2 +- ...sponse_response_tool_use_one_of_1_inner.go | 2 +- ...esponse_response_tool_use_one_of_result.go | 2 +- model_chat_inference_200_response_usage.go | 2 +- model_chat_inference_202_response.go | 2 +- model_chat_inference_request.go | 44 +- model_chat_inference_request_guardrails.go | 2 +- ...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 | 44 +- ...inference_stream_request_messages_inner.go | 2 +- ...e_stream_request_messages_inner_content.go | 2 +- model_chat_with_ai_agent_200_response.go | 2 +- ...hat_with_ai_agent_200_response_response.go | 2 +- ...th_ai_agent_200_response_response_usage.go | 2 +- model_chat_with_ai_agent_202_response.go | 2 +- model_chat_with_ai_agent_request.go | 2 +- model_command.go | 2 +- model_compose.go | 2 +- model_container.go | 2 +- model_container_depends_on_inner.go | 2 +- model_container_environment_inner.go | 2 +- model_container_health_check.go | 2 +- model_container_image_reference.go | 2 +- model_container_mount_points_inner.go | 2 +- model_container_origin_protection_config.go | 2 +- model_container_secrets_inner.go | 2 +- model_crawlers_run_200_response.go | 2 +- model_crawlers_run_request.go | 2 +- model_create_ai_agent_201_response.go | 2 +- model_create_ai_agent_request.go | 2 +- model_create_ai_session_201_response.go | 2 +- model_create_ai_session_request.go | 2 +- ..._session_request_initial_messages_inner.go | 2 +- model_create_application_403_response.go | 2 +- model_create_application_request.go | 2 +- model_create_application_request_database.go | 2 +- ...e_application_request_environment_inner.go | 2 +- ...l_create_application_request_filesystem.go | 2 +- model_create_backup_202_response.go | 2 +- model_create_backup_request.go | 2 +- model_create_command_request.go | 2 +- model_create_cron_job_request.go | 2 +- model_create_custom_tool_201_response.go | 2 +- model_create_custom_tool_request.go | 2 +- model_create_environment_403_response.go | 2 +- model_create_environment_request.go | 2 +- ...e_environment_request_environment_inner.go | 2 +- model_create_orchestration_request.go | 41 +- ...eate_orchestration_request_input_source.go | 2 +- ...te_orchestration_request_stop_condition.go | 2 +- model_create_skill_201_response.go | 229 + model_create_skill_request.go | 522 ++ model_create_task_201_response.go | 2 +- model_create_task_request.go | 2 +- ...l_create_vector_collection_201_response.go | 2 +- ...ctor_collection_201_response_collection.go | 2 +- model_create_vector_collection_request.go | 2 +- model_create_volume_request.go | 2 +- model_cron.go | 2 +- model_cron_run.go | 2 +- model_delete_ai_agent_200_response.go | 2 +- model_delete_ai_session_200_response.go | 2 +- model_delete_backup_200_response.go | 2 +- model_delete_custom_tool_200_response.go | 2 +- model_delete_file_200_response.go | 2 +- ...e.go => model_delete_skill_200_response.go | 72 +- model_delete_skill_collection_200_response.go | 192 + model_delete_task_200_response.go | 2 +- model_delete_task_409_response.go | 2 +- model_delete_vector_documents_200_response.go | 2 +- model_delete_vector_documents_request.go | 2 +- ...elete_vector_documents_request_metadata.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 | 2 +- ...tration_status_200_response_tools_inner.go | 2 +- ...et_ai_orchestration_status_404_response.go | 2 +- model_get_ai_session_200_response.go | 2 +- ...t_ai_tool_execution_status_200_response.go | 2 +- ...ol_execution_status_200_response_result.go | 2 +- ...t_ai_tool_execution_status_404_response.go | 2 +- model_get_ai_usage_stats_200_response.go | 2 +- ...usage_stats_200_response_by_model_value.go | 2 +- model_get_dependency_graph_200_response.go | 2 +- ...t_durable_execution_status_200_response.go | 2 +- ...ble_execution_status_200_response_error.go | 2 +- ...status_200_response_pending_tools_inner.go | 2 +- ...le_execution_status_200_response_result.go | 2 +- ...ion_status_200_response_result_response.go | 2 +- ...cution_status_200_response_result_usage.go | 2 +- ..._get_ecr_login_credentials_200_response.go | 2 +- model_get_environment_logs_200_response.go | 2 +- ...ment_logs_200_response_log_events_inner.go | 2 +- model_get_file_200_response.go | 2 +- model_get_skill_200_response.go | 155 + model_get_skill_200_response_skill.go | 637 ++ ...get_ssh_access_credentials_200_response.go | 2 +- ...ss_credentials_200_response_credentials.go | 2 +- model_get_task_200_response.go | 2 +- model_get_vector_collection_200_response.go | 2 +- ...ctor_collection_200_response_collection.go | 2 +- model_image_generation_200_response.go | 2 +- model_image_generation_request.go | 2 +- ...ation_request_background_removal_params.go | 2 +- ..._request_color_guided_generation_params.go | 2 +- ...eration_request_image_generation_config.go | 2 +- ...neration_request_image_variation_params.go | 2 +- ...e_generation_request_in_painting_params.go | 2 +- ..._generation_request_out_painting_params.go | 2 +- ...generation_request_text_to_image_params.go | 2 +- model_import_skill_201_response.go | 192 + model_import_skill_collection_201_response.go | 303 + model_import_skill_collection_request.go | 271 + ..._import_skill_collection_request_source.go | 271 + model_import_skill_request.go | 464 ++ model_import_skill_request_source.go | 316 + model_kv_items_create_200_response.go | 2 +- model_kv_items_delete_200_response.go | 2 +- model_kv_items_show_200_response.go | 2 +- model_kv_items_show_200_response_value.go | 2 +- model_kv_link_to_project_200_response.go | 2 +- model_kv_link_to_project_request.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 | 2 +- model_list_files_200_response_files_inner.go | 2 +- ...list_orchestration_batches_200_response.go | 2 +- ...tion_batches_200_response_batches_inner.go | 2 +- model_list_orchestrations_200_response.go | 2 +- model_list_skill_collections_200_response.go | 155 + ...lections_200_response_collections_inner.go | 229 + model_list_skills_200_response.go | 192 + ...l_list_skills_200_response_skills_inner.go | 452 ++ model_list_tasks_200_response.go | 2 +- model_list_tasks_200_response_tasks_inner.go | 2 +- model_list_vector_collections_200_response.go | 2 +- ...lections_200_response_collections_inner.go | 2 +- ...l_organizations_list_200_response_inner.go | 2 +- ..._patch_environment_compose_202_response.go | 2 +- ...compose_202_response_spot_configuration.go | 2 +- ..._patch_environment_compose_400_response.go | 2 +- model_patch_environment_compose_request.go | 2 +- ...ment_compose_request_spot_configuration.go | 2 +- model_purge_create_request.go | 2 +- model_query_vector_collection_200_response.go | 2 +- ...ctor_collection_200_response_pagination.go | 2 +- ...r_collection_200_response_results_inner.go | 2 +- model_query_vector_collection_request.go | 2 +- ..._query_vector_collection_request_filter.go | 2 +- model_scaling_policy.go | 2 +- model_spot_configuration.go | 2 +- model_submit_tool_callback_200_response.go | 2 +- model_submit_tool_callback_request.go | 2 +- ...ool_callback_request_tool_results_inner.go | 2 +- model_sync_operation.go | 2 +- model_sync_skill_collection_200_response.go | 340 + model_sync_to_environment_request.go | 2 +- model_tokens_create_201_response.go | 231 + model_tokens_create_request.go | 169 + model_tokens_delete_200_response.go | 155 + model_tokens_list_200_response_inner.go | 277 + 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_skill_200_response.go | 229 + model_update_skill_request.go | 525 ++ model_update_task_200_response.go | 2 +- model_update_task_request.go | 2 +- model_upload_file_201_response.go | 2 +- model_upload_file_request.go | 2 +- model_upload_vector_documents_200_response.go | 2 +- model_upload_vector_documents_request.go | 2 +- ...ector_documents_request_documents_inner.go | 2 +- ...uments_request_documents_inner_metadata.go | 2 +- model_v1_content_item.go | 2 +- model_v1_content_list_response.go | 2 +- model_v1_content_request.go | 2 +- model_v1_delete_response.go | 2 +- model_v1_error.go | 2 +- model_v1_form_submission_item.go | 2 +- model_v1_form_submission_list_response.go | 2 +- model_v1_get_metric_series_response.go | 2 +- model_v1_get_metric_series_response_data.go | 2 +- model_v1_get_metrics_response.go | 2 +- model_v1_get_metrics_response_data.go | 2 +- model_v1_global_meta_response.go | 2 +- model_v1_global_meta_response_global_meta.go | 2 +- model_v1_info.go | 2 +- model_v1_meta.go | 2 +- model_v1_metric_day_stats.go | 2 +- model_v1_metric_minute_stats.go | 2 +- model_v1_metric_month_stats.go | 2 +- model_v1_ping_response.go | 2 +- model_v1_proxy_item.go | 2 +- model_v1_proxy_list_response.go | 2 +- model_v1_redirect_item.go | 2 +- model_v1_redirect_list_response.go | 2 +- model_v1_redirect_request.go | 2 +- model_v1_redirect_response.go | 2 +- model_v1_revision.go | 2 +- model_v1_revisions_response.go | 2 +- model_v1_search_hit.go | 2 +- model_v1_search_items_response.go | 2 +- model_v1_search_mutation_response.go | 2 +- model_v1_search_record.go | 2 +- model_v1_search_response.go | 2 +- model_v1_series_point_day.go | 2 +- model_v1_series_point_month.go | 2 +- model_v1_transition.go | 2 +- model_v1_upload_response.go | 2 +- model_v1_url_meta_request.go | 2 +- model_v1_url_meta_response.go | 2 +- model_v1_waf_log_item.go | 2 +- model_v1_waf_log_list_response.go | 2 +- model_v2_crawler.go | 2 +- model_v2_crawler_assets.go | 2 +- model_v2_crawler_assets_network_intercept.go | 2 +- model_v2_crawler_assets_parser.go | 2 +- model_v2_crawler_request.go | 2 +- model_v2_crawler_run.go | 2 +- model_v2_crawler_schedule.go | 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_metric_data.go | 2 +- model_v2_metric_data_point.go | 2 +- model_v2_metric_data_point_timestamp.go | 2 +- model_v2_metrics_meta.go | 2 +- model_v2_metrics_response.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_skills_test.go | 185 + test/api_orchestration_test.go | 40 - test/api_tokens_test.go | 68 + utils.go | 2 +- version.go | 2 +- 428 files changed, 17428 insertions(+), 3218 deletions(-) create mode 100644 api_ai_skills.go delete mode 100644 api_orchestration.go create mode 100644 api_tokens.go create mode 100644 docs/AISkillsAPI.md create mode 100644 docs/CreateSkill201Response.md create mode 100644 docs/CreateSkillRequest.md create mode 100644 docs/DeleteSkill200Response.md rename docs/{DeleteVectorCollection200Response.md => DeleteSkillCollection200Response.md} (59%) create mode 100644 docs/GetSkill200Response.md create mode 100644 docs/GetSkill200ResponseSkill.md create mode 100644 docs/ImportSkill201Response.md create mode 100644 docs/ImportSkillCollection201Response.md create mode 100644 docs/ImportSkillCollectionRequest.md create mode 100644 docs/ImportSkillCollectionRequestSource.md create mode 100644 docs/ImportSkillRequest.md create mode 100644 docs/ImportSkillRequestSource.md create mode 100644 docs/ListSkillCollections200Response.md create mode 100644 docs/ListSkillCollections200ResponseCollectionsInner.md create mode 100644 docs/ListSkills200Response.md create mode 100644 docs/ListSkills200ResponseSkillsInner.md delete mode 100644 docs/OrchestrationAPI.md create mode 100644 docs/SyncSkillCollection200Response.md create mode 100644 docs/TokensAPI.md create mode 100644 docs/TokensCreate201Response.md create mode 100644 docs/TokensCreateRequest.md create mode 100644 docs/TokensDelete200Response.md create mode 100644 docs/TokensList200ResponseInner.md create mode 100644 docs/UpdateSkill200Response.md create mode 100644 docs/UpdateSkillRequest.md create mode 100644 model_create_skill_201_response.go create mode 100644 model_create_skill_request.go rename model_delete_vector_collection_200_response.go => model_delete_skill_200_response.go (52%) create mode 100644 model_delete_skill_collection_200_response.go create mode 100644 model_get_skill_200_response.go create mode 100644 model_get_skill_200_response_skill.go create mode 100644 model_import_skill_201_response.go create mode 100644 model_import_skill_collection_201_response.go create mode 100644 model_import_skill_collection_request.go create mode 100644 model_import_skill_collection_request_source.go create mode 100644 model_import_skill_request.go create mode 100644 model_import_skill_request_source.go create mode 100644 model_list_skill_collections_200_response.go create mode 100644 model_list_skill_collections_200_response_collections_inner.go create mode 100644 model_list_skills_200_response.go create mode 100644 model_list_skills_200_response_skills_inner.go create mode 100644 model_sync_skill_collection_200_response.go create mode 100644 model_tokens_create_201_response.go create mode 100644 model_tokens_create_request.go create mode 100644 model_tokens_delete_200_response.go create mode 100644 model_tokens_list_200_response_inner.go create mode 100644 model_update_skill_200_response.go create mode 100644 model_update_skill_request.go create mode 100644 test/api_ai_skills_test.go delete mode 100644 test/api_orchestration_test.go create mode 100644 test/api_tokens_test.go diff --git a/.openapi-generator/FILES b/.openapi-generator/FILES index 88c5345..fdf766e 100644 --- a/.openapi-generator/FILES +++ b/.openapi-generator/FILES @@ -10,6 +10,7 @@ api_ai_models.go api_ai_monitoring.go api_ai_orchestrations.go api_ai_sessions.go +api_ai_skills.go api_ai_task_management.go api_ai_tools.go api_ai_vector_database.go @@ -26,13 +27,13 @@ api_domains.go api_environments.go api_headers.go api_kv.go -api_orchestration.go api_organizations.go api_projects.go api_purge.go api_rules.go api_scaling_policy.go api_ssh_access.go +api_tokens.go api_variables.go api_volumes.go client.go @@ -45,6 +46,7 @@ docs/AIModelsAPI.md docs/AIMonitoringAPI.md docs/AIOrchestrationsAPI.md docs/AISessionsAPI.md +docs/AISkillsAPI.md docs/AITaskManagementAPI.md docs/AIToolsAPI.md docs/AIVectorDatabaseAPI.md @@ -134,6 +136,8 @@ docs/CreateEnvironmentRequestEnvironmentInner.md docs/CreateOrchestrationRequest.md docs/CreateOrchestrationRequestInputSource.md docs/CreateOrchestrationRequestStopCondition.md +docs/CreateSkill201Response.md +docs/CreateSkillRequest.md docs/CreateTask201Response.md docs/CreateTaskRequest.md docs/CreateVectorCollection201Response.md @@ -148,9 +152,10 @@ docs/DeleteAISession200Response.md docs/DeleteBackup200Response.md docs/DeleteCustomTool200Response.md docs/DeleteFile200Response.md +docs/DeleteSkill200Response.md +docs/DeleteSkillCollection200Response.md docs/DeleteTask200Response.md docs/DeleteTask409Response.md -docs/DeleteVectorCollection200Response.md docs/DeleteVectorDocuments200Response.md docs/DeleteVectorDocumentsRequest.md docs/DeleteVectorDocumentsRequestMetadata.md @@ -193,6 +198,8 @@ docs/GetEcrLoginCredentials200Response.md docs/GetEnvironmentLogs200Response.md docs/GetEnvironmentLogs200ResponseLogEventsInner.md docs/GetFile200Response.md +docs/GetSkill200Response.md +docs/GetSkill200ResponseSkill.md docs/GetSshAccessCredentials200Response.md docs/GetSshAccessCredentials200ResponseCredentials.md docs/GetTask200Response.md @@ -208,6 +215,12 @@ docs/ImageGenerationRequestImageVariationParams.md docs/ImageGenerationRequestInPaintingParams.md docs/ImageGenerationRequestOutPaintingParams.md docs/ImageGenerationRequestTextToImageParams.md +docs/ImportSkill201Response.md +docs/ImportSkillCollection201Response.md +docs/ImportSkillCollectionRequest.md +docs/ImportSkillCollectionRequestSource.md +docs/ImportSkillRequest.md +docs/ImportSkillRequestSource.md docs/KVAPI.md docs/KVItemsCreate200Response.md docs/KVItemsDelete200Response.md @@ -238,11 +251,14 @@ docs/ListFiles200ResponseFilesInner.md docs/ListOrchestrationBatches200Response.md docs/ListOrchestrationBatches200ResponseBatchesInner.md docs/ListOrchestrations200Response.md +docs/ListSkillCollections200Response.md +docs/ListSkillCollections200ResponseCollectionsInner.md +docs/ListSkills200Response.md +docs/ListSkills200ResponseSkillsInner.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 @@ -267,7 +283,13 @@ docs/SubmitToolCallback200Response.md docs/SubmitToolCallbackRequest.md docs/SubmitToolCallbackRequestToolResultsInner.md docs/SyncOperation.md +docs/SyncSkillCollection200Response.md docs/SyncToEnvironmentRequest.md +docs/TokensAPI.md +docs/TokensCreate201Response.md +docs/TokensCreateRequest.md +docs/TokensDelete200Response.md +docs/TokensList200ResponseInner.md docs/UpdateAIAgent200Response.md docs/UpdateAIAgentRequest.md docs/UpdateAISession200Response.md @@ -277,6 +299,8 @@ docs/UpdateCronJobRequest.md docs/UpdateEnvironmentRequest.md docs/UpdateEnvironmentStateRequest.md docs/UpdateEnvironmentVariableRequest.md +docs/UpdateSkill200Response.md +docs/UpdateSkillRequest.md docs/UpdateTask200Response.md docs/UpdateTaskRequest.md docs/UploadFile201Response.md @@ -480,6 +504,8 @@ model_create_environment_request_environment_inner.go model_create_orchestration_request.go model_create_orchestration_request_input_source.go model_create_orchestration_request_stop_condition.go +model_create_skill_201_response.go +model_create_skill_request.go model_create_task_201_response.go model_create_task_request.go model_create_vector_collection_201_response.go @@ -493,9 +519,10 @@ 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_skill_200_response.go +model_delete_skill_collection_200_response.go model_delete_task_200_response.go model_delete_task_409_response.go -model_delete_vector_collection_200_response.go model_delete_vector_documents_200_response.go model_delete_vector_documents_request.go model_delete_vector_documents_request_metadata.go @@ -536,6 +563,8 @@ 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_skill_200_response.go +model_get_skill_200_response_skill.go model_get_ssh_access_credentials_200_response.go model_get_ssh_access_credentials_200_response_credentials.go model_get_task_200_response.go @@ -550,6 +579,12 @@ model_image_generation_request_image_variation_params.go model_image_generation_request_in_painting_params.go model_image_generation_request_out_painting_params.go model_image_generation_request_text_to_image_params.go +model_import_skill_201_response.go +model_import_skill_collection_201_response.go +model_import_skill_collection_request.go +model_import_skill_collection_request_source.go +model_import_skill_request.go +model_import_skill_request_source.go model_kv_items_create_200_response.go model_kv_items_delete_200_response.go model_kv_items_show_200_response.go @@ -579,6 +614,10 @@ model_list_files_200_response_files_inner.go model_list_orchestration_batches_200_response.go model_list_orchestration_batches_200_response_batches_inner.go model_list_orchestrations_200_response.go +model_list_skill_collections_200_response.go +model_list_skill_collections_200_response_collections_inner.go +model_list_skills_200_response.go +model_list_skills_200_response_skills_inner.go model_list_tasks_200_response.go model_list_tasks_200_response_tasks_inner.go model_list_vector_collections_200_response.go @@ -601,7 +640,12 @@ 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_skill_collection_200_response.go model_sync_to_environment_request.go +model_tokens_create_201_response.go +model_tokens_create_request.go +model_tokens_delete_200_response.go +model_tokens_list_200_response_inner.go model_update_ai_agent_200_response.go model_update_ai_agent_request.go model_update_ai_session_200_response.go @@ -611,6 +655,8 @@ 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_skill_200_response.go +model_update_skill_request.go model_update_task_200_response.go model_update_task_request.go model_upload_file_201_response.go @@ -740,6 +786,7 @@ test/api_ai_models_test.go test/api_ai_monitoring_test.go test/api_ai_orchestrations_test.go test/api_ai_sessions_test.go +test/api_ai_skills_test.go test/api_ai_task_management_test.go test/api_ai_tools_test.go test/api_ai_vector_database_test.go @@ -756,13 +803,13 @@ 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 test/api_rules_test.go test/api_scaling_policy_test.go test/api_ssh_access_test.go +test/api_tokens_test.go test/api_variables_test.go test/api_volumes_test.go utils.go diff --git a/README.md b/README.md index 87da8e4..fbb88f1 100644 --- a/README.md +++ b/README.md @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services ## Overview This API client was generated by the [OpenAPI Generator](https://openapi-generator.tech) project. By using the [OpenAPI-spec](https://www.openapis.org/) from a remote server, you can easily generate an API client. -- API version: 4.10.0 +- API version: 4.12.0 - Package version: 1.0.0 - Generator version: 7.13.0 - Build package: org.openapitools.codegen.languages.GoClientCodegen @@ -115,6 +115,17 @@ 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 +*AISkillsAPI* | [**CreateSkill**](docs/AISkillsAPI.md#createskill) | **Post** /api/v3/organizations/{organisation}/ai/skills | Create Inline Skill +*AISkillsAPI* | [**DeleteSkill**](docs/AISkillsAPI.md#deleteskill) | **Delete** /api/v3/organizations/{organisation}/ai/skills/{skillId} | Delete Skill +*AISkillsAPI* | [**DeleteSkillCollection**](docs/AISkillsAPI.md#deleteskillcollection) | **Delete** /api/v3/organizations/{organisation}/ai/skills/collections/{namespace} | Delete Skill Collection +*AISkillsAPI* | [**GetSkill**](docs/AISkillsAPI.md#getskill) | **Get** /api/v3/organizations/{organisation}/ai/skills/{skillId} | Get Skill Details +*AISkillsAPI* | [**ImportSkill**](docs/AISkillsAPI.md#importskill) | **Post** /api/v3/organizations/{organisation}/ai/skills/import | Import Skill from External Source +*AISkillsAPI* | [**ImportSkillCollection**](docs/AISkillsAPI.md#importskillcollection) | **Post** /api/v3/organizations/{organisation}/ai/skills/import-collection | Import Skill Collection from GitHub +*AISkillsAPI* | [**ListSkillCollections**](docs/AISkillsAPI.md#listskillcollections) | **Get** /api/v3/organizations/{organisation}/ai/skills/collections | List Skill Collections +*AISkillsAPI* | [**ListSkills**](docs/AISkillsAPI.md#listskills) | **Get** /api/v3/organizations/{organisation}/ai/skills | List Organization's Skills +*AISkillsAPI* | [**SyncSkill**](docs/AISkillsAPI.md#syncskill) | **Post** /api/v3/organizations/{organisation}/ai/skills/{skillId}/sync | Sync Skill from Source +*AISkillsAPI* | [**SyncSkillCollection**](docs/AISkillsAPI.md#syncskillcollection) | **Post** /api/v3/organizations/{organisation}/ai/skills/collections/{namespace}/sync | Sync Skill Collection +*AISkillsAPI* | [**UpdateSkill**](docs/AISkillsAPI.md#updateskill) | **Put** /api/v3/organizations/{organisation}/ai/skills/{skillId} | Update Skill *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 @@ -202,7 +213,6 @@ Class | Method | HTTP request | Description *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 *KVAPI* | [**KVUnlinkFromProject**](docs/KVAPI.md#kvunlinkfromproject) | **Delete** /api/v2/organizations/{organization}/projects/{project}/kv/{store_id}/link | Unlink a KV store from this project -*OrchestrationAPI* | [**GetAIOrchestrationStatus**](docs/OrchestrationAPI.md#getaiorchestrationstatus) | **Get** /api/v3/organizations/{organisation}/ai/tools/orchestrations/{orchestrationId} | Get Tool Orchestration Status (Async Tool Polling) *OrganizationsAPI* | [**OrganizationsList**](docs/OrganizationsAPI.md#organizationslist) | **Get** /api/v2/organizations | Retrieve all organizations *OrganizationsAPI* | [**OrganizationsRead**](docs/OrganizationsAPI.md#organizationsread) | **Get** /api/v2/organizations/{organization} | Get details of a single organization *ProjectsAPI* | [**ProjectsCreate**](docs/ProjectsAPI.md#projectscreate) | **Post** /api/v2/organizations/{organization}/projects | Create a new project @@ -260,6 +270,9 @@ Class | Method | HTTP request | Description *ScalingPolicyAPI* | [**DeleteScalingPolicy**](docs/ScalingPolicyAPI.md#deletescalingpolicy) | **Delete** /api/v3/organizations/{organisation}/applications/{application}/environments/{environment}/scaling-policies/{policyName} | Delete the scaling policy for an environment *ScalingPolicyAPI* | [**GetScalingPolicies**](docs/ScalingPolicyAPI.md#getscalingpolicies) | **Get** /api/v3/organizations/{organisation}/applications/{application}/environments/{environment}/scaling-policies | Get the scaling policies for an environment *ScalingPolicyAPI* | [**UpdateScalingPolicy**](docs/ScalingPolicyAPI.md#updatescalingpolicy) | **Put** /api/v3/organizations/{organisation}/applications/{application}/environments/{environment}/scaling-policies | Update the scaling policy for an environment +*TokensAPI* | [**TokensCreate**](docs/TokensAPI.md#tokenscreate) | **Post** /api/v2/organizations/{organization}/tokens | Create a new API token scoped to this organization +*TokensAPI* | [**TokensDelete**](docs/TokensAPI.md#tokensdelete) | **Delete** /api/v2/organizations/{organization}/tokens/{token_id} | Revoke an API token +*TokensAPI* | [**TokensList**](docs/TokensAPI.md#tokenslist) | **Get** /api/v2/organizations/{organization}/tokens | List API tokens scoped to this organization *VariablesAPI* | [**BulkSetEnvironmentVariables**](docs/VariablesAPI.md#bulksetenvironmentvariables) | **Put** /api/v3/organizations/{api_organisation}/applications/{api_application}/environments/{api_environment}/variables | Bulk set/replace environment variables *VariablesAPI* | [**DeleteEnvironmentVariable**](docs/VariablesAPI.md#deleteenvironmentvariable) | **Delete** /api/v3/organizations/{api_organisation}/applications/{api_application}/environments/{api_environment}/variables/{api_variable} | Delete a variable *VariablesAPI* | [**ListEnvironmentVariables**](docs/VariablesAPI.md#listenvironmentvariables) | **Get** /api/v3/organizations/{api_organisation}/applications/{api_application}/environments/{api_environment}/variables | Get all variables for an environment @@ -350,6 +363,8 @@ Class | Method | HTTP request | Description - [CreateOrchestrationRequest](docs/CreateOrchestrationRequest.md) - [CreateOrchestrationRequestInputSource](docs/CreateOrchestrationRequestInputSource.md) - [CreateOrchestrationRequestStopCondition](docs/CreateOrchestrationRequestStopCondition.md) + - [CreateSkill201Response](docs/CreateSkill201Response.md) + - [CreateSkillRequest](docs/CreateSkillRequest.md) - [CreateTask201Response](docs/CreateTask201Response.md) - [CreateTaskRequest](docs/CreateTaskRequest.md) - [CreateVectorCollection201Response](docs/CreateVectorCollection201Response.md) @@ -363,9 +378,10 @@ Class | Method | HTTP request | Description - [DeleteBackup200Response](docs/DeleteBackup200Response.md) - [DeleteCustomTool200Response](docs/DeleteCustomTool200Response.md) - [DeleteFile200Response](docs/DeleteFile200Response.md) + - [DeleteSkill200Response](docs/DeleteSkill200Response.md) + - [DeleteSkillCollection200Response](docs/DeleteSkillCollection200Response.md) - [DeleteTask200Response](docs/DeleteTask200Response.md) - [DeleteTask409Response](docs/DeleteTask409Response.md) - - [DeleteVectorCollection200Response](docs/DeleteVectorCollection200Response.md) - [DeleteVectorDocuments200Response](docs/DeleteVectorDocuments200Response.md) - [DeleteVectorDocumentsRequest](docs/DeleteVectorDocumentsRequest.md) - [DeleteVectorDocumentsRequestMetadata](docs/DeleteVectorDocumentsRequestMetadata.md) @@ -406,6 +422,8 @@ Class | Method | HTTP request | Description - [GetEnvironmentLogs200Response](docs/GetEnvironmentLogs200Response.md) - [GetEnvironmentLogs200ResponseLogEventsInner](docs/GetEnvironmentLogs200ResponseLogEventsInner.md) - [GetFile200Response](docs/GetFile200Response.md) + - [GetSkill200Response](docs/GetSkill200Response.md) + - [GetSkill200ResponseSkill](docs/GetSkill200ResponseSkill.md) - [GetSshAccessCredentials200Response](docs/GetSshAccessCredentials200Response.md) - [GetSshAccessCredentials200ResponseCredentials](docs/GetSshAccessCredentials200ResponseCredentials.md) - [GetTask200Response](docs/GetTask200Response.md) @@ -420,6 +438,12 @@ Class | Method | HTTP request | Description - [ImageGenerationRequestInPaintingParams](docs/ImageGenerationRequestInPaintingParams.md) - [ImageGenerationRequestOutPaintingParams](docs/ImageGenerationRequestOutPaintingParams.md) - [ImageGenerationRequestTextToImageParams](docs/ImageGenerationRequestTextToImageParams.md) + - [ImportSkill201Response](docs/ImportSkill201Response.md) + - [ImportSkillCollection201Response](docs/ImportSkillCollection201Response.md) + - [ImportSkillCollectionRequest](docs/ImportSkillCollectionRequest.md) + - [ImportSkillCollectionRequestSource](docs/ImportSkillCollectionRequestSource.md) + - [ImportSkillRequest](docs/ImportSkillRequest.md) + - [ImportSkillRequestSource](docs/ImportSkillRequestSource.md) - [KVItemsCreate200Response](docs/KVItemsCreate200Response.md) - [KVItemsDelete200Response](docs/KVItemsDelete200Response.md) - [KVItemsShow200Response](docs/KVItemsShow200Response.md) @@ -449,6 +473,10 @@ Class | Method | HTTP request | Description - [ListOrchestrationBatches200Response](docs/ListOrchestrationBatches200Response.md) - [ListOrchestrationBatches200ResponseBatchesInner](docs/ListOrchestrationBatches200ResponseBatchesInner.md) - [ListOrchestrations200Response](docs/ListOrchestrations200Response.md) + - [ListSkillCollections200Response](docs/ListSkillCollections200Response.md) + - [ListSkillCollections200ResponseCollectionsInner](docs/ListSkillCollections200ResponseCollectionsInner.md) + - [ListSkills200Response](docs/ListSkills200Response.md) + - [ListSkills200ResponseSkillsInner](docs/ListSkills200ResponseSkillsInner.md) - [ListTasks200Response](docs/ListTasks200Response.md) - [ListTasks200ResponseTasksInner](docs/ListTasks200ResponseTasksInner.md) - [ListVectorCollections200Response](docs/ListVectorCollections200Response.md) @@ -471,7 +499,12 @@ Class | Method | HTTP request | Description - [SubmitToolCallbackRequest](docs/SubmitToolCallbackRequest.md) - [SubmitToolCallbackRequestToolResultsInner](docs/SubmitToolCallbackRequestToolResultsInner.md) - [SyncOperation](docs/SyncOperation.md) + - [SyncSkillCollection200Response](docs/SyncSkillCollection200Response.md) - [SyncToEnvironmentRequest](docs/SyncToEnvironmentRequest.md) + - [TokensCreate201Response](docs/TokensCreate201Response.md) + - [TokensCreateRequest](docs/TokensCreateRequest.md) + - [TokensDelete200Response](docs/TokensDelete200Response.md) + - [TokensList200ResponseInner](docs/TokensList200ResponseInner.md) - [UpdateAIAgent200Response](docs/UpdateAIAgent200Response.md) - [UpdateAIAgentRequest](docs/UpdateAIAgentRequest.md) - [UpdateAISession200Response](docs/UpdateAISession200Response.md) @@ -481,6 +514,8 @@ Class | Method | HTTP request | Description - [UpdateEnvironmentRequest](docs/UpdateEnvironmentRequest.md) - [UpdateEnvironmentStateRequest](docs/UpdateEnvironmentStateRequest.md) - [UpdateEnvironmentVariableRequest](docs/UpdateEnvironmentVariableRequest.md) + - [UpdateSkill200Response](docs/UpdateSkill200Response.md) + - [UpdateSkillRequest](docs/UpdateSkillRequest.md) - [UpdateTask200Response](docs/UpdateTask200Response.md) - [UpdateTaskRequest](docs/UpdateTaskRequest.md) - [UploadFile201Response](docs/UploadFile201Response.md) diff --git a/api/openapi.yaml b/api/openapi.yaml index 5909834..e045df7 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.10.0 + version: 4.12.0 servers: - description: QuantCDN Public Cloud url: https://dashboard.quantcdn.io @@ -11,10 +11,37 @@ servers: security: - BearerAuth: [] tags: +- description: "Pre-configured AI assistants with specific system prompts, model settings,\ + \ and tool permissions" + name: AI Agents +- description: Custom tool definitions for AI function calling + name: AI Custom Tools +- description: S3-backed file storage for AI workloads + name: AI File Storage +- description: "Chat inference, embeddings, and image generation services" + name: AI Inference +- description: Foundation model listing and configuration + name: AI Models +- description: Usage statistics and monitoring for AI services + name: AI Monitoring +- description: Durable batch processing orchestrations with pause/resume support + name: AI Orchestrations +- description: Conversation session management for multi-turn interactions + name: AI Sessions +- description: "Reusable prompts, workflows, and instructions for agents" + name: AI Skills +- description: Multi-agent task coordination and dependency management + name: AI Task Management +- description: Built-in tool listing and async tool execution polling + name: AI Tools +- description: Vector database collections for RAG and semantic search + name: AI Vector Database - description: Cloud application lifecycle management name: Applications - description: Backup and restore operations for applications name: Backup Management +- description: CDN traffic metrics and analytics + name: CDN Metrics - description: Execute commands in application containers name: Commands - description: Docker compose configuration management @@ -51,32 +78,8 @@ tags: name: Variables - description: Persistent storage volume management name: Volumes -- description: CDN Metrics - name: CDN Metrics -- description: AI Models - name: AI Models -- description: AI Sessions - 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 -- description: AI Orchestrations - name: AI Orchestrations +- description: API token management + name: Tokens paths: /api/v2/organizations/{organization}/projects/{project}/crawlers/{crawler}/schedules: get: @@ -1919,13 +1922,38 @@ paths: schema: type: string style: form - - description: "Metrics to return (default: hits, bytes)" + - description: "Metrics to return (default: hits, bytes). Use the /metrics/available\ + \ endpoint to list all metrics by category." explode: true in: query name: "metrics[]" required: false schema: items: + enum: + - hits + - bytes + - edge_resp_header_bytes + - bereq_body_bytes + - bereq_header_bytes + - bandwidth + - edge_hit_ratio + - edge_hit_requests + - edge_miss_requests + - origin_fetches + - origin_fetch_resp_body_bytes + - origin_fetch_resp_header_bytes + - origin_offload + - status_1xx + - status_2xx + - status_3xx + - status_4xx + - status_5xx + - origin_status_1xx + - origin_status_2xx + - origin_status_3xx + - origin_status_4xx + - origin_status_5xx type: string type: array style: form @@ -1986,13 +2014,38 @@ paths: schema: type: string style: form - - description: "Metrics to return (default: hits, bytes)" + - description: "Metrics to return (default: hits, bytes). Use the /metrics/available\ + \ endpoint to list all metrics by category." explode: true in: query name: "metrics[]" required: false schema: items: + enum: + - hits + - bytes + - edge_resp_header_bytes + - bereq_body_bytes + - bereq_header_bytes + - bandwidth + - edge_hit_ratio + - edge_hit_requests + - edge_miss_requests + - origin_fetches + - origin_fetch_resp_body_bytes + - origin_fetch_resp_header_bytes + - origin_offload + - status_1xx + - status_2xx + - status_3xx + - status_4xx + - status_5xx + - origin_status_1xx + - origin_status_2xx + - origin_status_3xx + - origin_status_4xx + - origin_status_5xx type: string type: array style: form @@ -2053,13 +2106,38 @@ paths: schema: type: string style: form - - description: "Metrics to return (default: hits, bytes)" + - description: "Metrics to return (default: hits, bytes). Use the /metrics/available\ + \ endpoint to list all metrics by category." explode: true in: query name: "metrics[]" required: false schema: items: + enum: + - hits + - bytes + - edge_resp_header_bytes + - bereq_body_bytes + - bereq_header_bytes + - bandwidth + - edge_hit_ratio + - edge_hit_requests + - edge_miss_requests + - origin_fetches + - origin_fetch_resp_body_bytes + - origin_fetch_resp_header_bytes + - origin_offload + - status_1xx + - status_2xx + - status_3xx + - status_4xx + - status_5xx + - origin_status_1xx + - origin_status_2xx + - origin_status_3xx + - origin_status_4xx + - origin_status_5xx type: string type: array style: form @@ -4624,6 +4702,128 @@ paths: summary: Update a serve static rule tags: - Rules + /api/v2/organizations/{organization}/tokens: + get: + operationId: Tokens_list + parameters: + - description: Organization identifier + example: test-org + explode: false + in: path + name: organization + required: true + schema: + type: string + style: simple + responses: + "200": + content: + application/json: + schema: + items: + $ref: '#/components/schemas/Tokens_list_200_response_inner' + type: array + description: The request has succeeded. + "403": + content: + application/json: + schema: + $ref: '#/components/schemas/V2Error' + description: Access is forbidden. + security: + - BearerAuth: [] + summary: List API tokens scoped to this organization + tags: + - Tokens + post: + operationId: Tokens_create + parameters: + - description: Organization identifier + example: test-org + explode: false + in: path + name: organization + required: true + schema: + type: string + style: simple + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/Tokens_create_request' + required: true + responses: + "201": + content: + application/json: + schema: + $ref: '#/components/schemas/Tokens_create_201_response' + description: Token created. The plain token is returned once and cannot + be retrieved again. + "400": + content: + application/json: + schema: + $ref: '#/components/schemas/V2Error' + description: Bad request. + "403": + content: + application/json: + schema: + $ref: '#/components/schemas/V2Error' + description: Access is forbidden. + security: + - BearerAuth: [] + summary: Create a new API token scoped to this organization + tags: + - Tokens + /api/v2/organizations/{organization}/tokens/{token_id}: + delete: + operationId: Tokens_delete + parameters: + - description: Organization identifier + example: test-org + explode: false + in: path + name: organization + required: true + schema: + type: string + style: simple + - description: Token ID to revoke + example: 42 + explode: false + in: path + name: token_id + required: true + schema: + type: integer + style: simple + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/Tokens_delete_200_response' + description: Token revoked successfully. + "403": + content: + application/json: + schema: + $ref: '#/components/schemas/V2Error' + description: Access is forbidden. + "404": + content: + application/json: + schema: + $ref: '#/components/schemas/V2Error' + description: Token not found. + security: + - BearerAuth: [] + summary: Revoke an API token + tags: + - Tokens /api/v3/organizations/{organisation}/ai/models: get: operationId: listAIModels @@ -6049,7 +6249,6 @@ paths: summary: Get Tool Orchestration Status (Async Tool Polling) tags: - AI Tools - - Orchestration /api/v3/organizations/{organisation}/ai/tools/executions: get: description: |- @@ -6520,11 +6719,18 @@ paths: summary: Delete Custom Tool tags: - AI Custom Tools - /api/v3/organizations/{organisation}/ai/vector-db/collections: + /api/v3/organizations/{organisation}/ai/skills: get: - description: Lists all vector database collections (knowledge bases) for an - organization. - operationId: listVectorCollections + description: |- + Lists all skills available to the organization. Skills are reusable prompts, + * workflows, or instructions that can be assigned to agents or invoked directly. + * + * **Skill Sources:** + * - `inline`: Created directly via the API + * - `skills.sh`: Imported from skills.sh registry + * - `github`: Imported from a GitHub repository + * - `local`: Uploaded from local file + operationId: listSkills parameters: - description: The organisation ID explode: false @@ -6534,30 +6740,57 @@ paths: schema: type: string style: simple + - description: Filter skills by tag + explode: true + in: query + name: tag + required: false + schema: + type: string + style: form + - description: Filter skills by collection namespace (e.g. 'superpowers') + explode: true + in: query + name: namespace + required: false + schema: + type: string + style: form + - description: Maximum number of skills to return + explode: true + in: query + name: limit + required: false + schema: + default: 50 + maximum: 100 + minimum: 1 + type: integer + style: form responses: "200": content: application/json: schema: - $ref: '#/components/schemas/listVectorCollections_200_response' - description: Collections retrieved successfully + $ref: '#/components/schemas/listSkills_200_response' + description: List of skills retrieved successfully "403": description: Access denied "500": - description: Failed to retrieve collections - summary: List Vector Database Collections + description: Failed to retrieve skills + summary: List Organization's Skills tags: - - AI Vector Database + - AI Skills post: description: |- - Creates a new vector database collection (knowledge base category) for semantic search. Collections store documents with embeddings for RAG (Retrieval Augmented Generation). + Creates a new skill with inline content. Use this for custom skills + * that are defined directly in your organization. * - * **Use Cases:** - * - Product documentation ('docs') - * - Company policies ('policies') - * - Support knowledge base ('support') - * - Technical specifications ('specs') - operationId: createVectorCollection + * **Trigger Conditions:** + * - Natural language description of when to use the skill + * - Used by AI to determine when to suggest or apply the skill + * - Example: 'When the user asks about code review or security analysis' + operationId: createSkill parameters: - description: The organisation ID explode: false @@ -6571,31 +6804,29 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/createVectorCollection_request' + $ref: '#/components/schemas/createSkill_request' required: true responses: "201": content: application/json: schema: - $ref: '#/components/schemas/createVectorCollection_201_response' - description: Collection created successfully + $ref: '#/components/schemas/createSkill_201_response' + description: Skill created successfully "400": description: Invalid request parameters "403": description: Access denied - "409": - description: Collection with this name already exists "500": - description: Failed to create collection - summary: Create Vector Database Collection + description: Failed to create skill + summary: Create Inline Skill tags: - - AI Vector Database - /api/v3/organizations/{organisation}/ai/vector-db/collections/{collectionId}: + - AI Skills + /api/v3/organizations/{organisation}/ai/skills/{skillId}: delete: - description: Deletes a vector database collection and all its documents. This - action cannot be undone. - operationId: deleteVectorCollection + description: Permanently deletes a skill. This will also remove it from any + agents that have it assigned. + operationId: deleteSkill parameters: - description: The organisation ID explode: false @@ -6605,13 +6836,12 @@ paths: schema: type: string style: simple - - description: The collection ID + - description: The skill ID explode: false in: path - name: collectionId + name: skillId required: true schema: - format: uuid type: string style: simple responses: @@ -6619,20 +6849,21 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/deleteVectorCollection_200_response' - description: Collection deleted successfully + $ref: '#/components/schemas/deleteSkill_200_response' + description: Skill deleted successfully "403": description: Access denied "404": - description: Collection not found + description: Skill not found "500": - description: Failed to delete collection - summary: Delete Collection + description: Failed to delete skill + summary: Delete Skill tags: - - AI Vector Database + - AI Skills get: - description: Get detailed information about a specific vector database collection. - operationId: getVectorCollection + description: "Retrieves full details of a skill including its content, source\ + \ information, and metadata." + operationId: getSkill parameters: - description: The organisation ID explode: false @@ -6642,13 +6873,12 @@ paths: schema: type: string style: simple - - description: The collection ID + - description: The skill ID explode: false in: path - name: collectionId + name: skillId required: true schema: - format: uuid type: string style: simple responses: @@ -6656,35 +6886,25 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/getVectorCollection_200_response' - description: Collection details retrieved successfully + $ref: '#/components/schemas/getSkill_200_response' + description: Skill details retrieved successfully "403": description: Access denied "404": - description: Collection not found + description: Skill not found "500": - description: Failed to retrieve collection - summary: Get Collection Details + description: Failed to retrieve skill + summary: Get Skill Details tags: - - AI Vector Database - /api/v3/organizations/{organisation}/ai/vector-db/collections/{collectionId}/documents: - delete: + - AI Skills + put: description: |- - Delete documents from a collection. Supports three deletion modes: - * - * 1. **Purge All** - Set `purgeAll: true` to delete ALL documents in the collection - * - * 2. **By Document IDs** - Provide `documentIds` array with specific document UUIDs - * - * 3. **By Metadata** - Provide `metadata` object with `field` and `values` to delete documents where the metadata field matches any of the values - * - * **Drupal Integration:** - * When using with Drupal AI Search, use metadata deletion with: - * - `field: 'drupal_entity_id'` to delete all chunks for specific entities - * - `field: 'drupal_long_id'` to delete specific chunks - operationId: deleteVectorDocuments + Updates an existing skill. For imported skills, this updates + * local overrides (name, tags, triggerCondition) but not the source content. + * Use the sync endpoint to update source content. + operationId: updateSkill parameters: - - description: Organisation machine name + - description: The organisation ID explode: false in: path name: organisation @@ -6692,51 +6912,51 @@ paths: schema: type: string style: simple - - description: Collection UUID + - description: The skill ID explode: false in: path - name: collectionId + name: skillId required: true schema: - format: uuid type: string style: simple requestBody: content: application/json: schema: - $ref: '#/components/schemas/deleteVectorDocuments_request' + $ref: '#/components/schemas/updateSkill_request' required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/deleteVectorDocuments_200_response' - description: Documents deleted successfully + $ref: '#/components/schemas/updateSkill_200_response' + description: Skill updated successfully "400": - description: "Invalid request - must specify purgeAll, documentIds, or metadata" + description: Invalid request parameters "403": description: Access denied "404": - description: Collection not found + description: Skill not found "500": - description: Failed to delete documents - summary: Delete Documents from Collection + description: Failed to update skill + summary: Update Skill tags: - - AI Vector Database + - AI Skills + /api/v3/organizations/{organisation}/ai/skills/import: post: description: |- - Uploads documents to a vector database collection with automatic embedding generation. Documents are chunked (if needed), embedded using the collection's embedding model, and stored. + Imports a skill from an external source like skills.sh registry or GitHub repository. * - * **Supported Content:** - * - Plain text content - * - URLs to fetch content from - * - Markdown documents + * **Supported Sources:** + * - `skills.sh`: Import from the skills.sh community registry + * - `github`: Import from a GitHub repository (public or private) * - * **Metadata:** - * Each document can include metadata (title, source_url, section, tags) that is returned with search results. - operationId: uploadVectorDocuments + * **Version Control:** + * - Skills can be pinned to specific versions + * - Use the sync endpoint to update to latest version + operationId: importSkill parameters: - description: The organisation ID explode: false @@ -6746,77 +6966,41 @@ paths: schema: type: string style: simple - - description: The collection ID - explode: false - in: path - name: collectionId - required: true - schema: - format: uuid - type: string - style: simple requestBody: content: application/json: schema: - $ref: '#/components/schemas/uploadVectorDocuments_request' + $ref: '#/components/schemas/importSkill_request' required: true responses: - "200": + "201": content: application/json: schema: - $ref: '#/components/schemas/uploadVectorDocuments_200_response' - description: Documents uploaded successfully + $ref: '#/components/schemas/importSkill_201_response' + description: Skill imported successfully "400": description: Invalid request parameters "403": description: Access denied - "404": - description: Collection not found + "502": + description: Failed to fetch skill from source "500": - description: Failed to upload documents - summary: Upload Documents to Collection + description: Failed to import skill + summary: Import Skill from External Source tags: - - AI Vector Database - /api/v3/organizations/{organisation}/ai/vector-db/collections/{collectionId}/query: + - AI Skills + /api/v3/organizations/{organisation}/ai/skills/{skillId}/sync: 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 + Re-fetches skill content from its original source. + * Only applicable to skills imported from external sources (skills.sh, github). + * Inline skills cannot be synced. * - * 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 + * **Version Behavior:** + * - If version is pinned, fetches that specific version + * - If no version specified, fetches latest + operationId: syncSkill parameters: - description: The organisation ID explode: false @@ -6826,44 +7010,39 @@ paths: schema: type: string style: simple - - description: The collection ID + - description: The skill ID explode: false in: path - name: collectionId + name: skillId required: true schema: - format: uuid type: string style: simple - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/queryVectorCollection_request' - required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/queryVectorCollection_200_response' - description: Search completed successfully + $ref: '#/components/schemas/importSkill_201_response' + description: Skill synced successfully "400": - description: Invalid request parameters + description: Cannot sync inline skill "403": description: Access denied "404": - description: Collection not found + description: Skill not found + "502": + description: Failed to fetch skill from source "500": - description: Failed to perform search - summary: Semantic Search Query + description: Failed to sync skill + summary: Sync Skill from Source tags: - - AI Vector Database - /api/v3/organizations/{organisation}/ai/files: + - AI Skills + /api/v3/organizations/{organisation}/ai/skills/collections: get: - description: Lists files stored in S3 for this organization with optional metadata - filtering and pagination. - operationId: listFiles + description: "Lists distinct namespaces (collections) for the organization,\ + \ with skill counts and skill names for each collection." + operationId: listSkillCollections parameters: - description: The organisation ID explode: false @@ -6873,70 +7052,30 @@ paths: 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 + $ref: '#/components/schemas/listSkillCollections_200_response' + description: Collections retrieved successfully "403": description: Access denied "500": - description: Failed to list files - summary: List Files + description: Failed to retrieve collections + summary: List Skill Collections tags: - - AI File Storage + - AI Skills + /api/v3/organizations/{organisation}/ai/skills/import-collection: 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. + Discovers all skill directories under a given path in a GitHub repository + * and imports each as a skill within the specified namespace. Each subdirectory must contain a SKILL.md file. * - * **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) + * **Namespace:** Used for grouping and slash-command invocation (e.g., `/superpowers:brainstorming`). * - * **Metadata:** - * Attach any custom metadata for filtering. `artifactType` is auto-populated from contentType if not provided. - operationId: uploadFile + * **Idempotent:** If a skill with the same namespace + name already exists, it is updated. + operationId: importSkillCollection parameters: - description: The organisation ID explode: false @@ -6950,30 +7089,32 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/uploadFile_request' + $ref: '#/components/schemas/importSkillCollection_request' required: true responses: "201": content: application/json: schema: - $ref: '#/components/schemas/uploadFile_201_response' - description: File uploaded or presigned URL generated + $ref: '#/components/schemas/importSkillCollection_201_response' + description: Collection imported successfully "400": description: Invalid request parameters "403": description: Access denied - "413": - description: File too large (use requestUploadUrl for large files) + "502": + description: GitHub API error "500": - description: Failed to upload file - summary: Upload File to S3 + description: Failed to import collection + summary: Import Skill Collection from GitHub tags: - - AI File Storage - /api/v3/organizations/{organisation}/ai/files/{fileId}: - delete: - description: Deletes a file from S3 storage. - operationId: deleteFile + - AI Skills + /api/v3/organizations/{organisation}/ai/skills/collections/{namespace}/sync: + post: + description: |- + Re-syncs all skills in a namespace from their GitHub source. Detects new + * skills added to the repository and flags skills removed from the source. Does NOT auto-delete removed skills. + operationId: syncSkillCollection parameters: - description: The organisation ID explode: false @@ -6983,13 +7124,12 @@ paths: schema: type: string style: simple - - description: The file ID + - description: Collection namespace explode: false in: path - name: fileId + name: namespace required: true schema: - format: uuid type: string style: simple responses: @@ -6997,21 +7137,25 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/deleteFile_200_response' - description: File deleted successfully + $ref: '#/components/schemas/syncSkillCollection_200_response' + description: Collection synced successfully + "400": + description: Invalid request "403": description: Access denied "404": - description: File not found + description: Collection not found + "502": + description: GitHub API error "500": - description: Failed to delete file - summary: Delete File + description: Failed to sync collection + summary: Sync Skill Collection tags: - - AI File Storage - get: - description: Retrieves file metadata and a presigned download URL (valid for - 1 hour). - operationId: getFile + - AI Skills + /api/v3/organizations/{organisation}/ai/skills/collections/{namespace}: + delete: + description: Permanently deletes all skills in the specified namespace. + operationId: deleteSkillCollection parameters: - description: The organisation ID explode: false @@ -7021,13 +7165,12 @@ paths: schema: type: string style: simple - - description: The file ID + - description: Collection namespace explode: false in: path - name: fileId + name: namespace required: true schema: - format: uuid type: string style: simple responses: @@ -7035,32 +7178,24 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/getFile_200_response' - description: File metadata and download URL + $ref: '#/components/schemas/deleteSkillCollection_200_response' + description: Collection deleted successfully "403": description: Access denied "404": - description: File not found + description: Collection not found "500": - description: Failed to get file - summary: Get File + description: Failed to delete collection + summary: Delete Skill Collection tags: - - AI File Storage - /api/v3/organizations/{organisation}/ai/orchestrations: + - AI Skills + /api/v3/organizations/{organisation}/ai/vector-db/collections: get: - description: |- - List durable orchestrations for an organization with optional filtering. - * - * **Note:** This is different from `/tools/orchestrations` which handles async tool execution - * polling. These durable orchestrations are for long-running batch processing loops. - * - * **Filter Options:** - * - `status`: Filter by orchestration status - * - `limit`: Max results (default 20, max 100) - * - `cursor`: Pagination cursor - operationId: listOrchestrations + description: Lists all vector database collections (knowledge bases) for an + organization. + operationId: listVectorCollections parameters: - - description: The organisation machine name + - description: The organisation ID explode: false in: path name: organisation @@ -7068,74 +7203,32 @@ paths: schema: type: string style: simple - - description: Filter by orchestration status - explode: true - in: query - name: status - required: false - schema: - enum: - - pending - - running - - paused - - completed - - failed - - cancelled - type: string - style: form - - description: Maximum number of results - explode: true - in: query - name: limit - required: false - schema: - default: 20 - maximum: 100 - minimum: 1 - type: integer - style: form - - description: Pagination cursor from previous response - explode: true - in: query - name: cursor - required: false - schema: - type: string - style: form responses: "200": content: application/json: schema: - $ref: '#/components/schemas/listOrchestrations_200_response' - description: List of orchestrations + $ref: '#/components/schemas/listVectorCollections_200_response' + description: Collections retrieved successfully "403": description: Access denied "500": - description: Failed to list orchestrations - summary: List Durable Orchestrations + description: Failed to retrieve collections + summary: List Vector Database Collections tags: - - AI Orchestrations + - AI Vector Database post: description: |- - Create a new durable orchestration for batch processing. - * - * **Input Sources:** - * - `static`: Process a fixed list of items - * - `task_query`: Process tasks matching a query - * - `generator`: AI generates items from a prompt - * - * **Stop Conditions:** - * - `all_complete`: Stop when all items processed - * - `max_iterations`: Stop after N iterations - * - `condition`: AI evaluates a prompt to decide - * - `manual`: Run until manually stopped + Creates a new vector database collection (knowledge base category) for semantic search. Collections store documents with embeddings for RAG (Retrieval Augmented Generation). * - * **Auto-start:** - * By default, the orchestration starts immediately. Set `autoStart: false` to create in pending state. - operationId: createOrchestration + * **Use Cases:** + * - Product documentation ('docs') + * - Company policies ('policies') + * - Support knowledge base ('support') + * - Technical specifications ('specs') + operationId: createVectorCollection parameters: - - description: The organisation machine name + - description: The organisation ID explode: false in: path name: organisation @@ -7147,31 +7240,33 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/createOrchestration_request' + $ref: '#/components/schemas/createVectorCollection_request' required: true responses: "201": content: application/json: schema: - type: object - description: Orchestration created + $ref: '#/components/schemas/createVectorCollection_201_response' + description: Collection created successfully "400": - description: Invalid request + description: Invalid request parameters "403": description: Access denied + "409": + description: Collection with this name already exists "500": - description: Failed to create orchestration - summary: Create Durable Orchestration + description: Failed to create collection + summary: Create Vector Database Collection tags: - - AI Orchestrations - /api/v3/organizations/{organisation}/ai/orchestrations/{orchestrationId}: + - AI Vector Database + /api/v3/organizations/{organisation}/ai/vector-db/collections/{collectionId}: delete: - description: "Delete an orchestration. Can only delete orchestrations in completed,\ - \ failed, or cancelled status." - operationId: deleteOrchestration + description: Deletes a vector database collection and all its documents. This + action cannot be undone. + operationId: deleteVectorCollection parameters: - - description: The organisation machine name + - description: The organisation ID explode: false in: path name: organisation @@ -7179,40 +7274,36 @@ paths: schema: type: string style: simple - - description: Orchestration identifier + - description: The collection ID explode: false in: path - name: orchestrationId + name: collectionId required: true schema: + format: uuid type: string style: simple responses: - "204": - description: Orchestration deleted - "400": - description: Cannot delete active orchestration + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/deleteSkillCollection_200_response' + description: Collection deleted successfully "403": description: Access denied "404": - description: Orchestration not found + description: Collection not found "500": - description: Failed to delete orchestration - summary: Delete Durable Orchestration + description: Failed to delete collection + summary: Delete Collection tags: - - AI Orchestrations + - AI Vector Database get: - description: |- - Get orchestration details including status and progress. - * - * **Progress Tracking:** - * - `total`: Total items to process - * - `completed`: Successfully processed - * - `failed`: Failed processing - * - `pending`: Awaiting processing - operationId: getOrchestration + description: Get detailed information about a specific vector database collection. + operationId: getVectorCollection parameters: - - description: The organisation machine name + - description: The organisation ID explode: false in: path name: organisation @@ -7220,13 +7311,13 @@ paths: schema: type: string style: simple - - description: Orchestration identifier - example: orch_1704067200_abc123xyz + - description: The collection ID explode: false in: path - name: orchestrationId + name: collectionId required: true schema: + format: uuid type: string style: simple responses: @@ -7234,24 +7325,35 @@ paths: content: application/json: schema: - type: object - description: Orchestration details + $ref: '#/components/schemas/getVectorCollection_200_response' + description: Collection details retrieved successfully "403": description: Access denied "404": - description: Orchestration not found + description: Collection not found "500": - description: Failed to get orchestration - summary: Get Durable Orchestration + description: Failed to retrieve collection + summary: Get Collection Details tags: - - AI Orchestrations - /api/v3/organizations/{organisation}/ai/orchestrations/{orchestrationId}/start: - post: - description: "Start a pending orchestration. Only works on orchestrations created\ - \ with `autoStart: false`." - operationId: startOrchestration + - AI Vector Database + /api/v3/organizations/{organisation}/ai/vector-db/collections/{collectionId}/documents: + delete: + description: |- + Delete documents from a collection. Supports three deletion modes: + * + * 1. **Purge All** - Set `purgeAll: true` to delete ALL documents in the collection + * + * 2. **By Document IDs** - Provide `documentIds` array with specific document UUIDs + * + * 3. **By Metadata** - Provide `metadata` object with `field` and `values` to delete documents where the metadata field matches any of the values + * + * **Drupal Integration:** + * When using with Drupal AI Search, use metadata deletion with: + * - `field: 'drupal_entity_id'` to delete all chunks for specific entities + * - `field: 'drupal_long_id'` to delete specific chunks + operationId: deleteVectorDocuments parameters: - - description: The organisation machine name + - description: Organisation machine name explode: false in: path name: organisation @@ -7259,39 +7361,53 @@ paths: schema: type: string style: simple - - description: Orchestration identifier + - description: Collection UUID explode: false in: path - name: orchestrationId + name: collectionId required: true schema: + format: uuid type: string style: simple + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/deleteVectorDocuments_request' + required: true responses: "200": content: application/json: schema: - type: object - description: Orchestration started + $ref: '#/components/schemas/deleteVectorDocuments_200_response' + description: Documents deleted successfully "400": - description: Orchestration not in pending state + description: "Invalid request - must specify purgeAll, documentIds, or metadata" "403": description: Access denied "404": - description: Orchestration not found + description: Collection not found "500": - description: Failed to start orchestration - summary: Start Durable Orchestration + description: Failed to delete documents + summary: Delete Documents from Collection tags: - - AI Orchestrations - /api/v3/organizations/{organisation}/ai/orchestrations/{orchestrationId}/pause: + - AI Vector Database post: - description: "Pause a running orchestration. The current batch will complete,\ - \ but no new batches will start. Can be resumed later." - operationId: pauseOrchestration + description: |- + Uploads documents to a vector database collection with automatic embedding generation. Documents are chunked (if needed), embedded using the collection's embedding model, and stored. + * + * **Supported Content:** + * - Plain text content + * - URLs to fetch content from + * - Markdown documents + * + * **Metadata:** + * Each document can include metadata (title, source_url, section, tags) that is returned with search results. + operationId: uploadVectorDocuments parameters: - - description: The organisation machine name + - description: The organisation ID explode: false in: path name: organisation @@ -7299,39 +7415,79 @@ paths: schema: type: string style: simple - - description: Orchestration identifier + - description: The collection ID explode: false in: path - name: orchestrationId + name: collectionId required: true schema: + format: uuid type: string style: simple + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/uploadVectorDocuments_request' + required: true responses: "200": content: application/json: schema: - type: object - description: Orchestration paused + $ref: '#/components/schemas/uploadVectorDocuments_200_response' + description: Documents uploaded successfully "400": - description: Orchestration not running + description: Invalid request parameters "403": description: Access denied "404": - description: Orchestration not found + description: Collection not found "500": - description: Failed to pause orchestration - summary: Pause Durable Orchestration + description: Failed to upload documents + summary: Upload Documents to Collection tags: - - AI Orchestrations - /api/v3/organizations/{organisation}/ai/orchestrations/{orchestrationId}/resume: + - AI Vector Database + /api/v3/organizations/{organisation}/ai/vector-db/collections/{collectionId}/query: post: - description: Resume a paused orchestration. Processing continues from where - it left off. - operationId: resumeOrchestration + 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 machine name + - description: The organisation ID explode: false in: path name: organisation @@ -7339,39 +7495,46 @@ paths: schema: type: string style: simple - - description: Orchestration identifier + - description: The collection ID explode: false in: path - name: orchestrationId + name: collectionId required: true schema: + format: uuid type: string style: simple + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/queryVectorCollection_request' + required: true responses: "200": content: application/json: schema: - type: object - description: Orchestration resumed + $ref: '#/components/schemas/queryVectorCollection_200_response' + description: Search completed successfully "400": - description: Orchestration not paused + description: Invalid request parameters "403": description: Access denied "404": - description: Orchestration not found + description: Collection not found "500": - description: Failed to resume orchestration - summary: Resume Durable Orchestration + description: Failed to perform search + summary: Semantic Search Query tags: - - AI Orchestrations - /api/v3/organizations/{organisation}/ai/orchestrations/{orchestrationId}/cancel: - post: - description: "Cancel an orchestration permanently. Cannot be resumed. Any in-progress\ - \ items will complete, but no new processing starts." - operationId: cancelOrchestration + - 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 machine name + - description: The organisation ID explode: false in: path name: organisation @@ -7379,115 +7542,70 @@ paths: schema: type: string style: simple - - description: Orchestration identifier - explode: false - in: path - name: orchestrationId - required: true + - 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: simple + 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: - type: object - description: Orchestration cancelled + $ref: '#/components/schemas/listFiles_200_response' + description: List of files "400": - description: Orchestration already completed/cancelled - "403": - description: Access denied - "404": - description: Orchestration not found - "500": - description: Failed to cancel orchestration - summary: Cancel Durable Orchestration - tags: - - AI Orchestrations - /api/v3/organizations/{organisation}/ai/orchestrations/{orchestrationId}/batches: - get: - description: Get history of batches processed by this orchestration. Returns - paginated batch records with status and item counts. - operationId: listOrchestrationBatches - parameters: - - description: The organisation machine name - explode: false - in: path - name: organisation - required: true - schema: - type: string - style: simple - - description: Orchestration identifier - explode: false - in: path - name: orchestrationId - required: true - schema: - type: string - style: simple - - description: Maximum number of batches to return - explode: true - in: query - name: limit - required: false - schema: - default: 20 - maximum: 100 - minimum: 1 - type: integer - style: form - - description: Pagination cursor from previous response - explode: true - in: query - name: cursor - required: false - schema: - type: string - style: form - responses: - "200": - content: - application/json: - schema: - $ref: '#/components/schemas/listOrchestrationBatches_200_response' - description: Batch history + description: Invalid filter parameter "403": description: Access denied - "404": - description: Orchestration not found "500": - description: Failed to list orchestration batches - summary: List Orchestration Batches - tags: - - AI Orchestrations - /api/v3/organizations/{organisation}/applications: - get: - operationId: listApplications - parameters: - - description: The organisation ID - explode: false - in: path - name: organisation - required: true - schema: - type: string - style: simple - responses: - "200": - content: - application/json: - schema: - items: - $ref: '#/components/schemas/Application' - type: array - description: A list of applications - summary: Get all applications for an organisation + description: Failed to list files + summary: List Files tags: - - Applications + - AI File Storage post: - operationId: createApplication + 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 @@ -7501,30 +7619,30 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/CreateApplicationRequest' + $ref: '#/components/schemas/uploadFile_request' required: true responses: "201": content: application/json: schema: - $ref: '#/components/schemas/Application' - description: The created application + $ref: '#/components/schemas/uploadFile_201_response' + description: File uploaded or presigned URL generated "400": - description: The request is invalid + description: Invalid request parameters "403": - content: - application/json: - schema: - $ref: '#/components/schemas/createApplication_403_response' - description: Application limit reached - organisation has reached the maximum - number of allowed applications - summary: Create a new application + 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: - - Applications - /api/v3/organizations/{organisation}/applications/{application}: + - AI File Storage + /api/v3/organizations/{organisation}/ai/files/{fileId}: delete: - operationId: deleteApplication + description: Deletes a file from S3 storage. + operationId: deleteFile parameters: - description: The organisation ID explode: false @@ -7534,24 +7652,35 @@ paths: schema: type: string style: simple - - description: The application ID + - description: The file ID explode: false in: path - name: application + name: fileId required: true schema: + format: uuid type: string style: simple responses: - "204": - description: The application deleted + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/deleteFile_200_response' + description: File deleted successfully + "403": + description: Access denied "404": - description: The application not found - summary: Delete an application + description: File not found + "500": + description: Failed to delete file + summary: Delete File tags: - - Applications + - AI File Storage get: - operationId: getApplication + description: Retrieves file metadata and a presigned download URL (valid for + 1 hour). + operationId: getFile parameters: - description: The organisation ID explode: false @@ -7561,12 +7690,13 @@ paths: schema: type: string style: simple - - description: The application ID + - description: The file ID explode: false in: path - name: application + name: fileId required: true schema: + format: uuid type: string style: simple responses: @@ -7574,18 +7704,32 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/Application' - description: The application + $ref: '#/components/schemas/getFile_200_response' + description: File metadata and download URL + "403": + description: Access denied "404": - description: The application not found - summary: Get a single application + description: File not found + "500": + description: Failed to get file + summary: Get File tags: - - Applications - /api/v3/organizations/{organisation}/applications/ecr-login: + - AI File Storage + /api/v3/organizations/{organisation}/ai/orchestrations: get: - operationId: getEcrLoginCredentials + description: |- + List durable orchestrations for an organization with optional filtering. + * + * **Note:** This is different from `/tools/orchestrations` which handles async tool execution + * polling. These durable orchestrations are for long-running batch processing loops. + * + * **Filter Options:** + * - `status`: Filter by orchestration status + * - `limit`: Max results (default 20, max 100) + * - `cursor`: Pagination cursor + operationId: listOrchestrations parameters: - - description: The organisation ID + - description: The organisation machine name explode: false in: path name: organisation @@ -7593,53 +7737,110 @@ paths: schema: type: string style: simple + - description: Filter by orchestration status + explode: true + in: query + name: status + required: false + schema: + enum: + - pending + - running + - paused + - completed + - failed + - cancelled + type: string + style: form + - description: Maximum number of results + explode: true + in: query + name: limit + required: false + schema: + default: 20 + maximum: 100 + minimum: 1 + type: integer + style: form + - description: Pagination cursor from previous response + explode: true + in: query + name: cursor + required: false + schema: + type: string + style: form responses: "200": content: application/json: schema: - $ref: '#/components/schemas/getEcrLoginCredentials_200_response' - description: The ECR login credentials - summary: Get ECR login credentials + $ref: '#/components/schemas/listOrchestrations_200_response' + description: List of orchestrations + "403": + description: Access denied + "500": + description: Failed to list orchestrations + summary: List Durable Orchestrations tags: - - Applications - /api/v3/organizations/{organisation}/environments/{environment}/commands: - get: - operationId: listCommands - parameters: - - description: The organisation ID - example: test-org - explode: false - in: path - name: organisation - required: true - schema: - type: string - style: simple - - description: The environment ID - example: test-env + - AI Orchestrations + post: + description: |- + Create a new durable orchestration for batch processing. + * + * **Input Sources:** + * - `static`: Process a fixed list of items + * - `task_query`: Process tasks matching a query + * - `generator`: AI generates items from a prompt + * + * **Stop Conditions:** + * - `all_complete`: Stop when all items processed + * - `max_iterations`: Stop after N iterations + * - `condition`: AI evaluates a prompt to decide + * - `manual`: Run until manually stopped + * + * **Auto-start:** + * By default, the orchestration starts immediately. Set `autoStart: false` to create in pending state. + operationId: createOrchestration + parameters: + - description: The organisation machine name explode: false in: path - name: environment + name: organisation required: true schema: type: string style: simple + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/createOrchestration_request' + required: true responses: - "200": + "201": content: application/json: schema: - $ref: '#/components/schemas/Command' - description: The commands - summary: Get all commands for an environment + type: object + description: Orchestration created + "400": + description: Invalid request + "403": + description: Access denied + "500": + description: Failed to create orchestration + summary: Create Durable Orchestration tags: - - Commands - post: - operationId: createCommand + - AI Orchestrations + /api/v3/organizations/{organisation}/ai/orchestrations/{orchestrationId}: + delete: + description: "Delete an orchestration. Can only delete orchestrations in completed,\ + \ failed, or cancelled status." + operationId: deleteOrchestration parameters: - - description: The organisation ID - example: test-org + - description: The organisation machine name explode: false in: path name: organisation @@ -7647,37 +7848,40 @@ paths: schema: type: string style: simple - - description: The environment ID - example: test-env + - description: Orchestration identifier explode: false in: path - name: environment + name: orchestrationId required: true schema: type: string style: simple - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/createCommand_request' - required: true responses: - "200": - content: - application/json: - schema: - $ref: '#/components/schemas/Command' - description: The command - summary: Create a command for an environment + "204": + description: Orchestration deleted + "400": + description: Cannot delete active orchestration + "403": + description: Access denied + "404": + description: Orchestration not found + "500": + description: Failed to delete orchestration + summary: Delete Durable Orchestration tags: - - Commands - /api/v3/organizations/{organisation}/environments/{environment}/commands/{command}: + - AI Orchestrations get: - operationId: getCommand + description: |- + Get orchestration details including status and progress. + * + * **Progress Tracking:** + * - `total`: Total items to process + * - `completed`: Successfully processed + * - `failed`: Failed processing + * - `pending`: Awaiting processing + operationId: getOrchestration parameters: - - description: The organisation ID - example: test-org + - description: The organisation machine name explode: false in: path name: organisation @@ -7685,20 +7889,11 @@ paths: schema: type: string style: simple - - description: The environment ID - example: test-env - explode: false - in: path - name: environment - required: true - schema: - type: string - style: simple - - description: The command ID - example: test-cmd + - description: Orchestration identifier + example: orch_1704067200_abc123xyz explode: false in: path - name: command + name: orchestrationId required: true schema: type: string @@ -7708,17 +7903,24 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/Command' - description: The command - summary: Get a command + type: object + description: Orchestration details + "403": + description: Access denied + "404": + description: Orchestration not found + "500": + description: Failed to get orchestration + summary: Get Durable Orchestration tags: - - Commands - /api/v3/organizations/{organisation}/applications/{application}/environments/{environment}/compose: - get: - operationId: getEnvironmentCompose + - AI Orchestrations + /api/v3/organizations/{organisation}/ai/orchestrations/{orchestrationId}/start: + post: + description: "Start a pending orchestration. Only works on orchestrations created\ + \ with `autoStart: false`." + operationId: startOrchestration parameters: - - description: The organisation ID - example: test-org + - description: The organisation machine name explode: false in: path name: organisation @@ -7726,20 +7928,10 @@ paths: schema: type: string style: simple - - description: The application ID - example: test-app - explode: false - in: path - name: application - required: true - schema: - type: string - style: simple - - description: The environment ID - example: test-env + - description: Orchestration identifier explode: false in: path - name: environment + name: orchestrationId required: true schema: type: string @@ -7749,25 +7941,26 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/Compose' - description: The compose file + type: object + description: Orchestration started + "400": + description: Orchestration not in pending state + "403": + description: Access denied "404": - description: The compose file not found - summary: Get the compose file for an environment + description: Orchestration not found + "500": + description: Failed to start orchestration + summary: Start Durable Orchestration tags: - - Compose - patch: - description: "Partially updates top-level fields of the environment's compose\ - \ definition, such as architecture, task-level CPU/Memory, or min/max scaling\ - \ capacity. Only fields included in the request body are modified. The 'containers'\ - \ array, if provided, REPLACES the existing containers array; if omitted,\ - \ the existing containers are NOT modified by this PATCH operation. (For modifying\ - \ individual containers, use PATCH /containers/{containerName}). This triggers\ - \ a validation, registers a new task definition, and updates the service." - operationId: patchEnvironmentCompose + - AI Orchestrations + /api/v3/organizations/{organisation}/ai/orchestrations/{orchestrationId}/pause: + post: + description: "Pause a running orchestration. The current batch will complete,\ + \ but no new batches will start. Can be resumed later." + operationId: pauseOrchestration parameters: - - description: The organisation ID - example: test-org + - description: The organisation machine name explode: false in: path name: organisation @@ -7775,65 +7968,39 @@ paths: schema: type: string style: simple - - description: The application ID - example: test-app - explode: false - in: path - name: application - required: true - schema: - type: string - style: simple - - description: The environment ID - example: test-env + - description: Orchestration identifier explode: false in: path - name: environment + name: orchestrationId required: true schema: type: string style: simple - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/patchEnvironmentCompose_request' - description: Partial compose definition updates. All fields are optional. - required: true responses: - "202": + "200": content: application/json: schema: - $ref: '#/components/schemas/patchEnvironmentCompose_202_response' - description: "Request accepted, compose definition partial update is processing.\ - \ Returns the full updated compose definition." + type: object + description: Orchestration paused "400": - content: - application/json: - schema: - $ref: '#/components/schemas/patchEnvironmentCompose_400_response' - description: Invalid compose definition or validation failed. + description: Orchestration not running + "403": + description: Access denied "404": - description: Application or environment not found - summary: Partially Update Environment Compose Definition + description: Orchestration not found + "500": + description: Failed to pause orchestration + summary: Pause Durable Orchestration tags: - - Compose - /api/v3/organizations/{organisation}/compose/validate: + - AI Orchestrations + /api/v3/organizations/{organisation}/ai/orchestrations/{orchestrationId}/resume: post: - description: "Accepts a docker-compose.yml file content, translates it into\ - \ the internal compose definition format, and validates it. Quant Cloud provides\ - \ comprehensive support for standard Docker Compose features including commands,\ - \ entrypoints, health checks, dependencies, volume mounts, resource limits,\ - \ and more. For detailed documentation on supported features and examples,\ - \ see: https://docs.quantcdn.io/introduction-to-quant-cloud/importing-docker-compose/.\ - \ Supports image tag suffixing via the imageSuffix query parameter or by sending\ - \ a JSON wrapper with yamlContent and imageSuffix fields. When provided, internal\ - \ image tags are transformed to {containerName}-{suffix} format (e.g., 'nginx-feature-xyz')." - operationId: validateCompose + description: Resume a paused orchestration. Processing continues from where + it left off. + operationId: resumeOrchestration parameters: - - description: The organisation ID - example: test-org + - description: The organisation machine name explode: false in: path name: organisation @@ -7841,52 +8008,39 @@ paths: schema: type: string style: simple - - description: "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." - example: pr-456 - explode: true - in: query - name: imageSuffix - required: false + - description: Orchestration identifier + explode: false + in: path + name: orchestrationId + required: true schema: - pattern: "^[a-z0-9]([a-z0-9-]*[a-z0-9])?$" type: string - style: form - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/validateCompose_request' - description: 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. - required: true + style: simple responses: "200": content: application/json: schema: - $ref: '#/components/schemas/validateCompose_200_response' - description: Validation successful. Body contains the translated compose - definition and any warnings. - "422": - content: - application/json: - schema: - $ref: '#/components/schemas/validateCompose_422_response' - description: Invalid YAML input or validation failed - summary: Validate a compose file + type: object + description: Orchestration resumed + "400": + description: Orchestration not paused + "403": + description: Access denied + "404": + description: Orchestration not found + "500": + description: Failed to resume orchestration + summary: Resume Durable Orchestration tags: - - Compose - /api/v3/organizations/{organisation}/applications/{application}/environments/{environment}/containers: - get: - operationId: listContainers + - AI Orchestrations + /api/v3/organizations/{organisation}/ai/orchestrations/{orchestrationId}/cancel: + post: + description: "Cancel an orchestration permanently. Cannot be resumed. Any in-progress\ + \ items will complete, but no new processing starts." + operationId: cancelOrchestration parameters: - - description: The organisation ID - example: test-org + - description: The organisation machine name explode: false in: path name: organisation @@ -7894,38 +8048,39 @@ paths: schema: type: string style: simple - - description: The application ID - example: test-app - explode: false - in: path - name: application - required: true - schema: - type: string - style: simple - - description: The environment ID - example: test-env + - description: Orchestration identifier explode: false in: path - name: environment + name: orchestrationId required: true schema: type: string style: simple responses: "200": - description: The containers in the environment + content: + application/json: + schema: + type: object + description: Orchestration cancelled + "400": + description: Orchestration already completed/cancelled + "403": + description: Access denied "404": - description: The environment not found - summary: Get the containers in an environment + description: Orchestration not found + "500": + description: Failed to cancel orchestration + summary: Cancel Durable Orchestration tags: - - Containers - /api/v3/organizations/{organisation}/applications/{application}/environments/{environment}/containers/{container}: - put: - operationId: updateContainer + - AI Orchestrations + /api/v3/organizations/{organisation}/ai/orchestrations/{orchestrationId}/batches: + get: + description: Get history of batches processed by this orchestration. Returns + paginated batch records with status and item counts. + operationId: listOrchestrationBatches parameters: - - description: The organisation ID - example: test-org + - description: The organisation machine name explode: false in: path name: organisation @@ -7933,53 +8088,54 @@ paths: schema: type: string style: simple - - description: The application ID - example: test-app + - description: Orchestration identifier explode: false in: path - name: application + name: orchestrationId required: true schema: type: string style: simple - - description: The environment ID - example: test-env - explode: false - in: path - name: environment - required: true + - description: Maximum number of batches to return + explode: true + in: query + name: limit + required: false schema: - type: string - style: simple - - description: The container ID - example: test-container - explode: false - in: path - name: container - required: true + default: 20 + maximum: 100 + minimum: 1 + type: integer + style: form + - description: Pagination cursor from previous response + explode: true + in: query + name: cursor + required: false schema: type: string - style: simple - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/Container' - required: true + style: form responses: "200": - description: The updated container + content: + application/json: + schema: + $ref: '#/components/schemas/listOrchestrationBatches_200_response' + description: Batch history + "403": + description: Access denied "404": - description: The container not found - summary: Update a container in an environment + description: Orchestration not found + "500": + description: Failed to list orchestration batches + summary: List Orchestration Batches tags: - - Containers - /api/v3/organizations/{organisation}/applications/{application}/environments/{environment}/cron: + - AI Orchestrations + /api/v3/organizations/{organisation}/applications: get: - operationId: listCronJobs + operationId: listApplications parameters: - description: The organisation ID - example: test-org explode: false in: path name: organisation @@ -7987,41 +8143,22 @@ paths: schema: type: string style: simple - - description: The application ID - example: test-app - explode: false - in: path - name: application - required: true - schema: - type: string - style: simple - - description: The environment ID - example: test-env - explode: false - in: path - name: environment - required: true - schema: - type: string - style: simple responses: "200": content: application/json: schema: - $ref: '#/components/schemas/Cron' - description: The cron jobs - "404": - description: The environment not found - summary: Get all cron jobs for an environment + items: + $ref: '#/components/schemas/Application' + type: array + description: A list of applications + summary: Get all applications for an organisation tags: - - Cron + - Applications post: - operationId: createCronJob + operationId: createApplication parameters: - description: The organisation ID - example: test-org explode: false in: path name: organisation @@ -8029,54 +8166,36 @@ paths: schema: type: string style: simple - - description: The application ID - example: test-app - explode: false - in: path - name: application - required: true - schema: - type: string - style: simple - - description: The environment ID - example: test-env - explode: false - in: path - name: environment - required: true - schema: - type: string - style: simple requestBody: content: application/json: schema: - $ref: '#/components/schemas/createCronJob_request' + $ref: '#/components/schemas/CreateApplicationRequest' required: true responses: "201": content: application/json: schema: - $ref: '#/components/schemas/Cron' - description: The created cron job + $ref: '#/components/schemas/Application' + description: The created application "400": description: The request is invalid - "422": + "403": content: application/json: schema: - $ref: '#/components/schemas/patchEnvironmentCompose_400_response' - description: The request is invalid - summary: Create a new cron job + $ref: '#/components/schemas/createApplication_403_response' + description: Application limit reached - organisation has reached the maximum + number of allowed applications + summary: Create a new application tags: - - Cron - /api/v3/organizations/{organisation}/applications/{application}/environments/{environment}/cron/{cron}: + - Applications + /api/v3/organizations/{organisation}/applications/{application}: delete: - operationId: deleteCronJob + operationId: deleteApplication parameters: - description: The organisation ID - example: test-org explode: false in: path name: organisation @@ -8085,7 +8204,6 @@ paths: type: string style: simple - description: The application ID - example: test-app explode: false in: path name: application @@ -8093,34 +8211,50 @@ paths: schema: type: string style: simple - - description: The environment ID - example: test-env + responses: + "204": + description: The application deleted + "404": + description: The application not found + summary: Delete an application + tags: + - Applications + get: + operationId: getApplication + parameters: + - description: The organisation ID explode: false in: path - name: environment + name: organisation required: true schema: type: string style: simple - - description: The cron job ID + - description: The application ID explode: false in: path - name: cron + name: application required: true schema: type: string style: simple responses: - "204": - description: The cron job deleted - summary: Delete a cron job + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/Application' + description: The application + "404": + description: The application not found + summary: Get a single application tags: - - Cron + - Applications + /api/v3/organizations/{organisation}/applications/ecr-login: get: - operationId: getCronJob + operationId: getEcrLoginCredentials parameters: - description: The organisation ID - example: test-org explode: false in: path name: organisation @@ -8128,11 +8262,25 @@ paths: schema: type: string style: simple - - description: The application ID - example: test-app + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/getEcrLoginCredentials_200_response' + description: The ECR login credentials + summary: Get ECR login credentials + tags: + - Applications + /api/v3/organizations/{organisation}/environments/{environment}/commands: + get: + operationId: listCommands + parameters: + - description: The organisation ID + example: test-org explode: false in: path - name: application + name: organisation required: true schema: type: string @@ -8146,28 +8294,18 @@ paths: schema: type: string style: simple - - description: The cron job ID - explode: false - in: path - name: cron - required: true - schema: - type: string - style: simple responses: "200": content: application/json: schema: - $ref: '#/components/schemas/Cron' - description: The cron job - "404": - description: The cron job not found - summary: Get a cron job + $ref: '#/components/schemas/Command' + description: The commands + summary: Get all commands for an environment tags: - - Cron - patch: - operationId: updateCronJob + - Commands + post: + operationId: createCommand parameters: - description: The organisation ID example: test-org @@ -8178,15 +8316,6 @@ paths: schema: type: string style: simple - - description: The application ID - example: test-app - explode: false - in: path - name: application - required: true - schema: - type: string - style: simple - description: The environment ID example: test-env explode: false @@ -8196,35 +8325,25 @@ paths: schema: type: string style: simple - - description: The cron job ID - explode: false - in: path - name: cron - required: true - schema: - type: string - style: simple requestBody: content: application/json: schema: - $ref: '#/components/schemas/updateCronJob_request' + $ref: '#/components/schemas/createCommand_request' required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/Cron' - description: The updated cron job - "404": - description: The cron job not found - summary: Update a cron job + $ref: '#/components/schemas/Command' + description: The command + summary: Create a command for an environment tags: - - Cron - /api/v3/organizations/{organisation}/applications/{application}/environments/{environment}/cron/{cron}/runs: + - Commands + /api/v3/organizations/{organisation}/environments/{environment}/commands/{command}: get: - operationId: listCronJobRuns + operationId: getCommand parameters: - description: The organisation ID example: test-org @@ -8235,15 +8354,6 @@ paths: schema: type: string style: simple - - description: The application ID - example: test-app - explode: false - in: path - name: application - required: true - schema: - type: string - style: simple - description: The environment ID example: test-env explode: false @@ -8253,11 +8363,11 @@ paths: schema: type: string style: simple - - description: The cron job ID - example: test-cron + - description: The command ID + example: test-cmd explode: false in: path - name: cron + name: command required: true schema: type: string @@ -8267,16 +8377,14 @@ paths: content: application/json: schema: - items: - $ref: '#/components/schemas/CronRun' - type: array - description: The runs - summary: Get all runs for a cron job + $ref: '#/components/schemas/Command' + description: The command + summary: Get a command tags: - - Cron - /api/v3/organizations/{organisation}/applications/{application}/environments/{environment}/cron/{cron}/runs/{run}: + - Commands + /api/v3/organizations/{organisation}/applications/{application}/environments/{environment}/compose: get: - operationId: getCronRun + operationId: getEnvironmentCompose parameters: - description: The organisation ID example: test-org @@ -8305,36 +8413,27 @@ paths: schema: type: string style: simple - - description: The cron job ID - example: test-cron - explode: false - in: path - name: cron - required: true - schema: - type: string - style: simple - - description: The cron run ID - explode: false - in: path - name: run - required: true - schema: - type: string - style: simple responses: "200": content: application/json: schema: - $ref: '#/components/schemas/CronRun' - description: The cron run - summary: Get a cron run + $ref: '#/components/schemas/Compose' + description: The compose file + "404": + description: The compose file not found + summary: Get the compose file for an environment tags: - - Cron - /api/v3/organizations/{organisation}/applications/{application}/environments: - get: - operationId: listEnvironments + - Compose + patch: + description: "Partially updates top-level fields of the environment's compose\ + \ definition, such as architecture, task-level CPU/Memory, or min/max scaling\ + \ capacity. Only fields included in the request body are modified. The 'containers'\ + \ array, if provided, REPLACES the existing containers array; if omitted,\ + \ the existing containers are NOT modified by this PATCH operation. (For modifying\ + \ individual containers, use PATCH /containers/{containerName}). This triggers\ + \ a validation, registers a new task definition, and updates the service." + operationId: patchEnvironmentCompose parameters: - description: The organisation ID example: test-org @@ -8354,38 +8453,11 @@ paths: schema: type: string style: simple - responses: - "200": - content: - application/json: - schema: - items: - $ref: '#/components/schemas/EnvironmentSummary' - type: array - description: List of environments with summary information including deployment - status - "404": - description: The organisation or application not found - summary: Get all environments for an application - tags: - - Environments - post: - operationId: createEnvironment - parameters: - - description: The organisation ID - example: test-org - explode: false - in: path - name: organisation - required: true - schema: - type: string - style: simple - - description: The application ID - example: test-app + - description: The environment ID + example: test-env explode: false in: path - name: application + name: environment required: true schema: type: string @@ -8394,30 +8466,40 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/createEnvironment_request' + $ref: '#/components/schemas/patchEnvironmentCompose_request' + description: Partial compose definition updates. All fields are optional. required: true responses: - "201": + "202": content: application/json: schema: - $ref: '#/components/schemas/EnvironmentResponse' - description: The environment created + $ref: '#/components/schemas/patchEnvironmentCompose_202_response' + description: "Request accepted, compose definition partial update is processing.\ + \ Returns the full updated compose definition." "400": - description: The environment data is invalid - "403": content: application/json: schema: - $ref: '#/components/schemas/createEnvironment_403_response' - description: Environment limit reached - application has reached the maximum - number of allowed environments - summary: Create a new environment + $ref: '#/components/schemas/patchEnvironmentCompose_400_response' + description: Invalid compose definition or validation failed. + "404": + description: Application or environment not found + summary: Partially Update Environment Compose Definition tags: - - Environments - /api/v3/organizations/{organisation}/applications/{application}/environments/{environment}: - delete: - operationId: deleteEnvironment + - Compose + /api/v3/organizations/{organisation}/compose/validate: + post: + description: "Accepts a docker-compose.yml file content, translates it into\ + \ the internal compose definition format, and validates it. Quant Cloud provides\ + \ comprehensive support for standard Docker Compose features including commands,\ + \ entrypoints, health checks, dependencies, volume mounts, resource limits,\ + \ and more. For detailed documentation on supported features and examples,\ + \ see: https://docs.quantcdn.io/introduction-to-quant-cloud/importing-docker-compose/.\ + \ Supports image tag suffixing via the imageSuffix query parameter or by sending\ + \ a JSON wrapper with yamlContent and imageSuffix fields. When provided, internal\ + \ image tags are transformed to {containerName}-{suffix} format (e.g., 'nginx-feature-xyz')." + operationId: validateCompose parameters: - description: The organisation ID example: test-org @@ -8428,34 +8510,49 @@ paths: schema: type: string style: simple - - description: The application ID - example: test-app - explode: false - in: path - name: application - required: true + - description: "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." + example: pr-456 + explode: true + in: query + name: imageSuffix + required: false schema: + pattern: "^[a-z0-9]([a-z0-9-]*[a-z0-9])?$" type: string - style: simple - - description: The environment ID - example: test-env - explode: false - in: path - name: environment + style: form + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/validateCompose_request' + description: 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. required: true - schema: - type: string - style: simple responses: - "204": - description: The environment deleted - "404": - description: The environment not found - summary: Delete an environment + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/validateCompose_200_response' + description: Validation successful. Body contains the translated compose + definition and any warnings. + "422": + content: + application/json: + schema: + $ref: '#/components/schemas/validateCompose_422_response' + description: Invalid YAML input or validation failed + summary: Validate a compose file tags: - - Environments + - Compose + /api/v3/organizations/{organisation}/applications/{application}/environments/{environment}/containers: get: - operationId: getEnvironment + operationId: listContainers parameters: - description: The organisation ID example: test-org @@ -8486,24 +8583,18 @@ paths: style: simple responses: "200": - content: - application/json: - schema: - $ref: '#/components/schemas/EnvironmentResponse' - description: The environment with runtime details + description: The containers in the environment "404": description: The environment not found - summary: Get a single environment + summary: Get the containers in an environment tags: - - Environments + - Containers + /api/v3/organizations/{organisation}/applications/{application}/environments/{environment}/containers/{container}: put: - description: "Replaces the entire task definition for the environment based\ - \ on the provided multi-container compose definition. This will create a new\ - \ task definition revision and update the ECS service, triggering a redeployment.\ - \ Optionally accepts minCapacity and maxCapacity at the root level for convenience." - operationId: updateEnvironment + operationId: updateContainer parameters: - description: The organisation ID + example: test-org explode: false in: path name: organisation @@ -8512,6 +8603,7 @@ paths: type: string style: simple - description: The application ID + example: test-app explode: false in: path name: application @@ -8520,6 +8612,7 @@ paths: type: string style: simple - description: The environment ID + example: test-env explode: false in: path name: environment @@ -8527,29 +8620,74 @@ paths: schema: type: string style: simple + - description: The container ID + example: test-container + explode: false + in: path + name: container + required: true + schema: + type: string + style: simple requestBody: content: application/json: schema: - $ref: '#/components/schemas/updateEnvironment_request' + $ref: '#/components/schemas/Container' required: true responses: - "202": - description: "Request accepted, compose definition update is processing." - "400": + "200": + description: The updated container + "404": + description: The container not found + summary: Update a container in an environment + tags: + - Containers + /api/v3/organizations/{organisation}/applications/{application}/environments/{environment}/cron: + get: + operationId: listCronJobs + parameters: + - description: The organisation ID + example: test-org + explode: false + in: path + name: organisation + required: true + schema: + type: string + style: simple + - description: The application ID + example: test-app + explode: false + in: path + name: application + required: true + schema: + type: string + style: simple + - description: The environment ID + example: test-env + explode: false + in: path + name: environment + required: true + schema: + type: string + style: simple + responses: + "200": content: application/json: schema: - $ref: '#/components/schemas/patchEnvironmentCompose_400_response' - description: Invalid compose definition or validation failed. + $ref: '#/components/schemas/Cron' + description: The cron jobs "404": - description: Application or environment not found - summary: Update Environment Compose Definition + description: The environment not found + summary: Get all cron jobs for an environment tags: - - Environments - /api/v3/organizations/{organisation}/applications/{application}/environments/{environment}/state: - put: - operationId: updateEnvironmentState + - Cron + post: + operationId: createCronJob parameters: - description: The organisation ID example: test-org @@ -8582,22 +8720,29 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/updateEnvironmentState_request' + $ref: '#/components/schemas/createCronJob_request' required: true responses: - "204": - description: The environment state updated + "201": + content: + application/json: + schema: + $ref: '#/components/schemas/Cron' + description: The created cron job "400": - description: The environment data is invalid - summary: Update the state of an environment + description: The request is invalid + "422": + content: + application/json: + schema: + $ref: '#/components/schemas/patchEnvironmentCompose_400_response' + description: The request is invalid + summary: Create a new cron job tags: - - Environments - /api/v3/organizations/{organisation}/applications/{application}/environments/{environment}/logs: - get: - description: "Retrieves logs from CloudWatch for the specified environment with\ - \ optional filtering by time range, container, and pattern matching. Supports\ - \ pagination via nextToken." - operationId: getEnvironmentLogs + - Cron + /api/v3/organizations/{organisation}/applications/{application}/environments/{environment}/cron/{cron}: + delete: + operationId: deleteCronJob parameters: - description: The organisation ID example: test-org @@ -8626,76 +8771,22 @@ paths: schema: type: string style: simple - - description: Start time for log retrieval (ISO 8601 format or Unix timestamp) - explode: true - in: query - name: startTime - required: false - schema: - type: string - style: form - - description: End time for log retrieval (ISO 8601 format or Unix timestamp) - explode: true - in: query - name: endTime - required: false - schema: - type: string - style: form - - description: Filter logs by specific container name - explode: true - in: query - name: containerName - required: false - schema: - type: string - style: form - - description: CloudWatch Logs filter pattern for searching log content - explode: true - in: query - name: filterPattern - required: false - schema: - type: string - style: form - - description: Maximum number of log entries to return per page - explode: true - in: query - name: limit - required: false - schema: - maximum: 10000 - minimum: 1 - type: integer - style: form - - description: Pagination token from previous response for retrieving next page - of results - explode: true - in: query - name: nextToken - required: false + - description: The cron job ID + explode: false + in: path + name: cron + required: true schema: type: string - style: form + style: simple responses: - "200": - content: - application/json: - schema: - $ref: '#/components/schemas/getEnvironmentLogs_200_response' - description: The logs - "404": - description: The environment not found - "422": - description: Validation error - summary: Get the logs for an environment + "204": + description: The cron job deleted + summary: Delete a cron job tags: - - Environments - /api/v3/organizations/{organisation}/applications/{application}/environments/{environment}/metrics: + - Cron get: - description: "Retrieves CloudWatch metrics for the specified environment with\ - \ optional filtering by time range, container, and metric configuration." - operationId: getEnvironmentMetrics + operationId: getCronJob parameters: - description: The organisation ID example: test-org @@ -8724,66 +8815,28 @@ paths: schema: type: string style: simple - - description: Start time for metrics retrieval (Unix timestamp in milliseconds) - explode: true - in: query - name: startTime - required: false - schema: - type: integer - style: form - - description: End time for metrics retrieval (Unix timestamp in milliseconds) - explode: true - in: query - name: endTime - required: false - schema: - type: integer - style: form - - description: "Period in seconds for metric aggregation (e.g., 60 for 1 minute,\ - \ 300 for 5 minutes)" - explode: true - in: query - name: period - required: false - schema: - type: integer - style: form - - description: "Comma-separated list of CloudWatch statistics (e.g., Average,\ - \ Maximum, Minimum, Sum, SampleCount)" - explode: true - in: query - name: statistics - required: false + - description: The cron job ID + explode: false + in: path + name: cron + required: true schema: type: string - style: form - - description: Filter metrics by specific container name - explode: true - in: query - name: containerName - required: false - schema: - type: string - style: form + style: simple responses: "200": content: application/json: schema: - description: CloudWatch metrics data - type: object - description: The metrics + $ref: '#/components/schemas/Cron' + description: The cron job "404": - description: The environment not found - "422": - description: Validation error - summary: Get the metrics for an environment + description: The cron job not found + summary: Get a cron job tags: - - Environments - /api/v3/organizations/{organisation}/applications/{application}/environments/{environment}/sync/{type}: - get: - operationId: listSyncOperations + - Cron + patch: + operationId: updateCronJob parameters: - description: The organisation ID example: test-org @@ -8812,31 +8865,35 @@ paths: schema: type: string style: simple - - description: The sync type + - description: The cron job ID explode: false in: path - name: type + name: cron required: true schema: - enum: - - database - - filesystem type: string style: simple + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/updateCronJob_request' + required: true responses: "200": content: application/json: schema: - items: - $ref: '#/components/schemas/SyncOperation' - type: array - description: The sync operations - summary: List the sync operations for an environment + $ref: '#/components/schemas/Cron' + description: The updated cron job + "404": + description: The cron job not found + summary: Update a cron job tags: - - Environments - post: - operationId: syncToEnvironment + - Cron + /api/v3/organizations/{organisation}/applications/{application}/environments/{environment}/cron/{cron}/runs: + get: + operationId: listCronJobRuns parameters: - description: The organisation ID example: test-org @@ -8865,39 +8922,30 @@ paths: schema: type: string style: simple - - description: The sync type + - description: The cron job ID + example: test-cron explode: false in: path - name: type + name: cron required: true schema: - enum: - - database - - filesystem type: string style: simple - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/syncToEnvironment_request' - required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/SyncOperation' - description: The sync operation details - summary: Perform a sync operation from a source environment to the current environment + items: + $ref: '#/components/schemas/CronRun' + type: array + description: The runs + summary: Get all runs for a cron job tags: - - Environments - /api/v3/organizations/{organisation}/applications/{application}/environments/{environment}/backups/{type}: + - Cron + /api/v3/organizations/{organisation}/applications/{application}/environments/{environment}/cron/{cron}/runs/{run}: get: - description: "Retrieves a list of backups (database or filesystem) for the environment\ - \ with status, size, and metadata. Supports filtering and ordering via query\ - \ parameters." - operationId: listBackups + operationId: getCronRun parameters: - description: The organisation ID example: test-org @@ -8926,99 +8974,36 @@ paths: schema: type: string style: simple - - description: The backup type + - description: The cron job ID + example: test-cron explode: false in: path - name: type + name: cron required: true schema: - enum: - - database - - filesystem type: string style: simple - - description: "Sort order for backups by creation date (asc = oldest first,\ - \ desc = newest first)" - explode: true - in: query - name: order - required: false - schema: - default: desc - enum: - - asc - - desc - type: string - style: form - - description: Maximum number of backups to return (max 100) - explode: true - in: query - name: limit - required: false - schema: - default: 50 - maximum: 100 - minimum: 1 - type: integer - style: form - - description: "Only return backups created before this ISO 8601 timestamp (e.g.,\ - \ 2025-01-01T00:00:00Z)" - explode: true - in: query - name: createdBefore - required: false - schema: - format: date-time - type: string - style: form - - description: "Only return backups created after this ISO 8601 timestamp (e.g.,\ - \ 2024-12-01T00:00:00Z)" - explode: true - in: query - name: createdAfter - required: false - schema: - format: date-time - type: string - style: form - - description: Filter backups by status - explode: true - in: query - name: status - required: false - schema: - enum: - - completed - - failed - - running - type: string - style: form - - description: Token for retrieving the next page of results - explode: true - in: query - name: nextToken - required: false + - description: The cron run ID + explode: false + in: path + name: run + required: true schema: type: string - style: form + style: simple responses: "200": content: application/json: schema: - $ref: '#/components/schemas/listBackups_200_response' - description: List of backups - "422": - content: - application/json: - schema: - $ref: '#/components/schemas/listBackups_422_response' - description: Invalid backup type - summary: List backups for an environment + $ref: '#/components/schemas/CronRun' + description: The cron run + summary: Get a cron run tags: - - Backup Management - post: - operationId: createBackup + - Cron + /api/v3/organizations/{organisation}/applications/{application}/environments: + get: + operationId: listEnvironments parameters: - description: The organisation ID example: test-org @@ -9038,45 +9023,23 @@ paths: schema: type: string style: simple - - description: The environment ID - example: test-env - explode: false - in: path - name: environment - required: true - schema: - type: string - style: simple - - description: The backup type - explode: false - in: path - name: type - required: true - schema: - enum: - - database - - filesystem - type: string - style: simple - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/createBackup_request' - required: false responses: - "202": + "200": content: application/json: schema: - $ref: '#/components/schemas/createBackup_202_response' - description: Backup operation initiated - summary: Create a backup for an environment + items: + $ref: '#/components/schemas/EnvironmentSummary' + type: array + description: List of environments with summary information including deployment + status + "404": + description: The organisation or application not found + summary: Get all environments for an application tags: - - Backup Management - /api/v3/organizations/{organisation}/applications/{application}/environments/{environment}/backups/{type}/{backupId}: - delete: - operationId: deleteBackup + - Environments + post: + operationId: createEnvironment parameters: - description: The organisation ID example: test-org @@ -9096,47 +9059,34 @@ paths: schema: type: string style: simple - - description: The environment ID - example: test-env - explode: false - in: path - name: environment + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/createEnvironment_request' required: true - schema: - type: string - style: simple - - description: The backup type - explode: false - in: path - name: type - required: true - schema: - enum: - - database - - filesystem - type: string - style: simple - - description: The backup ID - explode: false - in: path - name: backupId - required: true - schema: - type: string - style: simple responses: - "200": + "201": content: application/json: schema: - $ref: '#/components/schemas/deleteBackup_200_response' - description: Backup deleted successfully - summary: Delete a backup + $ref: '#/components/schemas/EnvironmentResponse' + description: The environment created + "400": + description: The environment data is invalid + "403": + content: + application/json: + schema: + $ref: '#/components/schemas/createEnvironment_403_response' + description: Environment limit reached - application has reached the maximum + number of allowed environments + summary: Create a new environment tags: - - Backup Management - /api/v3/organizations/{organisation}/applications/{application}/environments/{environment}/backups/{type}/{backupId}/download: - get: - operationId: downloadBackup + - Environments + /api/v3/organizations/{organisation}/applications/{application}/environments/{environment}: + delete: + operationId: deleteEnvironment parameters: - description: The organisation ID example: test-org @@ -9165,38 +9115,16 @@ paths: schema: type: string style: simple - - description: The backup type - explode: false - in: path - name: type - required: true - schema: - enum: - - database - - filesystem - type: string - style: simple - - description: The backup ID - explode: false - in: path - name: backupId - required: true - schema: - type: string - style: simple responses: - "200": - content: - application/json: - schema: - $ref: '#/components/schemas/downloadBackup_200_response' - description: Download URL generated successfully - summary: Generate a download URL for a backup + "204": + description: The environment deleted + "404": + description: The environment not found + summary: Delete an environment tags: - - Backup Management - /api/v3/organizations/{organisation}/applications/{application}/environments/{environment}/scaling-policies: + - Environments get: - operationId: getScalingPolicies + operationId: getEnvironment parameters: - description: The organisation ID example: test-org @@ -9227,15 +9155,24 @@ paths: style: simple responses: "200": - description: The scaling policy for the environment - summary: Get the scaling policies for an environment + content: + application/json: + schema: + $ref: '#/components/schemas/EnvironmentResponse' + description: The environment with runtime details + "404": + description: The environment not found + summary: Get a single environment tags: - - ScalingPolicy + - Environments put: - operationId: updateScalingPolicy + description: "Replaces the entire task definition for the environment based\ + \ on the provided multi-container compose definition. This will create a new\ + \ task definition revision and update the ECS service, triggering a redeployment.\ + \ Optionally accepts minCapacity and maxCapacity at the root level for convenience." + operationId: updateEnvironment parameters: - description: The organisation ID - example: test-org explode: false in: path name: organisation @@ -9244,7 +9181,6 @@ paths: type: string style: simple - description: The application ID - example: test-app explode: false in: path name: application @@ -9253,7 +9189,6 @@ paths: type: string style: simple - description: The environment ID - example: test-env explode: false in: path name: environment @@ -9265,17 +9200,25 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/ScalingPolicy' + $ref: '#/components/schemas/updateEnvironment_request' required: true responses: - "200": - description: The scaling policy for the environment - summary: Update the scaling policy for an environment + "202": + description: "Request accepted, compose definition update is processing." + "400": + content: + application/json: + schema: + $ref: '#/components/schemas/patchEnvironmentCompose_400_response' + description: Invalid compose definition or validation failed. + "404": + description: Application or environment not found + summary: Update Environment Compose Definition tags: - - ScalingPolicy - /api/v3/organizations/{organisation}/applications/{application}/environments/{environment}/scaling-policies/{policyName}: - delete: - operationId: deleteScalingPolicy + - Environments + /api/v3/organizations/{organisation}/applications/{application}/environments/{environment}/state: + put: + operationId: updateEnvironmentState parameters: - description: The organisation ID example: test-org @@ -9304,23 +9247,26 @@ paths: schema: type: string style: simple - - description: The policy name - explode: false - in: path - name: policyName + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/updateEnvironmentState_request' required: true - schema: - type: string - style: simple responses: "204": - description: The scaling policy for the environment - summary: Delete the scaling policy for an environment + description: The environment state updated + "400": + description: The environment data is invalid + summary: Update the state of an environment tags: - - ScalingPolicy - /api/v3/organizations/{organisation}/applications/{application}/environments/{environment}/ssh-access: + - Environments + /api/v3/organizations/{organisation}/applications/{application}/environments/{environment}/logs: get: - operationId: getSshAccessCredentials + description: "Retrieves logs from CloudWatch for the specified environment with\ + \ optional filtering by time range, container, and pattern matching. Supports\ + \ pagination via nextToken." + operationId: getEnvironmentLogs parameters: - description: The organisation ID example: test-org @@ -9349,31 +9295,82 @@ paths: schema: type: string style: simple + - description: Start time for log retrieval (ISO 8601 format or Unix timestamp) + explode: true + in: query + name: startTime + required: false + schema: + type: string + style: form + - description: End time for log retrieval (ISO 8601 format or Unix timestamp) + explode: true + in: query + name: endTime + required: false + schema: + type: string + style: form + - description: Filter logs by specific container name + explode: true + in: query + name: containerName + required: false + schema: + type: string + style: form + - description: CloudWatch Logs filter pattern for searching log content + explode: true + in: query + name: filterPattern + required: false + schema: + type: string + style: form + - description: Maximum number of log entries to return per page + explode: true + in: query + name: limit + required: false + schema: + maximum: 10000 + minimum: 1 + type: integer + style: form + - description: Pagination token from previous response for retrieving next page + of results + explode: true + in: query + name: nextToken + required: false + schema: + type: string + style: form responses: "200": content: application/json: schema: - $ref: '#/components/schemas/getSshAccessCredentials_200_response' - description: SSH access credentials - "403": - description: Insufficient permissions + $ref: '#/components/schemas/getEnvironmentLogs_200_response' + description: The logs "404": - description: Environment not found - "500": - description: Failed to generate SSH access credentials - summary: Get SSH access credentials for an environment + description: The environment not found + "422": + description: Validation error + summary: Get the logs for an environment tags: - - SSH Access - /api/v3/organizations/{api_organisation}/applications/{api_application}/environments/{api_environment}/variables: + - Environments + /api/v3/organizations/{organisation}/applications/{application}/environments/{environment}/metrics: get: - operationId: listEnvironmentVariables + description: "Retrieves CloudWatch metrics for the specified environment with\ + \ optional filtering by time range, container, and metric configuration." + operationId: getEnvironmentMetrics parameters: - description: The organisation ID example: test-org explode: false in: path - name: api_organisation + name: organisation required: true schema: type: string @@ -9382,7 +9379,7 @@ paths: example: test-app explode: false in: path - name: api_application + name: application required: true schema: type: string @@ -9391,111 +9388,130 @@ paths: example: test-env explode: false in: path - name: api_environment + name: environment required: true schema: type: string style: simple - responses: - "200": - description: A list of variables - summary: Get all variables for an environment - tags: - - Variables - put: - operationId: bulkSetEnvironmentVariables - parameters: - - description: The organisation ID - example: test-org - explode: false - in: path - name: api_organisation - required: true + - description: Start time for metrics retrieval (Unix timestamp in milliseconds) + explode: true + in: query + name: startTime + required: false schema: - type: string - style: simple - - description: The application ID - example: test-app - explode: false - in: path - name: api_application - required: true + type: integer + style: form + - description: End time for metrics retrieval (Unix timestamp in milliseconds) + explode: true + in: query + name: endTime + required: false + schema: + type: integer + style: form + - description: "Period in seconds for metric aggregation (e.g., 60 for 1 minute,\ + \ 300 for 5 minutes)" + explode: true + in: query + name: period + required: false + schema: + type: integer + style: form + - description: "Comma-separated list of CloudWatch statistics (e.g., Average,\ + \ Maximum, Minimum, Sum, SampleCount)" + explode: true + in: query + name: statistics + required: false schema: type: string - style: simple - - description: The environment ID - example: test-env - explode: false - in: path - name: api_environment - required: true + style: form + - description: Filter metrics by specific container name + explode: true + in: query + name: containerName + required: false schema: type: string - style: simple - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/bulkSetEnvironmentVariables_request' - required: true + style: form responses: "200": - description: Environment variables set/replaced successfully - summary: Bulk set/replace environment variables + content: + application/json: + schema: + description: CloudWatch metrics data + type: object + description: The metrics + "404": + description: The environment not found + "422": + description: Validation error + summary: Get the metrics for an environment tags: - - Variables - /api/v3/organizations/{api_organisation}/applications/{api_application}/environments/{api_environment}/variables/{api_variable}: - delete: - operationId: deleteEnvironmentVariable + - Environments + /api/v3/organizations/{organisation}/applications/{application}/environments/{environment}/sync/{type}: + get: + operationId: listSyncOperations parameters: - description: The organisation ID + example: test-org explode: false in: path - name: api_organisation + name: organisation required: true schema: type: string style: simple - description: The application ID + example: test-app explode: false in: path - name: api_application + name: application required: true schema: type: string style: simple - description: The environment ID + example: test-env explode: false in: path - name: api_environment + name: environment required: true schema: type: string style: simple - - description: The variable key + - description: The sync type explode: false in: path - name: api_variable + name: type required: true schema: + enum: + - database + - filesystem type: string style: simple responses: - "204": - description: The variable deleted - "404": - description: The variable not found - summary: Delete a variable + "200": + content: + application/json: + schema: + items: + $ref: '#/components/schemas/SyncOperation' + type: array + description: The sync operations + summary: List the sync operations for an environment tags: - - Variables - put: - operationId: updateEnvironmentVariable + - Environments + post: + operationId: syncToEnvironment parameters: - description: The organisation ID example: test-org explode: false in: path - name: api_organisation + name: organisation required: true schema: type: string @@ -9504,7 +9520,7 @@ paths: example: test-app explode: false in: path - name: api_application + name: application required: true schema: type: string @@ -9513,36 +9529,44 @@ paths: example: test-env explode: false in: path - name: api_environment + name: environment required: true schema: type: string style: simple - - description: The variable key + - description: The sync type explode: false in: path - name: api_variable + name: type required: true schema: + enum: + - database + - filesystem type: string style: simple requestBody: content: application/json: schema: - $ref: '#/components/schemas/updateEnvironmentVariable_request' + $ref: '#/components/schemas/syncToEnvironment_request' required: true responses: "200": - description: The variable updated - "404": - description: The variable not found - summary: Update a variable + content: + application/json: + schema: + $ref: '#/components/schemas/SyncOperation' + description: The sync operation details + summary: Perform a sync operation from a source environment to the current environment tags: - - Variables - /api/v3/organizations/{organisation}/applications/{application}/environments/{environment}/volumes: + - Environments + /api/v3/organizations/{organisation}/applications/{application}/environments/{environment}/backups/{type}: get: - operationId: listVolumes + description: "Retrieves a list of backups (database or filesystem) for the environment\ + \ with status, size, and metadata. Supports filtering and ordering via query\ + \ parameters." + operationId: listBackups parameters: - description: The organisation ID example: test-org @@ -9571,20 +9595,99 @@ paths: schema: type: string style: simple + - description: The backup type + explode: false + in: path + name: type + required: true + schema: + enum: + - database + - filesystem + type: string + style: simple + - description: "Sort order for backups by creation date (asc = oldest first,\ + \ desc = newest first)" + explode: true + in: query + name: order + required: false + schema: + default: desc + enum: + - asc + - desc + type: string + style: form + - description: Maximum number of backups to return (max 100) + explode: true + in: query + name: limit + required: false + schema: + default: 50 + maximum: 100 + minimum: 1 + type: integer + style: form + - description: "Only return backups created before this ISO 8601 timestamp (e.g.,\ + \ 2025-01-01T00:00:00Z)" + explode: true + in: query + name: createdBefore + required: false + schema: + format: date-time + type: string + style: form + - description: "Only return backups created after this ISO 8601 timestamp (e.g.,\ + \ 2024-12-01T00:00:00Z)" + explode: true + in: query + name: createdAfter + required: false + schema: + format: date-time + type: string + style: form + - description: Filter backups by status + explode: true + in: query + name: status + required: false + schema: + enum: + - completed + - failed + - running + type: string + style: form + - description: Token for retrieving the next page of results + explode: true + in: query + name: nextToken + required: false + schema: + type: string + style: form responses: "200": content: application/json: schema: - $ref: '#/components/schemas/Volume' - description: The volumes - "404": - description: The environment not found - summary: Get all volumes for an environment + $ref: '#/components/schemas/listBackups_200_response' + description: List of backups + "422": + content: + application/json: + schema: + $ref: '#/components/schemas/listBackups_422_response' + description: Invalid backup type + summary: List backups for an environment tags: - - Volumes + - Backup Management post: - operationId: createVolume + operationId: createBackup parameters: - description: The organisation ID example: test-org @@ -9613,27 +9716,36 @@ paths: schema: type: string style: simple + - description: The backup type + explode: false + in: path + name: type + required: true + schema: + enum: + - database + - filesystem + type: string + style: simple requestBody: content: application/json: schema: - $ref: '#/components/schemas/createVolume_request' - required: true + $ref: '#/components/schemas/createBackup_request' + required: false responses: - "201": + "202": content: application/json: schema: - $ref: '#/components/schemas/Volume' - description: The volume created - "404": - description: The environment not found - summary: Create a new volume + $ref: '#/components/schemas/createBackup_202_response' + description: Backup operation initiated + summary: Create a backup for an environment tags: - - Volumes - /api/v3/organizations/{organisation}/applications/{application}/environments/{environment}/volumes/{volume}: + - Backup Management + /api/v3/organizations/{organisation}/applications/{application}/environments/{environment}/backups/{type}/{backupId}: delete: - operationId: deleteVolume + operationId: deleteBackup parameters: - description: The organisation ID example: test-org @@ -9662,24 +9774,38 @@ paths: schema: type: string style: simple - - description: The volume ID + - description: The backup type explode: false in: path - name: volume + name: type + required: true + schema: + enum: + - database + - filesystem + type: string + style: simple + - description: The backup ID + explode: false + in: path + name: backupId required: true schema: type: string style: simple responses: - "204": - description: The volume deleted - "404": - description: The environment not found - summary: Delete a volume + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/deleteBackup_200_response' + description: Backup deleted successfully + summary: Delete a backup tags: - - Volumes + - Backup Management + /api/v3/organizations/{organisation}/applications/{application}/environments/{environment}/backups/{type}/{backupId}/download: get: - operationId: getVolume + operationId: downloadBackup parameters: - description: The organisation ID example: test-org @@ -9708,10 +9834,21 @@ paths: schema: type: string style: simple - - description: The volume ID + - description: The backup type explode: false in: path - name: volume + name: type + required: true + schema: + enum: + - database + - filesystem + type: string + style: simple + - description: The backup ID + explode: false + in: path + name: backupId required: true schema: type: string @@ -9721,191 +9858,723 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/Volume' - description: The volume - "404": - description: The environment not found - summary: Get a volume + $ref: '#/components/schemas/downloadBackup_200_response' + description: Download URL generated successfully + summary: Generate a download URL for a backup tags: - - Volumes -components: - parameters: - organisation: - description: The organisation machine name - explode: false - in: path - name: organisation - required: true - schema: - type: string - style: simple - schemas: - V2Error: - example: - message: The requested resource was not found - error: true - properties: - message: - description: Error message - example: The requested resource was not found - type: string - error: - description: Error flag - example: true - type: boolean - required: - - error - - message - type: object - CreateApplicationRequest: - example: - composeDefinition: - spotConfiguration: - strategy: spot-only - taskMemory: 2 - maxCapacity: 7 - containers: - - originProtectionConfig: - ipAllow: - - ipAllow - - ipAllow - enabled: true - memory: 6 - dependsOn: - - condition: START - containerName: containerName - - condition: START - containerName: containerName - workingDirectory: workingDirectory - exposedPorts: - - 5 - - 5 - cpu: 0 - imageReference: - identifier: identifier - type: internal - secrets: - - name: name - valueFrom: valueFrom - - name: name - valueFrom: valueFrom - memoryReservation: 1 - command: - - command - - command - environment: - - name: name - value: value - - name: name - value: value - readonlyRootFilesystem: false - originProtection: false - healthCheck: - retries: 7 - startPeriod: 279 - interval: 171 - command: - - command - - command - timeout: 15 - name: name - mountPoints: - - readOnly: false - containerPath: containerPath - sourceVolume: sourceVolume - - readOnly: false - containerPath: containerPath - sourceVolume: sourceVolume - entryPoint: - - entryPoint - - entryPoint - user: user - essential: true - - originProtectionConfig: - ipAllow: - - ipAllow - - ipAllow - enabled: true - memory: 6 - dependsOn: - - condition: START - containerName: containerName - - condition: START - containerName: containerName - workingDirectory: workingDirectory - exposedPorts: - - 5 - - 5 - cpu: 0 - imageReference: - identifier: identifier - type: internal - secrets: - - name: name - valueFrom: valueFrom - - name: name - valueFrom: valueFrom - memoryReservation: 1 - command: - - command - - command - environment: - - name: name - value: value - - name: name - value: value - readonlyRootFilesystem: false - originProtection: false - healthCheck: - retries: 7 - startPeriod: 279 - interval: 171 - command: - - command - - command - timeout: 15 - name: name - mountPoints: - - readOnly: false - containerPath: containerPath - sourceVolume: sourceVolume - - readOnly: false - containerPath: containerPath - sourceVolume: sourceVolume - entryPoint: - - entryPoint - - entryPoint - user: user - essential: true - minCapacity: 4 - taskCpu: 3 - enableCrossAppNetworking: false - architecture: architecture - enableCrossEnvNetworking: false - database: - multiAz: false - engine: mysql - instanceClass: db.t4g.micro - storageGb: 20 - environment: - - name: name - value: value - - name: name - value: value - appName: my-app - maxCapacity: 6 - minCapacity: 0 - filesystem: - mountPath: /data/shared - required: true - properties: - appName: - description: Application name - example: my-app + - Backup Management + /api/v3/organizations/{organisation}/applications/{application}/environments/{environment}/scaling-policies: + get: + operationId: getScalingPolicies + parameters: + - description: The organisation ID + example: test-org + explode: false + in: path + name: organisation + required: true + schema: type: string - composeDefinition: - $ref: '#/components/schemas/Compose' - minCapacity: + style: simple + - description: The application ID + example: test-app + explode: false + in: path + name: application + required: true + schema: + type: string + style: simple + - description: The environment ID + example: test-env + explode: false + in: path + name: environment + required: true + schema: + type: string + style: simple + responses: + "200": + description: The scaling policy for the environment + summary: Get the scaling policies for an environment + tags: + - ScalingPolicy + put: + operationId: updateScalingPolicy + parameters: + - description: The organisation ID + example: test-org + explode: false + in: path + name: organisation + required: true + schema: + type: string + style: simple + - description: The application ID + example: test-app + explode: false + in: path + name: application + required: true + schema: + type: string + style: simple + - description: The environment ID + example: test-env + explode: false + in: path + name: environment + required: true + schema: + type: string + style: simple + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/ScalingPolicy' + required: true + responses: + "200": + description: The scaling policy for the environment + summary: Update the scaling policy for an environment + tags: + - ScalingPolicy + /api/v3/organizations/{organisation}/applications/{application}/environments/{environment}/scaling-policies/{policyName}: + delete: + operationId: deleteScalingPolicy + parameters: + - description: The organisation ID + example: test-org + explode: false + in: path + name: organisation + required: true + schema: + type: string + style: simple + - description: The application ID + example: test-app + explode: false + in: path + name: application + required: true + schema: + type: string + style: simple + - description: The environment ID + example: test-env + explode: false + in: path + name: environment + required: true + schema: + type: string + style: simple + - description: The policy name + explode: false + in: path + name: policyName + required: true + schema: + type: string + style: simple + responses: + "204": + description: The scaling policy for the environment + summary: Delete the scaling policy for an environment + tags: + - ScalingPolicy + /api/v3/organizations/{organisation}/applications/{application}/environments/{environment}/ssh-access: + get: + operationId: getSshAccessCredentials + parameters: + - description: The organisation ID + example: test-org + explode: false + in: path + name: organisation + required: true + schema: + type: string + style: simple + - description: The application ID + example: test-app + explode: false + in: path + name: application + required: true + schema: + type: string + style: simple + - description: The environment ID + example: test-env + explode: false + in: path + name: environment + required: true + schema: + type: string + style: simple + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/getSshAccessCredentials_200_response' + description: SSH access credentials + "403": + description: Insufficient permissions + "404": + description: Environment not found + "500": + description: Failed to generate SSH access credentials + summary: Get SSH access credentials for an environment + tags: + - SSH Access + /api/v3/organizations/{api_organisation}/applications/{api_application}/environments/{api_environment}/variables: + get: + operationId: listEnvironmentVariables + parameters: + - description: The organisation ID + example: test-org + explode: false + in: path + name: api_organisation + required: true + schema: + type: string + style: simple + - description: The application ID + example: test-app + explode: false + in: path + name: api_application + required: true + schema: + type: string + style: simple + - description: The environment ID + example: test-env + explode: false + in: path + name: api_environment + required: true + schema: + type: string + style: simple + responses: + "200": + description: A list of variables + summary: Get all variables for an environment + tags: + - Variables + put: + operationId: bulkSetEnvironmentVariables + parameters: + - description: The organisation ID + example: test-org + explode: false + in: path + name: api_organisation + required: true + schema: + type: string + style: simple + - description: The application ID + example: test-app + explode: false + in: path + name: api_application + required: true + schema: + type: string + style: simple + - description: The environment ID + example: test-env + explode: false + in: path + name: api_environment + required: true + schema: + type: string + style: simple + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/bulkSetEnvironmentVariables_request' + required: true + responses: + "200": + description: Environment variables set/replaced successfully + summary: Bulk set/replace environment variables + tags: + - Variables + /api/v3/organizations/{api_organisation}/applications/{api_application}/environments/{api_environment}/variables/{api_variable}: + delete: + operationId: deleteEnvironmentVariable + parameters: + - description: The organisation ID + explode: false + in: path + name: api_organisation + required: true + schema: + type: string + style: simple + - description: The application ID + explode: false + in: path + name: api_application + required: true + schema: + type: string + style: simple + - description: The environment ID + explode: false + in: path + name: api_environment + required: true + schema: + type: string + style: simple + - description: The variable key + explode: false + in: path + name: api_variable + required: true + schema: + type: string + style: simple + responses: + "204": + description: The variable deleted + "404": + description: The variable not found + summary: Delete a variable + tags: + - Variables + put: + operationId: updateEnvironmentVariable + parameters: + - description: The organisation ID + example: test-org + explode: false + in: path + name: api_organisation + required: true + schema: + type: string + style: simple + - description: The application ID + example: test-app + explode: false + in: path + name: api_application + required: true + schema: + type: string + style: simple + - description: The environment ID + example: test-env + explode: false + in: path + name: api_environment + required: true + schema: + type: string + style: simple + - description: The variable key + explode: false + in: path + name: api_variable + required: true + schema: + type: string + style: simple + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/updateEnvironmentVariable_request' + required: true + responses: + "200": + description: The variable updated + "404": + description: The variable not found + summary: Update a variable + tags: + - Variables + /api/v3/organizations/{organisation}/applications/{application}/environments/{environment}/volumes: + get: + operationId: listVolumes + parameters: + - description: The organisation ID + example: test-org + explode: false + in: path + name: organisation + required: true + schema: + type: string + style: simple + - description: The application ID + example: test-app + explode: false + in: path + name: application + required: true + schema: + type: string + style: simple + - description: The environment ID + example: test-env + explode: false + in: path + name: environment + required: true + schema: + type: string + style: simple + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/Volume' + description: The volumes + "404": + description: The environment not found + summary: Get all volumes for an environment + tags: + - Volumes + post: + operationId: createVolume + parameters: + - description: The organisation ID + example: test-org + explode: false + in: path + name: organisation + required: true + schema: + type: string + style: simple + - description: The application ID + example: test-app + explode: false + in: path + name: application + required: true + schema: + type: string + style: simple + - description: The environment ID + example: test-env + explode: false + in: path + name: environment + required: true + schema: + type: string + style: simple + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/createVolume_request' + required: true + responses: + "201": + content: + application/json: + schema: + $ref: '#/components/schemas/Volume' + description: The volume created + "404": + description: The environment not found + summary: Create a new volume + tags: + - Volumes + /api/v3/organizations/{organisation}/applications/{application}/environments/{environment}/volumes/{volume}: + delete: + operationId: deleteVolume + parameters: + - description: The organisation ID + example: test-org + explode: false + in: path + name: organisation + required: true + schema: + type: string + style: simple + - description: The application ID + example: test-app + explode: false + in: path + name: application + required: true + schema: + type: string + style: simple + - description: The environment ID + example: test-env + explode: false + in: path + name: environment + required: true + schema: + type: string + style: simple + - description: The volume ID + explode: false + in: path + name: volume + required: true + schema: + type: string + style: simple + responses: + "204": + description: The volume deleted + "404": + description: The environment not found + summary: Delete a volume + tags: + - Volumes + get: + operationId: getVolume + parameters: + - description: The organisation ID + example: test-org + explode: false + in: path + name: organisation + required: true + schema: + type: string + style: simple + - description: The application ID + example: test-app + explode: false + in: path + name: application + required: true + schema: + type: string + style: simple + - description: The environment ID + example: test-env + explode: false + in: path + name: environment + required: true + schema: + type: string + style: simple + - description: The volume ID + explode: false + in: path + name: volume + required: true + schema: + type: string + style: simple + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/Volume' + description: The volume + "404": + description: The environment not found + summary: Get a volume + tags: + - Volumes +components: + parameters: + organisation: + description: The organisation machine name + explode: false + in: path + name: organisation + required: true + schema: + type: string + style: simple + schemas: + V2Error: + example: + message: The requested resource was not found + error: true + properties: + message: + description: Error message + example: The requested resource was not found + type: string + error: + description: Error flag + example: true + type: boolean + required: + - error + - message + type: object + CreateApplicationRequest: + example: + composeDefinition: + spotConfiguration: + strategy: spot-only + taskMemory: 2 + maxCapacity: 7 + containers: + - originProtectionConfig: + ipAllow: + - ipAllow + - ipAllow + enabled: true + memory: 6 + dependsOn: + - condition: START + containerName: containerName + - condition: START + containerName: containerName + workingDirectory: workingDirectory + exposedPorts: + - 5 + - 5 + cpu: 0 + imageReference: + identifier: identifier + type: internal + secrets: + - name: name + valueFrom: valueFrom + - name: name + valueFrom: valueFrom + memoryReservation: 1 + command: + - command + - command + environment: + - name: name + value: value + - name: name + value: value + readonlyRootFilesystem: false + originProtection: false + healthCheck: + retries: 7 + startPeriod: 279 + interval: 171 + command: + - command + - command + timeout: 15 + name: name + mountPoints: + - readOnly: false + containerPath: containerPath + sourceVolume: sourceVolume + - readOnly: false + containerPath: containerPath + sourceVolume: sourceVolume + entryPoint: + - entryPoint + - entryPoint + user: user + essential: true + - originProtectionConfig: + ipAllow: + - ipAllow + - ipAllow + enabled: true + memory: 6 + dependsOn: + - condition: START + containerName: containerName + - condition: START + containerName: containerName + workingDirectory: workingDirectory + exposedPorts: + - 5 + - 5 + cpu: 0 + imageReference: + identifier: identifier + type: internal + secrets: + - name: name + valueFrom: valueFrom + - name: name + valueFrom: valueFrom + memoryReservation: 1 + command: + - command + - command + environment: + - name: name + value: value + - name: name + value: value + readonlyRootFilesystem: false + originProtection: false + healthCheck: + retries: 7 + startPeriod: 279 + interval: 171 + command: + - command + - command + timeout: 15 + name: name + mountPoints: + - readOnly: false + containerPath: containerPath + sourceVolume: sourceVolume + - readOnly: false + containerPath: containerPath + sourceVolume: sourceVolume + entryPoint: + - entryPoint + - entryPoint + user: user + essential: true + minCapacity: 4 + taskCpu: 3 + enableCrossAppNetworking: false + architecture: architecture + enableCrossEnvNetworking: false + database: + multiAz: false + engine: mysql + instanceClass: db.t4g.micro + storageGb: 20 + environment: + - name: name + value: value + - name: name + value: value + appName: my-app + maxCapacity: 6 + minCapacity: 0 + filesystem: + mountPath: /data/shared + required: true + properties: + appName: + description: Application name + example: my-app + type: string + composeDefinition: + $ref: '#/components/schemas/Compose' + minCapacity: default: 1 description: Minimum task count for auto-scaling nullable: true @@ -15123,6 +15792,59 @@ components: - cache_keys - scope type: object + Tokens_list_200_response_inner: + example: + last_used: 2000-01-23T04:56:07.000+00:00 + name: My deploy token + created_at: 2000-01-23T04:56:07.000+00:00 + id: 42 + properties: + id: + example: 42 + type: integer + name: + example: My deploy token + type: string + last_used: + format: date-time + nullable: true + type: string + created_at: + format: date-time + type: string + type: object + Tokens_create_request: + properties: + name: + description: Name for the token + example: My deploy token + type: string + required: + - name + type: object + Tokens_create_201_response: + example: + name: name + created_at: 2000-01-23T04:56:07.000+00:00 + token: token + properties: + token: + description: The plain text token (shown once) + type: string + name: + type: string + created_at: + format: date-time + type: string + type: object + Tokens_delete_200_response: + example: + message: Token revoked successfully + properties: + message: + example: Token revoked successfully + type: string + type: object listAIModels_200_response_models_inner_capabilities: description: Model capabilities and features example: @@ -16353,6 +17075,11 @@ components: type: array guardrails: $ref: '#/components/schemas/chatInference_request_guardrails' + longContext: + default: false + description: Enable 1M context window support regardless of token estimation. + Use when sending large payloads (>200K tokens). + type: boolean required: - messages - modelId @@ -16669,6 +17396,11 @@ components: type: array guardrails: $ref: '#/components/schemas/chatInference_request_guardrails' + longContext: + default: false + description: Enable 1M context window support regardless of token estimation. + Use when sending large payloads (>200K tokens). + type: boolean required: - messages - modelId @@ -17135,83 +17867,331 @@ components: description: "Get current weather for a location. Returns temperature,\ \ conditions, humidity, wind, and more." properties: - tools: - description: Array of available tool specifications + tools: + description: Array of available tool specifications + items: + $ref: '#/components/schemas/listAITools_200_response_tools_inner' + type: array + count: + description: Number of available tools + example: 4 + type: integer + required: + - count + - tools + type: object + listAIToolNames_200_response: + example: + count: 4 + tools: + - get_weather + - calculate + - search_web + - generate_image + properties: + tools: + description: Array of tool names + example: + - get_weather + - calculate + - search_web + - generate_image + items: + type: string + type: array + count: + description: Number of tools + example: 4 + type: integer + required: + - count + - tools + type: object + getAIToolExecutionStatus_200_response_result: + description: Tool execution result (only present when status='complete'). Structure + varies by tool type. + example: + images: + - "data:image/jpeg;base64,/9j/4AAQSkZJRg..." + s3Urls: + - https://au-stg-ai-images.s3.amazonaws.com/generated/exec_abc123... + properties: + images: + description: "For image generation: Array of base64-encoded data URIs for\ + \ inline display/preview" + items: + example: "data:image/jpeg;base64,/9j/4AAQSkZJRg..." + type: string + type: array + s3Urls: + description: "For image generation: Array of signed S3 URLs for high-quality\ + \ downloads (expire after 1 hour)" + items: + example: https://au-stg-ai-images.s3.amazonaws.com/generated/exec_abc123...?X-Amz-Security-Token=... + type: string + type: array + type: object + getAIToolExecutionStatus_200_response: + example: + result: + images: + - "data:image/jpeg;base64,/9j/4AAQSkZJRg..." + s3Urls: + - https://au-stg-ai-images.s3.amazonaws.com/generated/exec_abc123... + duration: 11 + executionId: exec_abc123def456 + createdAt: 1730271600 + completedAt: 1730271612 + startedAt: 1730271601 + error: "Image generation failed: Invalid prompt" + toolName: generate_image + status: complete + properties: + 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/listAITools_200_response_tools_inner' + $ref: '#/components/schemas/getDurableExecutionStatus_200_response_pendingTools_inner' type: array - count: - description: Number of available tools - example: 4 - type: integer - required: - - count - - tools + result: + $ref: '#/components/schemas/getDurableExecutionStatus_200_response_result' + error: + $ref: '#/components/schemas/getDurableExecutionStatus_200_response_error' type: object - listAIToolNames_200_response: - example: - count: 4 - tools: - - get_weather - - calculate - - search_web - - generate_image + submitToolCallback_request_toolResults_inner: properties: - tools: - description: Array of tool names + toolUseId: + description: The toolUseId from pendingTools + example: toolu_bdrk_012KTC8NCG... + type: string + result: + description: The result of executing the tool example: - - get_weather - - calculate - - search_web - - generate_image + 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: - type: string + $ref: '#/components/schemas/submitToolCallback_request_toolResults_inner' type: array - count: - description: Number of tools - example: 4 - type: integer required: - - count - - tools + - callbackId + - toolResults type: object - getAIToolExecutionStatus_200_response_result: - description: Tool execution result (only present when status='complete'). Structure - varies by tool type. + submitToolCallback_200_response: example: - images: - - "data:image/jpeg;base64,/9j/4AAQSkZJRg..." - s3Urls: - - https://au-stg-ai-images.s3.amazonaws.com/generated/exec_abc123... + callbackId: callbackId + success: true + message: Callback submitted successfully properties: - images: - description: "For image generation: Array of base64-encoded data URIs for\ - \ inline display/preview" - items: - example: "data:image/jpeg;base64,/9j/4AAQSkZJRg..." - type: string - type: array - s3Urls: - description: "For image generation: Array of signed S3 URLs for high-quality\ - \ downloads (expire after 1 hour)" - items: - example: https://au-stg-ai-images.s3.amazonaws.com/generated/exec_abc123...?X-Amz-Security-Token=... - type: string - type: array + success: + example: true + type: boolean + message: + example: Callback submitted successfully + type: string + callbackId: + description: Echo of the callbackId for confirmation + type: string type: object - getAIToolExecutionStatus_200_response: + getAIOrchestrationStatus_200_response_tools_inner: example: - result: - images: - - "data:image/jpeg;base64,/9j/4AAQSkZJRg..." - s3Urls: - - https://au-stg-ai-images.s3.amazonaws.com/generated/exec_abc123... - duration: 11 + result: "{}" executionId: exec_abc123def456 - createdAt: 1730271600 - completedAt: 1730271612 - startedAt: 1730271601 - error: "Image generation failed: Invalid prompt" + error: error toolName: generate_image status: complete properties: @@ -17222,914 +18202,1137 @@ components: example: generate_image type: string status: - description: "Execution status: pending, running, complete, or failed" + enum: + - pending + - running + - complete + - failed example: complete type: string result: - $ref: '#/components/schemas/getAIToolExecutionStatus_200_response_result' + description: Tool result (if complete) + type: object error: - description: Error message (only present when status='failed') - example: "Image generation failed: Invalid prompt" + description: Error message (if failed) type: string - createdAt: - description: Unix timestamp when execution was created - example: 1730271600 + 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: Current orchestration status + enum: + - pending + - polling + - synthesizing + - complete + - failed + example: complete + type: string + toolCount: + description: Total number of async tools in this orchestration + example: 2 type: integer - startedAt: - description: Unix timestamp when execution started (if status >= 'running') - example: 1730271601 + 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) + type: string + createdAt: + 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 - getDurableExecutionStatus_200_response_pendingTools_inner: + listAIToolExecutions_200_response_executions_inner: example: - input: - location: Sydney - name: get_weather - toolUseId: toolu_bdrk_012KTC8NCG... + executionId: exec_abc123def456 + createdAt: 2000-01-23T04:56:07.000+00:00 + completedAt: 2000-01-23T04:56:07.000+00:00 + toolName: generate_image + status: complete properties: - name: - example: get_weather + executionId: + example: exec_abc123def456 type: string - toolUseId: - example: toolu_bdrk_012KTC8NCG... + toolName: + example: generate_image + type: string + status: + description: "Execution status: pending, running, complete, or failed" + example: complete + type: string + createdAt: + format: date-time + type: string + completedAt: + format: date-time type: string - input: - example: - location: Sydney - type: object type: object - getDurableExecutionStatus_200_response_result_response: + listAIToolExecutions_200_response: example: - role: assistant - content: The weather in Sydney is sunny. + executions: + - executionId: exec_abc123def456 + createdAt: 2000-01-23T04:56:07.000+00:00 + completedAt: 2000-01-23T04:56:07.000+00:00 + toolName: generate_image + status: complete + - executionId: exec_abc123def456 + createdAt: 2000-01-23T04:56:07.000+00:00 + completedAt: 2000-01-23T04:56:07.000+00:00 + toolName: generate_image + status: complete + count: 0 + orgId: orgId + status: status properties: - role: - example: assistant + executions: + items: + $ref: '#/components/schemas/listAIToolExecutions_200_response_executions_inner' + type: array + count: + description: Number of executions returned + type: integer + orgId: + description: Organization identifier type: string - content: - example: The weather in Sydney is sunny. + status: + description: Filter applied (or 'all') type: string + required: + - count + - executions + - orgId type: object - getDurableExecutionStatus_200_response_result_usage: + listAIAgents_200_response_agents_inner: example: - inputTokens: 0 - outputTokens: 6 - totalTokens: 1 + createdAt: 2000-01-23T04:56:07.000+00:00 + agentId: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 + modelId: modelId + name: name + temperature: 0.8008281904610115 + maxTokens: 6 + description: description + group: group + allowedTools: + - allowedTools + - allowedTools + updatedAt: 2000-01-23T04:56:07.000+00:00 properties: - inputTokens: - type: integer - outputTokens: - type: integer - totalTokens: + agentId: + format: uuid + type: string + name: + type: string + description: + type: string + group: + type: string + modelId: + type: string + temperature: + type: number + maxTokens: type: integer + allowedTools: + items: + type: string + type: array + createdAt: + format: date-time + type: string + updatedAt: + format: date-time + type: string type: object - getDurableExecutionStatus_200_response_result: - description: Present when status is complete + listAIAgents_200_response: example: - response: - role: assistant - content: The weather in Sydney is sunny. - usage: - inputTokens: 0 - outputTokens: 6 - totalTokens: 1 - toolExecutions: - - "{}" - - "{}" + agents: + - createdAt: 2000-01-23T04:56:07.000+00:00 + agentId: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 + modelId: modelId + name: name + temperature: 0.8008281904610115 + maxTokens: 6 + description: description + group: group + allowedTools: + - allowedTools + - allowedTools + updatedAt: 2000-01-23T04:56:07.000+00:00 + - createdAt: 2000-01-23T04:56:07.000+00:00 + agentId: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 + modelId: modelId + name: name + temperature: 0.8008281904610115 + maxTokens: 6 + description: description + group: group + allowedTools: + - allowedTools + - allowedTools + updatedAt: 2000-01-23T04:56:07.000+00:00 properties: - response: - $ref: '#/components/schemas/getDurableExecutionStatus_200_response_result_response' - usage: - $ref: '#/components/schemas/getDurableExecutionStatus_200_response_result_usage' - toolExecutions: + agents: items: - type: object + $ref: '#/components/schemas/listAIAgents_200_response_agents_inner' type: array type: object - getDurableExecutionStatus_200_response_error: - description: Present when status is failed + createAIAgent_request: + properties: + name: + example: Code Review Assistant + type: string + description: + example: Reviews code for security vulnerabilities and best practices + type: string + group: + example: development + type: string + systemPrompt: + example: You are a senior software engineer specializing in secure code + review. + type: string + temperature: + example: 0.3 + maximum: 1 + minimum: 0 + type: number + modelId: + example: anthropic.claude-3-5-sonnet-20241022-v2:0 + type: string + maxTokens: + example: 4000 + maximum: 200000 + minimum: 1 + type: integer + allowedTools: + example: + - fetch_web_content + - search_web + items: + type: string + type: array + allowedCollections: + items: + type: string + type: array + createdBy: + description: User identifier who created the agent + type: string + required: + - description + - modelId + - name + - systemPrompt + type: object + createAIAgent_201_response: example: - ErrorType: ErrorType - ErrorMessage: ErrorMessage + agent: "{}" + success: true + message: Agent created successfully + properties: + success: + example: true + type: boolean + agent: + type: object + message: + example: Agent created successfully + type: string + type: object + getAIAgent_200_response_agent: + example: + agentId: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 + modelId: modelId + description: description + systemPrompt: systemPrompt + createdAt: 2000-01-23T04:56:07.000+00:00 + createdBy: createdBy + name: name + temperature: 0.8008281904610115 + maxTokens: 6 + allowedCollections: + - allowedCollections + - allowedCollections + group: group + allowedTools: + - allowedTools + - allowedTools + updatedAt: 2000-01-23T04:56:07.000+00:00 properties: - ErrorMessage: - type: string - ErrorType: + agentId: + format: uuid 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= + name: type: string - executionArn: - example: arn:aws:lambda:ap-southeast-2:... + description: type: string - status: - enum: - - pending - - running - - waiting_callback - - complete - - failed - example: complete + group: type: string - awsStatus: - description: Raw AWS Step Functions status - example: SUCCEEDED + systemPrompt: type: string - callbackId: - description: Present when status is waiting_callback - use with /chat/callback - example: Ab9hZXi/YXJuOmF3czpsYW1iZGE... + modelId: type: string - pendingTools: - description: Present when status is waiting_callback - tools waiting for - results + temperature: + type: number + maxTokens: + type: integer + allowedTools: items: - $ref: '#/components/schemas/getDurableExecutionStatus_200_response_pendingTools_inner' + type: string type: array - result: - $ref: '#/components/schemas/getDurableExecutionStatus_200_response_result' - error: - $ref: '#/components/schemas/getDurableExecutionStatus_200_response_error' + allowedCollections: + items: + type: string + type: array + createdBy: + type: string + createdAt: + format: date-time + type: string + updatedAt: + format: date-time + type: string type: object - submitToolCallback_request_toolResults_inner: + getAIAgent_200_response: + example: + agent: + agentId: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 + modelId: modelId + description: description + systemPrompt: systemPrompt + createdAt: 2000-01-23T04:56:07.000+00:00 + createdBy: createdBy + name: name + temperature: 0.8008281904610115 + maxTokens: 6 + allowedCollections: + - allowedCollections + - allowedCollections + group: group + allowedTools: + - allowedTools + - allowedTools + updatedAt: 2000-01-23T04:56:07.000+00:00 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 + agent: + $ref: '#/components/schemas/getAIAgent_200_response_agent' type: object - submitToolCallback_request: + updateAIAgent_request: properties: - callbackId: - description: The callbackId from the waiting_callback status response - example: Ab9hZXi/YXJuOmF3czpsYW1iZGE... + name: type: string - toolResults: - description: Results of client-executed tools + description: + type: string + group: + type: string + systemPrompt: + type: string + temperature: + maximum: 1 + minimum: 0 + type: number + modelId: + type: string + maxTokens: + maximum: 200000 + minimum: 1 + type: integer + allowedTools: items: - $ref: '#/components/schemas/submitToolCallback_request_toolResults_inner' + type: string + type: array + allowedCollections: + items: + type: string type: array - required: - - callbackId - - toolResults type: object - submitToolCallback_200_response: + updateAIAgent_200_response: example: - callbackId: callbackId + agent: "{}" success: true - message: Callback submitted successfully + message: Agent updated successfully properties: success: example: true type: boolean + agent: + type: object message: - example: Callback submitted successfully - type: string - callbackId: - description: Echo of the callbackId for confirmation + example: Agent updated successfully type: string type: object - getAIOrchestrationStatus_200_response_tools_inner: + deleteAIAgent_200_response: example: - result: "{}" - executionId: exec_abc123def456 - error: error - toolName: generate_image - status: complete + success: true + message: Agent deleted successfully 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) + success: + example: true + type: boolean + message: + example: Agent deleted successfully 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 + chatWithAIAgent_request: properties: - orchestrationId: - description: Unique orchestration identifier - example: orch_abc123def456789012345678901234 + message: + description: The user's message to the agent type: string - status: - description: Current orchestration status - enum: - - pending - - polling - - synthesizing - - complete - - failed - example: complete + sessionId: + description: Optional session ID to continue a conversation + format: uuid + type: string + userId: + description: Optional user identifier for session isolation + type: string + stream: + 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 - toolCount: - description: Total number of async tools in this orchestration - example: 2 + required: + - message + type: object + chatWithAIAgent_200_response_response_usage: + example: + inputTokens: 0 + outputTokens: 6 + properties: + inputTokens: type: integer - completedTools: - description: Number of tools that have completed - example: 2 + outputTokens: 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: object + chatWithAIAgent_200_response_response: + example: + stopReason: stopReason + usage: + inputTokens: 0 + outputTokens: 6 + toolResults: + - "{}" + - "{}" + text: text + properties: + text: type: string - tools: - description: Status of individual tool executions + stopReason: + type: string + usage: + $ref: '#/components/schemas/chatWithAIAgent_200_response_response_usage' + toolResults: items: - $ref: '#/components/schemas/getAIOrchestrationStatus_200_response_tools_inner' + type: object type: array - error: - description: Error message (only present when status=failed) - type: string - createdAt: - description: When orchestration was created - format: date-time - type: string - completedAt: - description: When orchestration completed (if status in complete or failed) - format: date-time + type: object + chatWithAIAgent_200_response: + example: + response: + stopReason: stopReason + usage: + inputTokens: 0 + outputTokens: 6 + toolResults: + - "{}" + - "{}" + text: text + sessionId: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 + properties: + sessionId: + format: uuid type: string - required: - - createdAt - - orchestrationId - - status - - toolCount + response: + $ref: '#/components/schemas/chatWithAIAgent_200_response_response' type: object - getAIOrchestrationStatus_404_response: + chatWithAIAgent_202_response: example: - orchestrationId: orch_abc123def456789012345678901234 - error: Orchestration not found + 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: - error: - example: Orchestration not found + requestId: + description: Unique request identifier for polling + example: 90fe0c53-a41b-4b28-b19e-5e900b3df959 type: string - orchestrationId: - example: orch_abc123def456789012345678901234 + 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 - listAIToolExecutions_200_response_executions_inner: + listCustomTools_200_response_tools_inner: example: - executionId: exec_abc123def456 createdAt: 2000-01-23T04:56:07.000+00:00 - completedAt: 2000-01-23T04:56:07.000+00:00 - toolName: generate_image - status: complete + inputSchema: "{}" + isAsync: false + name: check_inventory + description: Check product inventory levels + edgeFunctionUrl: https://my-edge-function.quant.cloud properties: - executionId: - example: exec_abc123def456 + name: + example: check_inventory type: string - toolName: - example: generate_image + description: + example: Check product inventory levels type: string - status: - description: "Execution status: pending, running, complete, or failed" - example: complete + edgeFunctionUrl: + example: https://my-edge-function.quant.cloud type: string + isAsync: + example: false + type: boolean + inputSchema: + type: object createdAt: format: date-time type: string - completedAt: - format: date-time - type: string type: object - listAIToolExecutions_200_response: + listCustomTools_200_response: example: - executions: - - executionId: exec_abc123def456 - createdAt: 2000-01-23T04:56:07.000+00:00 - completedAt: 2000-01-23T04:56:07.000+00:00 - toolName: generate_image - status: complete - - executionId: exec_abc123def456 - createdAt: 2000-01-23T04:56:07.000+00:00 - completedAt: 2000-01-23T04:56:07.000+00:00 - toolName: generate_image - status: complete count: 0 - orgId: orgId - status: status + tools: + - createdAt: 2000-01-23T04:56:07.000+00:00 + inputSchema: "{}" + isAsync: false + name: check_inventory + description: Check product inventory levels + edgeFunctionUrl: https://my-edge-function.quant.cloud + - createdAt: 2000-01-23T04:56:07.000+00:00 + inputSchema: "{}" + isAsync: false + name: check_inventory + description: Check product inventory levels + edgeFunctionUrl: https://my-edge-function.quant.cloud properties: - executions: + tools: items: - $ref: '#/components/schemas/listAIToolExecutions_200_response_executions_inner' + $ref: '#/components/schemas/listCustomTools_200_response_tools_inner' type: array count: - description: Number of executions returned type: integer - orgId: - description: Organization identifier + type: object + createCustomTool_request: + properties: + name: + description: Unique tool name (alphanumeric and underscores only) + example: check_inventory type: string - status: - description: Filter applied (or 'all') + description: + description: Human-readable description of what the tool does + example: Check product inventory levels in warehouse + type: string + edgeFunctionUrl: + description: HTTPS URL of the edge function + example: https://inventory-api.my-project.quant.cloud type: string + inputSchema: + description: JSON Schema defining the tool's input parameters + type: object + isAsync: + default: false + description: Whether this tool runs asynchronously (>5 seconds) + type: boolean + timeoutSeconds: + default: 30 + description: Tool execution timeout + maximum: 300 + minimum: 5 + type: integer required: - - count - - executions - - orgId + - description + - edgeFunctionUrl + - inputSchema + - name type: object - listAIAgents_200_response_agents_inner: + createCustomTool_201_response: example: - createdAt: 2000-01-23T04:56:07.000+00:00 - agentId: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 - modelId: modelId + success: true + message: Custom tool registered successfully + tool: "{}" + properties: + success: + example: true + type: boolean + tool: + type: object + message: + example: Custom tool registered successfully + type: string + type: object + deleteCustomTool_200_response: + example: + success: true + message: Custom tool deleted successfully + properties: + success: + example: true + type: boolean + message: + example: Custom tool deleted successfully + type: string + type: object + listSkills_200_response_skills_inner: + example: + skillId: skillId + triggerCondition: triggerCondition + installedAt: 2000-01-23T04:56:07.000+00:00 name: name - temperature: 0.8008281904610115 - maxTokens: 6 + namespace: namespace description: description - group: group - allowedTools: - - allowedTools - - allowedTools + source: "{}" + tags: + - tags + - tags updatedAt: 2000-01-23T04:56:07.000+00:00 properties: - agentId: - format: uuid + skillId: type: string name: type: string description: type: string - group: - type: string - modelId: - type: string - temperature: - type: number - maxTokens: - type: integer - allowedTools: + tags: items: type: string type: array - createdAt: + source: + type: object + triggerCondition: + type: string + namespace: + type: string + installedAt: format: date-time type: string updatedAt: format: date-time type: string type: object - listAIAgents_200_response: + listSkills_200_response: example: - agents: - - createdAt: 2000-01-23T04:56:07.000+00:00 - agentId: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 - modelId: modelId + skills: + - skillId: skillId + triggerCondition: triggerCondition + installedAt: 2000-01-23T04:56:07.000+00:00 name: name - temperature: 0.8008281904610115 - maxTokens: 6 + namespace: namespace description: description - group: group - allowedTools: - - allowedTools - - allowedTools + source: "{}" + tags: + - tags + - tags updatedAt: 2000-01-23T04:56:07.000+00:00 - - createdAt: 2000-01-23T04:56:07.000+00:00 - agentId: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 - modelId: modelId + - skillId: skillId + triggerCondition: triggerCondition + installedAt: 2000-01-23T04:56:07.000+00:00 name: name - temperature: 0.8008281904610115 - maxTokens: 6 + namespace: namespace description: description - group: group - allowedTools: - - allowedTools - - allowedTools + source: "{}" + tags: + - tags + - tags updatedAt: 2000-01-23T04:56:07.000+00:00 + count: 0 properties: - agents: + skills: items: - $ref: '#/components/schemas/listAIAgents_200_response_agents_inner' + $ref: '#/components/schemas/listSkills_200_response_skills_inner' type: array + count: + type: integer type: object - createAIAgent_request: + createSkill_request: properties: name: - example: Code Review Assistant + example: code-review type: string description: - example: Reviews code for security vulnerabilities and best practices - type: string - group: - example: development + example: Expert code review with security analysis type: string - systemPrompt: - example: You are a senior software engineer specializing in secure code - review. + content: + example: You are an expert code reviewer... type: string - temperature: - example: 0.3 - maximum: 1 - minimum: 0 - type: number - modelId: - example: anthropic.claude-3-5-sonnet-20241022-v2:0 + triggerCondition: + example: When the user asks for code review type: string - maxTokens: - example: 4000 - maximum: 200000 - minimum: 1 - type: integer - allowedTools: - example: - - fetch_web_content - - search_web + tags: items: type: string type: array - allowedCollections: + requiredTools: items: type: string type: array - createdBy: - description: User identifier who created the agent + namespace: + type: string + files: + type: object + disableModelInvocation: + type: boolean + allowedTools: + items: + type: string + type: array + installedBy: type: string required: - - description - - modelId + - content - name - - systemPrompt + - triggerCondition type: object - createAIAgent_201_response: + createSkill_201_response: example: - agent: "{}" success: true - message: Agent created successfully + skill: "{}" + message: Skill created successfully properties: success: example: true type: boolean - agent: + skill: type: object message: - example: Agent created successfully + example: Skill created successfully type: string type: object - getAIAgent_200_response_agent: + getSkill_200_response_skill: example: - agentId: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 - modelId: modelId + triggerCondition: triggerCondition + requiredTools: + - requiredTools + - requiredTools + installedAt: 2000-01-23T04:56:07.000+00:00 description: description - systemPrompt: systemPrompt - createdAt: 2000-01-23T04:56:07.000+00:00 - createdBy: createdBy + source: "{}" + content: content + tags: + - tags + - tags + skillId: skillId name: name - temperature: 0.8008281904610115 - maxTokens: 6 - allowedCollections: - - allowedCollections - - allowedCollections - group: group + namespace: namespace + files: "{}" + disableModelInvocation: true allowedTools: - allowedTools - allowedTools updatedAt: 2000-01-23T04:56:07.000+00:00 properties: - agentId: - format: uuid + skillId: type: string name: type: string description: type: string - group: - type: string - systemPrompt: + content: type: string - modelId: + triggerCondition: type: string - temperature: - type: number - maxTokens: - type: integer - allowedTools: + tags: items: type: string type: array - allowedCollections: + source: + type: object + requiredTools: items: type: string type: array - createdBy: + files: + type: object + namespace: type: string - createdAt: + disableModelInvocation: + type: boolean + allowedTools: + items: + type: string + type: array + installedAt: format: date-time type: string updatedAt: format: date-time type: string type: object - getAIAgent_200_response: + getSkill_200_response: example: - agent: - agentId: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 - modelId: modelId + skill: + triggerCondition: triggerCondition + requiredTools: + - requiredTools + - requiredTools + installedAt: 2000-01-23T04:56:07.000+00:00 description: description - systemPrompt: systemPrompt - createdAt: 2000-01-23T04:56:07.000+00:00 - createdBy: createdBy + source: "{}" + content: content + tags: + - tags + - tags + skillId: skillId name: name - temperature: 0.8008281904610115 - maxTokens: 6 - allowedCollections: - - allowedCollections - - allowedCollections - group: group + namespace: namespace + files: "{}" + disableModelInvocation: true allowedTools: - allowedTools - allowedTools updatedAt: 2000-01-23T04:56:07.000+00:00 properties: - agent: - $ref: '#/components/schemas/getAIAgent_200_response_agent' + skill: + $ref: '#/components/schemas/getSkill_200_response_skill' type: object - updateAIAgent_request: + updateSkill_request: properties: name: type: string - description: - type: string - group: - type: string - systemPrompt: - type: string - temperature: - maximum: 1 - minimum: 0 - type: number - modelId: - type: string - maxTokens: - maximum: 200000 - minimum: 1 - type: integer - allowedTools: - items: - type: string - type: array - allowedCollections: - items: - type: string - type: array - type: object - updateAIAgent_200_response: - example: - agent: "{}" - success: true - message: Agent updated successfully - properties: - success: - example: true - type: boolean - agent: - type: object - message: - example: Agent updated successfully - type: string - type: object - deleteAIAgent_200_response: - example: - success: true - message: Agent deleted successfully - properties: - success: - example: true - type: boolean - message: - example: Agent deleted successfully - type: string - type: object - chatWithAIAgent_request: - properties: - message: - description: The user's message to the agent - type: string - sessionId: - description: Optional session ID to continue a conversation - format: uuid - type: string - userId: - description: Optional user identifier for session isolation - type: string - stream: - 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 - chatWithAIAgent_200_response_response_usage: - example: - inputTokens: 0 - outputTokens: 6 - properties: - inputTokens: - type: integer - outputTokens: - type: integer - type: object - chatWithAIAgent_200_response_response: - example: - stopReason: stopReason - usage: - inputTokens: 0 - outputTokens: 6 - toolResults: - - "{}" - - "{}" - text: text - properties: - text: + description: type: string - stopReason: + content: type: string - usage: - $ref: '#/components/schemas/chatWithAIAgent_200_response_response_usage' - toolResults: + triggerCondition: + type: string + tags: items: - type: object + type: string + type: array + requiredTools: + items: + type: string + type: array + source: + type: object + files: + type: object + disableModelInvocation: + type: boolean + allowedTools: + items: + type: string type: array + namespace: + type: string type: object - chatWithAIAgent_200_response: + updateSkill_200_response: example: - response: - stopReason: stopReason - usage: - inputTokens: 0 - outputTokens: 6 - toolResults: - - "{}" - - "{}" - text: text - sessionId: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 + success: true + skill: "{}" + message: Skill updated successfully properties: - sessionId: - format: uuid + success: + example: true + type: boolean + skill: + type: object + message: + example: Skill updated successfully type: string - response: - $ref: '#/components/schemas/chatWithAIAgent_200_response_response' type: object - chatWithAIAgent_202_response: + deleteSkill_200_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 + success: true + message: Skill deleted successfully 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 + success: + example: true + type: boolean + message: + example: Skill deleted successfully type: string - agentName: - description: Human-readable agent name - example: Weather Assistant + type: object + importSkill_request_source: + properties: + type: + enum: + - skills.sh + - github type: string - sessionId: - description: Session ID (if provided) + url: type: string - status: - description: Initial status - enum: - - queued - example: queued + repo: type: string - message: - example: Agent execution started. Poll the status endpoint for updates. + path: type: string - pollUrl: - description: URL to poll for execution status - example: /ai/chat/executions/90fe0c53-a41b-4b28-b19e-5e900b3df959 + version: type: string required: - - agentId - - pollUrl - - requestId - - status + - type type: object - listCustomTools_200_response_tools_inner: - example: - createdAt: 2000-01-23T04:56:07.000+00:00 - inputSchema: "{}" - isAsync: false - name: check_inventory - description: Check product inventory levels - edgeFunctionUrl: https://my-edge-function.quant.cloud + importSkill_request: properties: + source: + $ref: '#/components/schemas/importSkill_request_source' name: - example: check_inventory type: string description: - example: Check product inventory levels type: string - edgeFunctionUrl: - example: https://my-edge-function.quant.cloud + tags: + items: + type: string + type: array + triggerCondition: type: string - isAsync: - example: false + requiredTools: + items: + type: string + type: array + disableModelInvocation: type: boolean - inputSchema: + allowedTools: + items: + type: string + type: array + installedBy: + type: string + required: + - source + type: object + importSkill_201_response: + example: + skill: "{}" + message: message + properties: + skill: type: object - createdAt: - format: date-time + message: type: string type: object - listCustomTools_200_response: + listSkillCollections_200_response_collections_inner: example: - count: 0 - tools: - - createdAt: 2000-01-23T04:56:07.000+00:00 - inputSchema: "{}" - isAsync: false - name: check_inventory - description: Check product inventory levels - edgeFunctionUrl: https://my-edge-function.quant.cloud - - createdAt: 2000-01-23T04:56:07.000+00:00 - inputSchema: "{}" - isAsync: false - name: check_inventory - description: Check product inventory levels - edgeFunctionUrl: https://my-edge-function.quant.cloud + skills: + - skills + - skills + namespace: superpowers + count: 14 properties: - tools: - items: - $ref: '#/components/schemas/listCustomTools_200_response_tools_inner' - type: array + namespace: + example: superpowers + type: string count: + example: 14 type: integer + skills: + items: + type: string + type: array type: object - createCustomTool_request: + listSkillCollections_200_response: + example: + collections: + - skills: + - skills + - skills + namespace: superpowers + count: 14 + - skills: + - skills + - skills + namespace: superpowers + count: 14 properties: - name: - description: Unique tool name (alphanumeric and underscores only) - example: check_inventory + collections: + items: + $ref: '#/components/schemas/listSkillCollections_200_response_collections_inner' + type: array + type: object + importSkillCollection_request_source: + properties: + type: + enum: + - github type: string - description: - description: Human-readable description of what the tool does - example: Check product inventory levels in warehouse + repo: + example: obra/superpowers type: string - edgeFunctionUrl: - description: HTTPS URL of the edge function - example: https://inventory-api.my-project.quant.cloud + path: + example: skills + type: string + version: + example: main type: string - inputSchema: - description: JSON Schema defining the tool's input parameters - type: object - isAsync: - default: false - description: Whether this tool runs asynchronously (>5 seconds) - type: boolean - timeoutSeconds: - default: 30 - description: Tool execution timeout - maximum: 300 - minimum: 5 - type: integer required: - - description - - edgeFunctionUrl - - inputSchema - - name + - repo + - type type: object - createCustomTool_201_response: + importSkillCollection_request: + properties: + namespace: + example: superpowers + pattern: "^[a-z0-9][a-z0-9-]{0,62}[a-z0-9]$" + type: string + source: + $ref: '#/components/schemas/importSkillCollection_request_source' + tags: + items: + type: string + type: array + installedBy: + type: string + required: + - namespace + - source + type: object + importSkillCollection_201_response: example: - success: true - message: Custom tool registered successfully - tool: "{}" + skills: + - "{}" + - "{}" + imported: 0 + namespace: namespace + failed: 6 + errors: + - "{}" + - "{}" properties: - success: - example: true - type: boolean - tool: - type: object - message: - example: Custom tool registered successfully + namespace: type: string + imported: + type: integer + failed: + type: integer + skills: + items: + type: object + type: array + errors: + items: + type: object + type: array type: object - deleteCustomTool_200_response: + syncSkillCollection_200_response: + example: + skills: + - "{}" + - "{}" + synced: 0 + removedFromSource: + - removedFromSource + - removedFromSource + created: 6 + namespace: namespace + failed: 1 + properties: + namespace: + type: string + synced: + type: integer + created: + type: integer + failed: + type: integer + removedFromSource: + items: + type: string + type: array + skills: + items: + type: object + type: array + type: object + deleteSkillCollection_200_response: example: success: true - message: Custom tool deleted successfully + message: Collection deleted successfully properties: success: example: true type: boolean message: - example: Custom tool deleted successfully + example: Collection deleted successfully type: string type: object listVectorCollections_200_response_collections_inner: @@ -18288,18 +19491,6 @@ components: collection: $ref: '#/components/schemas/getVectorCollection_200_response_collection' type: object - deleteVectorCollection_200_response: - example: - success: true - message: Collection deleted successfully - properties: - success: - example: true - type: boolean - message: - example: Collection deleted successfully - type: string - type: object uploadVectorDocuments_request_documents_inner_metadata: properties: title: @@ -18883,6 +20074,11 @@ components: items: type: string type: array + context: + description: Optional context merged into each item before processing (e.g. + shared credentials or endpoints) + nullable: true + type: object autoStart: default: true description: Whether to start immediately diff --git a/api_ai_agents.go b/api_ai_agents.go index c714a50..90c573b 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.10.0 +API version: 4.12.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/api_ai_custom_tools.go b/api_ai_custom_tools.go index 707145b..4dd924b 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.10.0 +API version: 4.12.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/api_ai_file_storage.go b/api_ai_file_storage.go index a5be523..0d4b59b 100644 --- a/api_ai_file_storage.go +++ b/api_ai_file_storage.go @@ -3,7 +3,7 @@ QuantCDN API Unified API for QuantCDN Admin and QuantCloud Platform services -API version: 4.10.0 +API version: 4.12.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/api_ai_inference.go b/api_ai_inference.go index a5748a4..7d810aa 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.10.0 +API version: 4.12.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/api_ai_models.go b/api_ai_models.go index 4a4d2d3..86138d2 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.10.0 +API version: 4.12.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 ec7d1b7..8ea46a2 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.10.0 +API version: 4.12.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/api_ai_orchestrations.go b/api_ai_orchestrations.go index fd455ad..8c9a855 100644 --- a/api_ai_orchestrations.go +++ b/api_ai_orchestrations.go @@ -3,7 +3,7 @@ QuantCDN API Unified API for QuantCDN Admin and QuantCloud Platform services -API version: 4.10.0 +API version: 4.12.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 06ab29e..44f7413 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.10.0 +API version: 4.12.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/api_ai_skills.go b/api_ai_skills.go new file mode 100644 index 0000000..2995a4a --- /dev/null +++ b/api_ai_skills.go @@ -0,0 +1,1502 @@ +/* +QuantCDN API + +Unified API for QuantCDN Admin and QuantCloud Platform services + +API version: 4.12.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 AISkillsAPI interface { + + /* + CreateSkill Create Inline Skill + + Creates a new skill with inline content. Use this for custom skills + * that are defined directly in your organization. + * + * **Trigger Conditions:** + * - Natural language description of when to use the skill + * - Used by AI to determine when to suggest or apply the skill + * - Example: 'When the user asks about code review or security analysis' + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param organisation The organisation ID + @return AISkillsAPICreateSkillRequest + */ + CreateSkill(ctx context.Context, organisation string) AISkillsAPICreateSkillRequest + + // CreateSkillExecute executes the request + // @return CreateSkill201Response + CreateSkillExecute(r AISkillsAPICreateSkillRequest) (*CreateSkill201Response, *http.Response, error) + + /* + DeleteSkill Delete Skill + + Permanently deletes a skill. This will also remove it from any agents that have it assigned. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param organisation The organisation ID + @param skillId The skill ID + @return AISkillsAPIDeleteSkillRequest + */ + DeleteSkill(ctx context.Context, organisation string, skillId string) AISkillsAPIDeleteSkillRequest + + // DeleteSkillExecute executes the request + // @return DeleteSkill200Response + DeleteSkillExecute(r AISkillsAPIDeleteSkillRequest) (*DeleteSkill200Response, *http.Response, error) + + /* + DeleteSkillCollection Delete Skill Collection + + Permanently deletes all skills in the specified namespace. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param organisation The organisation ID + @param namespace Collection namespace + @return AISkillsAPIDeleteSkillCollectionRequest + */ + DeleteSkillCollection(ctx context.Context, organisation string, namespace string) AISkillsAPIDeleteSkillCollectionRequest + + // DeleteSkillCollectionExecute executes the request + // @return DeleteSkillCollection200Response + DeleteSkillCollectionExecute(r AISkillsAPIDeleteSkillCollectionRequest) (*DeleteSkillCollection200Response, *http.Response, error) + + /* + GetSkill Get Skill Details + + Retrieves full details of a skill including its content, source information, and metadata. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param organisation The organisation ID + @param skillId The skill ID + @return AISkillsAPIGetSkillRequest + */ + GetSkill(ctx context.Context, organisation string, skillId string) AISkillsAPIGetSkillRequest + + // GetSkillExecute executes the request + // @return GetSkill200Response + GetSkillExecute(r AISkillsAPIGetSkillRequest) (*GetSkill200Response, *http.Response, error) + + /* + ImportSkill Import Skill from External Source + + Imports a skill from an external source like skills.sh registry or GitHub repository. + * + * **Supported Sources:** + * - `skills.sh`: Import from the skills.sh community registry + * - `github`: Import from a GitHub repository (public or private) + * + * **Version Control:** + * - Skills can be pinned to specific versions + * - Use the sync endpoint to update to latest version + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param organisation The organisation ID + @return AISkillsAPIImportSkillRequest + */ + ImportSkill(ctx context.Context, organisation string) AISkillsAPIImportSkillRequest + + // ImportSkillExecute executes the request + // @return ImportSkill201Response + ImportSkillExecute(r AISkillsAPIImportSkillRequest) (*ImportSkill201Response, *http.Response, error) + + /* + ImportSkillCollection Import Skill Collection from GitHub + + Discovers all skill directories under a given path in a GitHub repository + * and imports each as a skill within the specified namespace. Each subdirectory must contain a SKILL.md file. + * + * **Namespace:** Used for grouping and slash-command invocation (e.g., `/superpowers:brainstorming`). + * + * **Idempotent:** If a skill with the same namespace + name already exists, it is updated. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param organisation The organisation ID + @return AISkillsAPIImportSkillCollectionRequest + */ + ImportSkillCollection(ctx context.Context, organisation string) AISkillsAPIImportSkillCollectionRequest + + // ImportSkillCollectionExecute executes the request + // @return ImportSkillCollection201Response + ImportSkillCollectionExecute(r AISkillsAPIImportSkillCollectionRequest) (*ImportSkillCollection201Response, *http.Response, error) + + /* + ListSkillCollections List Skill Collections + + Lists distinct namespaces (collections) for the organization, with skill counts and skill names for each collection. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param organisation The organisation ID + @return AISkillsAPIListSkillCollectionsRequest + */ + ListSkillCollections(ctx context.Context, organisation string) AISkillsAPIListSkillCollectionsRequest + + // ListSkillCollectionsExecute executes the request + // @return ListSkillCollections200Response + ListSkillCollectionsExecute(r AISkillsAPIListSkillCollectionsRequest) (*ListSkillCollections200Response, *http.Response, error) + + /* + ListSkills List Organization's Skills + + Lists all skills available to the organization. Skills are reusable prompts, + * workflows, or instructions that can be assigned to agents or invoked directly. + * + * **Skill Sources:** + * - `inline`: Created directly via the API + * - `skills.sh`: Imported from skills.sh registry + * - `github`: Imported from a GitHub repository + * - `local`: Uploaded from local file + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param organisation The organisation ID + @return AISkillsAPIListSkillsRequest + */ + ListSkills(ctx context.Context, organisation string) AISkillsAPIListSkillsRequest + + // ListSkillsExecute executes the request + // @return ListSkills200Response + ListSkillsExecute(r AISkillsAPIListSkillsRequest) (*ListSkills200Response, *http.Response, error) + + /* + SyncSkill Sync Skill from Source + + Re-fetches skill content from its original source. + * Only applicable to skills imported from external sources (skills.sh, github). + * Inline skills cannot be synced. + * + * **Version Behavior:** + * - If version is pinned, fetches that specific version + * - If no version specified, fetches latest + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param organisation The organisation ID + @param skillId The skill ID + @return AISkillsAPISyncSkillRequest + */ + SyncSkill(ctx context.Context, organisation string, skillId string) AISkillsAPISyncSkillRequest + + // SyncSkillExecute executes the request + // @return ImportSkill201Response + SyncSkillExecute(r AISkillsAPISyncSkillRequest) (*ImportSkill201Response, *http.Response, error) + + /* + SyncSkillCollection Sync Skill Collection + + Re-syncs all skills in a namespace from their GitHub source. Detects new + * skills added to the repository and flags skills removed from the source. Does NOT auto-delete removed skills. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param organisation The organisation ID + @param namespace Collection namespace + @return AISkillsAPISyncSkillCollectionRequest + */ + SyncSkillCollection(ctx context.Context, organisation string, namespace string) AISkillsAPISyncSkillCollectionRequest + + // SyncSkillCollectionExecute executes the request + // @return SyncSkillCollection200Response + SyncSkillCollectionExecute(r AISkillsAPISyncSkillCollectionRequest) (*SyncSkillCollection200Response, *http.Response, error) + + /* + UpdateSkill Update Skill + + Updates an existing skill. For imported skills, this updates + * local overrides (name, tags, triggerCondition) but not the source content. + * Use the sync endpoint to update source content. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param organisation The organisation ID + @param skillId The skill ID + @return AISkillsAPIUpdateSkillRequest + */ + UpdateSkill(ctx context.Context, organisation string, skillId string) AISkillsAPIUpdateSkillRequest + + // UpdateSkillExecute executes the request + // @return UpdateSkill200Response + UpdateSkillExecute(r AISkillsAPIUpdateSkillRequest) (*UpdateSkill200Response, *http.Response, error) +} + +// AISkillsAPIService AISkillsAPI service +type AISkillsAPIService service + +type AISkillsAPICreateSkillRequest struct { + ctx context.Context + ApiService AISkillsAPI + organisation string + createSkillRequest *CreateSkillRequest +} + +func (r AISkillsAPICreateSkillRequest) CreateSkillRequest(createSkillRequest CreateSkillRequest) AISkillsAPICreateSkillRequest { + r.createSkillRequest = &createSkillRequest + return r +} + +func (r AISkillsAPICreateSkillRequest) Execute() (*CreateSkill201Response, *http.Response, error) { + return r.ApiService.CreateSkillExecute(r) +} + +/* +CreateSkill Create Inline Skill + +Creates a new skill with inline content. Use this for custom skills + * that are defined directly in your organization. + * + * **Trigger Conditions:** + * - Natural language description of when to use the skill + * - Used by AI to determine when to suggest or apply the skill + * - Example: 'When the user asks about code review or security analysis' + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param organisation The organisation ID + @return AISkillsAPICreateSkillRequest +*/ +func (a *AISkillsAPIService) CreateSkill(ctx context.Context, organisation string) AISkillsAPICreateSkillRequest { + return AISkillsAPICreateSkillRequest{ + ApiService: a, + ctx: ctx, + organisation: organisation, + } +} + +// Execute executes the request +// @return CreateSkill201Response +func (a *AISkillsAPIService) CreateSkillExecute(r AISkillsAPICreateSkillRequest) (*CreateSkill201Response, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *CreateSkill201Response + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "AISkillsAPIService.CreateSkill") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/api/v3/organizations/{organisation}/ai/skills" + 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.createSkillRequest == nil { + return localVarReturnValue, nil, reportError("createSkillRequest 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.createSkillRequest + 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 AISkillsAPIDeleteSkillRequest struct { + ctx context.Context + ApiService AISkillsAPI + organisation string + skillId string +} + +func (r AISkillsAPIDeleteSkillRequest) Execute() (*DeleteSkill200Response, *http.Response, error) { + return r.ApiService.DeleteSkillExecute(r) +} + +/* +DeleteSkill Delete Skill + +Permanently deletes a skill. This will also remove it from any agents that have it assigned. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param organisation The organisation ID + @param skillId The skill ID + @return AISkillsAPIDeleteSkillRequest +*/ +func (a *AISkillsAPIService) DeleteSkill(ctx context.Context, organisation string, skillId string) AISkillsAPIDeleteSkillRequest { + return AISkillsAPIDeleteSkillRequest{ + ApiService: a, + ctx: ctx, + organisation: organisation, + skillId: skillId, + } +} + +// Execute executes the request +// @return DeleteSkill200Response +func (a *AISkillsAPIService) DeleteSkillExecute(r AISkillsAPIDeleteSkillRequest) (*DeleteSkill200Response, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *DeleteSkill200Response + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "AISkillsAPIService.DeleteSkill") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/api/v3/organizations/{organisation}/ai/skills/{skillId}" + localVarPath = strings.Replace(localVarPath, "{"+"organisation"+"}", url.PathEscape(parameterValueToString(r.organisation, "organisation")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"skillId"+"}", url.PathEscape(parameterValueToString(r.skillId, "skillId")), -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 AISkillsAPIDeleteSkillCollectionRequest struct { + ctx context.Context + ApiService AISkillsAPI + organisation string + namespace string +} + +func (r AISkillsAPIDeleteSkillCollectionRequest) Execute() (*DeleteSkillCollection200Response, *http.Response, error) { + return r.ApiService.DeleteSkillCollectionExecute(r) +} + +/* +DeleteSkillCollection Delete Skill Collection + +Permanently deletes all skills in the specified namespace. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param organisation The organisation ID + @param namespace Collection namespace + @return AISkillsAPIDeleteSkillCollectionRequest +*/ +func (a *AISkillsAPIService) DeleteSkillCollection(ctx context.Context, organisation string, namespace string) AISkillsAPIDeleteSkillCollectionRequest { + return AISkillsAPIDeleteSkillCollectionRequest{ + ApiService: a, + ctx: ctx, + organisation: organisation, + namespace: namespace, + } +} + +// Execute executes the request +// @return DeleteSkillCollection200Response +func (a *AISkillsAPIService) DeleteSkillCollectionExecute(r AISkillsAPIDeleteSkillCollectionRequest) (*DeleteSkillCollection200Response, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *DeleteSkillCollection200Response + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "AISkillsAPIService.DeleteSkillCollection") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/api/v3/organizations/{organisation}/ai/skills/collections/{namespace}" + localVarPath = strings.Replace(localVarPath, "{"+"organisation"+"}", url.PathEscape(parameterValueToString(r.organisation, "organisation")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"namespace"+"}", url.PathEscape(parameterValueToString(r.namespace, "namespace")), -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 AISkillsAPIGetSkillRequest struct { + ctx context.Context + ApiService AISkillsAPI + organisation string + skillId string +} + +func (r AISkillsAPIGetSkillRequest) Execute() (*GetSkill200Response, *http.Response, error) { + return r.ApiService.GetSkillExecute(r) +} + +/* +GetSkill Get Skill Details + +Retrieves full details of a skill including its content, source information, and metadata. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param organisation The organisation ID + @param skillId The skill ID + @return AISkillsAPIGetSkillRequest +*/ +func (a *AISkillsAPIService) GetSkill(ctx context.Context, organisation string, skillId string) AISkillsAPIGetSkillRequest { + return AISkillsAPIGetSkillRequest{ + ApiService: a, + ctx: ctx, + organisation: organisation, + skillId: skillId, + } +} + +// Execute executes the request +// @return GetSkill200Response +func (a *AISkillsAPIService) GetSkillExecute(r AISkillsAPIGetSkillRequest) (*GetSkill200Response, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *GetSkill200Response + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "AISkillsAPIService.GetSkill") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/api/v3/organizations/{organisation}/ai/skills/{skillId}" + localVarPath = strings.Replace(localVarPath, "{"+"organisation"+"}", url.PathEscape(parameterValueToString(r.organisation, "organisation")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"skillId"+"}", url.PathEscape(parameterValueToString(r.skillId, "skillId")), -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 AISkillsAPIImportSkillRequest struct { + ctx context.Context + ApiService AISkillsAPI + organisation string + importSkillRequest *ImportSkillRequest +} + +func (r AISkillsAPIImportSkillRequest) ImportSkillRequest(importSkillRequest ImportSkillRequest) AISkillsAPIImportSkillRequest { + r.importSkillRequest = &importSkillRequest + return r +} + +func (r AISkillsAPIImportSkillRequest) Execute() (*ImportSkill201Response, *http.Response, error) { + return r.ApiService.ImportSkillExecute(r) +} + +/* +ImportSkill Import Skill from External Source + +Imports a skill from an external source like skills.sh registry or GitHub repository. + * + * **Supported Sources:** + * - `skills.sh`: Import from the skills.sh community registry + * - `github`: Import from a GitHub repository (public or private) + * + * **Version Control:** + * - Skills can be pinned to specific versions + * - Use the sync endpoint to update to latest version + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param organisation The organisation ID + @return AISkillsAPIImportSkillRequest +*/ +func (a *AISkillsAPIService) ImportSkill(ctx context.Context, organisation string) AISkillsAPIImportSkillRequest { + return AISkillsAPIImportSkillRequest{ + ApiService: a, + ctx: ctx, + organisation: organisation, + } +} + +// Execute executes the request +// @return ImportSkill201Response +func (a *AISkillsAPIService) ImportSkillExecute(r AISkillsAPIImportSkillRequest) (*ImportSkill201Response, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ImportSkill201Response + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "AISkillsAPIService.ImportSkill") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/api/v3/organizations/{organisation}/ai/skills/import" + 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.importSkillRequest == nil { + return localVarReturnValue, nil, reportError("importSkillRequest 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.importSkillRequest + 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 AISkillsAPIImportSkillCollectionRequest struct { + ctx context.Context + ApiService AISkillsAPI + organisation string + importSkillCollectionRequest *ImportSkillCollectionRequest +} + +func (r AISkillsAPIImportSkillCollectionRequest) ImportSkillCollectionRequest(importSkillCollectionRequest ImportSkillCollectionRequest) AISkillsAPIImportSkillCollectionRequest { + r.importSkillCollectionRequest = &importSkillCollectionRequest + return r +} + +func (r AISkillsAPIImportSkillCollectionRequest) Execute() (*ImportSkillCollection201Response, *http.Response, error) { + return r.ApiService.ImportSkillCollectionExecute(r) +} + +/* +ImportSkillCollection Import Skill Collection from GitHub + +Discovers all skill directories under a given path in a GitHub repository + * and imports each as a skill within the specified namespace. Each subdirectory must contain a SKILL.md file. + * + * **Namespace:** Used for grouping and slash-command invocation (e.g., `/superpowers:brainstorming`). + * + * **Idempotent:** If a skill with the same namespace + name already exists, it is updated. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param organisation The organisation ID + @return AISkillsAPIImportSkillCollectionRequest +*/ +func (a *AISkillsAPIService) ImportSkillCollection(ctx context.Context, organisation string) AISkillsAPIImportSkillCollectionRequest { + return AISkillsAPIImportSkillCollectionRequest{ + ApiService: a, + ctx: ctx, + organisation: organisation, + } +} + +// Execute executes the request +// @return ImportSkillCollection201Response +func (a *AISkillsAPIService) ImportSkillCollectionExecute(r AISkillsAPIImportSkillCollectionRequest) (*ImportSkillCollection201Response, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ImportSkillCollection201Response + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "AISkillsAPIService.ImportSkillCollection") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/api/v3/organizations/{organisation}/ai/skills/import-collection" + 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.importSkillCollectionRequest == nil { + return localVarReturnValue, nil, reportError("importSkillCollectionRequest 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.importSkillCollectionRequest + 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 AISkillsAPIListSkillCollectionsRequest struct { + ctx context.Context + ApiService AISkillsAPI + organisation string +} + +func (r AISkillsAPIListSkillCollectionsRequest) Execute() (*ListSkillCollections200Response, *http.Response, error) { + return r.ApiService.ListSkillCollectionsExecute(r) +} + +/* +ListSkillCollections List Skill Collections + +Lists distinct namespaces (collections) for the organization, with skill counts and skill names for each collection. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param organisation The organisation ID + @return AISkillsAPIListSkillCollectionsRequest +*/ +func (a *AISkillsAPIService) ListSkillCollections(ctx context.Context, organisation string) AISkillsAPIListSkillCollectionsRequest { + return AISkillsAPIListSkillCollectionsRequest{ + ApiService: a, + ctx: ctx, + organisation: organisation, + } +} + +// Execute executes the request +// @return ListSkillCollections200Response +func (a *AISkillsAPIService) ListSkillCollectionsExecute(r AISkillsAPIListSkillCollectionsRequest) (*ListSkillCollections200Response, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ListSkillCollections200Response + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "AISkillsAPIService.ListSkillCollections") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/api/v3/organizations/{organisation}/ai/skills/collections" + localVarPath = strings.Replace(localVarPath, "{"+"organisation"+"}", url.PathEscape(parameterValueToString(r.organisation, "organisation")), -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 AISkillsAPIListSkillsRequest struct { + ctx context.Context + ApiService AISkillsAPI + organisation string + tag *string + namespace *string + limit *int32 +} + +// Filter skills by tag +func (r AISkillsAPIListSkillsRequest) Tag(tag string) AISkillsAPIListSkillsRequest { + r.tag = &tag + return r +} + +// Filter skills by collection namespace (e.g. 'superpowers') +func (r AISkillsAPIListSkillsRequest) Namespace(namespace string) AISkillsAPIListSkillsRequest { + r.namespace = &namespace + return r +} + +// Maximum number of skills to return +func (r AISkillsAPIListSkillsRequest) Limit(limit int32) AISkillsAPIListSkillsRequest { + r.limit = &limit + return r +} + +func (r AISkillsAPIListSkillsRequest) Execute() (*ListSkills200Response, *http.Response, error) { + return r.ApiService.ListSkillsExecute(r) +} + +/* +ListSkills List Organization's Skills + +Lists all skills available to the organization. Skills are reusable prompts, + * workflows, or instructions that can be assigned to agents or invoked directly. + * + * **Skill Sources:** + * - `inline`: Created directly via the API + * - `skills.sh`: Imported from skills.sh registry + * - `github`: Imported from a GitHub repository + * - `local`: Uploaded from local file + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param organisation The organisation ID + @return AISkillsAPIListSkillsRequest +*/ +func (a *AISkillsAPIService) ListSkills(ctx context.Context, organisation string) AISkillsAPIListSkillsRequest { + return AISkillsAPIListSkillsRequest{ + ApiService: a, + ctx: ctx, + organisation: organisation, + } +} + +// Execute executes the request +// @return ListSkills200Response +func (a *AISkillsAPIService) ListSkillsExecute(r AISkillsAPIListSkillsRequest) (*ListSkills200Response, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ListSkills200Response + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "AISkillsAPIService.ListSkills") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/api/v3/organizations/{organisation}/ai/skills" + 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.tag != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "tag", r.tag, "form", "") + } + if r.namespace != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "namespace", r.namespace, "form", "") + } + if r.limit != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "limit", r.limit, "form", "") + } else { + var defaultValue int32 = 50 + r.limit = &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 AISkillsAPISyncSkillRequest struct { + ctx context.Context + ApiService AISkillsAPI + organisation string + skillId string +} + +func (r AISkillsAPISyncSkillRequest) Execute() (*ImportSkill201Response, *http.Response, error) { + return r.ApiService.SyncSkillExecute(r) +} + +/* +SyncSkill Sync Skill from Source + +Re-fetches skill content from its original source. + * Only applicable to skills imported from external sources (skills.sh, github). + * Inline skills cannot be synced. + * + * **Version Behavior:** + * - If version is pinned, fetches that specific version + * - If no version specified, fetches latest + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param organisation The organisation ID + @param skillId The skill ID + @return AISkillsAPISyncSkillRequest +*/ +func (a *AISkillsAPIService) SyncSkill(ctx context.Context, organisation string, skillId string) AISkillsAPISyncSkillRequest { + return AISkillsAPISyncSkillRequest{ + ApiService: a, + ctx: ctx, + organisation: organisation, + skillId: skillId, + } +} + +// Execute executes the request +// @return ImportSkill201Response +func (a *AISkillsAPIService) SyncSkillExecute(r AISkillsAPISyncSkillRequest) (*ImportSkill201Response, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ImportSkill201Response + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "AISkillsAPIService.SyncSkill") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/api/v3/organizations/{organisation}/ai/skills/{skillId}/sync" + localVarPath = strings.Replace(localVarPath, "{"+"organisation"+"}", url.PathEscape(parameterValueToString(r.organisation, "organisation")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"skillId"+"}", url.PathEscape(parameterValueToString(r.skillId, "skillId")), -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 AISkillsAPISyncSkillCollectionRequest struct { + ctx context.Context + ApiService AISkillsAPI + organisation string + namespace string +} + +func (r AISkillsAPISyncSkillCollectionRequest) Execute() (*SyncSkillCollection200Response, *http.Response, error) { + return r.ApiService.SyncSkillCollectionExecute(r) +} + +/* +SyncSkillCollection Sync Skill Collection + +Re-syncs all skills in a namespace from their GitHub source. Detects new + * skills added to the repository and flags skills removed from the source. Does NOT auto-delete removed skills. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param organisation The organisation ID + @param namespace Collection namespace + @return AISkillsAPISyncSkillCollectionRequest +*/ +func (a *AISkillsAPIService) SyncSkillCollection(ctx context.Context, organisation string, namespace string) AISkillsAPISyncSkillCollectionRequest { + return AISkillsAPISyncSkillCollectionRequest{ + ApiService: a, + ctx: ctx, + organisation: organisation, + namespace: namespace, + } +} + +// Execute executes the request +// @return SyncSkillCollection200Response +func (a *AISkillsAPIService) SyncSkillCollectionExecute(r AISkillsAPISyncSkillCollectionRequest) (*SyncSkillCollection200Response, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *SyncSkillCollection200Response + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "AISkillsAPIService.SyncSkillCollection") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/api/v3/organizations/{organisation}/ai/skills/collections/{namespace}/sync" + localVarPath = strings.Replace(localVarPath, "{"+"organisation"+"}", url.PathEscape(parameterValueToString(r.organisation, "organisation")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"namespace"+"}", url.PathEscape(parameterValueToString(r.namespace, "namespace")), -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 AISkillsAPIUpdateSkillRequest struct { + ctx context.Context + ApiService AISkillsAPI + organisation string + skillId string + updateSkillRequest *UpdateSkillRequest +} + +func (r AISkillsAPIUpdateSkillRequest) UpdateSkillRequest(updateSkillRequest UpdateSkillRequest) AISkillsAPIUpdateSkillRequest { + r.updateSkillRequest = &updateSkillRequest + return r +} + +func (r AISkillsAPIUpdateSkillRequest) Execute() (*UpdateSkill200Response, *http.Response, error) { + return r.ApiService.UpdateSkillExecute(r) +} + +/* +UpdateSkill Update Skill + +Updates an existing skill. For imported skills, this updates + * local overrides (name, tags, triggerCondition) but not the source content. + * Use the sync endpoint to update source content. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param organisation The organisation ID + @param skillId The skill ID + @return AISkillsAPIUpdateSkillRequest +*/ +func (a *AISkillsAPIService) UpdateSkill(ctx context.Context, organisation string, skillId string) AISkillsAPIUpdateSkillRequest { + return AISkillsAPIUpdateSkillRequest{ + ApiService: a, + ctx: ctx, + organisation: organisation, + skillId: skillId, + } +} + +// Execute executes the request +// @return UpdateSkill200Response +func (a *AISkillsAPIService) UpdateSkillExecute(r AISkillsAPIUpdateSkillRequest) (*UpdateSkill200Response, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *UpdateSkill200Response + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "AISkillsAPIService.UpdateSkill") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/api/v3/organizations/{organisation}/ai/skills/{skillId}" + localVarPath = strings.Replace(localVarPath, "{"+"organisation"+"}", url.PathEscape(parameterValueToString(r.organisation, "organisation")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"skillId"+"}", url.PathEscape(parameterValueToString(r.skillId, "skillId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.updateSkillRequest == nil { + return localVarReturnValue, nil, reportError("updateSkillRequest 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.updateSkillRequest + 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_task_management.go b/api_ai_task_management.go index ecc89b6..bc7ee4f 100644 --- a/api_ai_task_management.go +++ b/api_ai_task_management.go @@ -3,7 +3,7 @@ QuantCDN API Unified API for QuantCDN Admin and QuantCloud Platform services -API version: 4.10.0 +API version: 4.12.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/api_ai_tools.go b/api_ai_tools.go index a363726..b638cfc 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.10.0 +API version: 4.12.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/api_ai_vector_database.go b/api_ai_vector_database.go index e2173c6..59a77f0 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.10.0 +API version: 4.12.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -56,8 +56,8 @@ type AIVectorDatabaseAPI interface { DeleteVectorCollection(ctx context.Context, organisation string, collectionId string) AIVectorDatabaseAPIDeleteVectorCollectionRequest // DeleteVectorCollectionExecute executes the request - // @return DeleteVectorCollection200Response - DeleteVectorCollectionExecute(r AIVectorDatabaseAPIDeleteVectorCollectionRequest) (*DeleteVectorCollection200Response, *http.Response, error) + // @return DeleteSkillCollection200Response + DeleteVectorCollectionExecute(r AIVectorDatabaseAPIDeleteVectorCollectionRequest) (*DeleteSkillCollection200Response, *http.Response, error) /* DeleteVectorDocuments Delete Documents from Collection @@ -321,7 +321,7 @@ type AIVectorDatabaseAPIDeleteVectorCollectionRequest struct { collectionId string } -func (r AIVectorDatabaseAPIDeleteVectorCollectionRequest) Execute() (*DeleteVectorCollection200Response, *http.Response, error) { +func (r AIVectorDatabaseAPIDeleteVectorCollectionRequest) Execute() (*DeleteSkillCollection200Response, *http.Response, error) { return r.ApiService.DeleteVectorCollectionExecute(r) } @@ -345,13 +345,13 @@ func (a *AIVectorDatabaseAPIService) DeleteVectorCollection(ctx context.Context, } // Execute executes the request -// @return DeleteVectorCollection200Response -func (a *AIVectorDatabaseAPIService) DeleteVectorCollectionExecute(r AIVectorDatabaseAPIDeleteVectorCollectionRequest) (*DeleteVectorCollection200Response, *http.Response, error) { +// @return DeleteSkillCollection200Response +func (a *AIVectorDatabaseAPIService) DeleteVectorCollectionExecute(r AIVectorDatabaseAPIDeleteVectorCollectionRequest) (*DeleteSkillCollection200Response, *http.Response, error) { var ( localVarHTTPMethod = http.MethodDelete localVarPostBody interface{} formFiles []formFile - localVarReturnValue *DeleteVectorCollection200Response + localVarReturnValue *DeleteSkillCollection200Response ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "AIVectorDatabaseAPIService.DeleteVectorCollection") diff --git a/api_applications.go b/api_applications.go index 10d7cf3..506ce00 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.10.0 +API version: 4.12.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 9c1f6f5..612ebfc 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.10.0 +API version: 4.12.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/api_cdn_metrics.go b/api_cdn_metrics.go index 7cb0d3b..533e80f 100644 --- a/api_cdn_metrics.go +++ b/api_cdn_metrics.go @@ -3,7 +3,7 @@ QuantCDN API Unified API for QuantCDN Admin and QuantCloud Platform services -API version: 4.10.0 +API version: 4.12.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -91,7 +91,7 @@ func (r CDNMetricsAPIGetDailyMetricsRequest) Domain(domain string) CDNMetricsAPI return r } -// Metrics to return (default: hits, bytes) +// Metrics to return (default: hits, bytes). Use the /metrics/available endpoint to list all metrics by category. func (r CDNMetricsAPIGetDailyMetricsRequest) Metrics(metrics []string) CDNMetricsAPIGetDailyMetricsRequest { r.metrics = &metrics return r @@ -239,7 +239,7 @@ func (r CDNMetricsAPIGetHourlyMetricsRequest) Domain(domain string) CDNMetricsAP return r } -// Metrics to return (default: hits, bytes) +// Metrics to return (default: hits, bytes). Use the /metrics/available endpoint to list all metrics by category. func (r CDNMetricsAPIGetHourlyMetricsRequest) Metrics(metrics []string) CDNMetricsAPIGetHourlyMetricsRequest { r.metrics = &metrics return r @@ -387,7 +387,7 @@ func (r CDNMetricsAPIGetMonthlyMetricsRequest) Domain(domain string) CDNMetricsA return r } -// Metrics to return (default: hits, bytes) +// Metrics to return (default: hits, bytes). Use the /metrics/available endpoint to list all metrics by category. func (r CDNMetricsAPIGetMonthlyMetricsRequest) Metrics(metrics []string) CDNMetricsAPIGetMonthlyMetricsRequest { r.metrics = &metrics return r diff --git a/api_commands.go b/api_commands.go index 6ab693b..684d1ea 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.10.0 +API version: 4.12.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/api_compose.go b/api_compose.go index 03beebd..00fa1b9 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.10.0 +API version: 4.12.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/api_containers.go b/api_containers.go index 2243ce6..ddf1d54 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.10.0 +API version: 4.12.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 d0a17b0..6140158 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.10.0 +API version: 4.12.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/api_crawlers.go b/api_crawlers.go index 1aa6ebf..a7bb3a3 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.10.0 +API version: 4.12.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/api_cron.go b/api_cron.go index ad311d7..615b063 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.10.0 +API version: 4.12.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/api_domains.go b/api_domains.go index b98c5f1..2296852 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.10.0 +API version: 4.12.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/api_environments.go b/api_environments.go index a51f1a3..a8ac258 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.10.0 +API version: 4.12.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/api_headers.go b/api_headers.go index ea8d146..5c8eaf1 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.10.0 +API version: 4.12.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/api_kv.go b/api_kv.go index 5551770..297e6a4 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.10.0 +API version: 4.12.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/api_orchestration.go b/api_orchestration.go deleted file mode 100644 index b292469..0000000 --- a/api_orchestration.go +++ /dev/null @@ -1,223 +0,0 @@ -/* -QuantCDN API - -Unified API for QuantCDN Admin and QuantCloud Platform services - -API version: 4.10.0 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package quantadmingo - -import ( - "bytes" - "context" - "io" - "net/http" - "net/url" - "strings" -) - - -type OrchestrationAPI interface { - - /* - GetAIOrchestrationStatus Get Tool Orchestration Status (Async Tool Polling) - - Retrieves the status and synthesized result of a multi-tool async execution orchestration. - * - * **Note:** This endpoint is for async tool execution polling (`/tools/orchestrations`). - * For durable batch processing orchestrations, see `GET /orchestrations` endpoints. - * - * **Orchestration Pattern:** - * When the AI requests multiple async tools simultaneously, an orchestration is created - * 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 Tool Orchestration Status (Async Tool Polling) - -Retrieves the status and synthesized result of a multi-tool async execution orchestration. - * - * **Note:** This endpoint is for async tool execution polling (`/tools/orchestrations`). - * For durable batch processing orchestrations, see `GET /orchestrations` endpoints. - * - * **Orchestration Pattern:** - * When the AI requests multiple async tools simultaneously, an orchestration is created - * 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 ea09706..93ccb8f 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.10.0 +API version: 4.12.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/api_projects.go b/api_projects.go index 80d7a08..ddcb610 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.10.0 +API version: 4.12.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/api_purge.go b/api_purge.go index 0139b76..d0f80f3 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.10.0 +API version: 4.12.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/api_rules.go b/api_rules.go index 96da3ef..127ba29 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.10.0 +API version: 4.12.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 5360190..c543873 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.10.0 +API version: 4.12.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 6442cc0..75244a1 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.10.0 +API version: 4.12.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/api_tokens.go b/api_tokens.go new file mode 100644 index 0000000..26af173 --- /dev/null +++ b/api_tokens.go @@ -0,0 +1,437 @@ +/* +QuantCDN API + +Unified API for QuantCDN Admin and QuantCloud Platform services + +API version: 4.12.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 TokensAPI interface { + + /* + TokensCreate Create a new API token scoped to this organization + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param organization Organization identifier + @return TokensAPITokensCreateRequest + */ + TokensCreate(ctx context.Context, organization string) TokensAPITokensCreateRequest + + // TokensCreateExecute executes the request + // @return TokensCreate201Response + TokensCreateExecute(r TokensAPITokensCreateRequest) (*TokensCreate201Response, *http.Response, error) + + /* + TokensDelete Revoke an API token + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param organization Organization identifier + @param tokenId Token ID to revoke + @return TokensAPITokensDeleteRequest + */ + TokensDelete(ctx context.Context, organization string, tokenId int32) TokensAPITokensDeleteRequest + + // TokensDeleteExecute executes the request + // @return TokensDelete200Response + TokensDeleteExecute(r TokensAPITokensDeleteRequest) (*TokensDelete200Response, *http.Response, error) + + /* + TokensList List API tokens scoped to this organization + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param organization Organization identifier + @return TokensAPITokensListRequest + */ + TokensList(ctx context.Context, organization string) TokensAPITokensListRequest + + // TokensListExecute executes the request + // @return []TokensList200ResponseInner + TokensListExecute(r TokensAPITokensListRequest) ([]TokensList200ResponseInner, *http.Response, error) +} + +// TokensAPIService TokensAPI service +type TokensAPIService service + +type TokensAPITokensCreateRequest struct { + ctx context.Context + ApiService TokensAPI + organization string + tokensCreateRequest *TokensCreateRequest +} + +func (r TokensAPITokensCreateRequest) TokensCreateRequest(tokensCreateRequest TokensCreateRequest) TokensAPITokensCreateRequest { + r.tokensCreateRequest = &tokensCreateRequest + return r +} + +func (r TokensAPITokensCreateRequest) Execute() (*TokensCreate201Response, *http.Response, error) { + return r.ApiService.TokensCreateExecute(r) +} + +/* +TokensCreate Create a new API token scoped to this organization + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param organization Organization identifier + @return TokensAPITokensCreateRequest +*/ +func (a *TokensAPIService) TokensCreate(ctx context.Context, organization string) TokensAPITokensCreateRequest { + return TokensAPITokensCreateRequest{ + ApiService: a, + ctx: ctx, + organization: organization, + } +} + +// Execute executes the request +// @return TokensCreate201Response +func (a *TokensAPIService) TokensCreateExecute(r TokensAPITokensCreateRequest) (*TokensCreate201Response, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *TokensCreate201Response + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "TokensAPIService.TokensCreate") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/api/v2/organizations/{organization}/tokens" + localVarPath = strings.Replace(localVarPath, "{"+"organization"+"}", url.PathEscape(parameterValueToString(r.organization, "organization")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.tokensCreateRequest == nil { + return localVarReturnValue, nil, reportError("tokensCreateRequest 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.tokensCreateRequest + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + if localVarHTTPResponse.StatusCode == 400 { + var v V2Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 403 { + var v V2Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type TokensAPITokensDeleteRequest struct { + ctx context.Context + ApiService TokensAPI + organization string + tokenId int32 +} + +func (r TokensAPITokensDeleteRequest) Execute() (*TokensDelete200Response, *http.Response, error) { + return r.ApiService.TokensDeleteExecute(r) +} + +/* +TokensDelete Revoke an API token + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param organization Organization identifier + @param tokenId Token ID to revoke + @return TokensAPITokensDeleteRequest +*/ +func (a *TokensAPIService) TokensDelete(ctx context.Context, organization string, tokenId int32) TokensAPITokensDeleteRequest { + return TokensAPITokensDeleteRequest{ + ApiService: a, + ctx: ctx, + organization: organization, + tokenId: tokenId, + } +} + +// Execute executes the request +// @return TokensDelete200Response +func (a *TokensAPIService) TokensDeleteExecute(r TokensAPITokensDeleteRequest) (*TokensDelete200Response, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *TokensDelete200Response + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "TokensAPIService.TokensDelete") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/api/v2/organizations/{organization}/tokens/{token_id}" + localVarPath = strings.Replace(localVarPath, "{"+"organization"+"}", url.PathEscape(parameterValueToString(r.organization, "organization")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"token_id"+"}", url.PathEscape(parameterValueToString(r.tokenId, "tokenId")), -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 == 403 { + var v V2Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + 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 + } + + 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 TokensAPITokensListRequest struct { + ctx context.Context + ApiService TokensAPI + organization string +} + +func (r TokensAPITokensListRequest) Execute() ([]TokensList200ResponseInner, *http.Response, error) { + return r.ApiService.TokensListExecute(r) +} + +/* +TokensList List API tokens scoped to this organization + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param organization Organization identifier + @return TokensAPITokensListRequest +*/ +func (a *TokensAPIService) TokensList(ctx context.Context, organization string) TokensAPITokensListRequest { + return TokensAPITokensListRequest{ + ApiService: a, + ctx: ctx, + organization: organization, + } +} + +// Execute executes the request +// @return []TokensList200ResponseInner +func (a *TokensAPIService) TokensListExecute(r TokensAPITokensListRequest) ([]TokensList200ResponseInner, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue []TokensList200ResponseInner + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "TokensAPIService.TokensList") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/api/v2/organizations/{organization}/tokens" + localVarPath = strings.Replace(localVarPath, "{"+"organization"+"}", url.PathEscape(parameterValueToString(r.organization, "organization")), -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 == 403 { + var v V2Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} diff --git a/api_variables.go b/api_variables.go index c710972..60e22f3 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.10.0 +API version: 4.12.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/api_volumes.go b/api_volumes.go index 50956fd..9a54923 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.10.0 +API version: 4.12.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/client.go b/client.go index 6b23ed1..f968f07 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.10.0 +API version: 4.12.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.10.0 +// APIClient manages communication with the QuantCDN API API v4.12.0 // In most cases there should be only one, shared, APIClient. type APIClient struct { cfg *Configuration @@ -65,6 +65,8 @@ type APIClient struct { AISessionsAPI AISessionsAPI + AISkillsAPI AISkillsAPI + AITaskManagementAPI AITaskManagementAPI AIToolsAPI AIToolsAPI @@ -97,8 +99,6 @@ type APIClient struct { KVAPI KVAPI - OrchestrationAPI OrchestrationAPI - OrganizationsAPI OrganizationsAPI ProjectsAPI ProjectsAPI @@ -111,6 +111,8 @@ type APIClient struct { ScalingPolicyAPI ScalingPolicyAPI + TokensAPI TokensAPI + VariablesAPI VariablesAPI VolumesAPI VolumesAPI @@ -140,6 +142,7 @@ func NewAPIClient(cfg *Configuration) *APIClient { c.AIMonitoringAPI = (*AIMonitoringAPIService)(&c.common) c.AIOrchestrationsAPI = (*AIOrchestrationsAPIService)(&c.common) c.AISessionsAPI = (*AISessionsAPIService)(&c.common) + c.AISkillsAPI = (*AISkillsAPIService)(&c.common) c.AITaskManagementAPI = (*AITaskManagementAPIService)(&c.common) c.AIToolsAPI = (*AIToolsAPIService)(&c.common) c.AIVectorDatabaseAPI = (*AIVectorDatabaseAPIService)(&c.common) @@ -156,13 +159,13 @@ 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) c.RulesAPI = (*RulesAPIService)(&c.common) c.SSHAccessAPI = (*SSHAccessAPIService)(&c.common) c.ScalingPolicyAPI = (*ScalingPolicyAPIService)(&c.common) + c.TokensAPI = (*TokensAPIService)(&c.common) c.VariablesAPI = (*VariablesAPIService)(&c.common) c.VolumesAPI = (*VolumesAPIService)(&c.common) diff --git a/configuration.go b/configuration.go index 6f03932..37f732e 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.10.0 +API version: 4.12.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/docs/AISkillsAPI.md b/docs/AISkillsAPI.md new file mode 100644 index 0000000..a3266ec --- /dev/null +++ b/docs/AISkillsAPI.md @@ -0,0 +1,821 @@ +# \AISkillsAPI + +All URIs are relative to *https://dashboard.quantcdn.io* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**CreateSkill**](AISkillsAPI.md#CreateSkill) | **Post** /api/v3/organizations/{organisation}/ai/skills | Create Inline Skill +[**DeleteSkill**](AISkillsAPI.md#DeleteSkill) | **Delete** /api/v3/organizations/{organisation}/ai/skills/{skillId} | Delete Skill +[**DeleteSkillCollection**](AISkillsAPI.md#DeleteSkillCollection) | **Delete** /api/v3/organizations/{organisation}/ai/skills/collections/{namespace} | Delete Skill Collection +[**GetSkill**](AISkillsAPI.md#GetSkill) | **Get** /api/v3/organizations/{organisation}/ai/skills/{skillId} | Get Skill Details +[**ImportSkill**](AISkillsAPI.md#ImportSkill) | **Post** /api/v3/organizations/{organisation}/ai/skills/import | Import Skill from External Source +[**ImportSkillCollection**](AISkillsAPI.md#ImportSkillCollection) | **Post** /api/v3/organizations/{organisation}/ai/skills/import-collection | Import Skill Collection from GitHub +[**ListSkillCollections**](AISkillsAPI.md#ListSkillCollections) | **Get** /api/v3/organizations/{organisation}/ai/skills/collections | List Skill Collections +[**ListSkills**](AISkillsAPI.md#ListSkills) | **Get** /api/v3/organizations/{organisation}/ai/skills | List Organization's Skills +[**SyncSkill**](AISkillsAPI.md#SyncSkill) | **Post** /api/v3/organizations/{organisation}/ai/skills/{skillId}/sync | Sync Skill from Source +[**SyncSkillCollection**](AISkillsAPI.md#SyncSkillCollection) | **Post** /api/v3/organizations/{organisation}/ai/skills/collections/{namespace}/sync | Sync Skill Collection +[**UpdateSkill**](AISkillsAPI.md#UpdateSkill) | **Put** /api/v3/organizations/{organisation}/ai/skills/{skillId} | Update Skill + + + +## CreateSkill + +> CreateSkill201Response CreateSkill(ctx, organisation).CreateSkillRequest(createSkillRequest).Execute() + +Create Inline Skill + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/quantcdn/quant-admin-go" +) + +func main() { + organisation := "organisation_example" // string | The organisation ID + createSkillRequest := *openapiclient.NewCreateSkillRequest("code-review", "You are an expert code reviewer...", "When the user asks for code review") // CreateSkillRequest | + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.AISkillsAPI.CreateSkill(context.Background(), organisation).CreateSkillRequest(createSkillRequest).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `AISkillsAPI.CreateSkill``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `CreateSkill`: CreateSkill201Response + fmt.Fprintf(os.Stdout, "Response from `AISkillsAPI.CreateSkill`: %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 apiCreateSkillRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **createSkillRequest** | [**CreateSkillRequest**](CreateSkillRequest.md) | | + +### Return type + +[**CreateSkill201Response**](CreateSkill201Response.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) + + +## DeleteSkill + +> DeleteSkill200Response DeleteSkill(ctx, organisation, skillId).Execute() + +Delete Skill + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/quantcdn/quant-admin-go" +) + +func main() { + organisation := "organisation_example" // string | The organisation ID + skillId := "skillId_example" // string | The skill ID + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.AISkillsAPI.DeleteSkill(context.Background(), organisation, skillId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `AISkillsAPI.DeleteSkill``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `DeleteSkill`: DeleteSkill200Response + fmt.Fprintf(os.Stdout, "Response from `AISkillsAPI.DeleteSkill`: %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 | +**skillId** | **string** | The skill ID | + +### Other Parameters + +Other parameters are passed through a pointer to a apiDeleteSkillRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + +### Return type + +[**DeleteSkill200Response**](DeleteSkill200Response.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) + + +## DeleteSkillCollection + +> DeleteSkillCollection200Response DeleteSkillCollection(ctx, organisation, namespace).Execute() + +Delete Skill Collection + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/quantcdn/quant-admin-go" +) + +func main() { + organisation := "organisation_example" // string | The organisation ID + namespace := "namespace_example" // string | Collection namespace + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.AISkillsAPI.DeleteSkillCollection(context.Background(), organisation, namespace).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `AISkillsAPI.DeleteSkillCollection``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `DeleteSkillCollection`: DeleteSkillCollection200Response + fmt.Fprintf(os.Stdout, "Response from `AISkillsAPI.DeleteSkillCollection`: %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 | +**namespace** | **string** | Collection namespace | + +### Other Parameters + +Other parameters are passed through a pointer to a apiDeleteSkillCollectionRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + +### Return type + +[**DeleteSkillCollection200Response**](DeleteSkillCollection200Response.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) + + +## GetSkill + +> GetSkill200Response GetSkill(ctx, organisation, skillId).Execute() + +Get Skill 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 + skillId := "skillId_example" // string | The skill ID + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.AISkillsAPI.GetSkill(context.Background(), organisation, skillId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `AISkillsAPI.GetSkill``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetSkill`: GetSkill200Response + fmt.Fprintf(os.Stdout, "Response from `AISkillsAPI.GetSkill`: %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 | +**skillId** | **string** | The skill ID | + +### Other Parameters + +Other parameters are passed through a pointer to a apiGetSkillRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + +### Return type + +[**GetSkill200Response**](GetSkill200Response.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) + + +## ImportSkill + +> ImportSkill201Response ImportSkill(ctx, organisation).ImportSkillRequest(importSkillRequest).Execute() + +Import Skill from External Source + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/quantcdn/quant-admin-go" +) + +func main() { + organisation := "organisation_example" // string | The organisation ID + importSkillRequest := *openapiclient.NewImportSkillRequest(*openapiclient.NewImportSkillRequestSource("Type_example")) // ImportSkillRequest | + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.AISkillsAPI.ImportSkill(context.Background(), organisation).ImportSkillRequest(importSkillRequest).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `AISkillsAPI.ImportSkill``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ImportSkill`: ImportSkill201Response + fmt.Fprintf(os.Stdout, "Response from `AISkillsAPI.ImportSkill`: %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 apiImportSkillRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **importSkillRequest** | [**ImportSkillRequest**](ImportSkillRequest.md) | | + +### Return type + +[**ImportSkill201Response**](ImportSkill201Response.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) + + +## ImportSkillCollection + +> ImportSkillCollection201Response ImportSkillCollection(ctx, organisation).ImportSkillCollectionRequest(importSkillCollectionRequest).Execute() + +Import Skill Collection from GitHub + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/quantcdn/quant-admin-go" +) + +func main() { + organisation := "organisation_example" // string | The organisation ID + importSkillCollectionRequest := *openapiclient.NewImportSkillCollectionRequest("superpowers", *openapiclient.NewImportSkillCollectionRequestSource("Type_example", "obra/superpowers")) // ImportSkillCollectionRequest | + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.AISkillsAPI.ImportSkillCollection(context.Background(), organisation).ImportSkillCollectionRequest(importSkillCollectionRequest).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `AISkillsAPI.ImportSkillCollection``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ImportSkillCollection`: ImportSkillCollection201Response + fmt.Fprintf(os.Stdout, "Response from `AISkillsAPI.ImportSkillCollection`: %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 apiImportSkillCollectionRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **importSkillCollectionRequest** | [**ImportSkillCollectionRequest**](ImportSkillCollectionRequest.md) | | + +### Return type + +[**ImportSkillCollection201Response**](ImportSkillCollection201Response.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) + + +## ListSkillCollections + +> ListSkillCollections200Response ListSkillCollections(ctx, organisation).Execute() + +List Skill Collections + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/quantcdn/quant-admin-go" +) + +func main() { + organisation := "organisation_example" // string | The organisation ID + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.AISkillsAPI.ListSkillCollections(context.Background(), organisation).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `AISkillsAPI.ListSkillCollections``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ListSkillCollections`: ListSkillCollections200Response + fmt.Fprintf(os.Stdout, "Response from `AISkillsAPI.ListSkillCollections`: %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 apiListSkillCollectionsRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + +### Return type + +[**ListSkillCollections200Response**](ListSkillCollections200Response.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) + + +## ListSkills + +> ListSkills200Response ListSkills(ctx, organisation).Tag(tag).Namespace(namespace).Limit(limit).Execute() + +List Organization's Skills + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/quantcdn/quant-admin-go" +) + +func main() { + organisation := "organisation_example" // string | The organisation ID + tag := "tag_example" // string | Filter skills by tag (optional) + namespace := "namespace_example" // string | Filter skills by collection namespace (e.g. 'superpowers') (optional) + limit := int32(56) // int32 | Maximum number of skills to return (optional) (default to 50) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.AISkillsAPI.ListSkills(context.Background(), organisation).Tag(tag).Namespace(namespace).Limit(limit).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `AISkillsAPI.ListSkills``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ListSkills`: ListSkills200Response + fmt.Fprintf(os.Stdout, "Response from `AISkillsAPI.ListSkills`: %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 apiListSkillsRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **tag** | **string** | Filter skills by tag | + **namespace** | **string** | Filter skills by collection namespace (e.g. 'superpowers') | + **limit** | **int32** | Maximum number of skills to return | [default to 50] + +### Return type + +[**ListSkills200Response**](ListSkills200Response.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) + + +## SyncSkill + +> ImportSkill201Response SyncSkill(ctx, organisation, skillId).Execute() + +Sync Skill from Source + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/quantcdn/quant-admin-go" +) + +func main() { + organisation := "organisation_example" // string | The organisation ID + skillId := "skillId_example" // string | The skill ID + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.AISkillsAPI.SyncSkill(context.Background(), organisation, skillId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `AISkillsAPI.SyncSkill``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `SyncSkill`: ImportSkill201Response + fmt.Fprintf(os.Stdout, "Response from `AISkillsAPI.SyncSkill`: %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 | +**skillId** | **string** | The skill ID | + +### Other Parameters + +Other parameters are passed through a pointer to a apiSyncSkillRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + +### Return type + +[**ImportSkill201Response**](ImportSkill201Response.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) + + +## SyncSkillCollection + +> SyncSkillCollection200Response SyncSkillCollection(ctx, organisation, namespace).Execute() + +Sync Skill Collection + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/quantcdn/quant-admin-go" +) + +func main() { + organisation := "organisation_example" // string | The organisation ID + namespace := "namespace_example" // string | Collection namespace + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.AISkillsAPI.SyncSkillCollection(context.Background(), organisation, namespace).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `AISkillsAPI.SyncSkillCollection``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `SyncSkillCollection`: SyncSkillCollection200Response + fmt.Fprintf(os.Stdout, "Response from `AISkillsAPI.SyncSkillCollection`: %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 | +**namespace** | **string** | Collection namespace | + +### Other Parameters + +Other parameters are passed through a pointer to a apiSyncSkillCollectionRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + +### Return type + +[**SyncSkillCollection200Response**](SyncSkillCollection200Response.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) + + +## UpdateSkill + +> UpdateSkill200Response UpdateSkill(ctx, organisation, skillId).UpdateSkillRequest(updateSkillRequest).Execute() + +Update Skill + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/quantcdn/quant-admin-go" +) + +func main() { + organisation := "organisation_example" // string | The organisation ID + skillId := "skillId_example" // string | The skill ID + updateSkillRequest := *openapiclient.NewUpdateSkillRequest() // UpdateSkillRequest | + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.AISkillsAPI.UpdateSkill(context.Background(), organisation, skillId).UpdateSkillRequest(updateSkillRequest).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `AISkillsAPI.UpdateSkill``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `UpdateSkill`: UpdateSkill200Response + fmt.Fprintf(os.Stdout, "Response from `AISkillsAPI.UpdateSkill`: %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 | +**skillId** | **string** | The skill ID | + +### Other Parameters + +Other parameters are passed through a pointer to a apiUpdateSkillRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + **updateSkillRequest** | [**UpdateSkillRequest**](UpdateSkillRequest.md) | | + +### Return type + +[**UpdateSkill200Response**](UpdateSkill200Response.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/AIVectorDatabaseAPI.md b/docs/AIVectorDatabaseAPI.md index d180a17..588d477 100644 --- a/docs/AIVectorDatabaseAPI.md +++ b/docs/AIVectorDatabaseAPI.md @@ -88,7 +88,7 @@ Name | Type | Description | Notes ## DeleteVectorCollection -> DeleteVectorCollection200Response DeleteVectorCollection(ctx, organisation, collectionId).Execute() +> DeleteSkillCollection200Response DeleteVectorCollection(ctx, organisation, collectionId).Execute() Delete Collection @@ -117,7 +117,7 @@ func main() { fmt.Fprintf(os.Stderr, "Error when calling `AIVectorDatabaseAPI.DeleteVectorCollection``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } - // response from `DeleteVectorCollection`: DeleteVectorCollection200Response + // response from `DeleteVectorCollection`: DeleteSkillCollection200Response fmt.Fprintf(os.Stdout, "Response from `AIVectorDatabaseAPI.DeleteVectorCollection`: %v\n", resp) } ``` @@ -143,7 +143,7 @@ Name | Type | Description | Notes ### Return type -[**DeleteVectorCollection200Response**](DeleteVectorCollection200Response.md) +[**DeleteSkillCollection200Response**](DeleteSkillCollection200Response.md) ### Authorization diff --git a/docs/CDNMetricsAPI.md b/docs/CDNMetricsAPI.md index 0e16fc9..08bbf98 100644 --- a/docs/CDNMetricsAPI.md +++ b/docs/CDNMetricsAPI.md @@ -34,7 +34,7 @@ func main() { organization := "organization_example" // string | Organization identifier project := "project_example" // string | Project identifier domain := "domain_example" // string | Filter by domain ID or domain name (optional) - metrics := []string{"Inner_example"} // []string | Metrics to return (default: hits, bytes) (optional) + metrics := []string{"Metrics_example"} // []string | Metrics to return (default: hits, bytes). Use the /metrics/available endpoint to list all metrics by category. (optional) timestampFormat := "timestampFormat_example" // string | Timestamp format in response (optional) (default to "iso8601") configuration := openapiclient.NewConfiguration() @@ -68,7 +68,7 @@ Name | Type | Description | Notes **domain** | **string** | Filter by domain ID or domain name | - **metrics** | **[]string** | Metrics to return (default: hits, bytes) | + **metrics** | **[]string** | Metrics to return (default: hits, bytes). Use the /metrics/available endpoint to list all metrics by category. | **timestampFormat** | **string** | Timestamp format in response | [default to "iso8601"] ### Return type @@ -113,7 +113,7 @@ func main() { organization := "organization_example" // string | Organization identifier project := "project_example" // string | Project identifier domain := "domain_example" // string | Filter by domain ID or domain name (optional) - metrics := []string{"Inner_example"} // []string | Metrics to return (default: hits, bytes) (optional) + metrics := []string{"Metrics_example"} // []string | Metrics to return (default: hits, bytes). Use the /metrics/available endpoint to list all metrics by category. (optional) timestampFormat := "timestampFormat_example" // string | Timestamp format in response (optional) (default to "iso8601") configuration := openapiclient.NewConfiguration() @@ -147,7 +147,7 @@ Name | Type | Description | Notes **domain** | **string** | Filter by domain ID or domain name | - **metrics** | **[]string** | Metrics to return (default: hits, bytes) | + **metrics** | **[]string** | Metrics to return (default: hits, bytes). Use the /metrics/available endpoint to list all metrics by category. | **timestampFormat** | **string** | Timestamp format in response | [default to "iso8601"] ### Return type @@ -192,7 +192,7 @@ func main() { organization := "organization_example" // string | Organization identifier project := "project_example" // string | Project identifier domain := "domain_example" // string | Filter by domain ID or domain name (optional) - metrics := []string{"Inner_example"} // []string | Metrics to return (default: hits, bytes) (optional) + metrics := []string{"Metrics_example"} // []string | Metrics to return (default: hits, bytes). Use the /metrics/available endpoint to list all metrics by category. (optional) timestampFormat := "timestampFormat_example" // string | Timestamp format in response (optional) (default to "iso8601") configuration := openapiclient.NewConfiguration() @@ -226,7 +226,7 @@ Name | Type | Description | Notes **domain** | **string** | Filter by domain ID or domain name | - **metrics** | **[]string** | Metrics to return (default: hits, bytes) | + **metrics** | **[]string** | Metrics to return (default: hits, bytes). Use the /metrics/available endpoint to list all metrics by category. | **timestampFormat** | **string** | Timestamp format in response | [default to "iso8601"] ### Return type diff --git a/docs/ChatInferenceRequest.md b/docs/ChatInferenceRequest.md index 16d188b..da4ed1c 100644 --- a/docs/ChatInferenceRequest.md +++ b/docs/ChatInferenceRequest.md @@ -18,6 +18,7 @@ Name | Type | Description | Notes **Async** | Pointer to **bool** | Enable async/durable execution mode. When true, returns 202 with pollUrl instead of waiting for completion. Use for long-running inference, client-executed tools, or operations >30 seconds. | [optional] [default to false] **AllowedTools** | Pointer to **[]string** | Top-level convenience alias for toolConfig.allowedTools. Whitelists which tools can be auto-executed. | [optional] **Guardrails** | Pointer to [**ChatInferenceRequestGuardrails**](ChatInferenceRequestGuardrails.md) | | [optional] +**LongContext** | Pointer to **bool** | Enable 1M context window support regardless of token estimation. Use when sending large payloads (>200K tokens). | [optional] [default to false] ## Methods @@ -378,6 +379,31 @@ SetGuardrails sets Guardrails field to given value. HasGuardrails returns a boolean if a field has been set. +### GetLongContext + +`func (o *ChatInferenceRequest) GetLongContext() bool` + +GetLongContext returns the LongContext field if non-nil, zero value otherwise. + +### GetLongContextOk + +`func (o *ChatInferenceRequest) GetLongContextOk() (*bool, bool)` + +GetLongContextOk returns a tuple with the LongContext field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLongContext + +`func (o *ChatInferenceRequest) SetLongContext(v bool)` + +SetLongContext sets LongContext field to given value. + +### HasLongContext + +`func (o *ChatInferenceRequest) HasLongContext() bool` + +HasLongContext 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 8a5a2a1..37e4a65 100644 --- a/docs/ChatInferenceStreamRequest.md +++ b/docs/ChatInferenceStreamRequest.md @@ -17,6 +17,7 @@ Name | Type | Description | Notes **Async** | Pointer to **bool** | Enable async/durable execution mode. When true, returns 202 with pollUrl instead of streaming. Use for long-running inference, client-executed tools, or operations >30 seconds. | [optional] [default to false] **AllowedTools** | Pointer to **[]string** | Top-level convenience alias for toolConfig.allowedTools. Whitelists which tools can be auto-executed. | [optional] **Guardrails** | Pointer to [**ChatInferenceRequestGuardrails**](ChatInferenceRequestGuardrails.md) | | [optional] +**LongContext** | Pointer to **bool** | Enable 1M context window support regardless of token estimation. Use when sending large payloads (>200K tokens). | [optional] [default to false] ## Methods @@ -352,6 +353,31 @@ SetGuardrails sets Guardrails field to given value. HasGuardrails returns a boolean if a field has been set. +### GetLongContext + +`func (o *ChatInferenceStreamRequest) GetLongContext() bool` + +GetLongContext returns the LongContext field if non-nil, zero value otherwise. + +### GetLongContextOk + +`func (o *ChatInferenceStreamRequest) GetLongContextOk() (*bool, bool)` + +GetLongContextOk returns a tuple with the LongContext field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLongContext + +`func (o *ChatInferenceStreamRequest) SetLongContext(v bool)` + +SetLongContext sets LongContext field to given value. + +### HasLongContext + +`func (o *ChatInferenceStreamRequest) HasLongContext() bool` + +HasLongContext 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/CreateOrchestrationRequest.md b/docs/CreateOrchestrationRequest.md index 0d8e808..ede0ab0 100644 --- a/docs/CreateOrchestrationRequest.md +++ b/docs/CreateOrchestrationRequest.md @@ -14,6 +14,7 @@ Name | Type | Description | Notes **Concurrency** | Pointer to **int32** | Concurrent items within a batch | [optional] [default to 1] **StopCondition** | Pointer to [**CreateOrchestrationRequestStopCondition**](CreateOrchestrationRequestStopCondition.md) | | [optional] **AssignedSkills** | Pointer to **[]string** | Skill IDs to assign | [optional] +**Context** | Pointer to **map[string]interface{}** | Optional context merged into each item before processing (e.g. shared credentials or endpoints) | [optional] **AutoStart** | Pointer to **bool** | Whether to start immediately | [optional] [default to true] ## Methods @@ -315,6 +316,41 @@ SetAssignedSkills sets AssignedSkills field to given value. HasAssignedSkills returns a boolean if a field has been set. +### GetContext + +`func (o *CreateOrchestrationRequest) GetContext() map[string]interface{}` + +GetContext returns the Context field if non-nil, zero value otherwise. + +### GetContextOk + +`func (o *CreateOrchestrationRequest) GetContextOk() (*map[string]interface{}, bool)` + +GetContextOk returns a tuple with the Context field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetContext + +`func (o *CreateOrchestrationRequest) SetContext(v map[string]interface{})` + +SetContext sets Context field to given value. + +### HasContext + +`func (o *CreateOrchestrationRequest) HasContext() bool` + +HasContext returns a boolean if a field has been set. + +### SetContextNil + +`func (o *CreateOrchestrationRequest) SetContextNil(b bool)` + + SetContextNil sets the value for Context to be an explicit nil + +### UnsetContext +`func (o *CreateOrchestrationRequest) UnsetContext()` + +UnsetContext ensures that no value is present for Context, not even an explicit nil ### GetAutoStart `func (o *CreateOrchestrationRequest) GetAutoStart() bool` diff --git a/docs/CreateSkill201Response.md b/docs/CreateSkill201Response.md new file mode 100644 index 0000000..59a19be --- /dev/null +++ b/docs/CreateSkill201Response.md @@ -0,0 +1,108 @@ +# CreateSkill201Response + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Success** | Pointer to **bool** | | [optional] +**Skill** | Pointer to **map[string]interface{}** | | [optional] +**Message** | Pointer to **string** | | [optional] + +## Methods + +### NewCreateSkill201Response + +`func NewCreateSkill201Response() *CreateSkill201Response` + +NewCreateSkill201Response instantiates a new CreateSkill201Response 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 + +### NewCreateSkill201ResponseWithDefaults + +`func NewCreateSkill201ResponseWithDefaults() *CreateSkill201Response` + +NewCreateSkill201ResponseWithDefaults instantiates a new CreateSkill201Response 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 *CreateSkill201Response) GetSuccess() bool` + +GetSuccess returns the Success field if non-nil, zero value otherwise. + +### GetSuccessOk + +`func (o *CreateSkill201Response) 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 *CreateSkill201Response) SetSuccess(v bool)` + +SetSuccess sets Success field to given value. + +### HasSuccess + +`func (o *CreateSkill201Response) HasSuccess() bool` + +HasSuccess returns a boolean if a field has been set. + +### GetSkill + +`func (o *CreateSkill201Response) GetSkill() map[string]interface{}` + +GetSkill returns the Skill field if non-nil, zero value otherwise. + +### GetSkillOk + +`func (o *CreateSkill201Response) GetSkillOk() (*map[string]interface{}, bool)` + +GetSkillOk returns a tuple with the Skill field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSkill + +`func (o *CreateSkill201Response) SetSkill(v map[string]interface{})` + +SetSkill sets Skill field to given value. + +### HasSkill + +`func (o *CreateSkill201Response) HasSkill() bool` + +HasSkill returns a boolean if a field has been set. + +### GetMessage + +`func (o *CreateSkill201Response) GetMessage() string` + +GetMessage returns the Message field if non-nil, zero value otherwise. + +### GetMessageOk + +`func (o *CreateSkill201Response) 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 *CreateSkill201Response) SetMessage(v string)` + +SetMessage sets Message field to given value. + +### HasMessage + +`func (o *CreateSkill201Response) HasMessage() bool` + +HasMessage returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/CreateSkillRequest.md b/docs/CreateSkillRequest.md new file mode 100644 index 0000000..abdb4f7 --- /dev/null +++ b/docs/CreateSkillRequest.md @@ -0,0 +1,301 @@ +# CreateSkillRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Name** | **string** | | +**Description** | Pointer to **string** | | [optional] +**Content** | **string** | | +**TriggerCondition** | **string** | | +**Tags** | Pointer to **[]string** | | [optional] +**RequiredTools** | Pointer to **[]string** | | [optional] +**Namespace** | Pointer to **string** | | [optional] +**Files** | Pointer to **map[string]interface{}** | | [optional] +**DisableModelInvocation** | Pointer to **bool** | | [optional] +**AllowedTools** | Pointer to **[]string** | | [optional] +**InstalledBy** | Pointer to **string** | | [optional] + +## Methods + +### NewCreateSkillRequest + +`func NewCreateSkillRequest(name string, content string, triggerCondition string, ) *CreateSkillRequest` + +NewCreateSkillRequest instantiates a new CreateSkillRequest 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 + +### NewCreateSkillRequestWithDefaults + +`func NewCreateSkillRequestWithDefaults() *CreateSkillRequest` + +NewCreateSkillRequestWithDefaults instantiates a new CreateSkillRequest 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 *CreateSkillRequest) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *CreateSkillRequest) 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 *CreateSkillRequest) SetName(v string)` + +SetName sets Name field to given value. + + +### GetDescription + +`func (o *CreateSkillRequest) GetDescription() string` + +GetDescription returns the Description field if non-nil, zero value otherwise. + +### GetDescriptionOk + +`func (o *CreateSkillRequest) 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 *CreateSkillRequest) SetDescription(v string)` + +SetDescription sets Description field to given value. + +### HasDescription + +`func (o *CreateSkillRequest) HasDescription() bool` + +HasDescription returns a boolean if a field has been set. + +### GetContent + +`func (o *CreateSkillRequest) GetContent() string` + +GetContent returns the Content field if non-nil, zero value otherwise. + +### GetContentOk + +`func (o *CreateSkillRequest) 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 *CreateSkillRequest) SetContent(v string)` + +SetContent sets Content field to given value. + + +### GetTriggerCondition + +`func (o *CreateSkillRequest) GetTriggerCondition() string` + +GetTriggerCondition returns the TriggerCondition field if non-nil, zero value otherwise. + +### GetTriggerConditionOk + +`func (o *CreateSkillRequest) GetTriggerConditionOk() (*string, bool)` + +GetTriggerConditionOk returns a tuple with the TriggerCondition field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTriggerCondition + +`func (o *CreateSkillRequest) SetTriggerCondition(v string)` + +SetTriggerCondition sets TriggerCondition field to given value. + + +### GetTags + +`func (o *CreateSkillRequest) GetTags() []string` + +GetTags returns the Tags field if non-nil, zero value otherwise. + +### GetTagsOk + +`func (o *CreateSkillRequest) GetTagsOk() (*[]string, bool)` + +GetTagsOk returns a tuple with the Tags field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTags + +`func (o *CreateSkillRequest) SetTags(v []string)` + +SetTags sets Tags field to given value. + +### HasTags + +`func (o *CreateSkillRequest) HasTags() bool` + +HasTags returns a boolean if a field has been set. + +### GetRequiredTools + +`func (o *CreateSkillRequest) GetRequiredTools() []string` + +GetRequiredTools returns the RequiredTools field if non-nil, zero value otherwise. + +### GetRequiredToolsOk + +`func (o *CreateSkillRequest) GetRequiredToolsOk() (*[]string, bool)` + +GetRequiredToolsOk returns a tuple with the RequiredTools field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRequiredTools + +`func (o *CreateSkillRequest) SetRequiredTools(v []string)` + +SetRequiredTools sets RequiredTools field to given value. + +### HasRequiredTools + +`func (o *CreateSkillRequest) HasRequiredTools() bool` + +HasRequiredTools returns a boolean if a field has been set. + +### GetNamespace + +`func (o *CreateSkillRequest) GetNamespace() string` + +GetNamespace returns the Namespace field if non-nil, zero value otherwise. + +### GetNamespaceOk + +`func (o *CreateSkillRequest) GetNamespaceOk() (*string, bool)` + +GetNamespaceOk returns a tuple with the Namespace field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetNamespace + +`func (o *CreateSkillRequest) SetNamespace(v string)` + +SetNamespace sets Namespace field to given value. + +### HasNamespace + +`func (o *CreateSkillRequest) HasNamespace() bool` + +HasNamespace returns a boolean if a field has been set. + +### GetFiles + +`func (o *CreateSkillRequest) GetFiles() map[string]interface{}` + +GetFiles returns the Files field if non-nil, zero value otherwise. + +### GetFilesOk + +`func (o *CreateSkillRequest) GetFilesOk() (*map[string]interface{}, 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 *CreateSkillRequest) SetFiles(v map[string]interface{})` + +SetFiles sets Files field to given value. + +### HasFiles + +`func (o *CreateSkillRequest) HasFiles() bool` + +HasFiles returns a boolean if a field has been set. + +### GetDisableModelInvocation + +`func (o *CreateSkillRequest) GetDisableModelInvocation() bool` + +GetDisableModelInvocation returns the DisableModelInvocation field if non-nil, zero value otherwise. + +### GetDisableModelInvocationOk + +`func (o *CreateSkillRequest) GetDisableModelInvocationOk() (*bool, bool)` + +GetDisableModelInvocationOk returns a tuple with the DisableModelInvocation field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisableModelInvocation + +`func (o *CreateSkillRequest) SetDisableModelInvocation(v bool)` + +SetDisableModelInvocation sets DisableModelInvocation field to given value. + +### HasDisableModelInvocation + +`func (o *CreateSkillRequest) HasDisableModelInvocation() bool` + +HasDisableModelInvocation returns a boolean if a field has been set. + +### GetAllowedTools + +`func (o *CreateSkillRequest) GetAllowedTools() []string` + +GetAllowedTools returns the AllowedTools field if non-nil, zero value otherwise. + +### GetAllowedToolsOk + +`func (o *CreateSkillRequest) GetAllowedToolsOk() (*[]string, bool)` + +GetAllowedToolsOk returns a tuple with the AllowedTools field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAllowedTools + +`func (o *CreateSkillRequest) SetAllowedTools(v []string)` + +SetAllowedTools sets AllowedTools field to given value. + +### HasAllowedTools + +`func (o *CreateSkillRequest) HasAllowedTools() bool` + +HasAllowedTools returns a boolean if a field has been set. + +### GetInstalledBy + +`func (o *CreateSkillRequest) GetInstalledBy() string` + +GetInstalledBy returns the InstalledBy field if non-nil, zero value otherwise. + +### GetInstalledByOk + +`func (o *CreateSkillRequest) GetInstalledByOk() (*string, bool)` + +GetInstalledByOk returns a tuple with the InstalledBy field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetInstalledBy + +`func (o *CreateSkillRequest) SetInstalledBy(v string)` + +SetInstalledBy sets InstalledBy field to given value. + +### HasInstalledBy + +`func (o *CreateSkillRequest) HasInstalledBy() bool` + +HasInstalledBy 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/DeleteSkill200Response.md b/docs/DeleteSkill200Response.md new file mode 100644 index 0000000..159608f --- /dev/null +++ b/docs/DeleteSkill200Response.md @@ -0,0 +1,82 @@ +# DeleteSkill200Response + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Success** | Pointer to **bool** | | [optional] +**Message** | Pointer to **string** | | [optional] + +## Methods + +### NewDeleteSkill200Response + +`func NewDeleteSkill200Response() *DeleteSkill200Response` + +NewDeleteSkill200Response instantiates a new DeleteSkill200Response 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 + +### NewDeleteSkill200ResponseWithDefaults + +`func NewDeleteSkill200ResponseWithDefaults() *DeleteSkill200Response` + +NewDeleteSkill200ResponseWithDefaults instantiates a new DeleteSkill200Response 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 *DeleteSkill200Response) GetSuccess() bool` + +GetSuccess returns the Success field if non-nil, zero value otherwise. + +### GetSuccessOk + +`func (o *DeleteSkill200Response) 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 *DeleteSkill200Response) SetSuccess(v bool)` + +SetSuccess sets Success field to given value. + +### HasSuccess + +`func (o *DeleteSkill200Response) HasSuccess() bool` + +HasSuccess returns a boolean if a field has been set. + +### GetMessage + +`func (o *DeleteSkill200Response) GetMessage() string` + +GetMessage returns the Message field if non-nil, zero value otherwise. + +### GetMessageOk + +`func (o *DeleteSkill200Response) 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 *DeleteSkill200Response) SetMessage(v string)` + +SetMessage sets Message field to given value. + +### HasMessage + +`func (o *DeleteSkill200Response) HasMessage() bool` + +HasMessage returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/DeleteVectorCollection200Response.md b/docs/DeleteSkillCollection200Response.md similarity index 59% rename from docs/DeleteVectorCollection200Response.md rename to docs/DeleteSkillCollection200Response.md index 100427b..f020239 100644 --- a/docs/DeleteVectorCollection200Response.md +++ b/docs/DeleteSkillCollection200Response.md @@ -1,4 +1,4 @@ -# DeleteVectorCollection200Response +# DeleteSkillCollection200Response ## Properties @@ -9,70 +9,70 @@ Name | Type | Description | Notes ## Methods -### NewDeleteVectorCollection200Response +### NewDeleteSkillCollection200Response -`func NewDeleteVectorCollection200Response() *DeleteVectorCollection200Response` +`func NewDeleteSkillCollection200Response() *DeleteSkillCollection200Response` -NewDeleteVectorCollection200Response instantiates a new DeleteVectorCollection200Response object +NewDeleteSkillCollection200Response instantiates a new DeleteSkillCollection200Response 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 -### NewDeleteVectorCollection200ResponseWithDefaults +### NewDeleteSkillCollection200ResponseWithDefaults -`func NewDeleteVectorCollection200ResponseWithDefaults() *DeleteVectorCollection200Response` +`func NewDeleteSkillCollection200ResponseWithDefaults() *DeleteSkillCollection200Response` -NewDeleteVectorCollection200ResponseWithDefaults instantiates a new DeleteVectorCollection200Response object +NewDeleteSkillCollection200ResponseWithDefaults instantiates a new DeleteSkillCollection200Response 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 *DeleteVectorCollection200Response) GetSuccess() bool` +`func (o *DeleteSkillCollection200Response) GetSuccess() bool` GetSuccess returns the Success field if non-nil, zero value otherwise. ### GetSuccessOk -`func (o *DeleteVectorCollection200Response) GetSuccessOk() (*bool, bool)` +`func (o *DeleteSkillCollection200Response) 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 *DeleteVectorCollection200Response) SetSuccess(v bool)` +`func (o *DeleteSkillCollection200Response) SetSuccess(v bool)` SetSuccess sets Success field to given value. ### HasSuccess -`func (o *DeleteVectorCollection200Response) HasSuccess() bool` +`func (o *DeleteSkillCollection200Response) HasSuccess() bool` HasSuccess returns a boolean if a field has been set. ### GetMessage -`func (o *DeleteVectorCollection200Response) GetMessage() string` +`func (o *DeleteSkillCollection200Response) GetMessage() string` GetMessage returns the Message field if non-nil, zero value otherwise. ### GetMessageOk -`func (o *DeleteVectorCollection200Response) GetMessageOk() (*string, bool)` +`func (o *DeleteSkillCollection200Response) 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 *DeleteVectorCollection200Response) SetMessage(v string)` +`func (o *DeleteSkillCollection200Response) SetMessage(v string)` SetMessage sets Message field to given value. ### HasMessage -`func (o *DeleteVectorCollection200Response) HasMessage() bool` +`func (o *DeleteSkillCollection200Response) HasMessage() bool` HasMessage returns a boolean if a field has been set. diff --git a/docs/GetSkill200Response.md b/docs/GetSkill200Response.md new file mode 100644 index 0000000..4d5ad12 --- /dev/null +++ b/docs/GetSkill200Response.md @@ -0,0 +1,56 @@ +# GetSkill200Response + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Skill** | Pointer to [**GetSkill200ResponseSkill**](GetSkill200ResponseSkill.md) | | [optional] + +## Methods + +### NewGetSkill200Response + +`func NewGetSkill200Response() *GetSkill200Response` + +NewGetSkill200Response instantiates a new GetSkill200Response 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 + +### NewGetSkill200ResponseWithDefaults + +`func NewGetSkill200ResponseWithDefaults() *GetSkill200Response` + +NewGetSkill200ResponseWithDefaults instantiates a new GetSkill200Response 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 + +### GetSkill + +`func (o *GetSkill200Response) GetSkill() GetSkill200ResponseSkill` + +GetSkill returns the Skill field if non-nil, zero value otherwise. + +### GetSkillOk + +`func (o *GetSkill200Response) GetSkillOk() (*GetSkill200ResponseSkill, bool)` + +GetSkillOk returns a tuple with the Skill field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSkill + +`func (o *GetSkill200Response) SetSkill(v GetSkill200ResponseSkill)` + +SetSkill sets Skill field to given value. + +### HasSkill + +`func (o *GetSkill200Response) HasSkill() bool` + +HasSkill 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/GetSkill200ResponseSkill.md b/docs/GetSkill200ResponseSkill.md new file mode 100644 index 0000000..0dea502 --- /dev/null +++ b/docs/GetSkill200ResponseSkill.md @@ -0,0 +1,394 @@ +# GetSkill200ResponseSkill + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**SkillId** | Pointer to **string** | | [optional] +**Name** | Pointer to **string** | | [optional] +**Description** | Pointer to **string** | | [optional] +**Content** | Pointer to **string** | | [optional] +**TriggerCondition** | Pointer to **string** | | [optional] +**Tags** | Pointer to **[]string** | | [optional] +**Source** | Pointer to **map[string]interface{}** | | [optional] +**RequiredTools** | Pointer to **[]string** | | [optional] +**Files** | Pointer to **map[string]interface{}** | | [optional] +**Namespace** | Pointer to **string** | | [optional] +**DisableModelInvocation** | Pointer to **bool** | | [optional] +**AllowedTools** | Pointer to **[]string** | | [optional] +**InstalledAt** | Pointer to **time.Time** | | [optional] +**UpdatedAt** | Pointer to **time.Time** | | [optional] + +## Methods + +### NewGetSkill200ResponseSkill + +`func NewGetSkill200ResponseSkill() *GetSkill200ResponseSkill` + +NewGetSkill200ResponseSkill instantiates a new GetSkill200ResponseSkill 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 + +### NewGetSkill200ResponseSkillWithDefaults + +`func NewGetSkill200ResponseSkillWithDefaults() *GetSkill200ResponseSkill` + +NewGetSkill200ResponseSkillWithDefaults instantiates a new GetSkill200ResponseSkill 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 + +### GetSkillId + +`func (o *GetSkill200ResponseSkill) GetSkillId() string` + +GetSkillId returns the SkillId field if non-nil, zero value otherwise. + +### GetSkillIdOk + +`func (o *GetSkill200ResponseSkill) GetSkillIdOk() (*string, bool)` + +GetSkillIdOk returns a tuple with the SkillId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSkillId + +`func (o *GetSkill200ResponseSkill) SetSkillId(v string)` + +SetSkillId sets SkillId field to given value. + +### HasSkillId + +`func (o *GetSkill200ResponseSkill) HasSkillId() bool` + +HasSkillId returns a boolean if a field has been set. + +### GetName + +`func (o *GetSkill200ResponseSkill) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *GetSkill200ResponseSkill) 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 *GetSkill200ResponseSkill) SetName(v string)` + +SetName sets Name field to given value. + +### HasName + +`func (o *GetSkill200ResponseSkill) HasName() bool` + +HasName returns a boolean if a field has been set. + +### GetDescription + +`func (o *GetSkill200ResponseSkill) GetDescription() string` + +GetDescription returns the Description field if non-nil, zero value otherwise. + +### GetDescriptionOk + +`func (o *GetSkill200ResponseSkill) 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 *GetSkill200ResponseSkill) SetDescription(v string)` + +SetDescription sets Description field to given value. + +### HasDescription + +`func (o *GetSkill200ResponseSkill) HasDescription() bool` + +HasDescription returns a boolean if a field has been set. + +### GetContent + +`func (o *GetSkill200ResponseSkill) GetContent() string` + +GetContent returns the Content field if non-nil, zero value otherwise. + +### GetContentOk + +`func (o *GetSkill200ResponseSkill) 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 *GetSkill200ResponseSkill) SetContent(v string)` + +SetContent sets Content field to given value. + +### HasContent + +`func (o *GetSkill200ResponseSkill) HasContent() bool` + +HasContent returns a boolean if a field has been set. + +### GetTriggerCondition + +`func (o *GetSkill200ResponseSkill) GetTriggerCondition() string` + +GetTriggerCondition returns the TriggerCondition field if non-nil, zero value otherwise. + +### GetTriggerConditionOk + +`func (o *GetSkill200ResponseSkill) GetTriggerConditionOk() (*string, bool)` + +GetTriggerConditionOk returns a tuple with the TriggerCondition field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTriggerCondition + +`func (o *GetSkill200ResponseSkill) SetTriggerCondition(v string)` + +SetTriggerCondition sets TriggerCondition field to given value. + +### HasTriggerCondition + +`func (o *GetSkill200ResponseSkill) HasTriggerCondition() bool` + +HasTriggerCondition returns a boolean if a field has been set. + +### GetTags + +`func (o *GetSkill200ResponseSkill) GetTags() []string` + +GetTags returns the Tags field if non-nil, zero value otherwise. + +### GetTagsOk + +`func (o *GetSkill200ResponseSkill) GetTagsOk() (*[]string, bool)` + +GetTagsOk returns a tuple with the Tags field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTags + +`func (o *GetSkill200ResponseSkill) SetTags(v []string)` + +SetTags sets Tags field to given value. + +### HasTags + +`func (o *GetSkill200ResponseSkill) HasTags() bool` + +HasTags returns a boolean if a field has been set. + +### GetSource + +`func (o *GetSkill200ResponseSkill) GetSource() map[string]interface{}` + +GetSource returns the Source field if non-nil, zero value otherwise. + +### GetSourceOk + +`func (o *GetSkill200ResponseSkill) GetSourceOk() (*map[string]interface{}, bool)` + +GetSourceOk returns a tuple with the Source field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSource + +`func (o *GetSkill200ResponseSkill) SetSource(v map[string]interface{})` + +SetSource sets Source field to given value. + +### HasSource + +`func (o *GetSkill200ResponseSkill) HasSource() bool` + +HasSource returns a boolean if a field has been set. + +### GetRequiredTools + +`func (o *GetSkill200ResponseSkill) GetRequiredTools() []string` + +GetRequiredTools returns the RequiredTools field if non-nil, zero value otherwise. + +### GetRequiredToolsOk + +`func (o *GetSkill200ResponseSkill) GetRequiredToolsOk() (*[]string, bool)` + +GetRequiredToolsOk returns a tuple with the RequiredTools field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRequiredTools + +`func (o *GetSkill200ResponseSkill) SetRequiredTools(v []string)` + +SetRequiredTools sets RequiredTools field to given value. + +### HasRequiredTools + +`func (o *GetSkill200ResponseSkill) HasRequiredTools() bool` + +HasRequiredTools returns a boolean if a field has been set. + +### GetFiles + +`func (o *GetSkill200ResponseSkill) GetFiles() map[string]interface{}` + +GetFiles returns the Files field if non-nil, zero value otherwise. + +### GetFilesOk + +`func (o *GetSkill200ResponseSkill) GetFilesOk() (*map[string]interface{}, 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 *GetSkill200ResponseSkill) SetFiles(v map[string]interface{})` + +SetFiles sets Files field to given value. + +### HasFiles + +`func (o *GetSkill200ResponseSkill) HasFiles() bool` + +HasFiles returns a boolean if a field has been set. + +### GetNamespace + +`func (o *GetSkill200ResponseSkill) GetNamespace() string` + +GetNamespace returns the Namespace field if non-nil, zero value otherwise. + +### GetNamespaceOk + +`func (o *GetSkill200ResponseSkill) GetNamespaceOk() (*string, bool)` + +GetNamespaceOk returns a tuple with the Namespace field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetNamespace + +`func (o *GetSkill200ResponseSkill) SetNamespace(v string)` + +SetNamespace sets Namespace field to given value. + +### HasNamespace + +`func (o *GetSkill200ResponseSkill) HasNamespace() bool` + +HasNamespace returns a boolean if a field has been set. + +### GetDisableModelInvocation + +`func (o *GetSkill200ResponseSkill) GetDisableModelInvocation() bool` + +GetDisableModelInvocation returns the DisableModelInvocation field if non-nil, zero value otherwise. + +### GetDisableModelInvocationOk + +`func (o *GetSkill200ResponseSkill) GetDisableModelInvocationOk() (*bool, bool)` + +GetDisableModelInvocationOk returns a tuple with the DisableModelInvocation field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisableModelInvocation + +`func (o *GetSkill200ResponseSkill) SetDisableModelInvocation(v bool)` + +SetDisableModelInvocation sets DisableModelInvocation field to given value. + +### HasDisableModelInvocation + +`func (o *GetSkill200ResponseSkill) HasDisableModelInvocation() bool` + +HasDisableModelInvocation returns a boolean if a field has been set. + +### GetAllowedTools + +`func (o *GetSkill200ResponseSkill) GetAllowedTools() []string` + +GetAllowedTools returns the AllowedTools field if non-nil, zero value otherwise. + +### GetAllowedToolsOk + +`func (o *GetSkill200ResponseSkill) GetAllowedToolsOk() (*[]string, bool)` + +GetAllowedToolsOk returns a tuple with the AllowedTools field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAllowedTools + +`func (o *GetSkill200ResponseSkill) SetAllowedTools(v []string)` + +SetAllowedTools sets AllowedTools field to given value. + +### HasAllowedTools + +`func (o *GetSkill200ResponseSkill) HasAllowedTools() bool` + +HasAllowedTools returns a boolean if a field has been set. + +### GetInstalledAt + +`func (o *GetSkill200ResponseSkill) GetInstalledAt() time.Time` + +GetInstalledAt returns the InstalledAt field if non-nil, zero value otherwise. + +### GetInstalledAtOk + +`func (o *GetSkill200ResponseSkill) GetInstalledAtOk() (*time.Time, bool)` + +GetInstalledAtOk returns a tuple with the InstalledAt field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetInstalledAt + +`func (o *GetSkill200ResponseSkill) SetInstalledAt(v time.Time)` + +SetInstalledAt sets InstalledAt field to given value. + +### HasInstalledAt + +`func (o *GetSkill200ResponseSkill) HasInstalledAt() bool` + +HasInstalledAt returns a boolean if a field has been set. + +### GetUpdatedAt + +`func (o *GetSkill200ResponseSkill) GetUpdatedAt() time.Time` + +GetUpdatedAt returns the UpdatedAt field if non-nil, zero value otherwise. + +### GetUpdatedAtOk + +`func (o *GetSkill200ResponseSkill) GetUpdatedAtOk() (*time.Time, 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 *GetSkill200ResponseSkill) SetUpdatedAt(v time.Time)` + +SetUpdatedAt sets UpdatedAt field to given value. + +### HasUpdatedAt + +`func (o *GetSkill200ResponseSkill) 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/ImportSkill201Response.md b/docs/ImportSkill201Response.md new file mode 100644 index 0000000..a9e8207 --- /dev/null +++ b/docs/ImportSkill201Response.md @@ -0,0 +1,82 @@ +# ImportSkill201Response + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Skill** | Pointer to **map[string]interface{}** | | [optional] +**Message** | Pointer to **string** | | [optional] + +## Methods + +### NewImportSkill201Response + +`func NewImportSkill201Response() *ImportSkill201Response` + +NewImportSkill201Response instantiates a new ImportSkill201Response 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 + +### NewImportSkill201ResponseWithDefaults + +`func NewImportSkill201ResponseWithDefaults() *ImportSkill201Response` + +NewImportSkill201ResponseWithDefaults instantiates a new ImportSkill201Response 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 + +### GetSkill + +`func (o *ImportSkill201Response) GetSkill() map[string]interface{}` + +GetSkill returns the Skill field if non-nil, zero value otherwise. + +### GetSkillOk + +`func (o *ImportSkill201Response) GetSkillOk() (*map[string]interface{}, bool)` + +GetSkillOk returns a tuple with the Skill field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSkill + +`func (o *ImportSkill201Response) SetSkill(v map[string]interface{})` + +SetSkill sets Skill field to given value. + +### HasSkill + +`func (o *ImportSkill201Response) HasSkill() bool` + +HasSkill returns a boolean if a field has been set. + +### GetMessage + +`func (o *ImportSkill201Response) GetMessage() string` + +GetMessage returns the Message field if non-nil, zero value otherwise. + +### GetMessageOk + +`func (o *ImportSkill201Response) 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 *ImportSkill201Response) SetMessage(v string)` + +SetMessage sets Message field to given value. + +### HasMessage + +`func (o *ImportSkill201Response) HasMessage() bool` + +HasMessage returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/ImportSkillCollection201Response.md b/docs/ImportSkillCollection201Response.md new file mode 100644 index 0000000..1c33311 --- /dev/null +++ b/docs/ImportSkillCollection201Response.md @@ -0,0 +1,160 @@ +# ImportSkillCollection201Response + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Namespace** | Pointer to **string** | | [optional] +**Imported** | Pointer to **int32** | | [optional] +**Failed** | Pointer to **int32** | | [optional] +**Skills** | Pointer to **[]map[string]interface{}** | | [optional] +**Errors** | Pointer to **[]map[string]interface{}** | | [optional] + +## Methods + +### NewImportSkillCollection201Response + +`func NewImportSkillCollection201Response() *ImportSkillCollection201Response` + +NewImportSkillCollection201Response instantiates a new ImportSkillCollection201Response 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 + +### NewImportSkillCollection201ResponseWithDefaults + +`func NewImportSkillCollection201ResponseWithDefaults() *ImportSkillCollection201Response` + +NewImportSkillCollection201ResponseWithDefaults instantiates a new ImportSkillCollection201Response 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 + +### GetNamespace + +`func (o *ImportSkillCollection201Response) GetNamespace() string` + +GetNamespace returns the Namespace field if non-nil, zero value otherwise. + +### GetNamespaceOk + +`func (o *ImportSkillCollection201Response) GetNamespaceOk() (*string, bool)` + +GetNamespaceOk returns a tuple with the Namespace field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetNamespace + +`func (o *ImportSkillCollection201Response) SetNamespace(v string)` + +SetNamespace sets Namespace field to given value. + +### HasNamespace + +`func (o *ImportSkillCollection201Response) HasNamespace() bool` + +HasNamespace returns a boolean if a field has been set. + +### GetImported + +`func (o *ImportSkillCollection201Response) GetImported() int32` + +GetImported returns the Imported field if non-nil, zero value otherwise. + +### GetImportedOk + +`func (o *ImportSkillCollection201Response) GetImportedOk() (*int32, bool)` + +GetImportedOk returns a tuple with the Imported field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetImported + +`func (o *ImportSkillCollection201Response) SetImported(v int32)` + +SetImported sets Imported field to given value. + +### HasImported + +`func (o *ImportSkillCollection201Response) HasImported() bool` + +HasImported returns a boolean if a field has been set. + +### GetFailed + +`func (o *ImportSkillCollection201Response) GetFailed() int32` + +GetFailed returns the Failed field if non-nil, zero value otherwise. + +### GetFailedOk + +`func (o *ImportSkillCollection201Response) GetFailedOk() (*int32, bool)` + +GetFailedOk returns a tuple with the Failed field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetFailed + +`func (o *ImportSkillCollection201Response) SetFailed(v int32)` + +SetFailed sets Failed field to given value. + +### HasFailed + +`func (o *ImportSkillCollection201Response) HasFailed() bool` + +HasFailed returns a boolean if a field has been set. + +### GetSkills + +`func (o *ImportSkillCollection201Response) GetSkills() []map[string]interface{}` + +GetSkills returns the Skills field if non-nil, zero value otherwise. + +### GetSkillsOk + +`func (o *ImportSkillCollection201Response) GetSkillsOk() (*[]map[string]interface{}, bool)` + +GetSkillsOk returns a tuple with the Skills field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSkills + +`func (o *ImportSkillCollection201Response) SetSkills(v []map[string]interface{})` + +SetSkills sets Skills field to given value. + +### HasSkills + +`func (o *ImportSkillCollection201Response) HasSkills() bool` + +HasSkills returns a boolean if a field has been set. + +### GetErrors + +`func (o *ImportSkillCollection201Response) GetErrors() []map[string]interface{}` + +GetErrors returns the Errors field if non-nil, zero value otherwise. + +### GetErrorsOk + +`func (o *ImportSkillCollection201Response) GetErrorsOk() (*[]map[string]interface{}, bool)` + +GetErrorsOk returns a tuple with the Errors field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetErrors + +`func (o *ImportSkillCollection201Response) SetErrors(v []map[string]interface{})` + +SetErrors sets Errors field to given value. + +### HasErrors + +`func (o *ImportSkillCollection201Response) HasErrors() bool` + +HasErrors 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/ImportSkillCollectionRequest.md b/docs/ImportSkillCollectionRequest.md new file mode 100644 index 0000000..b109f95 --- /dev/null +++ b/docs/ImportSkillCollectionRequest.md @@ -0,0 +1,124 @@ +# ImportSkillCollectionRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Namespace** | **string** | | +**Source** | [**ImportSkillCollectionRequestSource**](ImportSkillCollectionRequestSource.md) | | +**Tags** | Pointer to **[]string** | | [optional] +**InstalledBy** | Pointer to **string** | | [optional] + +## Methods + +### NewImportSkillCollectionRequest + +`func NewImportSkillCollectionRequest(namespace string, source ImportSkillCollectionRequestSource, ) *ImportSkillCollectionRequest` + +NewImportSkillCollectionRequest instantiates a new ImportSkillCollectionRequest 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 + +### NewImportSkillCollectionRequestWithDefaults + +`func NewImportSkillCollectionRequestWithDefaults() *ImportSkillCollectionRequest` + +NewImportSkillCollectionRequestWithDefaults instantiates a new ImportSkillCollectionRequest 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 + +### GetNamespace + +`func (o *ImportSkillCollectionRequest) GetNamespace() string` + +GetNamespace returns the Namespace field if non-nil, zero value otherwise. + +### GetNamespaceOk + +`func (o *ImportSkillCollectionRequest) GetNamespaceOk() (*string, bool)` + +GetNamespaceOk returns a tuple with the Namespace field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetNamespace + +`func (o *ImportSkillCollectionRequest) SetNamespace(v string)` + +SetNamespace sets Namespace field to given value. + + +### GetSource + +`func (o *ImportSkillCollectionRequest) GetSource() ImportSkillCollectionRequestSource` + +GetSource returns the Source field if non-nil, zero value otherwise. + +### GetSourceOk + +`func (o *ImportSkillCollectionRequest) GetSourceOk() (*ImportSkillCollectionRequestSource, bool)` + +GetSourceOk returns a tuple with the Source field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSource + +`func (o *ImportSkillCollectionRequest) SetSource(v ImportSkillCollectionRequestSource)` + +SetSource sets Source field to given value. + + +### GetTags + +`func (o *ImportSkillCollectionRequest) GetTags() []string` + +GetTags returns the Tags field if non-nil, zero value otherwise. + +### GetTagsOk + +`func (o *ImportSkillCollectionRequest) GetTagsOk() (*[]string, bool)` + +GetTagsOk returns a tuple with the Tags field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTags + +`func (o *ImportSkillCollectionRequest) SetTags(v []string)` + +SetTags sets Tags field to given value. + +### HasTags + +`func (o *ImportSkillCollectionRequest) HasTags() bool` + +HasTags returns a boolean if a field has been set. + +### GetInstalledBy + +`func (o *ImportSkillCollectionRequest) GetInstalledBy() string` + +GetInstalledBy returns the InstalledBy field if non-nil, zero value otherwise. + +### GetInstalledByOk + +`func (o *ImportSkillCollectionRequest) GetInstalledByOk() (*string, bool)` + +GetInstalledByOk returns a tuple with the InstalledBy field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetInstalledBy + +`func (o *ImportSkillCollectionRequest) SetInstalledBy(v string)` + +SetInstalledBy sets InstalledBy field to given value. + +### HasInstalledBy + +`func (o *ImportSkillCollectionRequest) HasInstalledBy() bool` + +HasInstalledBy 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/ImportSkillCollectionRequestSource.md b/docs/ImportSkillCollectionRequestSource.md new file mode 100644 index 0000000..c082696 --- /dev/null +++ b/docs/ImportSkillCollectionRequestSource.md @@ -0,0 +1,124 @@ +# ImportSkillCollectionRequestSource + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Type** | **string** | | +**Repo** | **string** | | +**Path** | Pointer to **string** | | [optional] +**Version** | Pointer to **string** | | [optional] + +## Methods + +### NewImportSkillCollectionRequestSource + +`func NewImportSkillCollectionRequestSource(type_ string, repo string, ) *ImportSkillCollectionRequestSource` + +NewImportSkillCollectionRequestSource instantiates a new ImportSkillCollectionRequestSource 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 + +### NewImportSkillCollectionRequestSourceWithDefaults + +`func NewImportSkillCollectionRequestSourceWithDefaults() *ImportSkillCollectionRequestSource` + +NewImportSkillCollectionRequestSourceWithDefaults instantiates a new ImportSkillCollectionRequestSource object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetType + +`func (o *ImportSkillCollectionRequestSource) GetType() string` + +GetType returns the Type field if non-nil, zero value otherwise. + +### GetTypeOk + +`func (o *ImportSkillCollectionRequestSource) GetTypeOk() (*string, bool)` + +GetTypeOk returns a tuple with the Type field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetType + +`func (o *ImportSkillCollectionRequestSource) SetType(v string)` + +SetType sets Type field to given value. + + +### GetRepo + +`func (o *ImportSkillCollectionRequestSource) GetRepo() string` + +GetRepo returns the Repo field if non-nil, zero value otherwise. + +### GetRepoOk + +`func (o *ImportSkillCollectionRequestSource) GetRepoOk() (*string, bool)` + +GetRepoOk returns a tuple with the Repo field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRepo + +`func (o *ImportSkillCollectionRequestSource) SetRepo(v string)` + +SetRepo sets Repo field to given value. + + +### GetPath + +`func (o *ImportSkillCollectionRequestSource) GetPath() string` + +GetPath returns the Path field if non-nil, zero value otherwise. + +### GetPathOk + +`func (o *ImportSkillCollectionRequestSource) GetPathOk() (*string, bool)` + +GetPathOk returns a tuple with the Path field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPath + +`func (o *ImportSkillCollectionRequestSource) SetPath(v string)` + +SetPath sets Path field to given value. + +### HasPath + +`func (o *ImportSkillCollectionRequestSource) HasPath() bool` + +HasPath returns a boolean if a field has been set. + +### GetVersion + +`func (o *ImportSkillCollectionRequestSource) GetVersion() string` + +GetVersion returns the Version field if non-nil, zero value otherwise. + +### GetVersionOk + +`func (o *ImportSkillCollectionRequestSource) GetVersionOk() (*string, bool)` + +GetVersionOk returns a tuple with the Version field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetVersion + +`func (o *ImportSkillCollectionRequestSource) SetVersion(v string)` + +SetVersion sets Version field to given value. + +### HasVersion + +`func (o *ImportSkillCollectionRequestSource) HasVersion() bool` + +HasVersion 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/ImportSkillRequest.md b/docs/ImportSkillRequest.md new file mode 100644 index 0000000..3334a5c --- /dev/null +++ b/docs/ImportSkillRequest.md @@ -0,0 +1,259 @@ +# ImportSkillRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Source** | [**ImportSkillRequestSource**](ImportSkillRequestSource.md) | | +**Name** | Pointer to **string** | | [optional] +**Description** | Pointer to **string** | | [optional] +**Tags** | Pointer to **[]string** | | [optional] +**TriggerCondition** | Pointer to **string** | | [optional] +**RequiredTools** | Pointer to **[]string** | | [optional] +**DisableModelInvocation** | Pointer to **bool** | | [optional] +**AllowedTools** | Pointer to **[]string** | | [optional] +**InstalledBy** | Pointer to **string** | | [optional] + +## Methods + +### NewImportSkillRequest + +`func NewImportSkillRequest(source ImportSkillRequestSource, ) *ImportSkillRequest` + +NewImportSkillRequest instantiates a new ImportSkillRequest 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 + +### NewImportSkillRequestWithDefaults + +`func NewImportSkillRequestWithDefaults() *ImportSkillRequest` + +NewImportSkillRequestWithDefaults instantiates a new ImportSkillRequest 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 + +### GetSource + +`func (o *ImportSkillRequest) GetSource() ImportSkillRequestSource` + +GetSource returns the Source field if non-nil, zero value otherwise. + +### GetSourceOk + +`func (o *ImportSkillRequest) GetSourceOk() (*ImportSkillRequestSource, bool)` + +GetSourceOk returns a tuple with the Source field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSource + +`func (o *ImportSkillRequest) SetSource(v ImportSkillRequestSource)` + +SetSource sets Source field to given value. + + +### GetName + +`func (o *ImportSkillRequest) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *ImportSkillRequest) 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 *ImportSkillRequest) SetName(v string)` + +SetName sets Name field to given value. + +### HasName + +`func (o *ImportSkillRequest) HasName() bool` + +HasName returns a boolean if a field has been set. + +### GetDescription + +`func (o *ImportSkillRequest) GetDescription() string` + +GetDescription returns the Description field if non-nil, zero value otherwise. + +### GetDescriptionOk + +`func (o *ImportSkillRequest) 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 *ImportSkillRequest) SetDescription(v string)` + +SetDescription sets Description field to given value. + +### HasDescription + +`func (o *ImportSkillRequest) HasDescription() bool` + +HasDescription returns a boolean if a field has been set. + +### GetTags + +`func (o *ImportSkillRequest) GetTags() []string` + +GetTags returns the Tags field if non-nil, zero value otherwise. + +### GetTagsOk + +`func (o *ImportSkillRequest) GetTagsOk() (*[]string, bool)` + +GetTagsOk returns a tuple with the Tags field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTags + +`func (o *ImportSkillRequest) SetTags(v []string)` + +SetTags sets Tags field to given value. + +### HasTags + +`func (o *ImportSkillRequest) HasTags() bool` + +HasTags returns a boolean if a field has been set. + +### GetTriggerCondition + +`func (o *ImportSkillRequest) GetTriggerCondition() string` + +GetTriggerCondition returns the TriggerCondition field if non-nil, zero value otherwise. + +### GetTriggerConditionOk + +`func (o *ImportSkillRequest) GetTriggerConditionOk() (*string, bool)` + +GetTriggerConditionOk returns a tuple with the TriggerCondition field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTriggerCondition + +`func (o *ImportSkillRequest) SetTriggerCondition(v string)` + +SetTriggerCondition sets TriggerCondition field to given value. + +### HasTriggerCondition + +`func (o *ImportSkillRequest) HasTriggerCondition() bool` + +HasTriggerCondition returns a boolean if a field has been set. + +### GetRequiredTools + +`func (o *ImportSkillRequest) GetRequiredTools() []string` + +GetRequiredTools returns the RequiredTools field if non-nil, zero value otherwise. + +### GetRequiredToolsOk + +`func (o *ImportSkillRequest) GetRequiredToolsOk() (*[]string, bool)` + +GetRequiredToolsOk returns a tuple with the RequiredTools field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRequiredTools + +`func (o *ImportSkillRequest) SetRequiredTools(v []string)` + +SetRequiredTools sets RequiredTools field to given value. + +### HasRequiredTools + +`func (o *ImportSkillRequest) HasRequiredTools() bool` + +HasRequiredTools returns a boolean if a field has been set. + +### GetDisableModelInvocation + +`func (o *ImportSkillRequest) GetDisableModelInvocation() bool` + +GetDisableModelInvocation returns the DisableModelInvocation field if non-nil, zero value otherwise. + +### GetDisableModelInvocationOk + +`func (o *ImportSkillRequest) GetDisableModelInvocationOk() (*bool, bool)` + +GetDisableModelInvocationOk returns a tuple with the DisableModelInvocation field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisableModelInvocation + +`func (o *ImportSkillRequest) SetDisableModelInvocation(v bool)` + +SetDisableModelInvocation sets DisableModelInvocation field to given value. + +### HasDisableModelInvocation + +`func (o *ImportSkillRequest) HasDisableModelInvocation() bool` + +HasDisableModelInvocation returns a boolean if a field has been set. + +### GetAllowedTools + +`func (o *ImportSkillRequest) GetAllowedTools() []string` + +GetAllowedTools returns the AllowedTools field if non-nil, zero value otherwise. + +### GetAllowedToolsOk + +`func (o *ImportSkillRequest) GetAllowedToolsOk() (*[]string, bool)` + +GetAllowedToolsOk returns a tuple with the AllowedTools field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAllowedTools + +`func (o *ImportSkillRequest) SetAllowedTools(v []string)` + +SetAllowedTools sets AllowedTools field to given value. + +### HasAllowedTools + +`func (o *ImportSkillRequest) HasAllowedTools() bool` + +HasAllowedTools returns a boolean if a field has been set. + +### GetInstalledBy + +`func (o *ImportSkillRequest) GetInstalledBy() string` + +GetInstalledBy returns the InstalledBy field if non-nil, zero value otherwise. + +### GetInstalledByOk + +`func (o *ImportSkillRequest) GetInstalledByOk() (*string, bool)` + +GetInstalledByOk returns a tuple with the InstalledBy field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetInstalledBy + +`func (o *ImportSkillRequest) SetInstalledBy(v string)` + +SetInstalledBy sets InstalledBy field to given value. + +### HasInstalledBy + +`func (o *ImportSkillRequest) HasInstalledBy() bool` + +HasInstalledBy 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/ImportSkillRequestSource.md b/docs/ImportSkillRequestSource.md new file mode 100644 index 0000000..a2e7395 --- /dev/null +++ b/docs/ImportSkillRequestSource.md @@ -0,0 +1,155 @@ +# ImportSkillRequestSource + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Type** | **string** | | +**Url** | Pointer to **string** | | [optional] +**Repo** | Pointer to **string** | | [optional] +**Path** | Pointer to **string** | | [optional] +**Version** | Pointer to **string** | | [optional] + +## Methods + +### NewImportSkillRequestSource + +`func NewImportSkillRequestSource(type_ string, ) *ImportSkillRequestSource` + +NewImportSkillRequestSource instantiates a new ImportSkillRequestSource 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 + +### NewImportSkillRequestSourceWithDefaults + +`func NewImportSkillRequestSourceWithDefaults() *ImportSkillRequestSource` + +NewImportSkillRequestSourceWithDefaults instantiates a new ImportSkillRequestSource object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetType + +`func (o *ImportSkillRequestSource) GetType() string` + +GetType returns the Type field if non-nil, zero value otherwise. + +### GetTypeOk + +`func (o *ImportSkillRequestSource) GetTypeOk() (*string, bool)` + +GetTypeOk returns a tuple with the Type field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetType + +`func (o *ImportSkillRequestSource) SetType(v string)` + +SetType sets Type field to given value. + + +### GetUrl + +`func (o *ImportSkillRequestSource) GetUrl() string` + +GetUrl returns the Url field if non-nil, zero value otherwise. + +### GetUrlOk + +`func (o *ImportSkillRequestSource) 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 *ImportSkillRequestSource) SetUrl(v string)` + +SetUrl sets Url field to given value. + +### HasUrl + +`func (o *ImportSkillRequestSource) HasUrl() bool` + +HasUrl returns a boolean if a field has been set. + +### GetRepo + +`func (o *ImportSkillRequestSource) GetRepo() string` + +GetRepo returns the Repo field if non-nil, zero value otherwise. + +### GetRepoOk + +`func (o *ImportSkillRequestSource) GetRepoOk() (*string, bool)` + +GetRepoOk returns a tuple with the Repo field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRepo + +`func (o *ImportSkillRequestSource) SetRepo(v string)` + +SetRepo sets Repo field to given value. + +### HasRepo + +`func (o *ImportSkillRequestSource) HasRepo() bool` + +HasRepo returns a boolean if a field has been set. + +### GetPath + +`func (o *ImportSkillRequestSource) GetPath() string` + +GetPath returns the Path field if non-nil, zero value otherwise. + +### GetPathOk + +`func (o *ImportSkillRequestSource) GetPathOk() (*string, bool)` + +GetPathOk returns a tuple with the Path field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPath + +`func (o *ImportSkillRequestSource) SetPath(v string)` + +SetPath sets Path field to given value. + +### HasPath + +`func (o *ImportSkillRequestSource) HasPath() bool` + +HasPath returns a boolean if a field has been set. + +### GetVersion + +`func (o *ImportSkillRequestSource) GetVersion() string` + +GetVersion returns the Version field if non-nil, zero value otherwise. + +### GetVersionOk + +`func (o *ImportSkillRequestSource) GetVersionOk() (*string, bool)` + +GetVersionOk returns a tuple with the Version field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetVersion + +`func (o *ImportSkillRequestSource) SetVersion(v string)` + +SetVersion sets Version field to given value. + +### HasVersion + +`func (o *ImportSkillRequestSource) HasVersion() bool` + +HasVersion 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/ListSkillCollections200Response.md b/docs/ListSkillCollections200Response.md new file mode 100644 index 0000000..750f7e2 --- /dev/null +++ b/docs/ListSkillCollections200Response.md @@ -0,0 +1,56 @@ +# ListSkillCollections200Response + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Collections** | Pointer to [**[]ListSkillCollections200ResponseCollectionsInner**](ListSkillCollections200ResponseCollectionsInner.md) | | [optional] + +## Methods + +### NewListSkillCollections200Response + +`func NewListSkillCollections200Response() *ListSkillCollections200Response` + +NewListSkillCollections200Response instantiates a new ListSkillCollections200Response 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 + +### NewListSkillCollections200ResponseWithDefaults + +`func NewListSkillCollections200ResponseWithDefaults() *ListSkillCollections200Response` + +NewListSkillCollections200ResponseWithDefaults instantiates a new ListSkillCollections200Response 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 + +### GetCollections + +`func (o *ListSkillCollections200Response) GetCollections() []ListSkillCollections200ResponseCollectionsInner` + +GetCollections returns the Collections field if non-nil, zero value otherwise. + +### GetCollectionsOk + +`func (o *ListSkillCollections200Response) GetCollectionsOk() (*[]ListSkillCollections200ResponseCollectionsInner, bool)` + +GetCollectionsOk returns a tuple with the Collections field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCollections + +`func (o *ListSkillCollections200Response) SetCollections(v []ListSkillCollections200ResponseCollectionsInner)` + +SetCollections sets Collections field to given value. + +### HasCollections + +`func (o *ListSkillCollections200Response) HasCollections() bool` + +HasCollections 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/ListSkillCollections200ResponseCollectionsInner.md b/docs/ListSkillCollections200ResponseCollectionsInner.md new file mode 100644 index 0000000..fd5782a --- /dev/null +++ b/docs/ListSkillCollections200ResponseCollectionsInner.md @@ -0,0 +1,108 @@ +# ListSkillCollections200ResponseCollectionsInner + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Namespace** | Pointer to **string** | | [optional] +**Count** | Pointer to **int32** | | [optional] +**Skills** | Pointer to **[]string** | | [optional] + +## Methods + +### NewListSkillCollections200ResponseCollectionsInner + +`func NewListSkillCollections200ResponseCollectionsInner() *ListSkillCollections200ResponseCollectionsInner` + +NewListSkillCollections200ResponseCollectionsInner instantiates a new ListSkillCollections200ResponseCollectionsInner 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 + +### NewListSkillCollections200ResponseCollectionsInnerWithDefaults + +`func NewListSkillCollections200ResponseCollectionsInnerWithDefaults() *ListSkillCollections200ResponseCollectionsInner` + +NewListSkillCollections200ResponseCollectionsInnerWithDefaults instantiates a new ListSkillCollections200ResponseCollectionsInner 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 + +### GetNamespace + +`func (o *ListSkillCollections200ResponseCollectionsInner) GetNamespace() string` + +GetNamespace returns the Namespace field if non-nil, zero value otherwise. + +### GetNamespaceOk + +`func (o *ListSkillCollections200ResponseCollectionsInner) GetNamespaceOk() (*string, bool)` + +GetNamespaceOk returns a tuple with the Namespace field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetNamespace + +`func (o *ListSkillCollections200ResponseCollectionsInner) SetNamespace(v string)` + +SetNamespace sets Namespace field to given value. + +### HasNamespace + +`func (o *ListSkillCollections200ResponseCollectionsInner) HasNamespace() bool` + +HasNamespace returns a boolean if a field has been set. + +### GetCount + +`func (o *ListSkillCollections200ResponseCollectionsInner) GetCount() int32` + +GetCount returns the Count field if non-nil, zero value otherwise. + +### GetCountOk + +`func (o *ListSkillCollections200ResponseCollectionsInner) 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 *ListSkillCollections200ResponseCollectionsInner) SetCount(v int32)` + +SetCount sets Count field to given value. + +### HasCount + +`func (o *ListSkillCollections200ResponseCollectionsInner) HasCount() bool` + +HasCount returns a boolean if a field has been set. + +### GetSkills + +`func (o *ListSkillCollections200ResponseCollectionsInner) GetSkills() []string` + +GetSkills returns the Skills field if non-nil, zero value otherwise. + +### GetSkillsOk + +`func (o *ListSkillCollections200ResponseCollectionsInner) GetSkillsOk() (*[]string, bool)` + +GetSkillsOk returns a tuple with the Skills field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSkills + +`func (o *ListSkillCollections200ResponseCollectionsInner) SetSkills(v []string)` + +SetSkills sets Skills field to given value. + +### HasSkills + +`func (o *ListSkillCollections200ResponseCollectionsInner) HasSkills() bool` + +HasSkills 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/ListSkills200Response.md b/docs/ListSkills200Response.md new file mode 100644 index 0000000..a2b1602 --- /dev/null +++ b/docs/ListSkills200Response.md @@ -0,0 +1,82 @@ +# ListSkills200Response + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Skills** | Pointer to [**[]ListSkills200ResponseSkillsInner**](ListSkills200ResponseSkillsInner.md) | | [optional] +**Count** | Pointer to **int32** | | [optional] + +## Methods + +### NewListSkills200Response + +`func NewListSkills200Response() *ListSkills200Response` + +NewListSkills200Response instantiates a new ListSkills200Response 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 + +### NewListSkills200ResponseWithDefaults + +`func NewListSkills200ResponseWithDefaults() *ListSkills200Response` + +NewListSkills200ResponseWithDefaults instantiates a new ListSkills200Response 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 + +### GetSkills + +`func (o *ListSkills200Response) GetSkills() []ListSkills200ResponseSkillsInner` + +GetSkills returns the Skills field if non-nil, zero value otherwise. + +### GetSkillsOk + +`func (o *ListSkills200Response) GetSkillsOk() (*[]ListSkills200ResponseSkillsInner, bool)` + +GetSkillsOk returns a tuple with the Skills field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSkills + +`func (o *ListSkills200Response) SetSkills(v []ListSkills200ResponseSkillsInner)` + +SetSkills sets Skills field to given value. + +### HasSkills + +`func (o *ListSkills200Response) HasSkills() bool` + +HasSkills returns a boolean if a field has been set. + +### GetCount + +`func (o *ListSkills200Response) GetCount() int32` + +GetCount returns the Count field if non-nil, zero value otherwise. + +### GetCountOk + +`func (o *ListSkills200Response) 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 *ListSkills200Response) SetCount(v int32)` + +SetCount sets Count field to given value. + +### HasCount + +`func (o *ListSkills200Response) HasCount() bool` + +HasCount 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/ListSkills200ResponseSkillsInner.md b/docs/ListSkills200ResponseSkillsInner.md new file mode 100644 index 0000000..1e54a3c --- /dev/null +++ b/docs/ListSkills200ResponseSkillsInner.md @@ -0,0 +1,264 @@ +# ListSkills200ResponseSkillsInner + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**SkillId** | Pointer to **string** | | [optional] +**Name** | Pointer to **string** | | [optional] +**Description** | Pointer to **string** | | [optional] +**Tags** | Pointer to **[]string** | | [optional] +**Source** | Pointer to **map[string]interface{}** | | [optional] +**TriggerCondition** | Pointer to **string** | | [optional] +**Namespace** | Pointer to **string** | | [optional] +**InstalledAt** | Pointer to **time.Time** | | [optional] +**UpdatedAt** | Pointer to **time.Time** | | [optional] + +## Methods + +### NewListSkills200ResponseSkillsInner + +`func NewListSkills200ResponseSkillsInner() *ListSkills200ResponseSkillsInner` + +NewListSkills200ResponseSkillsInner instantiates a new ListSkills200ResponseSkillsInner 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 + +### NewListSkills200ResponseSkillsInnerWithDefaults + +`func NewListSkills200ResponseSkillsInnerWithDefaults() *ListSkills200ResponseSkillsInner` + +NewListSkills200ResponseSkillsInnerWithDefaults instantiates a new ListSkills200ResponseSkillsInner 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 + +### GetSkillId + +`func (o *ListSkills200ResponseSkillsInner) GetSkillId() string` + +GetSkillId returns the SkillId field if non-nil, zero value otherwise. + +### GetSkillIdOk + +`func (o *ListSkills200ResponseSkillsInner) GetSkillIdOk() (*string, bool)` + +GetSkillIdOk returns a tuple with the SkillId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSkillId + +`func (o *ListSkills200ResponseSkillsInner) SetSkillId(v string)` + +SetSkillId sets SkillId field to given value. + +### HasSkillId + +`func (o *ListSkills200ResponseSkillsInner) HasSkillId() bool` + +HasSkillId returns a boolean if a field has been set. + +### GetName + +`func (o *ListSkills200ResponseSkillsInner) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *ListSkills200ResponseSkillsInner) 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 *ListSkills200ResponseSkillsInner) SetName(v string)` + +SetName sets Name field to given value. + +### HasName + +`func (o *ListSkills200ResponseSkillsInner) HasName() bool` + +HasName returns a boolean if a field has been set. + +### GetDescription + +`func (o *ListSkills200ResponseSkillsInner) GetDescription() string` + +GetDescription returns the Description field if non-nil, zero value otherwise. + +### GetDescriptionOk + +`func (o *ListSkills200ResponseSkillsInner) 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 *ListSkills200ResponseSkillsInner) SetDescription(v string)` + +SetDescription sets Description field to given value. + +### HasDescription + +`func (o *ListSkills200ResponseSkillsInner) HasDescription() bool` + +HasDescription returns a boolean if a field has been set. + +### GetTags + +`func (o *ListSkills200ResponseSkillsInner) GetTags() []string` + +GetTags returns the Tags field if non-nil, zero value otherwise. + +### GetTagsOk + +`func (o *ListSkills200ResponseSkillsInner) GetTagsOk() (*[]string, bool)` + +GetTagsOk returns a tuple with the Tags field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTags + +`func (o *ListSkills200ResponseSkillsInner) SetTags(v []string)` + +SetTags sets Tags field to given value. + +### HasTags + +`func (o *ListSkills200ResponseSkillsInner) HasTags() bool` + +HasTags returns a boolean if a field has been set. + +### GetSource + +`func (o *ListSkills200ResponseSkillsInner) GetSource() map[string]interface{}` + +GetSource returns the Source field if non-nil, zero value otherwise. + +### GetSourceOk + +`func (o *ListSkills200ResponseSkillsInner) GetSourceOk() (*map[string]interface{}, bool)` + +GetSourceOk returns a tuple with the Source field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSource + +`func (o *ListSkills200ResponseSkillsInner) SetSource(v map[string]interface{})` + +SetSource sets Source field to given value. + +### HasSource + +`func (o *ListSkills200ResponseSkillsInner) HasSource() bool` + +HasSource returns a boolean if a field has been set. + +### GetTriggerCondition + +`func (o *ListSkills200ResponseSkillsInner) GetTriggerCondition() string` + +GetTriggerCondition returns the TriggerCondition field if non-nil, zero value otherwise. + +### GetTriggerConditionOk + +`func (o *ListSkills200ResponseSkillsInner) GetTriggerConditionOk() (*string, bool)` + +GetTriggerConditionOk returns a tuple with the TriggerCondition field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTriggerCondition + +`func (o *ListSkills200ResponseSkillsInner) SetTriggerCondition(v string)` + +SetTriggerCondition sets TriggerCondition field to given value. + +### HasTriggerCondition + +`func (o *ListSkills200ResponseSkillsInner) HasTriggerCondition() bool` + +HasTriggerCondition returns a boolean if a field has been set. + +### GetNamespace + +`func (o *ListSkills200ResponseSkillsInner) GetNamespace() string` + +GetNamespace returns the Namespace field if non-nil, zero value otherwise. + +### GetNamespaceOk + +`func (o *ListSkills200ResponseSkillsInner) GetNamespaceOk() (*string, bool)` + +GetNamespaceOk returns a tuple with the Namespace field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetNamespace + +`func (o *ListSkills200ResponseSkillsInner) SetNamespace(v string)` + +SetNamespace sets Namespace field to given value. + +### HasNamespace + +`func (o *ListSkills200ResponseSkillsInner) HasNamespace() bool` + +HasNamespace returns a boolean if a field has been set. + +### GetInstalledAt + +`func (o *ListSkills200ResponseSkillsInner) GetInstalledAt() time.Time` + +GetInstalledAt returns the InstalledAt field if non-nil, zero value otherwise. + +### GetInstalledAtOk + +`func (o *ListSkills200ResponseSkillsInner) GetInstalledAtOk() (*time.Time, bool)` + +GetInstalledAtOk returns a tuple with the InstalledAt field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetInstalledAt + +`func (o *ListSkills200ResponseSkillsInner) SetInstalledAt(v time.Time)` + +SetInstalledAt sets InstalledAt field to given value. + +### HasInstalledAt + +`func (o *ListSkills200ResponseSkillsInner) HasInstalledAt() bool` + +HasInstalledAt returns a boolean if a field has been set. + +### GetUpdatedAt + +`func (o *ListSkills200ResponseSkillsInner) GetUpdatedAt() time.Time` + +GetUpdatedAt returns the UpdatedAt field if non-nil, zero value otherwise. + +### GetUpdatedAtOk + +`func (o *ListSkills200ResponseSkillsInner) GetUpdatedAtOk() (*time.Time, 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 *ListSkills200ResponseSkillsInner) SetUpdatedAt(v time.Time)` + +SetUpdatedAt sets UpdatedAt field to given value. + +### HasUpdatedAt + +`func (o *ListSkills200ResponseSkillsInner) 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 deleted file mode 100644 index 2ddec82..0000000 --- a/docs/OrchestrationAPI.md +++ /dev/null @@ -1,82 +0,0 @@ -# \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 Tool Orchestration Status (Async Tool Polling) - - - -## GetAIOrchestrationStatus - -> GetAIOrchestrationStatus200Response GetAIOrchestrationStatus(ctx, organisation, orchestrationId).Execute() - -Get Tool Orchestration Status (Async Tool Polling) - - - -### 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/SyncSkillCollection200Response.md b/docs/SyncSkillCollection200Response.md new file mode 100644 index 0000000..88bbcb7 --- /dev/null +++ b/docs/SyncSkillCollection200Response.md @@ -0,0 +1,186 @@ +# SyncSkillCollection200Response + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Namespace** | Pointer to **string** | | [optional] +**Synced** | Pointer to **int32** | | [optional] +**Created** | Pointer to **int32** | | [optional] +**Failed** | Pointer to **int32** | | [optional] +**RemovedFromSource** | Pointer to **[]string** | | [optional] +**Skills** | Pointer to **[]map[string]interface{}** | | [optional] + +## Methods + +### NewSyncSkillCollection200Response + +`func NewSyncSkillCollection200Response() *SyncSkillCollection200Response` + +NewSyncSkillCollection200Response instantiates a new SyncSkillCollection200Response 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 + +### NewSyncSkillCollection200ResponseWithDefaults + +`func NewSyncSkillCollection200ResponseWithDefaults() *SyncSkillCollection200Response` + +NewSyncSkillCollection200ResponseWithDefaults instantiates a new SyncSkillCollection200Response 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 + +### GetNamespace + +`func (o *SyncSkillCollection200Response) GetNamespace() string` + +GetNamespace returns the Namespace field if non-nil, zero value otherwise. + +### GetNamespaceOk + +`func (o *SyncSkillCollection200Response) GetNamespaceOk() (*string, bool)` + +GetNamespaceOk returns a tuple with the Namespace field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetNamespace + +`func (o *SyncSkillCollection200Response) SetNamespace(v string)` + +SetNamespace sets Namespace field to given value. + +### HasNamespace + +`func (o *SyncSkillCollection200Response) HasNamespace() bool` + +HasNamespace returns a boolean if a field has been set. + +### GetSynced + +`func (o *SyncSkillCollection200Response) GetSynced() int32` + +GetSynced returns the Synced field if non-nil, zero value otherwise. + +### GetSyncedOk + +`func (o *SyncSkillCollection200Response) GetSyncedOk() (*int32, bool)` + +GetSyncedOk returns a tuple with the Synced field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSynced + +`func (o *SyncSkillCollection200Response) SetSynced(v int32)` + +SetSynced sets Synced field to given value. + +### HasSynced + +`func (o *SyncSkillCollection200Response) HasSynced() bool` + +HasSynced returns a boolean if a field has been set. + +### GetCreated + +`func (o *SyncSkillCollection200Response) GetCreated() int32` + +GetCreated returns the Created field if non-nil, zero value otherwise. + +### GetCreatedOk + +`func (o *SyncSkillCollection200Response) GetCreatedOk() (*int32, bool)` + +GetCreatedOk returns a tuple with the Created field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCreated + +`func (o *SyncSkillCollection200Response) SetCreated(v int32)` + +SetCreated sets Created field to given value. + +### HasCreated + +`func (o *SyncSkillCollection200Response) HasCreated() bool` + +HasCreated returns a boolean if a field has been set. + +### GetFailed + +`func (o *SyncSkillCollection200Response) GetFailed() int32` + +GetFailed returns the Failed field if non-nil, zero value otherwise. + +### GetFailedOk + +`func (o *SyncSkillCollection200Response) GetFailedOk() (*int32, bool)` + +GetFailedOk returns a tuple with the Failed field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetFailed + +`func (o *SyncSkillCollection200Response) SetFailed(v int32)` + +SetFailed sets Failed field to given value. + +### HasFailed + +`func (o *SyncSkillCollection200Response) HasFailed() bool` + +HasFailed returns a boolean if a field has been set. + +### GetRemovedFromSource + +`func (o *SyncSkillCollection200Response) GetRemovedFromSource() []string` + +GetRemovedFromSource returns the RemovedFromSource field if non-nil, zero value otherwise. + +### GetRemovedFromSourceOk + +`func (o *SyncSkillCollection200Response) GetRemovedFromSourceOk() (*[]string, bool)` + +GetRemovedFromSourceOk returns a tuple with the RemovedFromSource field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRemovedFromSource + +`func (o *SyncSkillCollection200Response) SetRemovedFromSource(v []string)` + +SetRemovedFromSource sets RemovedFromSource field to given value. + +### HasRemovedFromSource + +`func (o *SyncSkillCollection200Response) HasRemovedFromSource() bool` + +HasRemovedFromSource returns a boolean if a field has been set. + +### GetSkills + +`func (o *SyncSkillCollection200Response) GetSkills() []map[string]interface{}` + +GetSkills returns the Skills field if non-nil, zero value otherwise. + +### GetSkillsOk + +`func (o *SyncSkillCollection200Response) GetSkillsOk() (*[]map[string]interface{}, bool)` + +GetSkillsOk returns a tuple with the Skills field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSkills + +`func (o *SyncSkillCollection200Response) SetSkills(v []map[string]interface{})` + +SetSkills sets Skills field to given value. + +### HasSkills + +`func (o *SyncSkillCollection200Response) HasSkills() bool` + +HasSkills 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/TokensAPI.md b/docs/TokensAPI.md new file mode 100644 index 0000000..079c7af --- /dev/null +++ b/docs/TokensAPI.md @@ -0,0 +1,220 @@ +# \TokensAPI + +All URIs are relative to *https://dashboard.quantcdn.io* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**TokensCreate**](TokensAPI.md#TokensCreate) | **Post** /api/v2/organizations/{organization}/tokens | Create a new API token scoped to this organization +[**TokensDelete**](TokensAPI.md#TokensDelete) | **Delete** /api/v2/organizations/{organization}/tokens/{token_id} | Revoke an API token +[**TokensList**](TokensAPI.md#TokensList) | **Get** /api/v2/organizations/{organization}/tokens | List API tokens scoped to this organization + + + +## TokensCreate + +> TokensCreate201Response TokensCreate(ctx, organization).TokensCreateRequest(tokensCreateRequest).Execute() + +Create a new API token scoped to this organization + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/quantcdn/quant-admin-go" +) + +func main() { + organization := "test-org" // string | Organization identifier + tokensCreateRequest := *openapiclient.NewTokensCreateRequest("My deploy token") // TokensCreateRequest | + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.TokensAPI.TokensCreate(context.Background(), organization).TokensCreateRequest(tokensCreateRequest).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `TokensAPI.TokensCreate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `TokensCreate`: TokensCreate201Response + fmt.Fprintf(os.Stdout, "Response from `TokensAPI.TokensCreate`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**organization** | **string** | Organization identifier | + +### Other Parameters + +Other parameters are passed through a pointer to a apiTokensCreateRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **tokensCreateRequest** | [**TokensCreateRequest**](TokensCreateRequest.md) | | + +### Return type + +[**TokensCreate201Response**](TokensCreate201Response.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) + + +## TokensDelete + +> TokensDelete200Response TokensDelete(ctx, organization, tokenId).Execute() + +Revoke an API token + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/quantcdn/quant-admin-go" +) + +func main() { + organization := "test-org" // string | Organization identifier + tokenId := int32(42) // int32 | Token ID to revoke + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.TokensAPI.TokensDelete(context.Background(), organization, tokenId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `TokensAPI.TokensDelete``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `TokensDelete`: TokensDelete200Response + fmt.Fprintf(os.Stdout, "Response from `TokensAPI.TokensDelete`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**organization** | **string** | Organization identifier | +**tokenId** | **int32** | Token ID to revoke | + +### Other Parameters + +Other parameters are passed through a pointer to a apiTokensDeleteRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + +### Return type + +[**TokensDelete200Response**](TokensDelete200Response.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) + + +## TokensList + +> []TokensList200ResponseInner TokensList(ctx, organization).Execute() + +List API tokens scoped to this organization + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/quantcdn/quant-admin-go" +) + +func main() { + organization := "test-org" // string | Organization identifier + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.TokensAPI.TokensList(context.Background(), organization).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `TokensAPI.TokensList``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `TokensList`: []TokensList200ResponseInner + fmt.Fprintf(os.Stdout, "Response from `TokensAPI.TokensList`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**organization** | **string** | Organization identifier | + +### Other Parameters + +Other parameters are passed through a pointer to a apiTokensListRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + +### Return type + +[**[]TokensList200ResponseInner**](TokensList200ResponseInner.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/TokensCreate201Response.md b/docs/TokensCreate201Response.md new file mode 100644 index 0000000..1877744 --- /dev/null +++ b/docs/TokensCreate201Response.md @@ -0,0 +1,108 @@ +# TokensCreate201Response + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Token** | Pointer to **string** | The plain text token (shown once) | [optional] +**Name** | Pointer to **string** | | [optional] +**CreatedAt** | Pointer to **time.Time** | | [optional] + +## Methods + +### NewTokensCreate201Response + +`func NewTokensCreate201Response() *TokensCreate201Response` + +NewTokensCreate201Response instantiates a new TokensCreate201Response 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 + +### NewTokensCreate201ResponseWithDefaults + +`func NewTokensCreate201ResponseWithDefaults() *TokensCreate201Response` + +NewTokensCreate201ResponseWithDefaults instantiates a new TokensCreate201Response 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 + +### GetToken + +`func (o *TokensCreate201Response) GetToken() string` + +GetToken returns the Token field if non-nil, zero value otherwise. + +### GetTokenOk + +`func (o *TokensCreate201Response) GetTokenOk() (*string, bool)` + +GetTokenOk returns a tuple with the Token field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetToken + +`func (o *TokensCreate201Response) SetToken(v string)` + +SetToken sets Token field to given value. + +### HasToken + +`func (o *TokensCreate201Response) HasToken() bool` + +HasToken returns a boolean if a field has been set. + +### GetName + +`func (o *TokensCreate201Response) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *TokensCreate201Response) 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 *TokensCreate201Response) SetName(v string)` + +SetName sets Name field to given value. + +### HasName + +`func (o *TokensCreate201Response) HasName() bool` + +HasName returns a boolean if a field has been set. + +### GetCreatedAt + +`func (o *TokensCreate201Response) GetCreatedAt() time.Time` + +GetCreatedAt returns the CreatedAt field if non-nil, zero value otherwise. + +### GetCreatedAtOk + +`func (o *TokensCreate201Response) 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 *TokensCreate201Response) SetCreatedAt(v time.Time)` + +SetCreatedAt sets CreatedAt field to given value. + +### HasCreatedAt + +`func (o *TokensCreate201Response) 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/TokensCreateRequest.md b/docs/TokensCreateRequest.md new file mode 100644 index 0000000..c4cb09d --- /dev/null +++ b/docs/TokensCreateRequest.md @@ -0,0 +1,51 @@ +# TokensCreateRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Name** | **string** | Name for the token | + +## Methods + +### NewTokensCreateRequest + +`func NewTokensCreateRequest(name string, ) *TokensCreateRequest` + +NewTokensCreateRequest instantiates a new TokensCreateRequest 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 + +### NewTokensCreateRequestWithDefaults + +`func NewTokensCreateRequestWithDefaults() *TokensCreateRequest` + +NewTokensCreateRequestWithDefaults instantiates a new TokensCreateRequest 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 *TokensCreateRequest) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *TokensCreateRequest) 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 *TokensCreateRequest) SetName(v string)` + +SetName sets Name 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/TokensDelete200Response.md b/docs/TokensDelete200Response.md new file mode 100644 index 0000000..dd5c91d --- /dev/null +++ b/docs/TokensDelete200Response.md @@ -0,0 +1,56 @@ +# TokensDelete200Response + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Message** | Pointer to **string** | | [optional] + +## Methods + +### NewTokensDelete200Response + +`func NewTokensDelete200Response() *TokensDelete200Response` + +NewTokensDelete200Response instantiates a new TokensDelete200Response 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 + +### NewTokensDelete200ResponseWithDefaults + +`func NewTokensDelete200ResponseWithDefaults() *TokensDelete200Response` + +NewTokensDelete200ResponseWithDefaults instantiates a new TokensDelete200Response 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 *TokensDelete200Response) GetMessage() string` + +GetMessage returns the Message field if non-nil, zero value otherwise. + +### GetMessageOk + +`func (o *TokensDelete200Response) 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 *TokensDelete200Response) SetMessage(v string)` + +SetMessage sets Message field to given value. + +### HasMessage + +`func (o *TokensDelete200Response) HasMessage() bool` + +HasMessage returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/TokensList200ResponseInner.md b/docs/TokensList200ResponseInner.md new file mode 100644 index 0000000..b76e1b8 --- /dev/null +++ b/docs/TokensList200ResponseInner.md @@ -0,0 +1,144 @@ +# TokensList200ResponseInner + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Id** | Pointer to **int32** | | [optional] +**Name** | Pointer to **string** | | [optional] +**LastUsed** | Pointer to **NullableTime** | | [optional] +**CreatedAt** | Pointer to **time.Time** | | [optional] + +## Methods + +### NewTokensList200ResponseInner + +`func NewTokensList200ResponseInner() *TokensList200ResponseInner` + +NewTokensList200ResponseInner instantiates a new TokensList200ResponseInner 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 + +### NewTokensList200ResponseInnerWithDefaults + +`func NewTokensList200ResponseInnerWithDefaults() *TokensList200ResponseInner` + +NewTokensList200ResponseInnerWithDefaults instantiates a new TokensList200ResponseInner 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 + +### GetId + +`func (o *TokensList200ResponseInner) GetId() int32` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *TokensList200ResponseInner) GetIdOk() (*int32, bool)` + +GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetId + +`func (o *TokensList200ResponseInner) SetId(v int32)` + +SetId sets Id field to given value. + +### HasId + +`func (o *TokensList200ResponseInner) HasId() bool` + +HasId returns a boolean if a field has been set. + +### GetName + +`func (o *TokensList200ResponseInner) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *TokensList200ResponseInner) 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 *TokensList200ResponseInner) SetName(v string)` + +SetName sets Name field to given value. + +### HasName + +`func (o *TokensList200ResponseInner) HasName() bool` + +HasName returns a boolean if a field has been set. + +### GetLastUsed + +`func (o *TokensList200ResponseInner) GetLastUsed() time.Time` + +GetLastUsed returns the LastUsed field if non-nil, zero value otherwise. + +### GetLastUsedOk + +`func (o *TokensList200ResponseInner) GetLastUsedOk() (*time.Time, bool)` + +GetLastUsedOk returns a tuple with the LastUsed field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLastUsed + +`func (o *TokensList200ResponseInner) SetLastUsed(v time.Time)` + +SetLastUsed sets LastUsed field to given value. + +### HasLastUsed + +`func (o *TokensList200ResponseInner) HasLastUsed() bool` + +HasLastUsed returns a boolean if a field has been set. + +### SetLastUsedNil + +`func (o *TokensList200ResponseInner) SetLastUsedNil(b bool)` + + SetLastUsedNil sets the value for LastUsed to be an explicit nil + +### UnsetLastUsed +`func (o *TokensList200ResponseInner) UnsetLastUsed()` + +UnsetLastUsed ensures that no value is present for LastUsed, not even an explicit nil +### GetCreatedAt + +`func (o *TokensList200ResponseInner) GetCreatedAt() time.Time` + +GetCreatedAt returns the CreatedAt field if non-nil, zero value otherwise. + +### GetCreatedAtOk + +`func (o *TokensList200ResponseInner) 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 *TokensList200ResponseInner) SetCreatedAt(v time.Time)` + +SetCreatedAt sets CreatedAt field to given value. + +### HasCreatedAt + +`func (o *TokensList200ResponseInner) 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/UpdateSkill200Response.md b/docs/UpdateSkill200Response.md new file mode 100644 index 0000000..dc1c119 --- /dev/null +++ b/docs/UpdateSkill200Response.md @@ -0,0 +1,108 @@ +# UpdateSkill200Response + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Success** | Pointer to **bool** | | [optional] +**Skill** | Pointer to **map[string]interface{}** | | [optional] +**Message** | Pointer to **string** | | [optional] + +## Methods + +### NewUpdateSkill200Response + +`func NewUpdateSkill200Response() *UpdateSkill200Response` + +NewUpdateSkill200Response instantiates a new UpdateSkill200Response 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 + +### NewUpdateSkill200ResponseWithDefaults + +`func NewUpdateSkill200ResponseWithDefaults() *UpdateSkill200Response` + +NewUpdateSkill200ResponseWithDefaults instantiates a new UpdateSkill200Response 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 *UpdateSkill200Response) GetSuccess() bool` + +GetSuccess returns the Success field if non-nil, zero value otherwise. + +### GetSuccessOk + +`func (o *UpdateSkill200Response) 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 *UpdateSkill200Response) SetSuccess(v bool)` + +SetSuccess sets Success field to given value. + +### HasSuccess + +`func (o *UpdateSkill200Response) HasSuccess() bool` + +HasSuccess returns a boolean if a field has been set. + +### GetSkill + +`func (o *UpdateSkill200Response) GetSkill() map[string]interface{}` + +GetSkill returns the Skill field if non-nil, zero value otherwise. + +### GetSkillOk + +`func (o *UpdateSkill200Response) GetSkillOk() (*map[string]interface{}, bool)` + +GetSkillOk returns a tuple with the Skill field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSkill + +`func (o *UpdateSkill200Response) SetSkill(v map[string]interface{})` + +SetSkill sets Skill field to given value. + +### HasSkill + +`func (o *UpdateSkill200Response) HasSkill() bool` + +HasSkill returns a boolean if a field has been set. + +### GetMessage + +`func (o *UpdateSkill200Response) GetMessage() string` + +GetMessage returns the Message field if non-nil, zero value otherwise. + +### GetMessageOk + +`func (o *UpdateSkill200Response) 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 *UpdateSkill200Response) SetMessage(v string)` + +SetMessage sets Message field to given value. + +### HasMessage + +`func (o *UpdateSkill200Response) HasMessage() bool` + +HasMessage returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/UpdateSkillRequest.md b/docs/UpdateSkillRequest.md new file mode 100644 index 0000000..59879df --- /dev/null +++ b/docs/UpdateSkillRequest.md @@ -0,0 +1,316 @@ +# UpdateSkillRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Name** | Pointer to **string** | | [optional] +**Description** | Pointer to **string** | | [optional] +**Content** | Pointer to **string** | | [optional] +**TriggerCondition** | Pointer to **string** | | [optional] +**Tags** | Pointer to **[]string** | | [optional] +**RequiredTools** | Pointer to **[]string** | | [optional] +**Source** | Pointer to **map[string]interface{}** | | [optional] +**Files** | Pointer to **map[string]interface{}** | | [optional] +**DisableModelInvocation** | Pointer to **bool** | | [optional] +**AllowedTools** | Pointer to **[]string** | | [optional] +**Namespace** | Pointer to **string** | | [optional] + +## Methods + +### NewUpdateSkillRequest + +`func NewUpdateSkillRequest() *UpdateSkillRequest` + +NewUpdateSkillRequest instantiates a new UpdateSkillRequest 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 + +### NewUpdateSkillRequestWithDefaults + +`func NewUpdateSkillRequestWithDefaults() *UpdateSkillRequest` + +NewUpdateSkillRequestWithDefaults instantiates a new UpdateSkillRequest 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 *UpdateSkillRequest) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *UpdateSkillRequest) 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 *UpdateSkillRequest) SetName(v string)` + +SetName sets Name field to given value. + +### HasName + +`func (o *UpdateSkillRequest) HasName() bool` + +HasName returns a boolean if a field has been set. + +### GetDescription + +`func (o *UpdateSkillRequest) GetDescription() string` + +GetDescription returns the Description field if non-nil, zero value otherwise. + +### GetDescriptionOk + +`func (o *UpdateSkillRequest) 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 *UpdateSkillRequest) SetDescription(v string)` + +SetDescription sets Description field to given value. + +### HasDescription + +`func (o *UpdateSkillRequest) HasDescription() bool` + +HasDescription returns a boolean if a field has been set. + +### GetContent + +`func (o *UpdateSkillRequest) GetContent() string` + +GetContent returns the Content field if non-nil, zero value otherwise. + +### GetContentOk + +`func (o *UpdateSkillRequest) 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 *UpdateSkillRequest) SetContent(v string)` + +SetContent sets Content field to given value. + +### HasContent + +`func (o *UpdateSkillRequest) HasContent() bool` + +HasContent returns a boolean if a field has been set. + +### GetTriggerCondition + +`func (o *UpdateSkillRequest) GetTriggerCondition() string` + +GetTriggerCondition returns the TriggerCondition field if non-nil, zero value otherwise. + +### GetTriggerConditionOk + +`func (o *UpdateSkillRequest) GetTriggerConditionOk() (*string, bool)` + +GetTriggerConditionOk returns a tuple with the TriggerCondition field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTriggerCondition + +`func (o *UpdateSkillRequest) SetTriggerCondition(v string)` + +SetTriggerCondition sets TriggerCondition field to given value. + +### HasTriggerCondition + +`func (o *UpdateSkillRequest) HasTriggerCondition() bool` + +HasTriggerCondition returns a boolean if a field has been set. + +### GetTags + +`func (o *UpdateSkillRequest) GetTags() []string` + +GetTags returns the Tags field if non-nil, zero value otherwise. + +### GetTagsOk + +`func (o *UpdateSkillRequest) GetTagsOk() (*[]string, bool)` + +GetTagsOk returns a tuple with the Tags field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTags + +`func (o *UpdateSkillRequest) SetTags(v []string)` + +SetTags sets Tags field to given value. + +### HasTags + +`func (o *UpdateSkillRequest) HasTags() bool` + +HasTags returns a boolean if a field has been set. + +### GetRequiredTools + +`func (o *UpdateSkillRequest) GetRequiredTools() []string` + +GetRequiredTools returns the RequiredTools field if non-nil, zero value otherwise. + +### GetRequiredToolsOk + +`func (o *UpdateSkillRequest) GetRequiredToolsOk() (*[]string, bool)` + +GetRequiredToolsOk returns a tuple with the RequiredTools field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRequiredTools + +`func (o *UpdateSkillRequest) SetRequiredTools(v []string)` + +SetRequiredTools sets RequiredTools field to given value. + +### HasRequiredTools + +`func (o *UpdateSkillRequest) HasRequiredTools() bool` + +HasRequiredTools returns a boolean if a field has been set. + +### GetSource + +`func (o *UpdateSkillRequest) GetSource() map[string]interface{}` + +GetSource returns the Source field if non-nil, zero value otherwise. + +### GetSourceOk + +`func (o *UpdateSkillRequest) GetSourceOk() (*map[string]interface{}, bool)` + +GetSourceOk returns a tuple with the Source field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSource + +`func (o *UpdateSkillRequest) SetSource(v map[string]interface{})` + +SetSource sets Source field to given value. + +### HasSource + +`func (o *UpdateSkillRequest) HasSource() bool` + +HasSource returns a boolean if a field has been set. + +### GetFiles + +`func (o *UpdateSkillRequest) GetFiles() map[string]interface{}` + +GetFiles returns the Files field if non-nil, zero value otherwise. + +### GetFilesOk + +`func (o *UpdateSkillRequest) GetFilesOk() (*map[string]interface{}, 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 *UpdateSkillRequest) SetFiles(v map[string]interface{})` + +SetFiles sets Files field to given value. + +### HasFiles + +`func (o *UpdateSkillRequest) HasFiles() bool` + +HasFiles returns a boolean if a field has been set. + +### GetDisableModelInvocation + +`func (o *UpdateSkillRequest) GetDisableModelInvocation() bool` + +GetDisableModelInvocation returns the DisableModelInvocation field if non-nil, zero value otherwise. + +### GetDisableModelInvocationOk + +`func (o *UpdateSkillRequest) GetDisableModelInvocationOk() (*bool, bool)` + +GetDisableModelInvocationOk returns a tuple with the DisableModelInvocation field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisableModelInvocation + +`func (o *UpdateSkillRequest) SetDisableModelInvocation(v bool)` + +SetDisableModelInvocation sets DisableModelInvocation field to given value. + +### HasDisableModelInvocation + +`func (o *UpdateSkillRequest) HasDisableModelInvocation() bool` + +HasDisableModelInvocation returns a boolean if a field has been set. + +### GetAllowedTools + +`func (o *UpdateSkillRequest) GetAllowedTools() []string` + +GetAllowedTools returns the AllowedTools field if non-nil, zero value otherwise. + +### GetAllowedToolsOk + +`func (o *UpdateSkillRequest) GetAllowedToolsOk() (*[]string, bool)` + +GetAllowedToolsOk returns a tuple with the AllowedTools field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAllowedTools + +`func (o *UpdateSkillRequest) SetAllowedTools(v []string)` + +SetAllowedTools sets AllowedTools field to given value. + +### HasAllowedTools + +`func (o *UpdateSkillRequest) HasAllowedTools() bool` + +HasAllowedTools returns a boolean if a field has been set. + +### GetNamespace + +`func (o *UpdateSkillRequest) GetNamespace() string` + +GetNamespace returns the Namespace field if non-nil, zero value otherwise. + +### GetNamespaceOk + +`func (o *UpdateSkillRequest) GetNamespaceOk() (*string, bool)` + +GetNamespaceOk returns a tuple with the Namespace field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetNamespace + +`func (o *UpdateSkillRequest) SetNamespace(v string)` + +SetNamespace sets Namespace field to given value. + +### HasNamespace + +`func (o *UpdateSkillRequest) HasNamespace() bool` + +HasNamespace 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/model_application.go b/model_application.go index 0dee5bb..7fc68b4 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.10.0 +API version: 4.12.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 f1450ee..a93eeed 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.10.0 +API version: 4.12.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 11795d8..3f0472f 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.10.0 +API version: 4.12.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 07d8694..4ef10e6 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.10.0 +API version: 4.12.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 7ed481a..3989480 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.10.0 +API version: 4.12.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 dbc7bb9..11b8ba3 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.10.0 +API version: 4.12.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 10bdfb0..f101ad2 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.10.0 +API version: 4.12.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 28aa6f3..6b4eaa4 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.10.0 +API version: 4.12.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 6214efc..cb80a19 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.10.0 +API version: 4.12.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 bf4045d..0427e71 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.10.0 +API version: 4.12.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 c086484..1bea589 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.10.0 +API version: 4.12.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 f7087d3..0457e8e 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.10.0 +API version: 4.12.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 611661a..edc2e03 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.10.0 +API version: 4.12.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 694751f..26a6221 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.10.0 +API version: 4.12.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 6f1220b..e153fca 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.10.0 +API version: 4.12.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_chat_inference_202_response.go b/model_chat_inference_202_response.go index 11fd1da..c0d4b81 100644 --- a/model_chat_inference_202_response.go +++ b/model_chat_inference_202_response.go @@ -3,7 +3,7 @@ QuantCDN API Unified API for QuantCDN Admin and QuantCloud Platform services -API version: 4.10.0 +API version: 4.12.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_chat_inference_request.go b/model_chat_inference_request.go index 07bf42b..d0c6009 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.10.0 +API version: 4.12.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -43,6 +43,8 @@ type ChatInferenceRequest struct { // Top-level convenience alias for toolConfig.allowedTools. Whitelists which tools can be auto-executed. AllowedTools []string `json:"allowedTools,omitempty"` Guardrails *ChatInferenceRequestGuardrails `json:"guardrails,omitempty"` + // Enable 1M context window support regardless of token estimation. Use when sending large payloads (>200K tokens). + LongContext *bool `json:"longContext,omitempty"` AdditionalProperties map[string]interface{} } @@ -62,6 +64,8 @@ func NewChatInferenceRequest(messages []ChatInferenceRequestMessagesInner, model this.MaxTokens = &maxTokens var async bool = false this.Async = &async + var longContext bool = false + this.LongContext = &longContext return &this } @@ -76,6 +80,8 @@ func NewChatInferenceRequestWithDefaults() *ChatInferenceRequest { this.MaxTokens = &maxTokens var async bool = false this.Async = &async + var longContext bool = false + this.LongContext = &longContext return &this } @@ -511,6 +517,38 @@ func (o *ChatInferenceRequest) SetGuardrails(v ChatInferenceRequestGuardrails) { o.Guardrails = &v } +// GetLongContext returns the LongContext field value if set, zero value otherwise. +func (o *ChatInferenceRequest) GetLongContext() bool { + if o == nil || IsNil(o.LongContext) { + var ret bool + return ret + } + return *o.LongContext +} + +// GetLongContextOk returns a tuple with the LongContext field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ChatInferenceRequest) GetLongContextOk() (*bool, bool) { + if o == nil || IsNil(o.LongContext) { + return nil, false + } + return o.LongContext, true +} + +// HasLongContext returns a boolean if a field has been set. +func (o *ChatInferenceRequest) HasLongContext() bool { + if o != nil && !IsNil(o.LongContext) { + return true + } + + return false +} + +// SetLongContext gets a reference to the given bool and assigns it to the LongContext field. +func (o *ChatInferenceRequest) SetLongContext(v bool) { + o.LongContext = &v +} + func (o ChatInferenceRequest) MarshalJSON() ([]byte, error) { toSerialize,err := o.ToMap() if err != nil { @@ -559,6 +597,9 @@ func (o ChatInferenceRequest) ToMap() (map[string]interface{}, error) { if !IsNil(o.Guardrails) { toSerialize["guardrails"] = o.Guardrails } + if !IsNil(o.LongContext) { + toSerialize["longContext"] = o.LongContext + } for key, value := range o.AdditionalProperties { toSerialize[key] = value @@ -617,6 +658,7 @@ func (o *ChatInferenceRequest) UnmarshalJSON(data []byte) (err error) { delete(additionalProperties, "async") delete(additionalProperties, "allowedTools") delete(additionalProperties, "guardrails") + delete(additionalProperties, "longContext") o.AdditionalProperties = additionalProperties } diff --git a/model_chat_inference_request_guardrails.go b/model_chat_inference_request_guardrails.go index 1f40882..9db707e 100644 --- a/model_chat_inference_request_guardrails.go +++ b/model_chat_inference_request_guardrails.go @@ -3,7 +3,7 @@ QuantCDN API Unified API for QuantCDN Admin and QuantCloud Platform services -API version: 4.10.0 +API version: 4.12.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_chat_inference_request_messages_inner.go b/model_chat_inference_request_messages_inner.go index 0257096..ab74ddc 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.10.0 +API version: 4.12.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 080b7c0..b7b001e 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.10.0 +API version: 4.12.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 d729570..05f7ce4 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.10.0 +API version: 4.12.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 058ad70..7364f2c 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.10.0 +API version: 4.12.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 1ffdab1..c2a256e 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.10.0 +API version: 4.12.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 d8e78aa..64833e7 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.10.0 +API version: 4.12.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 a18df7f..da12a62 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.10.0 +API version: 4.12.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 d42e516..965713f 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.10.0 +API version: 4.12.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 9a50347..e25a4b5 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.10.0 +API version: 4.12.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 67a09ed..9f1e326 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.10.0 +API version: 4.12.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 242b108..6df05b3 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.10.0 +API version: 4.12.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 968a093..ecee9ab 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.10.0 +API version: 4.12.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 d3295b2..6dc45fc 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.10.0 +API version: 4.12.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 9525240..598a3f1 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.10.0 +API version: 4.12.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 087c738..9883037 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.10.0 +API version: 4.12.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 9cd471d..5e63198 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.10.0 +API version: 4.12.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 ba55762..ffc3bcd 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.10.0 +API version: 4.12.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 b6017c7..0492b95 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.10.0 +API version: 4.12.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 e6aa4b3..7d0bc99 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.10.0 +API version: 4.12.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -41,6 +41,8 @@ type ChatInferenceStreamRequest struct { // Top-level convenience alias for toolConfig.allowedTools. Whitelists which tools can be auto-executed. AllowedTools []string `json:"allowedTools,omitempty"` Guardrails *ChatInferenceRequestGuardrails `json:"guardrails,omitempty"` + // Enable 1M context window support regardless of token estimation. Use when sending large payloads (>200K tokens). + LongContext *bool `json:"longContext,omitempty"` AdditionalProperties map[string]interface{} } @@ -60,6 +62,8 @@ func NewChatInferenceStreamRequest(messages []ChatInferenceStreamRequestMessages this.MaxTokens = &maxTokens var async bool = false this.Async = &async + var longContext bool = false + this.LongContext = &longContext return &this } @@ -74,6 +78,8 @@ func NewChatInferenceStreamRequestWithDefaults() *ChatInferenceStreamRequest { this.MaxTokens = &maxTokens var async bool = false this.Async = &async + var longContext bool = false + this.LongContext = &longContext return &this } @@ -477,6 +483,38 @@ func (o *ChatInferenceStreamRequest) SetGuardrails(v ChatInferenceRequestGuardra o.Guardrails = &v } +// GetLongContext returns the LongContext field value if set, zero value otherwise. +func (o *ChatInferenceStreamRequest) GetLongContext() bool { + if o == nil || IsNil(o.LongContext) { + var ret bool + return ret + } + return *o.LongContext +} + +// GetLongContextOk returns a tuple with the LongContext field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ChatInferenceStreamRequest) GetLongContextOk() (*bool, bool) { + if o == nil || IsNil(o.LongContext) { + return nil, false + } + return o.LongContext, true +} + +// HasLongContext returns a boolean if a field has been set. +func (o *ChatInferenceStreamRequest) HasLongContext() bool { + if o != nil && !IsNil(o.LongContext) { + return true + } + + return false +} + +// SetLongContext gets a reference to the given bool and assigns it to the LongContext field. +func (o *ChatInferenceStreamRequest) SetLongContext(v bool) { + o.LongContext = &v +} + func (o ChatInferenceStreamRequest) MarshalJSON() ([]byte, error) { toSerialize,err := o.ToMap() if err != nil { @@ -522,6 +560,9 @@ func (o ChatInferenceStreamRequest) ToMap() (map[string]interface{}, error) { if !IsNil(o.Guardrails) { toSerialize["guardrails"] = o.Guardrails } + if !IsNil(o.LongContext) { + toSerialize["longContext"] = o.LongContext + } for key, value := range o.AdditionalProperties { toSerialize[key] = value @@ -579,6 +620,7 @@ func (o *ChatInferenceStreamRequest) UnmarshalJSON(data []byte) (err error) { delete(additionalProperties, "async") delete(additionalProperties, "allowedTools") delete(additionalProperties, "guardrails") + delete(additionalProperties, "longContext") o.AdditionalProperties = additionalProperties } diff --git a/model_chat_inference_stream_request_messages_inner.go b/model_chat_inference_stream_request_messages_inner.go index 090ebe6..9c142e4 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.10.0 +API version: 4.12.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 9479ee0..5ac1ca1 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.10.0 +API version: 4.12.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 f044519..a4aa265 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.10.0 +API version: 4.12.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 1b31755..7ef51db 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.10.0 +API version: 4.12.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 5e02550..2a62458 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.10.0 +API version: 4.12.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_chat_with_ai_agent_202_response.go b/model_chat_with_ai_agent_202_response.go index e3c5668..aabf58c 100644 --- a/model_chat_with_ai_agent_202_response.go +++ b/model_chat_with_ai_agent_202_response.go @@ -3,7 +3,7 @@ QuantCDN API Unified API for QuantCDN Admin and QuantCloud Platform services -API version: 4.10.0 +API version: 4.12.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_chat_with_ai_agent_request.go b/model_chat_with_ai_agent_request.go index c354c27..ab1baba 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.10.0 +API version: 4.12.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_command.go b/model_command.go index 2a69a0e..f9b003a 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.10.0 +API version: 4.12.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_compose.go b/model_compose.go index 0b62aae..ccf2ea0 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.10.0 +API version: 4.12.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_container.go b/model_container.go index a9948f9..8e81523 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.10.0 +API version: 4.12.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 c6af8c0..b773e91 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.10.0 +API version: 4.12.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 6963a18..2cc90c4 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.10.0 +API version: 4.12.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 cc15c83..f67042f 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.10.0 +API version: 4.12.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 881553d..c4e96fa 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.10.0 +API version: 4.12.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 ba5e2c9..bedd445 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.10.0 +API version: 4.12.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 6ce1f5c..3d0d479 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.10.0 +API version: 4.12.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 0161ab4..3289ae5 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.10.0 +API version: 4.12.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 68c74ee..099dee0 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.10.0 +API version: 4.12.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 7f4aafb..489f48c 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.10.0 +API version: 4.12.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_create_ai_agent_201_response.go b/model_create_ai_agent_201_response.go index 7605336..efa7027 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.10.0 +API version: 4.12.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 0bef32d..8cc2772 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.10.0 +API version: 4.12.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 bda3ec4..3f761ce 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.10.0 +API version: 4.12.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 301be7f..976e989 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.10.0 +API version: 4.12.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 5e592e9..4fda711 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.10.0 +API version: 4.12.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 6e3dffe..40c72cd 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.10.0 +API version: 4.12.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 37e9691..1e17325 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.10.0 +API version: 4.12.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 eb85911..4ed9774 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.10.0 +API version: 4.12.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 a7871da..9a580a5 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.10.0 +API version: 4.12.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 f19c550..1d67d3e 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.10.0 +API version: 4.12.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 6213fb6..b912192 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.10.0 +API version: 4.12.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 642a462..4d5f24e 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.10.0 +API version: 4.12.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 e7dcef1..42b6b3f 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.10.0 +API version: 4.12.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 a52e9e3..aac39b8 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.10.0 +API version: 4.12.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 8d0d60c..c821498 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.10.0 +API version: 4.12.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 61399df..d0d427e 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.10.0 +API version: 4.12.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 ef98fad..5e2966c 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.10.0 +API version: 4.12.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 1b41c14..6d1fa1b 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.10.0 +API version: 4.12.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 04a1e90..ad3b7c7 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.10.0 +API version: 4.12.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_create_orchestration_request.go b/model_create_orchestration_request.go index a964779..92ab2a7 100644 --- a/model_create_orchestration_request.go +++ b/model_create_orchestration_request.go @@ -3,7 +3,7 @@ QuantCDN API Unified API for QuantCDN Admin and QuantCloud Platform services -API version: 4.10.0 +API version: 4.12.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -38,6 +38,8 @@ type CreateOrchestrationRequest struct { StopCondition *CreateOrchestrationRequestStopCondition `json:"stopCondition,omitempty"` // Skill IDs to assign AssignedSkills []string `json:"assignedSkills,omitempty"` + // Optional context merged into each item before processing (e.g. shared credentials or endpoints) + Context map[string]interface{} `json:"context,omitempty"` // Whether to start immediately AutoStart *bool `json:"autoStart,omitempty"` AdditionalProperties map[string]interface{} @@ -420,6 +422,39 @@ func (o *CreateOrchestrationRequest) SetAssignedSkills(v []string) { o.AssignedSkills = v } +// GetContext returns the Context field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *CreateOrchestrationRequest) GetContext() map[string]interface{} { + if o == nil { + var ret map[string]interface{} + return ret + } + return o.Context +} + +// GetContextOk returns a tuple with the Context field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *CreateOrchestrationRequest) GetContextOk() (map[string]interface{}, bool) { + if o == nil || IsNil(o.Context) { + return map[string]interface{}{}, false + } + return o.Context, true +} + +// HasContext returns a boolean if a field has been set. +func (o *CreateOrchestrationRequest) HasContext() bool { + if o != nil && !IsNil(o.Context) { + return true + } + + return false +} + +// SetContext gets a reference to the given map[string]interface{} and assigns it to the Context field. +func (o *CreateOrchestrationRequest) SetContext(v map[string]interface{}) { + o.Context = v +} + // GetAutoStart returns the AutoStart field value if set, zero value otherwise. func (o *CreateOrchestrationRequest) GetAutoStart() bool { if o == nil || IsNil(o.AutoStart) { @@ -488,6 +523,9 @@ func (o CreateOrchestrationRequest) ToMap() (map[string]interface{}, error) { if !IsNil(o.AssignedSkills) { toSerialize["assignedSkills"] = o.AssignedSkills } + if o.Context != nil { + toSerialize["context"] = o.Context + } if !IsNil(o.AutoStart) { toSerialize["autoStart"] = o.AutoStart } @@ -545,6 +583,7 @@ func (o *CreateOrchestrationRequest) UnmarshalJSON(data []byte) (err error) { delete(additionalProperties, "concurrency") delete(additionalProperties, "stopCondition") delete(additionalProperties, "assignedSkills") + delete(additionalProperties, "context") delete(additionalProperties, "autoStart") o.AdditionalProperties = additionalProperties } diff --git a/model_create_orchestration_request_input_source.go b/model_create_orchestration_request_input_source.go index 1c69633..9b9dd30 100644 --- a/model_create_orchestration_request_input_source.go +++ b/model_create_orchestration_request_input_source.go @@ -3,7 +3,7 @@ QuantCDN API Unified API for QuantCDN Admin and QuantCloud Platform services -API version: 4.10.0 +API version: 4.12.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_create_orchestration_request_stop_condition.go b/model_create_orchestration_request_stop_condition.go index fb1cc5e..19d4ae8 100644 --- a/model_create_orchestration_request_stop_condition.go +++ b/model_create_orchestration_request_stop_condition.go @@ -3,7 +3,7 @@ QuantCDN API Unified API for QuantCDN Admin and QuantCloud Platform services -API version: 4.10.0 +API version: 4.12.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_create_skill_201_response.go b/model_create_skill_201_response.go new file mode 100644 index 0000000..73d94d2 --- /dev/null +++ b/model_create_skill_201_response.go @@ -0,0 +1,229 @@ +/* +QuantCDN API + +Unified API for QuantCDN Admin and QuantCloud Platform services + +API version: 4.12.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package quantadmingo + +import ( + "encoding/json" +) + +// checks if the CreateSkill201Response type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &CreateSkill201Response{} + +// CreateSkill201Response struct for CreateSkill201Response +type CreateSkill201Response struct { + Success *bool `json:"success,omitempty"` + Skill map[string]interface{} `json:"skill,omitempty"` + Message *string `json:"message,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _CreateSkill201Response CreateSkill201Response + +// NewCreateSkill201Response instantiates a new CreateSkill201Response 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 NewCreateSkill201Response() *CreateSkill201Response { + this := CreateSkill201Response{} + return &this +} + +// NewCreateSkill201ResponseWithDefaults instantiates a new CreateSkill201Response 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 NewCreateSkill201ResponseWithDefaults() *CreateSkill201Response { + this := CreateSkill201Response{} + return &this +} + +// GetSuccess returns the Success field value if set, zero value otherwise. +func (o *CreateSkill201Response) 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 *CreateSkill201Response) 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 *CreateSkill201Response) 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 *CreateSkill201Response) SetSuccess(v bool) { + o.Success = &v +} + +// GetSkill returns the Skill field value if set, zero value otherwise. +func (o *CreateSkill201Response) GetSkill() map[string]interface{} { + if o == nil || IsNil(o.Skill) { + var ret map[string]interface{} + return ret + } + return o.Skill +} + +// GetSkillOk returns a tuple with the Skill field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CreateSkill201Response) GetSkillOk() (map[string]interface{}, bool) { + if o == nil || IsNil(o.Skill) { + return map[string]interface{}{}, false + } + return o.Skill, true +} + +// HasSkill returns a boolean if a field has been set. +func (o *CreateSkill201Response) HasSkill() bool { + if o != nil && !IsNil(o.Skill) { + return true + } + + return false +} + +// SetSkill gets a reference to the given map[string]interface{} and assigns it to the Skill field. +func (o *CreateSkill201Response) SetSkill(v map[string]interface{}) { + o.Skill = v +} + +// GetMessage returns the Message field value if set, zero value otherwise. +func (o *CreateSkill201Response) 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 *CreateSkill201Response) 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 *CreateSkill201Response) 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 *CreateSkill201Response) SetMessage(v string) { + o.Message = &v +} + +func (o CreateSkill201Response) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o CreateSkill201Response) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Success) { + toSerialize["success"] = o.Success + } + if !IsNil(o.Skill) { + toSerialize["skill"] = o.Skill + } + if !IsNil(o.Message) { + toSerialize["message"] = o.Message + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *CreateSkill201Response) UnmarshalJSON(data []byte) (err error) { + varCreateSkill201Response := _CreateSkill201Response{} + + err = json.Unmarshal(data, &varCreateSkill201Response) + + if err != nil { + return err + } + + *o = CreateSkill201Response(varCreateSkill201Response) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "success") + delete(additionalProperties, "skill") + delete(additionalProperties, "message") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableCreateSkill201Response struct { + value *CreateSkill201Response + isSet bool +} + +func (v NullableCreateSkill201Response) Get() *CreateSkill201Response { + return v.value +} + +func (v *NullableCreateSkill201Response) Set(val *CreateSkill201Response) { + v.value = val + v.isSet = true +} + +func (v NullableCreateSkill201Response) IsSet() bool { + return v.isSet +} + +func (v *NullableCreateSkill201Response) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableCreateSkill201Response(val *CreateSkill201Response) *NullableCreateSkill201Response { + return &NullableCreateSkill201Response{value: val, isSet: true} +} + +func (v NullableCreateSkill201Response) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableCreateSkill201Response) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_create_skill_request.go b/model_create_skill_request.go new file mode 100644 index 0000000..98ca82d --- /dev/null +++ b/model_create_skill_request.go @@ -0,0 +1,522 @@ +/* +QuantCDN API + +Unified API for QuantCDN Admin and QuantCloud Platform services + +API version: 4.12.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package quantadmingo + +import ( + "encoding/json" + "fmt" +) + +// checks if the CreateSkillRequest type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &CreateSkillRequest{} + +// CreateSkillRequest struct for CreateSkillRequest +type CreateSkillRequest struct { + Name string `json:"name"` + Description *string `json:"description,omitempty"` + Content string `json:"content"` + TriggerCondition string `json:"triggerCondition"` + Tags []string `json:"tags,omitempty"` + RequiredTools []string `json:"requiredTools,omitempty"` + Namespace *string `json:"namespace,omitempty"` + Files map[string]interface{} `json:"files,omitempty"` + DisableModelInvocation *bool `json:"disableModelInvocation,omitempty"` + AllowedTools []string `json:"allowedTools,omitempty"` + InstalledBy *string `json:"installedBy,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _CreateSkillRequest CreateSkillRequest + +// NewCreateSkillRequest instantiates a new CreateSkillRequest 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 NewCreateSkillRequest(name string, content string, triggerCondition string) *CreateSkillRequest { + this := CreateSkillRequest{} + this.Name = name + this.Content = content + this.TriggerCondition = triggerCondition + return &this +} + +// NewCreateSkillRequestWithDefaults instantiates a new CreateSkillRequest 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 NewCreateSkillRequestWithDefaults() *CreateSkillRequest { + this := CreateSkillRequest{} + return &this +} + +// GetName returns the Name field value +func (o *CreateSkillRequest) GetName() string { + if o == nil { + var ret string + return ret + } + + return o.Name +} + +// GetNameOk returns a tuple with the Name field value +// and a boolean to check if the value has been set. +func (o *CreateSkillRequest) GetNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Name, true +} + +// SetName sets field value +func (o *CreateSkillRequest) SetName(v string) { + o.Name = v +} + +// GetDescription returns the Description field value if set, zero value otherwise. +func (o *CreateSkillRequest) 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 *CreateSkillRequest) 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 *CreateSkillRequest) 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 *CreateSkillRequest) SetDescription(v string) { + o.Description = &v +} + +// GetContent returns the Content field value +func (o *CreateSkillRequest) GetContent() string { + if o == nil { + var ret string + return ret + } + + return o.Content +} + +// GetContentOk returns a tuple with the Content field value +// and a boolean to check if the value has been set. +func (o *CreateSkillRequest) GetContentOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Content, true +} + +// SetContent sets field value +func (o *CreateSkillRequest) SetContent(v string) { + o.Content = v +} + +// GetTriggerCondition returns the TriggerCondition field value +func (o *CreateSkillRequest) GetTriggerCondition() string { + if o == nil { + var ret string + return ret + } + + return o.TriggerCondition +} + +// GetTriggerConditionOk returns a tuple with the TriggerCondition field value +// and a boolean to check if the value has been set. +func (o *CreateSkillRequest) GetTriggerConditionOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.TriggerCondition, true +} + +// SetTriggerCondition sets field value +func (o *CreateSkillRequest) SetTriggerCondition(v string) { + o.TriggerCondition = v +} + +// GetTags returns the Tags field value if set, zero value otherwise. +func (o *CreateSkillRequest) GetTags() []string { + if o == nil || IsNil(o.Tags) { + var ret []string + return ret + } + return o.Tags +} + +// GetTagsOk returns a tuple with the Tags field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CreateSkillRequest) GetTagsOk() ([]string, bool) { + if o == nil || IsNil(o.Tags) { + return nil, false + } + return o.Tags, true +} + +// HasTags returns a boolean if a field has been set. +func (o *CreateSkillRequest) HasTags() bool { + if o != nil && !IsNil(o.Tags) { + return true + } + + return false +} + +// SetTags gets a reference to the given []string and assigns it to the Tags field. +func (o *CreateSkillRequest) SetTags(v []string) { + o.Tags = v +} + +// GetRequiredTools returns the RequiredTools field value if set, zero value otherwise. +func (o *CreateSkillRequest) GetRequiredTools() []string { + if o == nil || IsNil(o.RequiredTools) { + var ret []string + return ret + } + return o.RequiredTools +} + +// GetRequiredToolsOk returns a tuple with the RequiredTools field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CreateSkillRequest) GetRequiredToolsOk() ([]string, bool) { + if o == nil || IsNil(o.RequiredTools) { + return nil, false + } + return o.RequiredTools, true +} + +// HasRequiredTools returns a boolean if a field has been set. +func (o *CreateSkillRequest) HasRequiredTools() bool { + if o != nil && !IsNil(o.RequiredTools) { + return true + } + + return false +} + +// SetRequiredTools gets a reference to the given []string and assigns it to the RequiredTools field. +func (o *CreateSkillRequest) SetRequiredTools(v []string) { + o.RequiredTools = v +} + +// GetNamespace returns the Namespace field value if set, zero value otherwise. +func (o *CreateSkillRequest) GetNamespace() string { + if o == nil || IsNil(o.Namespace) { + var ret string + return ret + } + return *o.Namespace +} + +// GetNamespaceOk returns a tuple with the Namespace field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CreateSkillRequest) GetNamespaceOk() (*string, bool) { + if o == nil || IsNil(o.Namespace) { + return nil, false + } + return o.Namespace, true +} + +// HasNamespace returns a boolean if a field has been set. +func (o *CreateSkillRequest) HasNamespace() bool { + if o != nil && !IsNil(o.Namespace) { + return true + } + + return false +} + +// SetNamespace gets a reference to the given string and assigns it to the Namespace field. +func (o *CreateSkillRequest) SetNamespace(v string) { + o.Namespace = &v +} + +// GetFiles returns the Files field value if set, zero value otherwise. +func (o *CreateSkillRequest) GetFiles() map[string]interface{} { + if o == nil || IsNil(o.Files) { + var ret map[string]interface{} + 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 *CreateSkillRequest) GetFilesOk() (map[string]interface{}, bool) { + if o == nil || IsNil(o.Files) { + return map[string]interface{}{}, false + } + return o.Files, true +} + +// HasFiles returns a boolean if a field has been set. +func (o *CreateSkillRequest) HasFiles() bool { + if o != nil && !IsNil(o.Files) { + return true + } + + return false +} + +// SetFiles gets a reference to the given map[string]interface{} and assigns it to the Files field. +func (o *CreateSkillRequest) SetFiles(v map[string]interface{}) { + o.Files = v +} + +// GetDisableModelInvocation returns the DisableModelInvocation field value if set, zero value otherwise. +func (o *CreateSkillRequest) GetDisableModelInvocation() bool { + if o == nil || IsNil(o.DisableModelInvocation) { + var ret bool + return ret + } + return *o.DisableModelInvocation +} + +// GetDisableModelInvocationOk returns a tuple with the DisableModelInvocation field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CreateSkillRequest) GetDisableModelInvocationOk() (*bool, bool) { + if o == nil || IsNil(o.DisableModelInvocation) { + return nil, false + } + return o.DisableModelInvocation, true +} + +// HasDisableModelInvocation returns a boolean if a field has been set. +func (o *CreateSkillRequest) HasDisableModelInvocation() bool { + if o != nil && !IsNil(o.DisableModelInvocation) { + return true + } + + return false +} + +// SetDisableModelInvocation gets a reference to the given bool and assigns it to the DisableModelInvocation field. +func (o *CreateSkillRequest) SetDisableModelInvocation(v bool) { + o.DisableModelInvocation = &v +} + +// GetAllowedTools returns the AllowedTools field value if set, zero value otherwise. +func (o *CreateSkillRequest) GetAllowedTools() []string { + if o == nil || IsNil(o.AllowedTools) { + var ret []string + return ret + } + return o.AllowedTools +} + +// GetAllowedToolsOk returns a tuple with the AllowedTools field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CreateSkillRequest) GetAllowedToolsOk() ([]string, bool) { + if o == nil || IsNil(o.AllowedTools) { + return nil, false + } + return o.AllowedTools, true +} + +// HasAllowedTools returns a boolean if a field has been set. +func (o *CreateSkillRequest) HasAllowedTools() bool { + if o != nil && !IsNil(o.AllowedTools) { + return true + } + + return false +} + +// SetAllowedTools gets a reference to the given []string and assigns it to the AllowedTools field. +func (o *CreateSkillRequest) SetAllowedTools(v []string) { + o.AllowedTools = v +} + +// GetInstalledBy returns the InstalledBy field value if set, zero value otherwise. +func (o *CreateSkillRequest) GetInstalledBy() string { + if o == nil || IsNil(o.InstalledBy) { + var ret string + return ret + } + return *o.InstalledBy +} + +// GetInstalledByOk returns a tuple with the InstalledBy field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CreateSkillRequest) GetInstalledByOk() (*string, bool) { + if o == nil || IsNil(o.InstalledBy) { + return nil, false + } + return o.InstalledBy, true +} + +// HasInstalledBy returns a boolean if a field has been set. +func (o *CreateSkillRequest) HasInstalledBy() bool { + if o != nil && !IsNil(o.InstalledBy) { + return true + } + + return false +} + +// SetInstalledBy gets a reference to the given string and assigns it to the InstalledBy field. +func (o *CreateSkillRequest) SetInstalledBy(v string) { + o.InstalledBy = &v +} + +func (o CreateSkillRequest) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o CreateSkillRequest) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["name"] = o.Name + if !IsNil(o.Description) { + toSerialize["description"] = o.Description + } + toSerialize["content"] = o.Content + toSerialize["triggerCondition"] = o.TriggerCondition + if !IsNil(o.Tags) { + toSerialize["tags"] = o.Tags + } + if !IsNil(o.RequiredTools) { + toSerialize["requiredTools"] = o.RequiredTools + } + if !IsNil(o.Namespace) { + toSerialize["namespace"] = o.Namespace + } + if !IsNil(o.Files) { + toSerialize["files"] = o.Files + } + if !IsNil(o.DisableModelInvocation) { + toSerialize["disableModelInvocation"] = o.DisableModelInvocation + } + if !IsNil(o.AllowedTools) { + toSerialize["allowedTools"] = o.AllowedTools + } + if !IsNil(o.InstalledBy) { + toSerialize["installedBy"] = o.InstalledBy + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *CreateSkillRequest) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "name", + "content", + "triggerCondition", + } + + 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) + } + } + + varCreateSkillRequest := _CreateSkillRequest{} + + err = json.Unmarshal(data, &varCreateSkillRequest) + + if err != nil { + return err + } + + *o = CreateSkillRequest(varCreateSkillRequest) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "name") + delete(additionalProperties, "description") + delete(additionalProperties, "content") + delete(additionalProperties, "triggerCondition") + delete(additionalProperties, "tags") + delete(additionalProperties, "requiredTools") + delete(additionalProperties, "namespace") + delete(additionalProperties, "files") + delete(additionalProperties, "disableModelInvocation") + delete(additionalProperties, "allowedTools") + delete(additionalProperties, "installedBy") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableCreateSkillRequest struct { + value *CreateSkillRequest + isSet bool +} + +func (v NullableCreateSkillRequest) Get() *CreateSkillRequest { + return v.value +} + +func (v *NullableCreateSkillRequest) Set(val *CreateSkillRequest) { + v.value = val + v.isSet = true +} + +func (v NullableCreateSkillRequest) IsSet() bool { + return v.isSet +} + +func (v *NullableCreateSkillRequest) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableCreateSkillRequest(val *CreateSkillRequest) *NullableCreateSkillRequest { + return &NullableCreateSkillRequest{value: val, isSet: true} +} + +func (v NullableCreateSkillRequest) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableCreateSkillRequest) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_create_task_201_response.go b/model_create_task_201_response.go index 4af49fb..9eca907 100644 --- a/model_create_task_201_response.go +++ b/model_create_task_201_response.go @@ -3,7 +3,7 @@ QuantCDN API Unified API for QuantCDN Admin and QuantCloud Platform services -API version: 4.10.0 +API version: 4.12.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_create_task_request.go b/model_create_task_request.go index ed87398..987c954 100644 --- a/model_create_task_request.go +++ b/model_create_task_request.go @@ -3,7 +3,7 @@ QuantCDN API Unified API for QuantCDN Admin and QuantCloud Platform services -API version: 4.10.0 +API version: 4.12.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_create_vector_collection_201_response.go b/model_create_vector_collection_201_response.go index a260b13..6c5fdbc 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.10.0 +API version: 4.12.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 616b520..fc46b56 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.10.0 +API version: 4.12.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 0d90f8c..eefa106 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.10.0 +API version: 4.12.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 3a932c9..2d6f4f5 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.10.0 +API version: 4.12.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_cron.go b/model_cron.go index cfb5bdc..0f1706d 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.10.0 +API version: 4.12.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 5ceed16..380ffe2 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.10.0 +API version: 4.12.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 87b4e77..00851f3 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.10.0 +API version: 4.12.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 d51610d..c623244 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.10.0 +API version: 4.12.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 6cfced1..65d7b9c 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.10.0 +API version: 4.12.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 fb24957..7ef1295 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.10.0 +API version: 4.12.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_delete_file_200_response.go b/model_delete_file_200_response.go index d556e19..689e7b6 100644 --- a/model_delete_file_200_response.go +++ b/model_delete_file_200_response.go @@ -3,7 +3,7 @@ QuantCDN API Unified API for QuantCDN Admin and QuantCloud Platform services -API version: 4.10.0 +API version: 4.12.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_delete_vector_collection_200_response.go b/model_delete_skill_200_response.go similarity index 52% rename from model_delete_vector_collection_200_response.go rename to model_delete_skill_200_response.go index 0f086db..2617135 100644 --- a/model_delete_vector_collection_200_response.go +++ b/model_delete_skill_200_response.go @@ -3,7 +3,7 @@ QuantCDN API Unified API for QuantCDN Admin and QuantCloud Platform services -API version: 4.10.0 +API version: 4.12.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -14,37 +14,37 @@ import ( "encoding/json" ) -// checks if the DeleteVectorCollection200Response type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &DeleteVectorCollection200Response{} +// checks if the DeleteSkill200Response type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &DeleteSkill200Response{} -// DeleteVectorCollection200Response struct for DeleteVectorCollection200Response -type DeleteVectorCollection200Response struct { +// DeleteSkill200Response struct for DeleteSkill200Response +type DeleteSkill200Response struct { Success *bool `json:"success,omitempty"` Message *string `json:"message,omitempty"` AdditionalProperties map[string]interface{} } -type _DeleteVectorCollection200Response DeleteVectorCollection200Response +type _DeleteSkill200Response DeleteSkill200Response -// NewDeleteVectorCollection200Response instantiates a new DeleteVectorCollection200Response object +// NewDeleteSkill200Response instantiates a new DeleteSkill200Response 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 NewDeleteVectorCollection200Response() *DeleteVectorCollection200Response { - this := DeleteVectorCollection200Response{} +func NewDeleteSkill200Response() *DeleteSkill200Response { + this := DeleteSkill200Response{} return &this } -// NewDeleteVectorCollection200ResponseWithDefaults instantiates a new DeleteVectorCollection200Response object +// NewDeleteSkill200ResponseWithDefaults instantiates a new DeleteSkill200Response 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 NewDeleteVectorCollection200ResponseWithDefaults() *DeleteVectorCollection200Response { - this := DeleteVectorCollection200Response{} +func NewDeleteSkill200ResponseWithDefaults() *DeleteSkill200Response { + this := DeleteSkill200Response{} return &this } // GetSuccess returns the Success field value if set, zero value otherwise. -func (o *DeleteVectorCollection200Response) GetSuccess() bool { +func (o *DeleteSkill200Response) GetSuccess() bool { if o == nil || IsNil(o.Success) { var ret bool return ret @@ -54,7 +54,7 @@ func (o *DeleteVectorCollection200Response) GetSuccess() bool { // 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 *DeleteVectorCollection200Response) GetSuccessOk() (*bool, bool) { +func (o *DeleteSkill200Response) GetSuccessOk() (*bool, bool) { if o == nil || IsNil(o.Success) { return nil, false } @@ -62,7 +62,7 @@ func (o *DeleteVectorCollection200Response) GetSuccessOk() (*bool, bool) { } // HasSuccess returns a boolean if a field has been set. -func (o *DeleteVectorCollection200Response) HasSuccess() bool { +func (o *DeleteSkill200Response) HasSuccess() bool { if o != nil && !IsNil(o.Success) { return true } @@ -71,12 +71,12 @@ func (o *DeleteVectorCollection200Response) HasSuccess() bool { } // SetSuccess gets a reference to the given bool and assigns it to the Success field. -func (o *DeleteVectorCollection200Response) SetSuccess(v bool) { +func (o *DeleteSkill200Response) SetSuccess(v bool) { o.Success = &v } // GetMessage returns the Message field value if set, zero value otherwise. -func (o *DeleteVectorCollection200Response) GetMessage() string { +func (o *DeleteSkill200Response) GetMessage() string { if o == nil || IsNil(o.Message) { var ret string return ret @@ -86,7 +86,7 @@ func (o *DeleteVectorCollection200Response) GetMessage() string { // 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 *DeleteVectorCollection200Response) GetMessageOk() (*string, bool) { +func (o *DeleteSkill200Response) GetMessageOk() (*string, bool) { if o == nil || IsNil(o.Message) { return nil, false } @@ -94,7 +94,7 @@ func (o *DeleteVectorCollection200Response) GetMessageOk() (*string, bool) { } // HasMessage returns a boolean if a field has been set. -func (o *DeleteVectorCollection200Response) HasMessage() bool { +func (o *DeleteSkill200Response) HasMessage() bool { if o != nil && !IsNil(o.Message) { return true } @@ -103,11 +103,11 @@ func (o *DeleteVectorCollection200Response) HasMessage() bool { } // SetMessage gets a reference to the given string and assigns it to the Message field. -func (o *DeleteVectorCollection200Response) SetMessage(v string) { +func (o *DeleteSkill200Response) SetMessage(v string) { o.Message = &v } -func (o DeleteVectorCollection200Response) MarshalJSON() ([]byte, error) { +func (o DeleteSkill200Response) MarshalJSON() ([]byte, error) { toSerialize,err := o.ToMap() if err != nil { return []byte{}, err @@ -115,7 +115,7 @@ func (o DeleteVectorCollection200Response) MarshalJSON() ([]byte, error) { return json.Marshal(toSerialize) } -func (o DeleteVectorCollection200Response) ToMap() (map[string]interface{}, error) { +func (o DeleteSkill200Response) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} if !IsNil(o.Success) { toSerialize["success"] = o.Success @@ -131,16 +131,16 @@ func (o DeleteVectorCollection200Response) ToMap() (map[string]interface{}, erro return toSerialize, nil } -func (o *DeleteVectorCollection200Response) UnmarshalJSON(data []byte) (err error) { - varDeleteVectorCollection200Response := _DeleteVectorCollection200Response{} +func (o *DeleteSkill200Response) UnmarshalJSON(data []byte) (err error) { + varDeleteSkill200Response := _DeleteSkill200Response{} - err = json.Unmarshal(data, &varDeleteVectorCollection200Response) + err = json.Unmarshal(data, &varDeleteSkill200Response) if err != nil { return err } - *o = DeleteVectorCollection200Response(varDeleteVectorCollection200Response) + *o = DeleteSkill200Response(varDeleteSkill200Response) additionalProperties := make(map[string]interface{}) @@ -153,38 +153,38 @@ func (o *DeleteVectorCollection200Response) UnmarshalJSON(data []byte) (err erro return err } -type NullableDeleteVectorCollection200Response struct { - value *DeleteVectorCollection200Response +type NullableDeleteSkill200Response struct { + value *DeleteSkill200Response isSet bool } -func (v NullableDeleteVectorCollection200Response) Get() *DeleteVectorCollection200Response { +func (v NullableDeleteSkill200Response) Get() *DeleteSkill200Response { return v.value } -func (v *NullableDeleteVectorCollection200Response) Set(val *DeleteVectorCollection200Response) { +func (v *NullableDeleteSkill200Response) Set(val *DeleteSkill200Response) { v.value = val v.isSet = true } -func (v NullableDeleteVectorCollection200Response) IsSet() bool { +func (v NullableDeleteSkill200Response) IsSet() bool { return v.isSet } -func (v *NullableDeleteVectorCollection200Response) Unset() { +func (v *NullableDeleteSkill200Response) Unset() { v.value = nil v.isSet = false } -func NewNullableDeleteVectorCollection200Response(val *DeleteVectorCollection200Response) *NullableDeleteVectorCollection200Response { - return &NullableDeleteVectorCollection200Response{value: val, isSet: true} +func NewNullableDeleteSkill200Response(val *DeleteSkill200Response) *NullableDeleteSkill200Response { + return &NullableDeleteSkill200Response{value: val, isSet: true} } -func (v NullableDeleteVectorCollection200Response) MarshalJSON() ([]byte, error) { +func (v NullableDeleteSkill200Response) MarshalJSON() ([]byte, error) { return json.Marshal(v.value) } -func (v *NullableDeleteVectorCollection200Response) UnmarshalJSON(src []byte) error { +func (v *NullableDeleteSkill200Response) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } diff --git a/model_delete_skill_collection_200_response.go b/model_delete_skill_collection_200_response.go new file mode 100644 index 0000000..3f270f4 --- /dev/null +++ b/model_delete_skill_collection_200_response.go @@ -0,0 +1,192 @@ +/* +QuantCDN API + +Unified API for QuantCDN Admin and QuantCloud Platform services + +API version: 4.12.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package quantadmingo + +import ( + "encoding/json" +) + +// checks if the DeleteSkillCollection200Response type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &DeleteSkillCollection200Response{} + +// DeleteSkillCollection200Response struct for DeleteSkillCollection200Response +type DeleteSkillCollection200Response struct { + Success *bool `json:"success,omitempty"` + Message *string `json:"message,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _DeleteSkillCollection200Response DeleteSkillCollection200Response + +// NewDeleteSkillCollection200Response instantiates a new DeleteSkillCollection200Response 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 NewDeleteSkillCollection200Response() *DeleteSkillCollection200Response { + this := DeleteSkillCollection200Response{} + return &this +} + +// NewDeleteSkillCollection200ResponseWithDefaults instantiates a new DeleteSkillCollection200Response 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 NewDeleteSkillCollection200ResponseWithDefaults() *DeleteSkillCollection200Response { + this := DeleteSkillCollection200Response{} + return &this +} + +// GetSuccess returns the Success field value if set, zero value otherwise. +func (o *DeleteSkillCollection200Response) 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 *DeleteSkillCollection200Response) 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 *DeleteSkillCollection200Response) 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 *DeleteSkillCollection200Response) SetSuccess(v bool) { + o.Success = &v +} + +// GetMessage returns the Message field value if set, zero value otherwise. +func (o *DeleteSkillCollection200Response) 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 *DeleteSkillCollection200Response) 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 *DeleteSkillCollection200Response) 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 *DeleteSkillCollection200Response) SetMessage(v string) { + o.Message = &v +} + +func (o DeleteSkillCollection200Response) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o DeleteSkillCollection200Response) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Success) { + toSerialize["success"] = o.Success + } + if !IsNil(o.Message) { + toSerialize["message"] = o.Message + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *DeleteSkillCollection200Response) UnmarshalJSON(data []byte) (err error) { + varDeleteSkillCollection200Response := _DeleteSkillCollection200Response{} + + err = json.Unmarshal(data, &varDeleteSkillCollection200Response) + + if err != nil { + return err + } + + *o = DeleteSkillCollection200Response(varDeleteSkillCollection200Response) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "success") + delete(additionalProperties, "message") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableDeleteSkillCollection200Response struct { + value *DeleteSkillCollection200Response + isSet bool +} + +func (v NullableDeleteSkillCollection200Response) Get() *DeleteSkillCollection200Response { + return v.value +} + +func (v *NullableDeleteSkillCollection200Response) Set(val *DeleteSkillCollection200Response) { + v.value = val + v.isSet = true +} + +func (v NullableDeleteSkillCollection200Response) IsSet() bool { + return v.isSet +} + +func (v *NullableDeleteSkillCollection200Response) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableDeleteSkillCollection200Response(val *DeleteSkillCollection200Response) *NullableDeleteSkillCollection200Response { + return &NullableDeleteSkillCollection200Response{value: val, isSet: true} +} + +func (v NullableDeleteSkillCollection200Response) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableDeleteSkillCollection200Response) 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 index 8e21e11..95d8d52 100644 --- a/model_delete_task_200_response.go +++ b/model_delete_task_200_response.go @@ -3,7 +3,7 @@ QuantCDN API Unified API for QuantCDN Admin and QuantCloud Platform services -API version: 4.10.0 +API version: 4.12.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_delete_task_409_response.go b/model_delete_task_409_response.go index 0a52d14..0450d29 100644 --- a/model_delete_task_409_response.go +++ b/model_delete_task_409_response.go @@ -3,7 +3,7 @@ QuantCDN API Unified API for QuantCDN Admin and QuantCloud Platform services -API version: 4.10.0 +API version: 4.12.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_delete_vector_documents_200_response.go b/model_delete_vector_documents_200_response.go index 6fc02cc..c4dcf1c 100644 --- a/model_delete_vector_documents_200_response.go +++ b/model_delete_vector_documents_200_response.go @@ -3,7 +3,7 @@ QuantCDN API Unified API for QuantCDN Admin and QuantCloud Platform services -API version: 4.10.0 +API version: 4.12.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_delete_vector_documents_request.go b/model_delete_vector_documents_request.go index e285d6e..605bddb 100644 --- a/model_delete_vector_documents_request.go +++ b/model_delete_vector_documents_request.go @@ -3,7 +3,7 @@ QuantCDN API Unified API for QuantCDN Admin and QuantCloud Platform services -API version: 4.10.0 +API version: 4.12.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_delete_vector_documents_request_metadata.go b/model_delete_vector_documents_request_metadata.go index e0cf104..86590fa 100644 --- a/model_delete_vector_documents_request_metadata.go +++ b/model_delete_vector_documents_request_metadata.go @@ -3,7 +3,7 @@ QuantCDN API Unified API for QuantCDN Admin and QuantCloud Platform services -API version: 4.10.0 +API version: 4.12.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 8b87079..a4050e3 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.10.0 +API version: 4.12.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 c1058eb..e49566a 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.10.0 +API version: 4.12.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 26e1adc..0e014b8 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.10.0 +API version: 4.12.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 3db087b..b83be6f 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.10.0 +API version: 4.12.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 72a59a2..3fe2cd3 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.10.0 +API version: 4.12.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 5c91035..122a787 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.10.0 +API version: 4.12.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_environment.go b/model_environment.go index 795118c..9822e99 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.10.0 +API version: 4.12.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 fc53933..d473338 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.10.0 +API version: 4.12.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 00892e7..ea5f69b 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.10.0 +API version: 4.12.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 674b71d..ac42341 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.10.0 +API version: 4.12.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 3a21b6b..b3f9b33 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.10.0 +API version: 4.12.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 a8a5e38..939f69a 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.10.0 +API version: 4.12.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 09ee761..5302b2b 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.10.0 +API version: 4.12.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 14bd26a..ad30e97 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.10.0 +API version: 4.12.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 b0efb4a..8aee748 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.10.0 +API version: 4.12.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 7982cc3..7c8e7b2 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.10.0 +API version: 4.12.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 63a469e..26eb8ee 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.10.0 +API version: 4.12.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_get_ai_orchestration_status_200_response.go b/model_get_ai_orchestration_status_200_response.go index 8773a6e..1c88254 100644 --- a/model_get_ai_orchestration_status_200_response.go +++ b/model_get_ai_orchestration_status_200_response.go @@ -3,7 +3,7 @@ QuantCDN API Unified API for QuantCDN Admin and QuantCloud Platform services -API version: 4.10.0 +API version: 4.12.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_get_ai_orchestration_status_200_response_tools_inner.go b/model_get_ai_orchestration_status_200_response_tools_inner.go index bbc75b3..fc1acc9 100644 --- a/model_get_ai_orchestration_status_200_response_tools_inner.go +++ b/model_get_ai_orchestration_status_200_response_tools_inner.go @@ -3,7 +3,7 @@ QuantCDN API Unified API for QuantCDN Admin and QuantCloud Platform services -API version: 4.10.0 +API version: 4.12.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_get_ai_orchestration_status_404_response.go b/model_get_ai_orchestration_status_404_response.go index 0a7a763..31959a0 100644 --- a/model_get_ai_orchestration_status_404_response.go +++ b/model_get_ai_orchestration_status_404_response.go @@ -3,7 +3,7 @@ QuantCDN API Unified API for QuantCDN Admin and QuantCloud Platform services -API version: 4.10.0 +API version: 4.12.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_get_ai_session_200_response.go b/model_get_ai_session_200_response.go index 665cd01..1533a88 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.10.0 +API version: 4.12.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 51cd40a..bc59c3a 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.10.0 +API version: 4.12.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 7689700..e3386a6 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.10.0 +API version: 4.12.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 8c4c0ed..db72f85 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.10.0 +API version: 4.12.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 f772b9a..75768ee 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.10.0 +API version: 4.12.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 d7790ff..aacceb4 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.10.0 +API version: 4.12.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_get_dependency_graph_200_response.go b/model_get_dependency_graph_200_response.go index fbbf733..6551d4f 100644 --- a/model_get_dependency_graph_200_response.go +++ b/model_get_dependency_graph_200_response.go @@ -3,7 +3,7 @@ QuantCDN API Unified API for QuantCDN Admin and QuantCloud Platform services -API version: 4.10.0 +API version: 4.12.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_get_durable_execution_status_200_response.go b/model_get_durable_execution_status_200_response.go index e0e4391..7259dcc 100644 --- a/model_get_durable_execution_status_200_response.go +++ b/model_get_durable_execution_status_200_response.go @@ -3,7 +3,7 @@ QuantCDN API Unified API for QuantCDN Admin and QuantCloud Platform services -API version: 4.10.0 +API version: 4.12.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_get_durable_execution_status_200_response_error.go b/model_get_durable_execution_status_200_response_error.go index 05a7a97..3da2ce7 100644 --- a/model_get_durable_execution_status_200_response_error.go +++ b/model_get_durable_execution_status_200_response_error.go @@ -3,7 +3,7 @@ QuantCDN API Unified API for QuantCDN Admin and QuantCloud Platform services -API version: 4.10.0 +API version: 4.12.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_get_durable_execution_status_200_response_pending_tools_inner.go b/model_get_durable_execution_status_200_response_pending_tools_inner.go index ceeff81..d9098a4 100644 --- a/model_get_durable_execution_status_200_response_pending_tools_inner.go +++ b/model_get_durable_execution_status_200_response_pending_tools_inner.go @@ -3,7 +3,7 @@ QuantCDN API Unified API for QuantCDN Admin and QuantCloud Platform services -API version: 4.10.0 +API version: 4.12.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_get_durable_execution_status_200_response_result.go b/model_get_durable_execution_status_200_response_result.go index 8193569..4bf13dc 100644 --- a/model_get_durable_execution_status_200_response_result.go +++ b/model_get_durable_execution_status_200_response_result.go @@ -3,7 +3,7 @@ QuantCDN API Unified API for QuantCDN Admin and QuantCloud Platform services -API version: 4.10.0 +API version: 4.12.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_get_durable_execution_status_200_response_result_response.go b/model_get_durable_execution_status_200_response_result_response.go index ba660d8..e1c655b 100644 --- a/model_get_durable_execution_status_200_response_result_response.go +++ b/model_get_durable_execution_status_200_response_result_response.go @@ -3,7 +3,7 @@ QuantCDN API Unified API for QuantCDN Admin and QuantCloud Platform services -API version: 4.10.0 +API version: 4.12.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_get_durable_execution_status_200_response_result_usage.go b/model_get_durable_execution_status_200_response_result_usage.go index 603de34..c24a479 100644 --- a/model_get_durable_execution_status_200_response_result_usage.go +++ b/model_get_durable_execution_status_200_response_result_usage.go @@ -3,7 +3,7 @@ QuantCDN API Unified API for QuantCDN Admin and QuantCloud Platform services -API version: 4.10.0 +API version: 4.12.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_get_ecr_login_credentials_200_response.go b/model_get_ecr_login_credentials_200_response.go index c3c65df..2e463de 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.10.0 +API version: 4.12.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 525906f..6599015 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.10.0 +API version: 4.12.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 fbc1cab..3f02db4 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.10.0 +API version: 4.12.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_get_file_200_response.go b/model_get_file_200_response.go index 1d3639f..0c1ab92 100644 --- a/model_get_file_200_response.go +++ b/model_get_file_200_response.go @@ -3,7 +3,7 @@ QuantCDN API Unified API for QuantCDN Admin and QuantCloud Platform services -API version: 4.10.0 +API version: 4.12.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_get_skill_200_response.go b/model_get_skill_200_response.go new file mode 100644 index 0000000..1c26f90 --- /dev/null +++ b/model_get_skill_200_response.go @@ -0,0 +1,155 @@ +/* +QuantCDN API + +Unified API for QuantCDN Admin and QuantCloud Platform services + +API version: 4.12.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package quantadmingo + +import ( + "encoding/json" +) + +// checks if the GetSkill200Response type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &GetSkill200Response{} + +// GetSkill200Response struct for GetSkill200Response +type GetSkill200Response struct { + Skill *GetSkill200ResponseSkill `json:"skill,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _GetSkill200Response GetSkill200Response + +// NewGetSkill200Response instantiates a new GetSkill200Response 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 NewGetSkill200Response() *GetSkill200Response { + this := GetSkill200Response{} + return &this +} + +// NewGetSkill200ResponseWithDefaults instantiates a new GetSkill200Response 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 NewGetSkill200ResponseWithDefaults() *GetSkill200Response { + this := GetSkill200Response{} + return &this +} + +// GetSkill returns the Skill field value if set, zero value otherwise. +func (o *GetSkill200Response) GetSkill() GetSkill200ResponseSkill { + if o == nil || IsNil(o.Skill) { + var ret GetSkill200ResponseSkill + return ret + } + return *o.Skill +} + +// GetSkillOk returns a tuple with the Skill field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GetSkill200Response) GetSkillOk() (*GetSkill200ResponseSkill, bool) { + if o == nil || IsNil(o.Skill) { + return nil, false + } + return o.Skill, true +} + +// HasSkill returns a boolean if a field has been set. +func (o *GetSkill200Response) HasSkill() bool { + if o != nil && !IsNil(o.Skill) { + return true + } + + return false +} + +// SetSkill gets a reference to the given GetSkill200ResponseSkill and assigns it to the Skill field. +func (o *GetSkill200Response) SetSkill(v GetSkill200ResponseSkill) { + o.Skill = &v +} + +func (o GetSkill200Response) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o GetSkill200Response) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Skill) { + toSerialize["skill"] = o.Skill + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *GetSkill200Response) UnmarshalJSON(data []byte) (err error) { + varGetSkill200Response := _GetSkill200Response{} + + err = json.Unmarshal(data, &varGetSkill200Response) + + if err != nil { + return err + } + + *o = GetSkill200Response(varGetSkill200Response) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "skill") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableGetSkill200Response struct { + value *GetSkill200Response + isSet bool +} + +func (v NullableGetSkill200Response) Get() *GetSkill200Response { + return v.value +} + +func (v *NullableGetSkill200Response) Set(val *GetSkill200Response) { + v.value = val + v.isSet = true +} + +func (v NullableGetSkill200Response) IsSet() bool { + return v.isSet +} + +func (v *NullableGetSkill200Response) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableGetSkill200Response(val *GetSkill200Response) *NullableGetSkill200Response { + return &NullableGetSkill200Response{value: val, isSet: true} +} + +func (v NullableGetSkill200Response) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableGetSkill200Response) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_get_skill_200_response_skill.go b/model_get_skill_200_response_skill.go new file mode 100644 index 0000000..af3db2e --- /dev/null +++ b/model_get_skill_200_response_skill.go @@ -0,0 +1,637 @@ +/* +QuantCDN API + +Unified API for QuantCDN Admin and QuantCloud Platform services + +API version: 4.12.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package quantadmingo + +import ( + "encoding/json" + "time" +) + +// checks if the GetSkill200ResponseSkill type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &GetSkill200ResponseSkill{} + +// GetSkill200ResponseSkill struct for GetSkill200ResponseSkill +type GetSkill200ResponseSkill struct { + SkillId *string `json:"skillId,omitempty"` + Name *string `json:"name,omitempty"` + Description *string `json:"description,omitempty"` + Content *string `json:"content,omitempty"` + TriggerCondition *string `json:"triggerCondition,omitempty"` + Tags []string `json:"tags,omitempty"` + Source map[string]interface{} `json:"source,omitempty"` + RequiredTools []string `json:"requiredTools,omitempty"` + Files map[string]interface{} `json:"files,omitempty"` + Namespace *string `json:"namespace,omitempty"` + DisableModelInvocation *bool `json:"disableModelInvocation,omitempty"` + AllowedTools []string `json:"allowedTools,omitempty"` + InstalledAt *time.Time `json:"installedAt,omitempty"` + UpdatedAt *time.Time `json:"updatedAt,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _GetSkill200ResponseSkill GetSkill200ResponseSkill + +// NewGetSkill200ResponseSkill instantiates a new GetSkill200ResponseSkill 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 NewGetSkill200ResponseSkill() *GetSkill200ResponseSkill { + this := GetSkill200ResponseSkill{} + return &this +} + +// NewGetSkill200ResponseSkillWithDefaults instantiates a new GetSkill200ResponseSkill 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 NewGetSkill200ResponseSkillWithDefaults() *GetSkill200ResponseSkill { + this := GetSkill200ResponseSkill{} + return &this +} + +// GetSkillId returns the SkillId field value if set, zero value otherwise. +func (o *GetSkill200ResponseSkill) GetSkillId() string { + if o == nil || IsNil(o.SkillId) { + var ret string + return ret + } + return *o.SkillId +} + +// GetSkillIdOk returns a tuple with the SkillId field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GetSkill200ResponseSkill) GetSkillIdOk() (*string, bool) { + if o == nil || IsNil(o.SkillId) { + return nil, false + } + return o.SkillId, true +} + +// HasSkillId returns a boolean if a field has been set. +func (o *GetSkill200ResponseSkill) HasSkillId() bool { + if o != nil && !IsNil(o.SkillId) { + return true + } + + return false +} + +// SetSkillId gets a reference to the given string and assigns it to the SkillId field. +func (o *GetSkill200ResponseSkill) SetSkillId(v string) { + o.SkillId = &v +} + +// GetName returns the Name field value if set, zero value otherwise. +func (o *GetSkill200ResponseSkill) 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 *GetSkill200ResponseSkill) 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 *GetSkill200ResponseSkill) 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 *GetSkill200ResponseSkill) SetName(v string) { + o.Name = &v +} + +// GetDescription returns the Description field value if set, zero value otherwise. +func (o *GetSkill200ResponseSkill) 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 *GetSkill200ResponseSkill) 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 *GetSkill200ResponseSkill) 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 *GetSkill200ResponseSkill) SetDescription(v string) { + o.Description = &v +} + +// GetContent returns the Content field value if set, zero value otherwise. +func (o *GetSkill200ResponseSkill) 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 *GetSkill200ResponseSkill) 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 *GetSkill200ResponseSkill) 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 *GetSkill200ResponseSkill) SetContent(v string) { + o.Content = &v +} + +// GetTriggerCondition returns the TriggerCondition field value if set, zero value otherwise. +func (o *GetSkill200ResponseSkill) GetTriggerCondition() string { + if o == nil || IsNil(o.TriggerCondition) { + var ret string + return ret + } + return *o.TriggerCondition +} + +// GetTriggerConditionOk returns a tuple with the TriggerCondition field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GetSkill200ResponseSkill) GetTriggerConditionOk() (*string, bool) { + if o == nil || IsNil(o.TriggerCondition) { + return nil, false + } + return o.TriggerCondition, true +} + +// HasTriggerCondition returns a boolean if a field has been set. +func (o *GetSkill200ResponseSkill) HasTriggerCondition() bool { + if o != nil && !IsNil(o.TriggerCondition) { + return true + } + + return false +} + +// SetTriggerCondition gets a reference to the given string and assigns it to the TriggerCondition field. +func (o *GetSkill200ResponseSkill) SetTriggerCondition(v string) { + o.TriggerCondition = &v +} + +// GetTags returns the Tags field value if set, zero value otherwise. +func (o *GetSkill200ResponseSkill) GetTags() []string { + if o == nil || IsNil(o.Tags) { + var ret []string + return ret + } + return o.Tags +} + +// GetTagsOk returns a tuple with the Tags field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GetSkill200ResponseSkill) GetTagsOk() ([]string, bool) { + if o == nil || IsNil(o.Tags) { + return nil, false + } + return o.Tags, true +} + +// HasTags returns a boolean if a field has been set. +func (o *GetSkill200ResponseSkill) HasTags() bool { + if o != nil && !IsNil(o.Tags) { + return true + } + + return false +} + +// SetTags gets a reference to the given []string and assigns it to the Tags field. +func (o *GetSkill200ResponseSkill) SetTags(v []string) { + o.Tags = v +} + +// GetSource returns the Source field value if set, zero value otherwise. +func (o *GetSkill200ResponseSkill) GetSource() map[string]interface{} { + if o == nil || IsNil(o.Source) { + var ret map[string]interface{} + return ret + } + return o.Source +} + +// GetSourceOk returns a tuple with the Source field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GetSkill200ResponseSkill) GetSourceOk() (map[string]interface{}, bool) { + if o == nil || IsNil(o.Source) { + return map[string]interface{}{}, false + } + return o.Source, true +} + +// HasSource returns a boolean if a field has been set. +func (o *GetSkill200ResponseSkill) HasSource() bool { + if o != nil && !IsNil(o.Source) { + return true + } + + return false +} + +// SetSource gets a reference to the given map[string]interface{} and assigns it to the Source field. +func (o *GetSkill200ResponseSkill) SetSource(v map[string]interface{}) { + o.Source = v +} + +// GetRequiredTools returns the RequiredTools field value if set, zero value otherwise. +func (o *GetSkill200ResponseSkill) GetRequiredTools() []string { + if o == nil || IsNil(o.RequiredTools) { + var ret []string + return ret + } + return o.RequiredTools +} + +// GetRequiredToolsOk returns a tuple with the RequiredTools field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GetSkill200ResponseSkill) GetRequiredToolsOk() ([]string, bool) { + if o == nil || IsNil(o.RequiredTools) { + return nil, false + } + return o.RequiredTools, true +} + +// HasRequiredTools returns a boolean if a field has been set. +func (o *GetSkill200ResponseSkill) HasRequiredTools() bool { + if o != nil && !IsNil(o.RequiredTools) { + return true + } + + return false +} + +// SetRequiredTools gets a reference to the given []string and assigns it to the RequiredTools field. +func (o *GetSkill200ResponseSkill) SetRequiredTools(v []string) { + o.RequiredTools = v +} + +// GetFiles returns the Files field value if set, zero value otherwise. +func (o *GetSkill200ResponseSkill) GetFiles() map[string]interface{} { + if o == nil || IsNil(o.Files) { + var ret map[string]interface{} + 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 *GetSkill200ResponseSkill) GetFilesOk() (map[string]interface{}, bool) { + if o == nil || IsNil(o.Files) { + return map[string]interface{}{}, false + } + return o.Files, true +} + +// HasFiles returns a boolean if a field has been set. +func (o *GetSkill200ResponseSkill) HasFiles() bool { + if o != nil && !IsNil(o.Files) { + return true + } + + return false +} + +// SetFiles gets a reference to the given map[string]interface{} and assigns it to the Files field. +func (o *GetSkill200ResponseSkill) SetFiles(v map[string]interface{}) { + o.Files = v +} + +// GetNamespace returns the Namespace field value if set, zero value otherwise. +func (o *GetSkill200ResponseSkill) GetNamespace() string { + if o == nil || IsNil(o.Namespace) { + var ret string + return ret + } + return *o.Namespace +} + +// GetNamespaceOk returns a tuple with the Namespace field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GetSkill200ResponseSkill) GetNamespaceOk() (*string, bool) { + if o == nil || IsNil(o.Namespace) { + return nil, false + } + return o.Namespace, true +} + +// HasNamespace returns a boolean if a field has been set. +func (o *GetSkill200ResponseSkill) HasNamespace() bool { + if o != nil && !IsNil(o.Namespace) { + return true + } + + return false +} + +// SetNamespace gets a reference to the given string and assigns it to the Namespace field. +func (o *GetSkill200ResponseSkill) SetNamespace(v string) { + o.Namespace = &v +} + +// GetDisableModelInvocation returns the DisableModelInvocation field value if set, zero value otherwise. +func (o *GetSkill200ResponseSkill) GetDisableModelInvocation() bool { + if o == nil || IsNil(o.DisableModelInvocation) { + var ret bool + return ret + } + return *o.DisableModelInvocation +} + +// GetDisableModelInvocationOk returns a tuple with the DisableModelInvocation field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GetSkill200ResponseSkill) GetDisableModelInvocationOk() (*bool, bool) { + if o == nil || IsNil(o.DisableModelInvocation) { + return nil, false + } + return o.DisableModelInvocation, true +} + +// HasDisableModelInvocation returns a boolean if a field has been set. +func (o *GetSkill200ResponseSkill) HasDisableModelInvocation() bool { + if o != nil && !IsNil(o.DisableModelInvocation) { + return true + } + + return false +} + +// SetDisableModelInvocation gets a reference to the given bool and assigns it to the DisableModelInvocation field. +func (o *GetSkill200ResponseSkill) SetDisableModelInvocation(v bool) { + o.DisableModelInvocation = &v +} + +// GetAllowedTools returns the AllowedTools field value if set, zero value otherwise. +func (o *GetSkill200ResponseSkill) GetAllowedTools() []string { + if o == nil || IsNil(o.AllowedTools) { + var ret []string + return ret + } + return o.AllowedTools +} + +// GetAllowedToolsOk returns a tuple with the AllowedTools field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GetSkill200ResponseSkill) GetAllowedToolsOk() ([]string, bool) { + if o == nil || IsNil(o.AllowedTools) { + return nil, false + } + return o.AllowedTools, true +} + +// HasAllowedTools returns a boolean if a field has been set. +func (o *GetSkill200ResponseSkill) HasAllowedTools() bool { + if o != nil && !IsNil(o.AllowedTools) { + return true + } + + return false +} + +// SetAllowedTools gets a reference to the given []string and assigns it to the AllowedTools field. +func (o *GetSkill200ResponseSkill) SetAllowedTools(v []string) { + o.AllowedTools = v +} + +// GetInstalledAt returns the InstalledAt field value if set, zero value otherwise. +func (o *GetSkill200ResponseSkill) GetInstalledAt() time.Time { + if o == nil || IsNil(o.InstalledAt) { + var ret time.Time + return ret + } + return *o.InstalledAt +} + +// GetInstalledAtOk returns a tuple with the InstalledAt field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GetSkill200ResponseSkill) GetInstalledAtOk() (*time.Time, bool) { + if o == nil || IsNil(o.InstalledAt) { + return nil, false + } + return o.InstalledAt, true +} + +// HasInstalledAt returns a boolean if a field has been set. +func (o *GetSkill200ResponseSkill) HasInstalledAt() bool { + if o != nil && !IsNil(o.InstalledAt) { + return true + } + + return false +} + +// SetInstalledAt gets a reference to the given time.Time and assigns it to the InstalledAt field. +func (o *GetSkill200ResponseSkill) SetInstalledAt(v time.Time) { + o.InstalledAt = &v +} + +// GetUpdatedAt returns the UpdatedAt field value if set, zero value otherwise. +func (o *GetSkill200ResponseSkill) GetUpdatedAt() time.Time { + if o == nil || IsNil(o.UpdatedAt) { + var ret time.Time + 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 *GetSkill200ResponseSkill) GetUpdatedAtOk() (*time.Time, 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 *GetSkill200ResponseSkill) HasUpdatedAt() bool { + if o != nil && !IsNil(o.UpdatedAt) { + return true + } + + return false +} + +// SetUpdatedAt gets a reference to the given time.Time and assigns it to the UpdatedAt field. +func (o *GetSkill200ResponseSkill) SetUpdatedAt(v time.Time) { + o.UpdatedAt = &v +} + +func (o GetSkill200ResponseSkill) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o GetSkill200ResponseSkill) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.SkillId) { + toSerialize["skillId"] = o.SkillId + } + if !IsNil(o.Name) { + toSerialize["name"] = o.Name + } + if !IsNil(o.Description) { + toSerialize["description"] = o.Description + } + if !IsNil(o.Content) { + toSerialize["content"] = o.Content + } + if !IsNil(o.TriggerCondition) { + toSerialize["triggerCondition"] = o.TriggerCondition + } + if !IsNil(o.Tags) { + toSerialize["tags"] = o.Tags + } + if !IsNil(o.Source) { + toSerialize["source"] = o.Source + } + if !IsNil(o.RequiredTools) { + toSerialize["requiredTools"] = o.RequiredTools + } + if !IsNil(o.Files) { + toSerialize["files"] = o.Files + } + if !IsNil(o.Namespace) { + toSerialize["namespace"] = o.Namespace + } + if !IsNil(o.DisableModelInvocation) { + toSerialize["disableModelInvocation"] = o.DisableModelInvocation + } + if !IsNil(o.AllowedTools) { + toSerialize["allowedTools"] = o.AllowedTools + } + if !IsNil(o.InstalledAt) { + toSerialize["installedAt"] = o.InstalledAt + } + if !IsNil(o.UpdatedAt) { + toSerialize["updatedAt"] = o.UpdatedAt + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *GetSkill200ResponseSkill) UnmarshalJSON(data []byte) (err error) { + varGetSkill200ResponseSkill := _GetSkill200ResponseSkill{} + + err = json.Unmarshal(data, &varGetSkill200ResponseSkill) + + if err != nil { + return err + } + + *o = GetSkill200ResponseSkill(varGetSkill200ResponseSkill) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "skillId") + delete(additionalProperties, "name") + delete(additionalProperties, "description") + delete(additionalProperties, "content") + delete(additionalProperties, "triggerCondition") + delete(additionalProperties, "tags") + delete(additionalProperties, "source") + delete(additionalProperties, "requiredTools") + delete(additionalProperties, "files") + delete(additionalProperties, "namespace") + delete(additionalProperties, "disableModelInvocation") + delete(additionalProperties, "allowedTools") + delete(additionalProperties, "installedAt") + delete(additionalProperties, "updatedAt") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableGetSkill200ResponseSkill struct { + value *GetSkill200ResponseSkill + isSet bool +} + +func (v NullableGetSkill200ResponseSkill) Get() *GetSkill200ResponseSkill { + return v.value +} + +func (v *NullableGetSkill200ResponseSkill) Set(val *GetSkill200ResponseSkill) { + v.value = val + v.isSet = true +} + +func (v NullableGetSkill200ResponseSkill) IsSet() bool { + return v.isSet +} + +func (v *NullableGetSkill200ResponseSkill) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableGetSkill200ResponseSkill(val *GetSkill200ResponseSkill) *NullableGetSkill200ResponseSkill { + return &NullableGetSkill200ResponseSkill{value: val, isSet: true} +} + +func (v NullableGetSkill200ResponseSkill) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableGetSkill200ResponseSkill) 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 c1fdabf..0ee1d57 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.10.0 +API version: 4.12.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 756155c..b428b51 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.10.0 +API version: 4.12.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_get_task_200_response.go b/model_get_task_200_response.go index eef7a5e..4573f7e 100644 --- a/model_get_task_200_response.go +++ b/model_get_task_200_response.go @@ -3,7 +3,7 @@ QuantCDN API Unified API for QuantCDN Admin and QuantCloud Platform services -API version: 4.10.0 +API version: 4.12.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_get_vector_collection_200_response.go b/model_get_vector_collection_200_response.go index 3370a09..e3b651a 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.10.0 +API version: 4.12.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 9049f1e..b01a3f9 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.10.0 +API version: 4.12.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 befeb41..e6399b9 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.10.0 +API version: 4.12.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 4405dfd..5b928a1 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.10.0 +API version: 4.12.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 599d701..ac0050b 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.10.0 +API version: 4.12.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 9a5ee2b..da2dd63 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.10.0 +API version: 4.12.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 dfa888c..1bfe967 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.10.0 +API version: 4.12.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 f5e809a..bbf2d3b 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.10.0 +API version: 4.12.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 aea01c1..4327667 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.10.0 +API version: 4.12.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 70b35af..eb1101d 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.10.0 +API version: 4.12.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 6c16920..2f321ba 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.10.0 +API version: 4.12.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_import_skill_201_response.go b/model_import_skill_201_response.go new file mode 100644 index 0000000..cb94d5f --- /dev/null +++ b/model_import_skill_201_response.go @@ -0,0 +1,192 @@ +/* +QuantCDN API + +Unified API for QuantCDN Admin and QuantCloud Platform services + +API version: 4.12.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package quantadmingo + +import ( + "encoding/json" +) + +// checks if the ImportSkill201Response type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &ImportSkill201Response{} + +// ImportSkill201Response struct for ImportSkill201Response +type ImportSkill201Response struct { + Skill map[string]interface{} `json:"skill,omitempty"` + Message *string `json:"message,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _ImportSkill201Response ImportSkill201Response + +// NewImportSkill201Response instantiates a new ImportSkill201Response 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 NewImportSkill201Response() *ImportSkill201Response { + this := ImportSkill201Response{} + return &this +} + +// NewImportSkill201ResponseWithDefaults instantiates a new ImportSkill201Response 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 NewImportSkill201ResponseWithDefaults() *ImportSkill201Response { + this := ImportSkill201Response{} + return &this +} + +// GetSkill returns the Skill field value if set, zero value otherwise. +func (o *ImportSkill201Response) GetSkill() map[string]interface{} { + if o == nil || IsNil(o.Skill) { + var ret map[string]interface{} + return ret + } + return o.Skill +} + +// GetSkillOk returns a tuple with the Skill field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ImportSkill201Response) GetSkillOk() (map[string]interface{}, bool) { + if o == nil || IsNil(o.Skill) { + return map[string]interface{}{}, false + } + return o.Skill, true +} + +// HasSkill returns a boolean if a field has been set. +func (o *ImportSkill201Response) HasSkill() bool { + if o != nil && !IsNil(o.Skill) { + return true + } + + return false +} + +// SetSkill gets a reference to the given map[string]interface{} and assigns it to the Skill field. +func (o *ImportSkill201Response) SetSkill(v map[string]interface{}) { + o.Skill = v +} + +// GetMessage returns the Message field value if set, zero value otherwise. +func (o *ImportSkill201Response) 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 *ImportSkill201Response) 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 *ImportSkill201Response) 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 *ImportSkill201Response) SetMessage(v string) { + o.Message = &v +} + +func (o ImportSkill201Response) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o ImportSkill201Response) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Skill) { + toSerialize["skill"] = o.Skill + } + if !IsNil(o.Message) { + toSerialize["message"] = o.Message + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *ImportSkill201Response) UnmarshalJSON(data []byte) (err error) { + varImportSkill201Response := _ImportSkill201Response{} + + err = json.Unmarshal(data, &varImportSkill201Response) + + if err != nil { + return err + } + + *o = ImportSkill201Response(varImportSkill201Response) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "skill") + delete(additionalProperties, "message") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableImportSkill201Response struct { + value *ImportSkill201Response + isSet bool +} + +func (v NullableImportSkill201Response) Get() *ImportSkill201Response { + return v.value +} + +func (v *NullableImportSkill201Response) Set(val *ImportSkill201Response) { + v.value = val + v.isSet = true +} + +func (v NullableImportSkill201Response) IsSet() bool { + return v.isSet +} + +func (v *NullableImportSkill201Response) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableImportSkill201Response(val *ImportSkill201Response) *NullableImportSkill201Response { + return &NullableImportSkill201Response{value: val, isSet: true} +} + +func (v NullableImportSkill201Response) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableImportSkill201Response) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_import_skill_collection_201_response.go b/model_import_skill_collection_201_response.go new file mode 100644 index 0000000..cd484dc --- /dev/null +++ b/model_import_skill_collection_201_response.go @@ -0,0 +1,303 @@ +/* +QuantCDN API + +Unified API for QuantCDN Admin and QuantCloud Platform services + +API version: 4.12.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package quantadmingo + +import ( + "encoding/json" +) + +// checks if the ImportSkillCollection201Response type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &ImportSkillCollection201Response{} + +// ImportSkillCollection201Response struct for ImportSkillCollection201Response +type ImportSkillCollection201Response struct { + Namespace *string `json:"namespace,omitempty"` + Imported *int32 `json:"imported,omitempty"` + Failed *int32 `json:"failed,omitempty"` + Skills []map[string]interface{} `json:"skills,omitempty"` + Errors []map[string]interface{} `json:"errors,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _ImportSkillCollection201Response ImportSkillCollection201Response + +// NewImportSkillCollection201Response instantiates a new ImportSkillCollection201Response 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 NewImportSkillCollection201Response() *ImportSkillCollection201Response { + this := ImportSkillCollection201Response{} + return &this +} + +// NewImportSkillCollection201ResponseWithDefaults instantiates a new ImportSkillCollection201Response 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 NewImportSkillCollection201ResponseWithDefaults() *ImportSkillCollection201Response { + this := ImportSkillCollection201Response{} + return &this +} + +// GetNamespace returns the Namespace field value if set, zero value otherwise. +func (o *ImportSkillCollection201Response) GetNamespace() string { + if o == nil || IsNil(o.Namespace) { + var ret string + return ret + } + return *o.Namespace +} + +// GetNamespaceOk returns a tuple with the Namespace field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ImportSkillCollection201Response) GetNamespaceOk() (*string, bool) { + if o == nil || IsNil(o.Namespace) { + return nil, false + } + return o.Namespace, true +} + +// HasNamespace returns a boolean if a field has been set. +func (o *ImportSkillCollection201Response) HasNamespace() bool { + if o != nil && !IsNil(o.Namespace) { + return true + } + + return false +} + +// SetNamespace gets a reference to the given string and assigns it to the Namespace field. +func (o *ImportSkillCollection201Response) SetNamespace(v string) { + o.Namespace = &v +} + +// GetImported returns the Imported field value if set, zero value otherwise. +func (o *ImportSkillCollection201Response) GetImported() int32 { + if o == nil || IsNil(o.Imported) { + var ret int32 + return ret + } + return *o.Imported +} + +// GetImportedOk returns a tuple with the Imported field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ImportSkillCollection201Response) GetImportedOk() (*int32, bool) { + if o == nil || IsNil(o.Imported) { + return nil, false + } + return o.Imported, true +} + +// HasImported returns a boolean if a field has been set. +func (o *ImportSkillCollection201Response) HasImported() bool { + if o != nil && !IsNil(o.Imported) { + return true + } + + return false +} + +// SetImported gets a reference to the given int32 and assigns it to the Imported field. +func (o *ImportSkillCollection201Response) SetImported(v int32) { + o.Imported = &v +} + +// GetFailed returns the Failed field value if set, zero value otherwise. +func (o *ImportSkillCollection201Response) GetFailed() int32 { + if o == nil || IsNil(o.Failed) { + var ret int32 + return ret + } + return *o.Failed +} + +// GetFailedOk returns a tuple with the Failed field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ImportSkillCollection201Response) GetFailedOk() (*int32, bool) { + if o == nil || IsNil(o.Failed) { + return nil, false + } + return o.Failed, true +} + +// HasFailed returns a boolean if a field has been set. +func (o *ImportSkillCollection201Response) HasFailed() bool { + if o != nil && !IsNil(o.Failed) { + return true + } + + return false +} + +// SetFailed gets a reference to the given int32 and assigns it to the Failed field. +func (o *ImportSkillCollection201Response) SetFailed(v int32) { + o.Failed = &v +} + +// GetSkills returns the Skills field value if set, zero value otherwise. +func (o *ImportSkillCollection201Response) GetSkills() []map[string]interface{} { + if o == nil || IsNil(o.Skills) { + var ret []map[string]interface{} + return ret + } + return o.Skills +} + +// GetSkillsOk returns a tuple with the Skills field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ImportSkillCollection201Response) GetSkillsOk() ([]map[string]interface{}, bool) { + if o == nil || IsNil(o.Skills) { + return nil, false + } + return o.Skills, true +} + +// HasSkills returns a boolean if a field has been set. +func (o *ImportSkillCollection201Response) HasSkills() bool { + if o != nil && !IsNil(o.Skills) { + return true + } + + return false +} + +// SetSkills gets a reference to the given []map[string]interface{} and assigns it to the Skills field. +func (o *ImportSkillCollection201Response) SetSkills(v []map[string]interface{}) { + o.Skills = v +} + +// GetErrors returns the Errors field value if set, zero value otherwise. +func (o *ImportSkillCollection201Response) GetErrors() []map[string]interface{} { + if o == nil || IsNil(o.Errors) { + var ret []map[string]interface{} + return ret + } + return o.Errors +} + +// GetErrorsOk returns a tuple with the Errors field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ImportSkillCollection201Response) GetErrorsOk() ([]map[string]interface{}, bool) { + if o == nil || IsNil(o.Errors) { + return nil, false + } + return o.Errors, true +} + +// HasErrors returns a boolean if a field has been set. +func (o *ImportSkillCollection201Response) HasErrors() bool { + if o != nil && !IsNil(o.Errors) { + return true + } + + return false +} + +// SetErrors gets a reference to the given []map[string]interface{} and assigns it to the Errors field. +func (o *ImportSkillCollection201Response) SetErrors(v []map[string]interface{}) { + o.Errors = v +} + +func (o ImportSkillCollection201Response) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o ImportSkillCollection201Response) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Namespace) { + toSerialize["namespace"] = o.Namespace + } + if !IsNil(o.Imported) { + toSerialize["imported"] = o.Imported + } + if !IsNil(o.Failed) { + toSerialize["failed"] = o.Failed + } + if !IsNil(o.Skills) { + toSerialize["skills"] = o.Skills + } + if !IsNil(o.Errors) { + toSerialize["errors"] = o.Errors + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *ImportSkillCollection201Response) UnmarshalJSON(data []byte) (err error) { + varImportSkillCollection201Response := _ImportSkillCollection201Response{} + + err = json.Unmarshal(data, &varImportSkillCollection201Response) + + if err != nil { + return err + } + + *o = ImportSkillCollection201Response(varImportSkillCollection201Response) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "namespace") + delete(additionalProperties, "imported") + delete(additionalProperties, "failed") + delete(additionalProperties, "skills") + delete(additionalProperties, "errors") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableImportSkillCollection201Response struct { + value *ImportSkillCollection201Response + isSet bool +} + +func (v NullableImportSkillCollection201Response) Get() *ImportSkillCollection201Response { + return v.value +} + +func (v *NullableImportSkillCollection201Response) Set(val *ImportSkillCollection201Response) { + v.value = val + v.isSet = true +} + +func (v NullableImportSkillCollection201Response) IsSet() bool { + return v.isSet +} + +func (v *NullableImportSkillCollection201Response) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableImportSkillCollection201Response(val *ImportSkillCollection201Response) *NullableImportSkillCollection201Response { + return &NullableImportSkillCollection201Response{value: val, isSet: true} +} + +func (v NullableImportSkillCollection201Response) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableImportSkillCollection201Response) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_import_skill_collection_request.go b/model_import_skill_collection_request.go new file mode 100644 index 0000000..a42bb36 --- /dev/null +++ b/model_import_skill_collection_request.go @@ -0,0 +1,271 @@ +/* +QuantCDN API + +Unified API for QuantCDN Admin and QuantCloud Platform services + +API version: 4.12.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package quantadmingo + +import ( + "encoding/json" + "fmt" +) + +// checks if the ImportSkillCollectionRequest type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &ImportSkillCollectionRequest{} + +// ImportSkillCollectionRequest struct for ImportSkillCollectionRequest +type ImportSkillCollectionRequest struct { + Namespace string `json:"namespace" validate:"regexp=^[a-z0-9][a-z0-9-]{0,62}[a-z0-9]$"` + Source ImportSkillCollectionRequestSource `json:"source"` + Tags []string `json:"tags,omitempty"` + InstalledBy *string `json:"installedBy,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _ImportSkillCollectionRequest ImportSkillCollectionRequest + +// NewImportSkillCollectionRequest instantiates a new ImportSkillCollectionRequest 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 NewImportSkillCollectionRequest(namespace string, source ImportSkillCollectionRequestSource) *ImportSkillCollectionRequest { + this := ImportSkillCollectionRequest{} + this.Namespace = namespace + this.Source = source + return &this +} + +// NewImportSkillCollectionRequestWithDefaults instantiates a new ImportSkillCollectionRequest 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 NewImportSkillCollectionRequestWithDefaults() *ImportSkillCollectionRequest { + this := ImportSkillCollectionRequest{} + return &this +} + +// GetNamespace returns the Namespace field value +func (o *ImportSkillCollectionRequest) GetNamespace() string { + if o == nil { + var ret string + return ret + } + + return o.Namespace +} + +// GetNamespaceOk returns a tuple with the Namespace field value +// and a boolean to check if the value has been set. +func (o *ImportSkillCollectionRequest) GetNamespaceOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Namespace, true +} + +// SetNamespace sets field value +func (o *ImportSkillCollectionRequest) SetNamespace(v string) { + o.Namespace = v +} + +// GetSource returns the Source field value +func (o *ImportSkillCollectionRequest) GetSource() ImportSkillCollectionRequestSource { + if o == nil { + var ret ImportSkillCollectionRequestSource + return ret + } + + return o.Source +} + +// GetSourceOk returns a tuple with the Source field value +// and a boolean to check if the value has been set. +func (o *ImportSkillCollectionRequest) GetSourceOk() (*ImportSkillCollectionRequestSource, bool) { + if o == nil { + return nil, false + } + return &o.Source, true +} + +// SetSource sets field value +func (o *ImportSkillCollectionRequest) SetSource(v ImportSkillCollectionRequestSource) { + o.Source = v +} + +// GetTags returns the Tags field value if set, zero value otherwise. +func (o *ImportSkillCollectionRequest) GetTags() []string { + if o == nil || IsNil(o.Tags) { + var ret []string + return ret + } + return o.Tags +} + +// GetTagsOk returns a tuple with the Tags field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ImportSkillCollectionRequest) GetTagsOk() ([]string, bool) { + if o == nil || IsNil(o.Tags) { + return nil, false + } + return o.Tags, true +} + +// HasTags returns a boolean if a field has been set. +func (o *ImportSkillCollectionRequest) HasTags() bool { + if o != nil && !IsNil(o.Tags) { + return true + } + + return false +} + +// SetTags gets a reference to the given []string and assigns it to the Tags field. +func (o *ImportSkillCollectionRequest) SetTags(v []string) { + o.Tags = v +} + +// GetInstalledBy returns the InstalledBy field value if set, zero value otherwise. +func (o *ImportSkillCollectionRequest) GetInstalledBy() string { + if o == nil || IsNil(o.InstalledBy) { + var ret string + return ret + } + return *o.InstalledBy +} + +// GetInstalledByOk returns a tuple with the InstalledBy field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ImportSkillCollectionRequest) GetInstalledByOk() (*string, bool) { + if o == nil || IsNil(o.InstalledBy) { + return nil, false + } + return o.InstalledBy, true +} + +// HasInstalledBy returns a boolean if a field has been set. +func (o *ImportSkillCollectionRequest) HasInstalledBy() bool { + if o != nil && !IsNil(o.InstalledBy) { + return true + } + + return false +} + +// SetInstalledBy gets a reference to the given string and assigns it to the InstalledBy field. +func (o *ImportSkillCollectionRequest) SetInstalledBy(v string) { + o.InstalledBy = &v +} + +func (o ImportSkillCollectionRequest) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o ImportSkillCollectionRequest) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["namespace"] = o.Namespace + toSerialize["source"] = o.Source + if !IsNil(o.Tags) { + toSerialize["tags"] = o.Tags + } + if !IsNil(o.InstalledBy) { + toSerialize["installedBy"] = o.InstalledBy + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *ImportSkillCollectionRequest) 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{ + "namespace", + "source", + } + + 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) + } + } + + varImportSkillCollectionRequest := _ImportSkillCollectionRequest{} + + err = json.Unmarshal(data, &varImportSkillCollectionRequest) + + if err != nil { + return err + } + + *o = ImportSkillCollectionRequest(varImportSkillCollectionRequest) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "namespace") + delete(additionalProperties, "source") + delete(additionalProperties, "tags") + delete(additionalProperties, "installedBy") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableImportSkillCollectionRequest struct { + value *ImportSkillCollectionRequest + isSet bool +} + +func (v NullableImportSkillCollectionRequest) Get() *ImportSkillCollectionRequest { + return v.value +} + +func (v *NullableImportSkillCollectionRequest) Set(val *ImportSkillCollectionRequest) { + v.value = val + v.isSet = true +} + +func (v NullableImportSkillCollectionRequest) IsSet() bool { + return v.isSet +} + +func (v *NullableImportSkillCollectionRequest) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableImportSkillCollectionRequest(val *ImportSkillCollectionRequest) *NullableImportSkillCollectionRequest { + return &NullableImportSkillCollectionRequest{value: val, isSet: true} +} + +func (v NullableImportSkillCollectionRequest) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableImportSkillCollectionRequest) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_import_skill_collection_request_source.go b/model_import_skill_collection_request_source.go new file mode 100644 index 0000000..9f38178 --- /dev/null +++ b/model_import_skill_collection_request_source.go @@ -0,0 +1,271 @@ +/* +QuantCDN API + +Unified API for QuantCDN Admin and QuantCloud Platform services + +API version: 4.12.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package quantadmingo + +import ( + "encoding/json" + "fmt" +) + +// checks if the ImportSkillCollectionRequestSource type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &ImportSkillCollectionRequestSource{} + +// ImportSkillCollectionRequestSource struct for ImportSkillCollectionRequestSource +type ImportSkillCollectionRequestSource struct { + Type string `json:"type"` + Repo string `json:"repo"` + Path *string `json:"path,omitempty"` + Version *string `json:"version,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _ImportSkillCollectionRequestSource ImportSkillCollectionRequestSource + +// NewImportSkillCollectionRequestSource instantiates a new ImportSkillCollectionRequestSource 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 NewImportSkillCollectionRequestSource(type_ string, repo string) *ImportSkillCollectionRequestSource { + this := ImportSkillCollectionRequestSource{} + this.Type = type_ + this.Repo = repo + return &this +} + +// NewImportSkillCollectionRequestSourceWithDefaults instantiates a new ImportSkillCollectionRequestSource 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 NewImportSkillCollectionRequestSourceWithDefaults() *ImportSkillCollectionRequestSource { + this := ImportSkillCollectionRequestSource{} + return &this +} + +// GetType returns the Type field value +func (o *ImportSkillCollectionRequestSource) GetType() string { + if o == nil { + var ret string + return ret + } + + return o.Type +} + +// GetTypeOk returns a tuple with the Type field value +// and a boolean to check if the value has been set. +func (o *ImportSkillCollectionRequestSource) GetTypeOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Type, true +} + +// SetType sets field value +func (o *ImportSkillCollectionRequestSource) SetType(v string) { + o.Type = v +} + +// GetRepo returns the Repo field value +func (o *ImportSkillCollectionRequestSource) GetRepo() string { + if o == nil { + var ret string + return ret + } + + return o.Repo +} + +// GetRepoOk returns a tuple with the Repo field value +// and a boolean to check if the value has been set. +func (o *ImportSkillCollectionRequestSource) GetRepoOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Repo, true +} + +// SetRepo sets field value +func (o *ImportSkillCollectionRequestSource) SetRepo(v string) { + o.Repo = v +} + +// GetPath returns the Path field value if set, zero value otherwise. +func (o *ImportSkillCollectionRequestSource) GetPath() string { + if o == nil || IsNil(o.Path) { + var ret string + return ret + } + return *o.Path +} + +// GetPathOk returns a tuple with the Path field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ImportSkillCollectionRequestSource) GetPathOk() (*string, bool) { + if o == nil || IsNil(o.Path) { + return nil, false + } + return o.Path, true +} + +// HasPath returns a boolean if a field has been set. +func (o *ImportSkillCollectionRequestSource) HasPath() bool { + if o != nil && !IsNil(o.Path) { + return true + } + + return false +} + +// SetPath gets a reference to the given string and assigns it to the Path field. +func (o *ImportSkillCollectionRequestSource) SetPath(v string) { + o.Path = &v +} + +// GetVersion returns the Version field value if set, zero value otherwise. +func (o *ImportSkillCollectionRequestSource) GetVersion() string { + if o == nil || IsNil(o.Version) { + var ret string + return ret + } + return *o.Version +} + +// GetVersionOk returns a tuple with the Version field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ImportSkillCollectionRequestSource) GetVersionOk() (*string, bool) { + if o == nil || IsNil(o.Version) { + return nil, false + } + return o.Version, true +} + +// HasVersion returns a boolean if a field has been set. +func (o *ImportSkillCollectionRequestSource) HasVersion() bool { + if o != nil && !IsNil(o.Version) { + return true + } + + return false +} + +// SetVersion gets a reference to the given string and assigns it to the Version field. +func (o *ImportSkillCollectionRequestSource) SetVersion(v string) { + o.Version = &v +} + +func (o ImportSkillCollectionRequestSource) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o ImportSkillCollectionRequestSource) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["type"] = o.Type + toSerialize["repo"] = o.Repo + if !IsNil(o.Path) { + toSerialize["path"] = o.Path + } + if !IsNil(o.Version) { + toSerialize["version"] = o.Version + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *ImportSkillCollectionRequestSource) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "type", + "repo", + } + + 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) + } + } + + varImportSkillCollectionRequestSource := _ImportSkillCollectionRequestSource{} + + err = json.Unmarshal(data, &varImportSkillCollectionRequestSource) + + if err != nil { + return err + } + + *o = ImportSkillCollectionRequestSource(varImportSkillCollectionRequestSource) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "type") + delete(additionalProperties, "repo") + delete(additionalProperties, "path") + delete(additionalProperties, "version") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableImportSkillCollectionRequestSource struct { + value *ImportSkillCollectionRequestSource + isSet bool +} + +func (v NullableImportSkillCollectionRequestSource) Get() *ImportSkillCollectionRequestSource { + return v.value +} + +func (v *NullableImportSkillCollectionRequestSource) Set(val *ImportSkillCollectionRequestSource) { + v.value = val + v.isSet = true +} + +func (v NullableImportSkillCollectionRequestSource) IsSet() bool { + return v.isSet +} + +func (v *NullableImportSkillCollectionRequestSource) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableImportSkillCollectionRequestSource(val *ImportSkillCollectionRequestSource) *NullableImportSkillCollectionRequestSource { + return &NullableImportSkillCollectionRequestSource{value: val, isSet: true} +} + +func (v NullableImportSkillCollectionRequestSource) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableImportSkillCollectionRequestSource) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_import_skill_request.go b/model_import_skill_request.go new file mode 100644 index 0000000..4bf1bb4 --- /dev/null +++ b/model_import_skill_request.go @@ -0,0 +1,464 @@ +/* +QuantCDN API + +Unified API for QuantCDN Admin and QuantCloud Platform services + +API version: 4.12.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package quantadmingo + +import ( + "encoding/json" + "fmt" +) + +// checks if the ImportSkillRequest type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &ImportSkillRequest{} + +// ImportSkillRequest struct for ImportSkillRequest +type ImportSkillRequest struct { + Source ImportSkillRequestSource `json:"source"` + Name *string `json:"name,omitempty"` + Description *string `json:"description,omitempty"` + Tags []string `json:"tags,omitempty"` + TriggerCondition *string `json:"triggerCondition,omitempty"` + RequiredTools []string `json:"requiredTools,omitempty"` + DisableModelInvocation *bool `json:"disableModelInvocation,omitempty"` + AllowedTools []string `json:"allowedTools,omitempty"` + InstalledBy *string `json:"installedBy,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _ImportSkillRequest ImportSkillRequest + +// NewImportSkillRequest instantiates a new ImportSkillRequest 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 NewImportSkillRequest(source ImportSkillRequestSource) *ImportSkillRequest { + this := ImportSkillRequest{} + this.Source = source + return &this +} + +// NewImportSkillRequestWithDefaults instantiates a new ImportSkillRequest 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 NewImportSkillRequestWithDefaults() *ImportSkillRequest { + this := ImportSkillRequest{} + return &this +} + +// GetSource returns the Source field value +func (o *ImportSkillRequest) GetSource() ImportSkillRequestSource { + if o == nil { + var ret ImportSkillRequestSource + return ret + } + + return o.Source +} + +// GetSourceOk returns a tuple with the Source field value +// and a boolean to check if the value has been set. +func (o *ImportSkillRequest) GetSourceOk() (*ImportSkillRequestSource, bool) { + if o == nil { + return nil, false + } + return &o.Source, true +} + +// SetSource sets field value +func (o *ImportSkillRequest) SetSource(v ImportSkillRequestSource) { + o.Source = v +} + +// GetName returns the Name field value if set, zero value otherwise. +func (o *ImportSkillRequest) 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 *ImportSkillRequest) 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 *ImportSkillRequest) 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 *ImportSkillRequest) SetName(v string) { + o.Name = &v +} + +// GetDescription returns the Description field value if set, zero value otherwise. +func (o *ImportSkillRequest) 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 *ImportSkillRequest) 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 *ImportSkillRequest) 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 *ImportSkillRequest) SetDescription(v string) { + o.Description = &v +} + +// GetTags returns the Tags field value if set, zero value otherwise. +func (o *ImportSkillRequest) GetTags() []string { + if o == nil || IsNil(o.Tags) { + var ret []string + return ret + } + return o.Tags +} + +// GetTagsOk returns a tuple with the Tags field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ImportSkillRequest) GetTagsOk() ([]string, bool) { + if o == nil || IsNil(o.Tags) { + return nil, false + } + return o.Tags, true +} + +// HasTags returns a boolean if a field has been set. +func (o *ImportSkillRequest) HasTags() bool { + if o != nil && !IsNil(o.Tags) { + return true + } + + return false +} + +// SetTags gets a reference to the given []string and assigns it to the Tags field. +func (o *ImportSkillRequest) SetTags(v []string) { + o.Tags = v +} + +// GetTriggerCondition returns the TriggerCondition field value if set, zero value otherwise. +func (o *ImportSkillRequest) GetTriggerCondition() string { + if o == nil || IsNil(o.TriggerCondition) { + var ret string + return ret + } + return *o.TriggerCondition +} + +// GetTriggerConditionOk returns a tuple with the TriggerCondition field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ImportSkillRequest) GetTriggerConditionOk() (*string, bool) { + if o == nil || IsNil(o.TriggerCondition) { + return nil, false + } + return o.TriggerCondition, true +} + +// HasTriggerCondition returns a boolean if a field has been set. +func (o *ImportSkillRequest) HasTriggerCondition() bool { + if o != nil && !IsNil(o.TriggerCondition) { + return true + } + + return false +} + +// SetTriggerCondition gets a reference to the given string and assigns it to the TriggerCondition field. +func (o *ImportSkillRequest) SetTriggerCondition(v string) { + o.TriggerCondition = &v +} + +// GetRequiredTools returns the RequiredTools field value if set, zero value otherwise. +func (o *ImportSkillRequest) GetRequiredTools() []string { + if o == nil || IsNil(o.RequiredTools) { + var ret []string + return ret + } + return o.RequiredTools +} + +// GetRequiredToolsOk returns a tuple with the RequiredTools field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ImportSkillRequest) GetRequiredToolsOk() ([]string, bool) { + if o == nil || IsNil(o.RequiredTools) { + return nil, false + } + return o.RequiredTools, true +} + +// HasRequiredTools returns a boolean if a field has been set. +func (o *ImportSkillRequest) HasRequiredTools() bool { + if o != nil && !IsNil(o.RequiredTools) { + return true + } + + return false +} + +// SetRequiredTools gets a reference to the given []string and assigns it to the RequiredTools field. +func (o *ImportSkillRequest) SetRequiredTools(v []string) { + o.RequiredTools = v +} + +// GetDisableModelInvocation returns the DisableModelInvocation field value if set, zero value otherwise. +func (o *ImportSkillRequest) GetDisableModelInvocation() bool { + if o == nil || IsNil(o.DisableModelInvocation) { + var ret bool + return ret + } + return *o.DisableModelInvocation +} + +// GetDisableModelInvocationOk returns a tuple with the DisableModelInvocation field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ImportSkillRequest) GetDisableModelInvocationOk() (*bool, bool) { + if o == nil || IsNil(o.DisableModelInvocation) { + return nil, false + } + return o.DisableModelInvocation, true +} + +// HasDisableModelInvocation returns a boolean if a field has been set. +func (o *ImportSkillRequest) HasDisableModelInvocation() bool { + if o != nil && !IsNil(o.DisableModelInvocation) { + return true + } + + return false +} + +// SetDisableModelInvocation gets a reference to the given bool and assigns it to the DisableModelInvocation field. +func (o *ImportSkillRequest) SetDisableModelInvocation(v bool) { + o.DisableModelInvocation = &v +} + +// GetAllowedTools returns the AllowedTools field value if set, zero value otherwise. +func (o *ImportSkillRequest) GetAllowedTools() []string { + if o == nil || IsNil(o.AllowedTools) { + var ret []string + return ret + } + return o.AllowedTools +} + +// GetAllowedToolsOk returns a tuple with the AllowedTools field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ImportSkillRequest) GetAllowedToolsOk() ([]string, bool) { + if o == nil || IsNil(o.AllowedTools) { + return nil, false + } + return o.AllowedTools, true +} + +// HasAllowedTools returns a boolean if a field has been set. +func (o *ImportSkillRequest) HasAllowedTools() bool { + if o != nil && !IsNil(o.AllowedTools) { + return true + } + + return false +} + +// SetAllowedTools gets a reference to the given []string and assigns it to the AllowedTools field. +func (o *ImportSkillRequest) SetAllowedTools(v []string) { + o.AllowedTools = v +} + +// GetInstalledBy returns the InstalledBy field value if set, zero value otherwise. +func (o *ImportSkillRequest) GetInstalledBy() string { + if o == nil || IsNil(o.InstalledBy) { + var ret string + return ret + } + return *o.InstalledBy +} + +// GetInstalledByOk returns a tuple with the InstalledBy field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ImportSkillRequest) GetInstalledByOk() (*string, bool) { + if o == nil || IsNil(o.InstalledBy) { + return nil, false + } + return o.InstalledBy, true +} + +// HasInstalledBy returns a boolean if a field has been set. +func (o *ImportSkillRequest) HasInstalledBy() bool { + if o != nil && !IsNil(o.InstalledBy) { + return true + } + + return false +} + +// SetInstalledBy gets a reference to the given string and assigns it to the InstalledBy field. +func (o *ImportSkillRequest) SetInstalledBy(v string) { + o.InstalledBy = &v +} + +func (o ImportSkillRequest) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o ImportSkillRequest) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["source"] = o.Source + if !IsNil(o.Name) { + toSerialize["name"] = o.Name + } + if !IsNil(o.Description) { + toSerialize["description"] = o.Description + } + if !IsNil(o.Tags) { + toSerialize["tags"] = o.Tags + } + if !IsNil(o.TriggerCondition) { + toSerialize["triggerCondition"] = o.TriggerCondition + } + if !IsNil(o.RequiredTools) { + toSerialize["requiredTools"] = o.RequiredTools + } + if !IsNil(o.DisableModelInvocation) { + toSerialize["disableModelInvocation"] = o.DisableModelInvocation + } + if !IsNil(o.AllowedTools) { + toSerialize["allowedTools"] = o.AllowedTools + } + if !IsNil(o.InstalledBy) { + toSerialize["installedBy"] = o.InstalledBy + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *ImportSkillRequest) 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{ + "source", + } + + 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) + } + } + + varImportSkillRequest := _ImportSkillRequest{} + + err = json.Unmarshal(data, &varImportSkillRequest) + + if err != nil { + return err + } + + *o = ImportSkillRequest(varImportSkillRequest) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "source") + delete(additionalProperties, "name") + delete(additionalProperties, "description") + delete(additionalProperties, "tags") + delete(additionalProperties, "triggerCondition") + delete(additionalProperties, "requiredTools") + delete(additionalProperties, "disableModelInvocation") + delete(additionalProperties, "allowedTools") + delete(additionalProperties, "installedBy") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableImportSkillRequest struct { + value *ImportSkillRequest + isSet bool +} + +func (v NullableImportSkillRequest) Get() *ImportSkillRequest { + return v.value +} + +func (v *NullableImportSkillRequest) Set(val *ImportSkillRequest) { + v.value = val + v.isSet = true +} + +func (v NullableImportSkillRequest) IsSet() bool { + return v.isSet +} + +func (v *NullableImportSkillRequest) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableImportSkillRequest(val *ImportSkillRequest) *NullableImportSkillRequest { + return &NullableImportSkillRequest{value: val, isSet: true} +} + +func (v NullableImportSkillRequest) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableImportSkillRequest) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_import_skill_request_source.go b/model_import_skill_request_source.go new file mode 100644 index 0000000..e91e678 --- /dev/null +++ b/model_import_skill_request_source.go @@ -0,0 +1,316 @@ +/* +QuantCDN API + +Unified API for QuantCDN Admin and QuantCloud Platform services + +API version: 4.12.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package quantadmingo + +import ( + "encoding/json" + "fmt" +) + +// checks if the ImportSkillRequestSource type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &ImportSkillRequestSource{} + +// ImportSkillRequestSource struct for ImportSkillRequestSource +type ImportSkillRequestSource struct { + Type string `json:"type"` + Url *string `json:"url,omitempty"` + Repo *string `json:"repo,omitempty"` + Path *string `json:"path,omitempty"` + Version *string `json:"version,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _ImportSkillRequestSource ImportSkillRequestSource + +// NewImportSkillRequestSource instantiates a new ImportSkillRequestSource 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 NewImportSkillRequestSource(type_ string) *ImportSkillRequestSource { + this := ImportSkillRequestSource{} + this.Type = type_ + return &this +} + +// NewImportSkillRequestSourceWithDefaults instantiates a new ImportSkillRequestSource 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 NewImportSkillRequestSourceWithDefaults() *ImportSkillRequestSource { + this := ImportSkillRequestSource{} + return &this +} + +// GetType returns the Type field value +func (o *ImportSkillRequestSource) GetType() string { + if o == nil { + var ret string + return ret + } + + return o.Type +} + +// GetTypeOk returns a tuple with the Type field value +// and a boolean to check if the value has been set. +func (o *ImportSkillRequestSource) GetTypeOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Type, true +} + +// SetType sets field value +func (o *ImportSkillRequestSource) SetType(v string) { + o.Type = v +} + +// GetUrl returns the Url field value if set, zero value otherwise. +func (o *ImportSkillRequestSource) 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 *ImportSkillRequestSource) 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 *ImportSkillRequestSource) 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 *ImportSkillRequestSource) SetUrl(v string) { + o.Url = &v +} + +// GetRepo returns the Repo field value if set, zero value otherwise. +func (o *ImportSkillRequestSource) GetRepo() string { + if o == nil || IsNil(o.Repo) { + var ret string + return ret + } + return *o.Repo +} + +// GetRepoOk returns a tuple with the Repo field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ImportSkillRequestSource) GetRepoOk() (*string, bool) { + if o == nil || IsNil(o.Repo) { + return nil, false + } + return o.Repo, true +} + +// HasRepo returns a boolean if a field has been set. +func (o *ImportSkillRequestSource) HasRepo() bool { + if o != nil && !IsNil(o.Repo) { + return true + } + + return false +} + +// SetRepo gets a reference to the given string and assigns it to the Repo field. +func (o *ImportSkillRequestSource) SetRepo(v string) { + o.Repo = &v +} + +// GetPath returns the Path field value if set, zero value otherwise. +func (o *ImportSkillRequestSource) GetPath() string { + if o == nil || IsNil(o.Path) { + var ret string + return ret + } + return *o.Path +} + +// GetPathOk returns a tuple with the Path field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ImportSkillRequestSource) GetPathOk() (*string, bool) { + if o == nil || IsNil(o.Path) { + return nil, false + } + return o.Path, true +} + +// HasPath returns a boolean if a field has been set. +func (o *ImportSkillRequestSource) HasPath() bool { + if o != nil && !IsNil(o.Path) { + return true + } + + return false +} + +// SetPath gets a reference to the given string and assigns it to the Path field. +func (o *ImportSkillRequestSource) SetPath(v string) { + o.Path = &v +} + +// GetVersion returns the Version field value if set, zero value otherwise. +func (o *ImportSkillRequestSource) GetVersion() string { + if o == nil || IsNil(o.Version) { + var ret string + return ret + } + return *o.Version +} + +// GetVersionOk returns a tuple with the Version field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ImportSkillRequestSource) GetVersionOk() (*string, bool) { + if o == nil || IsNil(o.Version) { + return nil, false + } + return o.Version, true +} + +// HasVersion returns a boolean if a field has been set. +func (o *ImportSkillRequestSource) HasVersion() bool { + if o != nil && !IsNil(o.Version) { + return true + } + + return false +} + +// SetVersion gets a reference to the given string and assigns it to the Version field. +func (o *ImportSkillRequestSource) SetVersion(v string) { + o.Version = &v +} + +func (o ImportSkillRequestSource) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o ImportSkillRequestSource) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["type"] = o.Type + if !IsNil(o.Url) { + toSerialize["url"] = o.Url + } + if !IsNil(o.Repo) { + toSerialize["repo"] = o.Repo + } + if !IsNil(o.Path) { + toSerialize["path"] = o.Path + } + if !IsNil(o.Version) { + toSerialize["version"] = o.Version + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *ImportSkillRequestSource) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "type", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err; + } + + for _, requiredProperty := range(requiredProperties) { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varImportSkillRequestSource := _ImportSkillRequestSource{} + + err = json.Unmarshal(data, &varImportSkillRequestSource) + + if err != nil { + return err + } + + *o = ImportSkillRequestSource(varImportSkillRequestSource) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "type") + delete(additionalProperties, "url") + delete(additionalProperties, "repo") + delete(additionalProperties, "path") + delete(additionalProperties, "version") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableImportSkillRequestSource struct { + value *ImportSkillRequestSource + isSet bool +} + +func (v NullableImportSkillRequestSource) Get() *ImportSkillRequestSource { + return v.value +} + +func (v *NullableImportSkillRequestSource) Set(val *ImportSkillRequestSource) { + v.value = val + v.isSet = true +} + +func (v NullableImportSkillRequestSource) IsSet() bool { + return v.isSet +} + +func (v *NullableImportSkillRequestSource) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableImportSkillRequestSource(val *ImportSkillRequestSource) *NullableImportSkillRequestSource { + return &NullableImportSkillRequestSource{value: val, isSet: true} +} + +func (v NullableImportSkillRequestSource) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableImportSkillRequestSource) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_kv_items_create_200_response.go b/model_kv_items_create_200_response.go index 4743456..6d0188f 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.10.0 +API version: 4.12.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 98f4c1d..2156efb 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.10.0 +API version: 4.12.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 770ce2f..f7fc5df 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.10.0 +API version: 4.12.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 95f9a8b..bd3fa86 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.10.0 +API version: 4.12.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_kv_link_to_project_200_response.go b/model_kv_link_to_project_200_response.go index 18aa173..626382b 100644 --- a/model_kv_link_to_project_200_response.go +++ b/model_kv_link_to_project_200_response.go @@ -3,7 +3,7 @@ QuantCDN API Unified API for QuantCDN Admin and QuantCloud Platform services -API version: 4.10.0 +API version: 4.12.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_kv_link_to_project_request.go b/model_kv_link_to_project_request.go index ac430b4..8d40b24 100644 --- a/model_kv_link_to_project_request.go +++ b/model_kv_link_to_project_request.go @@ -3,7 +3,7 @@ QuantCDN API Unified API for QuantCDN Admin and QuantCloud Platform services -API version: 4.10.0 +API version: 4.12.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 c2dd835..92d6c7f 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.10.0 +API version: 4.12.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 7f83b57..9c5cacb 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.10.0 +API version: 4.12.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 b53cc28..e2bce61 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.10.0 +API version: 4.12.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 665c331..fdaf00c 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.10.0 +API version: 4.12.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 c32d814..3aa6ff8 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.10.0 +API version: 4.12.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 bdb6971..48fbefb 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.10.0 +API version: 4.12.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 ee8a2aa..7359def 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.10.0 +API version: 4.12.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 d2e63ae..e3862fb 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.10.0 +API version: 4.12.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 c9ccb19..7adb9b1 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.10.0 +API version: 4.12.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 d891380..158a4a1 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.10.0 +API version: 4.12.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 efbbc39..eaf6a7b 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.10.0 +API version: 4.12.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 7faee16..87a3b4a 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.10.0 +API version: 4.12.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 2e20437..7c6ed43 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.10.0 +API version: 4.12.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 65d2723..30469ce 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.10.0 +API version: 4.12.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 5580a81..080434d 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.10.0 +API version: 4.12.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 e076405..fb5da93 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.10.0 +API version: 4.12.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 d84bbf5..630c75d 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.10.0 +API version: 4.12.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 f3670e2..1271df2 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.10.0 +API version: 4.12.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_list_files_200_response.go b/model_list_files_200_response.go index 6937295..ffef61a 100644 --- a/model_list_files_200_response.go +++ b/model_list_files_200_response.go @@ -3,7 +3,7 @@ QuantCDN API Unified API for QuantCDN Admin and QuantCloud Platform services -API version: 4.10.0 +API version: 4.12.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_list_files_200_response_files_inner.go b/model_list_files_200_response_files_inner.go index 6255be3..946eceb 100644 --- a/model_list_files_200_response_files_inner.go +++ b/model_list_files_200_response_files_inner.go @@ -3,7 +3,7 @@ QuantCDN API Unified API for QuantCDN Admin and QuantCloud Platform services -API version: 4.10.0 +API version: 4.12.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_list_orchestration_batches_200_response.go b/model_list_orchestration_batches_200_response.go index bd6ae60..4ebf4f6 100644 --- a/model_list_orchestration_batches_200_response.go +++ b/model_list_orchestration_batches_200_response.go @@ -3,7 +3,7 @@ QuantCDN API Unified API for QuantCDN Admin and QuantCloud Platform services -API version: 4.10.0 +API version: 4.12.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_list_orchestration_batches_200_response_batches_inner.go b/model_list_orchestration_batches_200_response_batches_inner.go index afb4d07..2044601 100644 --- a/model_list_orchestration_batches_200_response_batches_inner.go +++ b/model_list_orchestration_batches_200_response_batches_inner.go @@ -3,7 +3,7 @@ QuantCDN API Unified API for QuantCDN Admin and QuantCloud Platform services -API version: 4.10.0 +API version: 4.12.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_list_orchestrations_200_response.go b/model_list_orchestrations_200_response.go index c6f2c88..17d30ef 100644 --- a/model_list_orchestrations_200_response.go +++ b/model_list_orchestrations_200_response.go @@ -3,7 +3,7 @@ QuantCDN API Unified API for QuantCDN Admin and QuantCloud Platform services -API version: 4.10.0 +API version: 4.12.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_list_skill_collections_200_response.go b/model_list_skill_collections_200_response.go new file mode 100644 index 0000000..382efa6 --- /dev/null +++ b/model_list_skill_collections_200_response.go @@ -0,0 +1,155 @@ +/* +QuantCDN API + +Unified API for QuantCDN Admin and QuantCloud Platform services + +API version: 4.12.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package quantadmingo + +import ( + "encoding/json" +) + +// checks if the ListSkillCollections200Response type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &ListSkillCollections200Response{} + +// ListSkillCollections200Response struct for ListSkillCollections200Response +type ListSkillCollections200Response struct { + Collections []ListSkillCollections200ResponseCollectionsInner `json:"collections,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _ListSkillCollections200Response ListSkillCollections200Response + +// NewListSkillCollections200Response instantiates a new ListSkillCollections200Response 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 NewListSkillCollections200Response() *ListSkillCollections200Response { + this := ListSkillCollections200Response{} + return &this +} + +// NewListSkillCollections200ResponseWithDefaults instantiates a new ListSkillCollections200Response 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 NewListSkillCollections200ResponseWithDefaults() *ListSkillCollections200Response { + this := ListSkillCollections200Response{} + return &this +} + +// GetCollections returns the Collections field value if set, zero value otherwise. +func (o *ListSkillCollections200Response) GetCollections() []ListSkillCollections200ResponseCollectionsInner { + if o == nil || IsNil(o.Collections) { + var ret []ListSkillCollections200ResponseCollectionsInner + return ret + } + return o.Collections +} + +// GetCollectionsOk returns a tuple with the Collections field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ListSkillCollections200Response) GetCollectionsOk() ([]ListSkillCollections200ResponseCollectionsInner, bool) { + if o == nil || IsNil(o.Collections) { + return nil, false + } + return o.Collections, true +} + +// HasCollections returns a boolean if a field has been set. +func (o *ListSkillCollections200Response) HasCollections() bool { + if o != nil && !IsNil(o.Collections) { + return true + } + + return false +} + +// SetCollections gets a reference to the given []ListSkillCollections200ResponseCollectionsInner and assigns it to the Collections field. +func (o *ListSkillCollections200Response) SetCollections(v []ListSkillCollections200ResponseCollectionsInner) { + o.Collections = v +} + +func (o ListSkillCollections200Response) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o ListSkillCollections200Response) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Collections) { + toSerialize["collections"] = o.Collections + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *ListSkillCollections200Response) UnmarshalJSON(data []byte) (err error) { + varListSkillCollections200Response := _ListSkillCollections200Response{} + + err = json.Unmarshal(data, &varListSkillCollections200Response) + + if err != nil { + return err + } + + *o = ListSkillCollections200Response(varListSkillCollections200Response) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "collections") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableListSkillCollections200Response struct { + value *ListSkillCollections200Response + isSet bool +} + +func (v NullableListSkillCollections200Response) Get() *ListSkillCollections200Response { + return v.value +} + +func (v *NullableListSkillCollections200Response) Set(val *ListSkillCollections200Response) { + v.value = val + v.isSet = true +} + +func (v NullableListSkillCollections200Response) IsSet() bool { + return v.isSet +} + +func (v *NullableListSkillCollections200Response) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableListSkillCollections200Response(val *ListSkillCollections200Response) *NullableListSkillCollections200Response { + return &NullableListSkillCollections200Response{value: val, isSet: true} +} + +func (v NullableListSkillCollections200Response) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableListSkillCollections200Response) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_list_skill_collections_200_response_collections_inner.go b/model_list_skill_collections_200_response_collections_inner.go new file mode 100644 index 0000000..30c6ed8 --- /dev/null +++ b/model_list_skill_collections_200_response_collections_inner.go @@ -0,0 +1,229 @@ +/* +QuantCDN API + +Unified API for QuantCDN Admin and QuantCloud Platform services + +API version: 4.12.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package quantadmingo + +import ( + "encoding/json" +) + +// checks if the ListSkillCollections200ResponseCollectionsInner type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &ListSkillCollections200ResponseCollectionsInner{} + +// ListSkillCollections200ResponseCollectionsInner struct for ListSkillCollections200ResponseCollectionsInner +type ListSkillCollections200ResponseCollectionsInner struct { + Namespace *string `json:"namespace,omitempty"` + Count *int32 `json:"count,omitempty"` + Skills []string `json:"skills,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _ListSkillCollections200ResponseCollectionsInner ListSkillCollections200ResponseCollectionsInner + +// NewListSkillCollections200ResponseCollectionsInner instantiates a new ListSkillCollections200ResponseCollectionsInner 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 NewListSkillCollections200ResponseCollectionsInner() *ListSkillCollections200ResponseCollectionsInner { + this := ListSkillCollections200ResponseCollectionsInner{} + return &this +} + +// NewListSkillCollections200ResponseCollectionsInnerWithDefaults instantiates a new ListSkillCollections200ResponseCollectionsInner 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 NewListSkillCollections200ResponseCollectionsInnerWithDefaults() *ListSkillCollections200ResponseCollectionsInner { + this := ListSkillCollections200ResponseCollectionsInner{} + return &this +} + +// GetNamespace returns the Namespace field value if set, zero value otherwise. +func (o *ListSkillCollections200ResponseCollectionsInner) GetNamespace() string { + if o == nil || IsNil(o.Namespace) { + var ret string + return ret + } + return *o.Namespace +} + +// GetNamespaceOk returns a tuple with the Namespace field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ListSkillCollections200ResponseCollectionsInner) GetNamespaceOk() (*string, bool) { + if o == nil || IsNil(o.Namespace) { + return nil, false + } + return o.Namespace, true +} + +// HasNamespace returns a boolean if a field has been set. +func (o *ListSkillCollections200ResponseCollectionsInner) HasNamespace() bool { + if o != nil && !IsNil(o.Namespace) { + return true + } + + return false +} + +// SetNamespace gets a reference to the given string and assigns it to the Namespace field. +func (o *ListSkillCollections200ResponseCollectionsInner) SetNamespace(v string) { + o.Namespace = &v +} + +// GetCount returns the Count field value if set, zero value otherwise. +func (o *ListSkillCollections200ResponseCollectionsInner) 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 *ListSkillCollections200ResponseCollectionsInner) 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 *ListSkillCollections200ResponseCollectionsInner) 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 *ListSkillCollections200ResponseCollectionsInner) SetCount(v int32) { + o.Count = &v +} + +// GetSkills returns the Skills field value if set, zero value otherwise. +func (o *ListSkillCollections200ResponseCollectionsInner) GetSkills() []string { + if o == nil || IsNil(o.Skills) { + var ret []string + return ret + } + return o.Skills +} + +// GetSkillsOk returns a tuple with the Skills field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ListSkillCollections200ResponseCollectionsInner) GetSkillsOk() ([]string, bool) { + if o == nil || IsNil(o.Skills) { + return nil, false + } + return o.Skills, true +} + +// HasSkills returns a boolean if a field has been set. +func (o *ListSkillCollections200ResponseCollectionsInner) HasSkills() bool { + if o != nil && !IsNil(o.Skills) { + return true + } + + return false +} + +// SetSkills gets a reference to the given []string and assigns it to the Skills field. +func (o *ListSkillCollections200ResponseCollectionsInner) SetSkills(v []string) { + o.Skills = v +} + +func (o ListSkillCollections200ResponseCollectionsInner) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o ListSkillCollections200ResponseCollectionsInner) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Namespace) { + toSerialize["namespace"] = o.Namespace + } + if !IsNil(o.Count) { + toSerialize["count"] = o.Count + } + if !IsNil(o.Skills) { + toSerialize["skills"] = o.Skills + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *ListSkillCollections200ResponseCollectionsInner) UnmarshalJSON(data []byte) (err error) { + varListSkillCollections200ResponseCollectionsInner := _ListSkillCollections200ResponseCollectionsInner{} + + err = json.Unmarshal(data, &varListSkillCollections200ResponseCollectionsInner) + + if err != nil { + return err + } + + *o = ListSkillCollections200ResponseCollectionsInner(varListSkillCollections200ResponseCollectionsInner) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "namespace") + delete(additionalProperties, "count") + delete(additionalProperties, "skills") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableListSkillCollections200ResponseCollectionsInner struct { + value *ListSkillCollections200ResponseCollectionsInner + isSet bool +} + +func (v NullableListSkillCollections200ResponseCollectionsInner) Get() *ListSkillCollections200ResponseCollectionsInner { + return v.value +} + +func (v *NullableListSkillCollections200ResponseCollectionsInner) Set(val *ListSkillCollections200ResponseCollectionsInner) { + v.value = val + v.isSet = true +} + +func (v NullableListSkillCollections200ResponseCollectionsInner) IsSet() bool { + return v.isSet +} + +func (v *NullableListSkillCollections200ResponseCollectionsInner) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableListSkillCollections200ResponseCollectionsInner(val *ListSkillCollections200ResponseCollectionsInner) *NullableListSkillCollections200ResponseCollectionsInner { + return &NullableListSkillCollections200ResponseCollectionsInner{value: val, isSet: true} +} + +func (v NullableListSkillCollections200ResponseCollectionsInner) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableListSkillCollections200ResponseCollectionsInner) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_list_skills_200_response.go b/model_list_skills_200_response.go new file mode 100644 index 0000000..1c74652 --- /dev/null +++ b/model_list_skills_200_response.go @@ -0,0 +1,192 @@ +/* +QuantCDN API + +Unified API for QuantCDN Admin and QuantCloud Platform services + +API version: 4.12.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package quantadmingo + +import ( + "encoding/json" +) + +// checks if the ListSkills200Response type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &ListSkills200Response{} + +// ListSkills200Response struct for ListSkills200Response +type ListSkills200Response struct { + Skills []ListSkills200ResponseSkillsInner `json:"skills,omitempty"` + Count *int32 `json:"count,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _ListSkills200Response ListSkills200Response + +// NewListSkills200Response instantiates a new ListSkills200Response 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 NewListSkills200Response() *ListSkills200Response { + this := ListSkills200Response{} + return &this +} + +// NewListSkills200ResponseWithDefaults instantiates a new ListSkills200Response 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 NewListSkills200ResponseWithDefaults() *ListSkills200Response { + this := ListSkills200Response{} + return &this +} + +// GetSkills returns the Skills field value if set, zero value otherwise. +func (o *ListSkills200Response) GetSkills() []ListSkills200ResponseSkillsInner { + if o == nil || IsNil(o.Skills) { + var ret []ListSkills200ResponseSkillsInner + return ret + } + return o.Skills +} + +// GetSkillsOk returns a tuple with the Skills field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ListSkills200Response) GetSkillsOk() ([]ListSkills200ResponseSkillsInner, bool) { + if o == nil || IsNil(o.Skills) { + return nil, false + } + return o.Skills, true +} + +// HasSkills returns a boolean if a field has been set. +func (o *ListSkills200Response) HasSkills() bool { + if o != nil && !IsNil(o.Skills) { + return true + } + + return false +} + +// SetSkills gets a reference to the given []ListSkills200ResponseSkillsInner and assigns it to the Skills field. +func (o *ListSkills200Response) SetSkills(v []ListSkills200ResponseSkillsInner) { + o.Skills = v +} + +// GetCount returns the Count field value if set, zero value otherwise. +func (o *ListSkills200Response) 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 *ListSkills200Response) 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 *ListSkills200Response) 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 *ListSkills200Response) SetCount(v int32) { + o.Count = &v +} + +func (o ListSkills200Response) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o ListSkills200Response) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Skills) { + toSerialize["skills"] = o.Skills + } + if !IsNil(o.Count) { + toSerialize["count"] = o.Count + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *ListSkills200Response) UnmarshalJSON(data []byte) (err error) { + varListSkills200Response := _ListSkills200Response{} + + err = json.Unmarshal(data, &varListSkills200Response) + + if err != nil { + return err + } + + *o = ListSkills200Response(varListSkills200Response) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "skills") + delete(additionalProperties, "count") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableListSkills200Response struct { + value *ListSkills200Response + isSet bool +} + +func (v NullableListSkills200Response) Get() *ListSkills200Response { + return v.value +} + +func (v *NullableListSkills200Response) Set(val *ListSkills200Response) { + v.value = val + v.isSet = true +} + +func (v NullableListSkills200Response) IsSet() bool { + return v.isSet +} + +func (v *NullableListSkills200Response) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableListSkills200Response(val *ListSkills200Response) *NullableListSkills200Response { + return &NullableListSkills200Response{value: val, isSet: true} +} + +func (v NullableListSkills200Response) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableListSkills200Response) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_list_skills_200_response_skills_inner.go b/model_list_skills_200_response_skills_inner.go new file mode 100644 index 0000000..39ecd6c --- /dev/null +++ b/model_list_skills_200_response_skills_inner.go @@ -0,0 +1,452 @@ +/* +QuantCDN API + +Unified API for QuantCDN Admin and QuantCloud Platform services + +API version: 4.12.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package quantadmingo + +import ( + "encoding/json" + "time" +) + +// checks if the ListSkills200ResponseSkillsInner type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &ListSkills200ResponseSkillsInner{} + +// ListSkills200ResponseSkillsInner struct for ListSkills200ResponseSkillsInner +type ListSkills200ResponseSkillsInner struct { + SkillId *string `json:"skillId,omitempty"` + Name *string `json:"name,omitempty"` + Description *string `json:"description,omitempty"` + Tags []string `json:"tags,omitempty"` + Source map[string]interface{} `json:"source,omitempty"` + TriggerCondition *string `json:"triggerCondition,omitempty"` + Namespace *string `json:"namespace,omitempty"` + InstalledAt *time.Time `json:"installedAt,omitempty"` + UpdatedAt *time.Time `json:"updatedAt,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _ListSkills200ResponseSkillsInner ListSkills200ResponseSkillsInner + +// NewListSkills200ResponseSkillsInner instantiates a new ListSkills200ResponseSkillsInner 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 NewListSkills200ResponseSkillsInner() *ListSkills200ResponseSkillsInner { + this := ListSkills200ResponseSkillsInner{} + return &this +} + +// NewListSkills200ResponseSkillsInnerWithDefaults instantiates a new ListSkills200ResponseSkillsInner 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 NewListSkills200ResponseSkillsInnerWithDefaults() *ListSkills200ResponseSkillsInner { + this := ListSkills200ResponseSkillsInner{} + return &this +} + +// GetSkillId returns the SkillId field value if set, zero value otherwise. +func (o *ListSkills200ResponseSkillsInner) GetSkillId() string { + if o == nil || IsNil(o.SkillId) { + var ret string + return ret + } + return *o.SkillId +} + +// GetSkillIdOk returns a tuple with the SkillId field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ListSkills200ResponseSkillsInner) GetSkillIdOk() (*string, bool) { + if o == nil || IsNil(o.SkillId) { + return nil, false + } + return o.SkillId, true +} + +// HasSkillId returns a boolean if a field has been set. +func (o *ListSkills200ResponseSkillsInner) HasSkillId() bool { + if o != nil && !IsNil(o.SkillId) { + return true + } + + return false +} + +// SetSkillId gets a reference to the given string and assigns it to the SkillId field. +func (o *ListSkills200ResponseSkillsInner) SetSkillId(v string) { + o.SkillId = &v +} + +// GetName returns the Name field value if set, zero value otherwise. +func (o *ListSkills200ResponseSkillsInner) 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 *ListSkills200ResponseSkillsInner) 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 *ListSkills200ResponseSkillsInner) 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 *ListSkills200ResponseSkillsInner) SetName(v string) { + o.Name = &v +} + +// GetDescription returns the Description field value if set, zero value otherwise. +func (o *ListSkills200ResponseSkillsInner) 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 *ListSkills200ResponseSkillsInner) 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 *ListSkills200ResponseSkillsInner) 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 *ListSkills200ResponseSkillsInner) SetDescription(v string) { + o.Description = &v +} + +// GetTags returns the Tags field value if set, zero value otherwise. +func (o *ListSkills200ResponseSkillsInner) GetTags() []string { + if o == nil || IsNil(o.Tags) { + var ret []string + return ret + } + return o.Tags +} + +// GetTagsOk returns a tuple with the Tags field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ListSkills200ResponseSkillsInner) GetTagsOk() ([]string, bool) { + if o == nil || IsNil(o.Tags) { + return nil, false + } + return o.Tags, true +} + +// HasTags returns a boolean if a field has been set. +func (o *ListSkills200ResponseSkillsInner) HasTags() bool { + if o != nil && !IsNil(o.Tags) { + return true + } + + return false +} + +// SetTags gets a reference to the given []string and assigns it to the Tags field. +func (o *ListSkills200ResponseSkillsInner) SetTags(v []string) { + o.Tags = v +} + +// GetSource returns the Source field value if set, zero value otherwise. +func (o *ListSkills200ResponseSkillsInner) GetSource() map[string]interface{} { + if o == nil || IsNil(o.Source) { + var ret map[string]interface{} + return ret + } + return o.Source +} + +// GetSourceOk returns a tuple with the Source field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ListSkills200ResponseSkillsInner) GetSourceOk() (map[string]interface{}, bool) { + if o == nil || IsNil(o.Source) { + return map[string]interface{}{}, false + } + return o.Source, true +} + +// HasSource returns a boolean if a field has been set. +func (o *ListSkills200ResponseSkillsInner) HasSource() bool { + if o != nil && !IsNil(o.Source) { + return true + } + + return false +} + +// SetSource gets a reference to the given map[string]interface{} and assigns it to the Source field. +func (o *ListSkills200ResponseSkillsInner) SetSource(v map[string]interface{}) { + o.Source = v +} + +// GetTriggerCondition returns the TriggerCondition field value if set, zero value otherwise. +func (o *ListSkills200ResponseSkillsInner) GetTriggerCondition() string { + if o == nil || IsNil(o.TriggerCondition) { + var ret string + return ret + } + return *o.TriggerCondition +} + +// GetTriggerConditionOk returns a tuple with the TriggerCondition field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ListSkills200ResponseSkillsInner) GetTriggerConditionOk() (*string, bool) { + if o == nil || IsNil(o.TriggerCondition) { + return nil, false + } + return o.TriggerCondition, true +} + +// HasTriggerCondition returns a boolean if a field has been set. +func (o *ListSkills200ResponseSkillsInner) HasTriggerCondition() bool { + if o != nil && !IsNil(o.TriggerCondition) { + return true + } + + return false +} + +// SetTriggerCondition gets a reference to the given string and assigns it to the TriggerCondition field. +func (o *ListSkills200ResponseSkillsInner) SetTriggerCondition(v string) { + o.TriggerCondition = &v +} + +// GetNamespace returns the Namespace field value if set, zero value otherwise. +func (o *ListSkills200ResponseSkillsInner) GetNamespace() string { + if o == nil || IsNil(o.Namespace) { + var ret string + return ret + } + return *o.Namespace +} + +// GetNamespaceOk returns a tuple with the Namespace field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ListSkills200ResponseSkillsInner) GetNamespaceOk() (*string, bool) { + if o == nil || IsNil(o.Namespace) { + return nil, false + } + return o.Namespace, true +} + +// HasNamespace returns a boolean if a field has been set. +func (o *ListSkills200ResponseSkillsInner) HasNamespace() bool { + if o != nil && !IsNil(o.Namespace) { + return true + } + + return false +} + +// SetNamespace gets a reference to the given string and assigns it to the Namespace field. +func (o *ListSkills200ResponseSkillsInner) SetNamespace(v string) { + o.Namespace = &v +} + +// GetInstalledAt returns the InstalledAt field value if set, zero value otherwise. +func (o *ListSkills200ResponseSkillsInner) GetInstalledAt() time.Time { + if o == nil || IsNil(o.InstalledAt) { + var ret time.Time + return ret + } + return *o.InstalledAt +} + +// GetInstalledAtOk returns a tuple with the InstalledAt field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ListSkills200ResponseSkillsInner) GetInstalledAtOk() (*time.Time, bool) { + if o == nil || IsNil(o.InstalledAt) { + return nil, false + } + return o.InstalledAt, true +} + +// HasInstalledAt returns a boolean if a field has been set. +func (o *ListSkills200ResponseSkillsInner) HasInstalledAt() bool { + if o != nil && !IsNil(o.InstalledAt) { + return true + } + + return false +} + +// SetInstalledAt gets a reference to the given time.Time and assigns it to the InstalledAt field. +func (o *ListSkills200ResponseSkillsInner) SetInstalledAt(v time.Time) { + o.InstalledAt = &v +} + +// GetUpdatedAt returns the UpdatedAt field value if set, zero value otherwise. +func (o *ListSkills200ResponseSkillsInner) GetUpdatedAt() time.Time { + if o == nil || IsNil(o.UpdatedAt) { + var ret time.Time + 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 *ListSkills200ResponseSkillsInner) GetUpdatedAtOk() (*time.Time, 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 *ListSkills200ResponseSkillsInner) HasUpdatedAt() bool { + if o != nil && !IsNil(o.UpdatedAt) { + return true + } + + return false +} + +// SetUpdatedAt gets a reference to the given time.Time and assigns it to the UpdatedAt field. +func (o *ListSkills200ResponseSkillsInner) SetUpdatedAt(v time.Time) { + o.UpdatedAt = &v +} + +func (o ListSkills200ResponseSkillsInner) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o ListSkills200ResponseSkillsInner) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.SkillId) { + toSerialize["skillId"] = o.SkillId + } + if !IsNil(o.Name) { + toSerialize["name"] = o.Name + } + if !IsNil(o.Description) { + toSerialize["description"] = o.Description + } + if !IsNil(o.Tags) { + toSerialize["tags"] = o.Tags + } + if !IsNil(o.Source) { + toSerialize["source"] = o.Source + } + if !IsNil(o.TriggerCondition) { + toSerialize["triggerCondition"] = o.TriggerCondition + } + if !IsNil(o.Namespace) { + toSerialize["namespace"] = o.Namespace + } + if !IsNil(o.InstalledAt) { + toSerialize["installedAt"] = o.InstalledAt + } + if !IsNil(o.UpdatedAt) { + toSerialize["updatedAt"] = o.UpdatedAt + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *ListSkills200ResponseSkillsInner) UnmarshalJSON(data []byte) (err error) { + varListSkills200ResponseSkillsInner := _ListSkills200ResponseSkillsInner{} + + err = json.Unmarshal(data, &varListSkills200ResponseSkillsInner) + + if err != nil { + return err + } + + *o = ListSkills200ResponseSkillsInner(varListSkills200ResponseSkillsInner) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "skillId") + delete(additionalProperties, "name") + delete(additionalProperties, "description") + delete(additionalProperties, "tags") + delete(additionalProperties, "source") + delete(additionalProperties, "triggerCondition") + delete(additionalProperties, "namespace") + delete(additionalProperties, "installedAt") + delete(additionalProperties, "updatedAt") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableListSkills200ResponseSkillsInner struct { + value *ListSkills200ResponseSkillsInner + isSet bool +} + +func (v NullableListSkills200ResponseSkillsInner) Get() *ListSkills200ResponseSkillsInner { + return v.value +} + +func (v *NullableListSkills200ResponseSkillsInner) Set(val *ListSkills200ResponseSkillsInner) { + v.value = val + v.isSet = true +} + +func (v NullableListSkills200ResponseSkillsInner) IsSet() bool { + return v.isSet +} + +func (v *NullableListSkills200ResponseSkillsInner) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableListSkills200ResponseSkillsInner(val *ListSkills200ResponseSkillsInner) *NullableListSkills200ResponseSkillsInner { + return &NullableListSkills200ResponseSkillsInner{value: val, isSet: true} +} + +func (v NullableListSkills200ResponseSkillsInner) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableListSkills200ResponseSkillsInner) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_list_tasks_200_response.go b/model_list_tasks_200_response.go index 87bbba9..e1b6f4f 100644 --- a/model_list_tasks_200_response.go +++ b/model_list_tasks_200_response.go @@ -3,7 +3,7 @@ QuantCDN API Unified API for QuantCDN Admin and QuantCloud Platform services -API version: 4.10.0 +API version: 4.12.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_list_tasks_200_response_tasks_inner.go b/model_list_tasks_200_response_tasks_inner.go index 7c08856..e1c27a0 100644 --- a/model_list_tasks_200_response_tasks_inner.go +++ b/model_list_tasks_200_response_tasks_inner.go @@ -3,7 +3,7 @@ QuantCDN API Unified API for QuantCDN Admin and QuantCloud Platform services -API version: 4.10.0 +API version: 4.12.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_list_vector_collections_200_response.go b/model_list_vector_collections_200_response.go index 87549ad..fa089af 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.10.0 +API version: 4.12.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 ed6bfc6..7366038 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.10.0 +API version: 4.12.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 0507ed7..8f2925b 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.10.0 +API version: 4.12.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 ec8d8cd..fee52a8 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.10.0 +API version: 4.12.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 7eea540..2c25417 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.10.0 +API version: 4.12.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 518c1c3..ec85bff 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.10.0 +API version: 4.12.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 373a6e8..7a9e62d 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.10.0 +API version: 4.12.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 b57ddd3..c98f28d 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.10.0 +API version: 4.12.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 1f3a0d4..cd200e6 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.10.0 +API version: 4.12.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 d413450..ecdc2ca 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.10.0 +API version: 4.12.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_query_vector_collection_200_response_pagination.go b/model_query_vector_collection_200_response_pagination.go index 1c4e1fc..7535144 100644 --- a/model_query_vector_collection_200_response_pagination.go +++ b/model_query_vector_collection_200_response_pagination.go @@ -3,7 +3,7 @@ QuantCDN API Unified API for QuantCDN Admin and QuantCloud Platform services -API version: 4.10.0 +API version: 4.12.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_query_vector_collection_200_response_results_inner.go b/model_query_vector_collection_200_response_results_inner.go index 55fd702..725010c 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.10.0 +API version: 4.12.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_query_vector_collection_request.go b/model_query_vector_collection_request.go index 034fc18..c791f10 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.10.0 +API version: 4.12.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_query_vector_collection_request_filter.go b/model_query_vector_collection_request_filter.go index de33fdd..5b18781 100644 --- a/model_query_vector_collection_request_filter.go +++ b/model_query_vector_collection_request_filter.go @@ -3,7 +3,7 @@ QuantCDN API Unified API for QuantCDN Admin and QuantCloud Platform services -API version: 4.10.0 +API version: 4.12.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_scaling_policy.go b/model_scaling_policy.go index 2ea1ad4..a1081e7 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.10.0 +API version: 4.12.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 a856fa7..38bb436 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.10.0 +API version: 4.12.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_submit_tool_callback_200_response.go b/model_submit_tool_callback_200_response.go index 75ecbaa..d5c961c 100644 --- a/model_submit_tool_callback_200_response.go +++ b/model_submit_tool_callback_200_response.go @@ -3,7 +3,7 @@ QuantCDN API Unified API for QuantCDN Admin and QuantCloud Platform services -API version: 4.10.0 +API version: 4.12.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_submit_tool_callback_request.go b/model_submit_tool_callback_request.go index b71ffa7..c7a32aa 100644 --- a/model_submit_tool_callback_request.go +++ b/model_submit_tool_callback_request.go @@ -3,7 +3,7 @@ QuantCDN API Unified API for QuantCDN Admin and QuantCloud Platform services -API version: 4.10.0 +API version: 4.12.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_submit_tool_callback_request_tool_results_inner.go b/model_submit_tool_callback_request_tool_results_inner.go index aed2675..0d5726f 100644 --- a/model_submit_tool_callback_request_tool_results_inner.go +++ b/model_submit_tool_callback_request_tool_results_inner.go @@ -3,7 +3,7 @@ QuantCDN API Unified API for QuantCDN Admin and QuantCloud Platform services -API version: 4.10.0 +API version: 4.12.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_sync_operation.go b/model_sync_operation.go index d37e207..7ea0e4c 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.10.0 +API version: 4.12.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_sync_skill_collection_200_response.go b/model_sync_skill_collection_200_response.go new file mode 100644 index 0000000..5b76d5b --- /dev/null +++ b/model_sync_skill_collection_200_response.go @@ -0,0 +1,340 @@ +/* +QuantCDN API + +Unified API for QuantCDN Admin and QuantCloud Platform services + +API version: 4.12.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package quantadmingo + +import ( + "encoding/json" +) + +// checks if the SyncSkillCollection200Response type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &SyncSkillCollection200Response{} + +// SyncSkillCollection200Response struct for SyncSkillCollection200Response +type SyncSkillCollection200Response struct { + Namespace *string `json:"namespace,omitempty"` + Synced *int32 `json:"synced,omitempty"` + Created *int32 `json:"created,omitempty"` + Failed *int32 `json:"failed,omitempty"` + RemovedFromSource []string `json:"removedFromSource,omitempty"` + Skills []map[string]interface{} `json:"skills,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _SyncSkillCollection200Response SyncSkillCollection200Response + +// NewSyncSkillCollection200Response instantiates a new SyncSkillCollection200Response 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 NewSyncSkillCollection200Response() *SyncSkillCollection200Response { + this := SyncSkillCollection200Response{} + return &this +} + +// NewSyncSkillCollection200ResponseWithDefaults instantiates a new SyncSkillCollection200Response 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 NewSyncSkillCollection200ResponseWithDefaults() *SyncSkillCollection200Response { + this := SyncSkillCollection200Response{} + return &this +} + +// GetNamespace returns the Namespace field value if set, zero value otherwise. +func (o *SyncSkillCollection200Response) GetNamespace() string { + if o == nil || IsNil(o.Namespace) { + var ret string + return ret + } + return *o.Namespace +} + +// GetNamespaceOk returns a tuple with the Namespace field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SyncSkillCollection200Response) GetNamespaceOk() (*string, bool) { + if o == nil || IsNil(o.Namespace) { + return nil, false + } + return o.Namespace, true +} + +// HasNamespace returns a boolean if a field has been set. +func (o *SyncSkillCollection200Response) HasNamespace() bool { + if o != nil && !IsNil(o.Namespace) { + return true + } + + return false +} + +// SetNamespace gets a reference to the given string and assigns it to the Namespace field. +func (o *SyncSkillCollection200Response) SetNamespace(v string) { + o.Namespace = &v +} + +// GetSynced returns the Synced field value if set, zero value otherwise. +func (o *SyncSkillCollection200Response) GetSynced() int32 { + if o == nil || IsNil(o.Synced) { + var ret int32 + return ret + } + return *o.Synced +} + +// GetSyncedOk returns a tuple with the Synced field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SyncSkillCollection200Response) GetSyncedOk() (*int32, bool) { + if o == nil || IsNil(o.Synced) { + return nil, false + } + return o.Synced, true +} + +// HasSynced returns a boolean if a field has been set. +func (o *SyncSkillCollection200Response) HasSynced() bool { + if o != nil && !IsNil(o.Synced) { + return true + } + + return false +} + +// SetSynced gets a reference to the given int32 and assigns it to the Synced field. +func (o *SyncSkillCollection200Response) SetSynced(v int32) { + o.Synced = &v +} + +// GetCreated returns the Created field value if set, zero value otherwise. +func (o *SyncSkillCollection200Response) GetCreated() int32 { + if o == nil || IsNil(o.Created) { + var ret int32 + return ret + } + return *o.Created +} + +// GetCreatedOk returns a tuple with the Created field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SyncSkillCollection200Response) GetCreatedOk() (*int32, bool) { + if o == nil || IsNil(o.Created) { + return nil, false + } + return o.Created, true +} + +// HasCreated returns a boolean if a field has been set. +func (o *SyncSkillCollection200Response) HasCreated() bool { + if o != nil && !IsNil(o.Created) { + return true + } + + return false +} + +// SetCreated gets a reference to the given int32 and assigns it to the Created field. +func (o *SyncSkillCollection200Response) SetCreated(v int32) { + o.Created = &v +} + +// GetFailed returns the Failed field value if set, zero value otherwise. +func (o *SyncSkillCollection200Response) GetFailed() int32 { + if o == nil || IsNil(o.Failed) { + var ret int32 + return ret + } + return *o.Failed +} + +// GetFailedOk returns a tuple with the Failed field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SyncSkillCollection200Response) GetFailedOk() (*int32, bool) { + if o == nil || IsNil(o.Failed) { + return nil, false + } + return o.Failed, true +} + +// HasFailed returns a boolean if a field has been set. +func (o *SyncSkillCollection200Response) HasFailed() bool { + if o != nil && !IsNil(o.Failed) { + return true + } + + return false +} + +// SetFailed gets a reference to the given int32 and assigns it to the Failed field. +func (o *SyncSkillCollection200Response) SetFailed(v int32) { + o.Failed = &v +} + +// GetRemovedFromSource returns the RemovedFromSource field value if set, zero value otherwise. +func (o *SyncSkillCollection200Response) GetRemovedFromSource() []string { + if o == nil || IsNil(o.RemovedFromSource) { + var ret []string + return ret + } + return o.RemovedFromSource +} + +// GetRemovedFromSourceOk returns a tuple with the RemovedFromSource field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SyncSkillCollection200Response) GetRemovedFromSourceOk() ([]string, bool) { + if o == nil || IsNil(o.RemovedFromSource) { + return nil, false + } + return o.RemovedFromSource, true +} + +// HasRemovedFromSource returns a boolean if a field has been set. +func (o *SyncSkillCollection200Response) HasRemovedFromSource() bool { + if o != nil && !IsNil(o.RemovedFromSource) { + return true + } + + return false +} + +// SetRemovedFromSource gets a reference to the given []string and assigns it to the RemovedFromSource field. +func (o *SyncSkillCollection200Response) SetRemovedFromSource(v []string) { + o.RemovedFromSource = v +} + +// GetSkills returns the Skills field value if set, zero value otherwise. +func (o *SyncSkillCollection200Response) GetSkills() []map[string]interface{} { + if o == nil || IsNil(o.Skills) { + var ret []map[string]interface{} + return ret + } + return o.Skills +} + +// GetSkillsOk returns a tuple with the Skills field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SyncSkillCollection200Response) GetSkillsOk() ([]map[string]interface{}, bool) { + if o == nil || IsNil(o.Skills) { + return nil, false + } + return o.Skills, true +} + +// HasSkills returns a boolean if a field has been set. +func (o *SyncSkillCollection200Response) HasSkills() bool { + if o != nil && !IsNil(o.Skills) { + return true + } + + return false +} + +// SetSkills gets a reference to the given []map[string]interface{} and assigns it to the Skills field. +func (o *SyncSkillCollection200Response) SetSkills(v []map[string]interface{}) { + o.Skills = v +} + +func (o SyncSkillCollection200Response) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o SyncSkillCollection200Response) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Namespace) { + toSerialize["namespace"] = o.Namespace + } + if !IsNil(o.Synced) { + toSerialize["synced"] = o.Synced + } + if !IsNil(o.Created) { + toSerialize["created"] = o.Created + } + if !IsNil(o.Failed) { + toSerialize["failed"] = o.Failed + } + if !IsNil(o.RemovedFromSource) { + toSerialize["removedFromSource"] = o.RemovedFromSource + } + if !IsNil(o.Skills) { + toSerialize["skills"] = o.Skills + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *SyncSkillCollection200Response) UnmarshalJSON(data []byte) (err error) { + varSyncSkillCollection200Response := _SyncSkillCollection200Response{} + + err = json.Unmarshal(data, &varSyncSkillCollection200Response) + + if err != nil { + return err + } + + *o = SyncSkillCollection200Response(varSyncSkillCollection200Response) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "namespace") + delete(additionalProperties, "synced") + delete(additionalProperties, "created") + delete(additionalProperties, "failed") + delete(additionalProperties, "removedFromSource") + delete(additionalProperties, "skills") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableSyncSkillCollection200Response struct { + value *SyncSkillCollection200Response + isSet bool +} + +func (v NullableSyncSkillCollection200Response) Get() *SyncSkillCollection200Response { + return v.value +} + +func (v *NullableSyncSkillCollection200Response) Set(val *SyncSkillCollection200Response) { + v.value = val + v.isSet = true +} + +func (v NullableSyncSkillCollection200Response) IsSet() bool { + return v.isSet +} + +func (v *NullableSyncSkillCollection200Response) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableSyncSkillCollection200Response(val *SyncSkillCollection200Response) *NullableSyncSkillCollection200Response { + return &NullableSyncSkillCollection200Response{value: val, isSet: true} +} + +func (v NullableSyncSkillCollection200Response) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableSyncSkillCollection200Response) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_sync_to_environment_request.go b/model_sync_to_environment_request.go index 63ee1c3..5e52c5d 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.10.0 +API version: 4.12.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_tokens_create_201_response.go b/model_tokens_create_201_response.go new file mode 100644 index 0000000..3176e5d --- /dev/null +++ b/model_tokens_create_201_response.go @@ -0,0 +1,231 @@ +/* +QuantCDN API + +Unified API for QuantCDN Admin and QuantCloud Platform services + +API version: 4.12.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package quantadmingo + +import ( + "encoding/json" + "time" +) + +// checks if the TokensCreate201Response type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &TokensCreate201Response{} + +// TokensCreate201Response struct for TokensCreate201Response +type TokensCreate201Response struct { + // The plain text token (shown once) + Token *string `json:"token,omitempty"` + Name *string `json:"name,omitempty"` + CreatedAt *time.Time `json:"created_at,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _TokensCreate201Response TokensCreate201Response + +// NewTokensCreate201Response instantiates a new TokensCreate201Response 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 NewTokensCreate201Response() *TokensCreate201Response { + this := TokensCreate201Response{} + return &this +} + +// NewTokensCreate201ResponseWithDefaults instantiates a new TokensCreate201Response 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 NewTokensCreate201ResponseWithDefaults() *TokensCreate201Response { + this := TokensCreate201Response{} + return &this +} + +// GetToken returns the Token field value if set, zero value otherwise. +func (o *TokensCreate201Response) GetToken() string { + if o == nil || IsNil(o.Token) { + var ret string + return ret + } + return *o.Token +} + +// GetTokenOk returns a tuple with the Token field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *TokensCreate201Response) GetTokenOk() (*string, bool) { + if o == nil || IsNil(o.Token) { + return nil, false + } + return o.Token, true +} + +// HasToken returns a boolean if a field has been set. +func (o *TokensCreate201Response) HasToken() bool { + if o != nil && !IsNil(o.Token) { + return true + } + + return false +} + +// SetToken gets a reference to the given string and assigns it to the Token field. +func (o *TokensCreate201Response) SetToken(v string) { + o.Token = &v +} + +// GetName returns the Name field value if set, zero value otherwise. +func (o *TokensCreate201Response) 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 *TokensCreate201Response) 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 *TokensCreate201Response) 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 *TokensCreate201Response) SetName(v string) { + o.Name = &v +} + +// GetCreatedAt returns the CreatedAt field value if set, zero value otherwise. +func (o *TokensCreate201Response) 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 *TokensCreate201Response) 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 *TokensCreate201Response) 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 *TokensCreate201Response) SetCreatedAt(v time.Time) { + o.CreatedAt = &v +} + +func (o TokensCreate201Response) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o TokensCreate201Response) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Token) { + toSerialize["token"] = o.Token + } + if !IsNil(o.Name) { + toSerialize["name"] = o.Name + } + if !IsNil(o.CreatedAt) { + toSerialize["created_at"] = o.CreatedAt + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *TokensCreate201Response) UnmarshalJSON(data []byte) (err error) { + varTokensCreate201Response := _TokensCreate201Response{} + + err = json.Unmarshal(data, &varTokensCreate201Response) + + if err != nil { + return err + } + + *o = TokensCreate201Response(varTokensCreate201Response) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "token") + delete(additionalProperties, "name") + delete(additionalProperties, "created_at") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableTokensCreate201Response struct { + value *TokensCreate201Response + isSet bool +} + +func (v NullableTokensCreate201Response) Get() *TokensCreate201Response { + return v.value +} + +func (v *NullableTokensCreate201Response) Set(val *TokensCreate201Response) { + v.value = val + v.isSet = true +} + +func (v NullableTokensCreate201Response) IsSet() bool { + return v.isSet +} + +func (v *NullableTokensCreate201Response) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableTokensCreate201Response(val *TokensCreate201Response) *NullableTokensCreate201Response { + return &NullableTokensCreate201Response{value: val, isSet: true} +} + +func (v NullableTokensCreate201Response) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableTokensCreate201Response) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_tokens_create_request.go b/model_tokens_create_request.go new file mode 100644 index 0000000..6b6c46c --- /dev/null +++ b/model_tokens_create_request.go @@ -0,0 +1,169 @@ +/* +QuantCDN API + +Unified API for QuantCDN Admin and QuantCloud Platform services + +API version: 4.12.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package quantadmingo + +import ( + "encoding/json" + "fmt" +) + +// checks if the TokensCreateRequest type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &TokensCreateRequest{} + +// TokensCreateRequest struct for TokensCreateRequest +type TokensCreateRequest struct { + // Name for the token + Name string `json:"name"` + AdditionalProperties map[string]interface{} +} + +type _TokensCreateRequest TokensCreateRequest + +// NewTokensCreateRequest instantiates a new TokensCreateRequest 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 NewTokensCreateRequest(name string) *TokensCreateRequest { + this := TokensCreateRequest{} + this.Name = name + return &this +} + +// NewTokensCreateRequestWithDefaults instantiates a new TokensCreateRequest 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 NewTokensCreateRequestWithDefaults() *TokensCreateRequest { + this := TokensCreateRequest{} + return &this +} + +// GetName returns the Name field value +func (o *TokensCreateRequest) GetName() string { + if o == nil { + var ret string + return ret + } + + return o.Name +} + +// GetNameOk returns a tuple with the Name field value +// and a boolean to check if the value has been set. +func (o *TokensCreateRequest) GetNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Name, true +} + +// SetName sets field value +func (o *TokensCreateRequest) SetName(v string) { + o.Name = v +} + +func (o TokensCreateRequest) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o TokensCreateRequest) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["name"] = o.Name + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *TokensCreateRequest) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "name", + } + + 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) + } + } + + varTokensCreateRequest := _TokensCreateRequest{} + + err = json.Unmarshal(data, &varTokensCreateRequest) + + if err != nil { + return err + } + + *o = TokensCreateRequest(varTokensCreateRequest) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "name") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableTokensCreateRequest struct { + value *TokensCreateRequest + isSet bool +} + +func (v NullableTokensCreateRequest) Get() *TokensCreateRequest { + return v.value +} + +func (v *NullableTokensCreateRequest) Set(val *TokensCreateRequest) { + v.value = val + v.isSet = true +} + +func (v NullableTokensCreateRequest) IsSet() bool { + return v.isSet +} + +func (v *NullableTokensCreateRequest) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableTokensCreateRequest(val *TokensCreateRequest) *NullableTokensCreateRequest { + return &NullableTokensCreateRequest{value: val, isSet: true} +} + +func (v NullableTokensCreateRequest) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableTokensCreateRequest) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_tokens_delete_200_response.go b/model_tokens_delete_200_response.go new file mode 100644 index 0000000..bc954f8 --- /dev/null +++ b/model_tokens_delete_200_response.go @@ -0,0 +1,155 @@ +/* +QuantCDN API + +Unified API for QuantCDN Admin and QuantCloud Platform services + +API version: 4.12.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package quantadmingo + +import ( + "encoding/json" +) + +// checks if the TokensDelete200Response type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &TokensDelete200Response{} + +// TokensDelete200Response struct for TokensDelete200Response +type TokensDelete200Response struct { + Message *string `json:"message,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _TokensDelete200Response TokensDelete200Response + +// NewTokensDelete200Response instantiates a new TokensDelete200Response 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 NewTokensDelete200Response() *TokensDelete200Response { + this := TokensDelete200Response{} + return &this +} + +// NewTokensDelete200ResponseWithDefaults instantiates a new TokensDelete200Response 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 NewTokensDelete200ResponseWithDefaults() *TokensDelete200Response { + this := TokensDelete200Response{} + return &this +} + +// GetMessage returns the Message field value if set, zero value otherwise. +func (o *TokensDelete200Response) 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 *TokensDelete200Response) 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 *TokensDelete200Response) 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 *TokensDelete200Response) SetMessage(v string) { + o.Message = &v +} + +func (o TokensDelete200Response) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o TokensDelete200Response) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Message) { + toSerialize["message"] = o.Message + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *TokensDelete200Response) UnmarshalJSON(data []byte) (err error) { + varTokensDelete200Response := _TokensDelete200Response{} + + err = json.Unmarshal(data, &varTokensDelete200Response) + + if err != nil { + return err + } + + *o = TokensDelete200Response(varTokensDelete200Response) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "message") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableTokensDelete200Response struct { + value *TokensDelete200Response + isSet bool +} + +func (v NullableTokensDelete200Response) Get() *TokensDelete200Response { + return v.value +} + +func (v *NullableTokensDelete200Response) Set(val *TokensDelete200Response) { + v.value = val + v.isSet = true +} + +func (v NullableTokensDelete200Response) IsSet() bool { + return v.isSet +} + +func (v *NullableTokensDelete200Response) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableTokensDelete200Response(val *TokensDelete200Response) *NullableTokensDelete200Response { + return &NullableTokensDelete200Response{value: val, isSet: true} +} + +func (v NullableTokensDelete200Response) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableTokensDelete200Response) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_tokens_list_200_response_inner.go b/model_tokens_list_200_response_inner.go new file mode 100644 index 0000000..8d4f1d3 --- /dev/null +++ b/model_tokens_list_200_response_inner.go @@ -0,0 +1,277 @@ +/* +QuantCDN API + +Unified API for QuantCDN Admin and QuantCloud Platform services + +API version: 4.12.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package quantadmingo + +import ( + "encoding/json" + "time" +) + +// checks if the TokensList200ResponseInner type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &TokensList200ResponseInner{} + +// TokensList200ResponseInner struct for TokensList200ResponseInner +type TokensList200ResponseInner struct { + Id *int32 `json:"id,omitempty"` + Name *string `json:"name,omitempty"` + LastUsed NullableTime `json:"last_used,omitempty"` + CreatedAt *time.Time `json:"created_at,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _TokensList200ResponseInner TokensList200ResponseInner + +// NewTokensList200ResponseInner instantiates a new TokensList200ResponseInner 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 NewTokensList200ResponseInner() *TokensList200ResponseInner { + this := TokensList200ResponseInner{} + return &this +} + +// NewTokensList200ResponseInnerWithDefaults instantiates a new TokensList200ResponseInner 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 NewTokensList200ResponseInnerWithDefaults() *TokensList200ResponseInner { + this := TokensList200ResponseInner{} + return &this +} + +// GetId returns the Id field value if set, zero value otherwise. +func (o *TokensList200ResponseInner) GetId() int32 { + if o == nil || IsNil(o.Id) { + var ret int32 + return ret + } + return *o.Id +} + +// GetIdOk returns a tuple with the Id field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *TokensList200ResponseInner) GetIdOk() (*int32, bool) { + if o == nil || IsNil(o.Id) { + return nil, false + } + return o.Id, true +} + +// HasId returns a boolean if a field has been set. +func (o *TokensList200ResponseInner) HasId() bool { + if o != nil && !IsNil(o.Id) { + return true + } + + return false +} + +// SetId gets a reference to the given int32 and assigns it to the Id field. +func (o *TokensList200ResponseInner) SetId(v int32) { + o.Id = &v +} + +// GetName returns the Name field value if set, zero value otherwise. +func (o *TokensList200ResponseInner) 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 *TokensList200ResponseInner) 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 *TokensList200ResponseInner) 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 *TokensList200ResponseInner) SetName(v string) { + o.Name = &v +} + +// GetLastUsed returns the LastUsed field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *TokensList200ResponseInner) GetLastUsed() time.Time { + if o == nil || IsNil(o.LastUsed.Get()) { + var ret time.Time + return ret + } + return *o.LastUsed.Get() +} + +// GetLastUsedOk returns a tuple with the LastUsed 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 *TokensList200ResponseInner) GetLastUsedOk() (*time.Time, bool) { + if o == nil { + return nil, false + } + return o.LastUsed.Get(), o.LastUsed.IsSet() +} + +// HasLastUsed returns a boolean if a field has been set. +func (o *TokensList200ResponseInner) HasLastUsed() bool { + if o != nil && o.LastUsed.IsSet() { + return true + } + + return false +} + +// SetLastUsed gets a reference to the given NullableTime and assigns it to the LastUsed field. +func (o *TokensList200ResponseInner) SetLastUsed(v time.Time) { + o.LastUsed.Set(&v) +} +// SetLastUsedNil sets the value for LastUsed to be an explicit nil +func (o *TokensList200ResponseInner) SetLastUsedNil() { + o.LastUsed.Set(nil) +} + +// UnsetLastUsed ensures that no value is present for LastUsed, not even an explicit nil +func (o *TokensList200ResponseInner) UnsetLastUsed() { + o.LastUsed.Unset() +} + +// GetCreatedAt returns the CreatedAt field value if set, zero value otherwise. +func (o *TokensList200ResponseInner) 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 *TokensList200ResponseInner) 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 *TokensList200ResponseInner) 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 *TokensList200ResponseInner) SetCreatedAt(v time.Time) { + o.CreatedAt = &v +} + +func (o TokensList200ResponseInner) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o TokensList200ResponseInner) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Id) { + toSerialize["id"] = o.Id + } + if !IsNil(o.Name) { + toSerialize["name"] = o.Name + } + if o.LastUsed.IsSet() { + toSerialize["last_used"] = o.LastUsed.Get() + } + if !IsNil(o.CreatedAt) { + toSerialize["created_at"] = o.CreatedAt + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *TokensList200ResponseInner) UnmarshalJSON(data []byte) (err error) { + varTokensList200ResponseInner := _TokensList200ResponseInner{} + + err = json.Unmarshal(data, &varTokensList200ResponseInner) + + if err != nil { + return err + } + + *o = TokensList200ResponseInner(varTokensList200ResponseInner) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "id") + delete(additionalProperties, "name") + delete(additionalProperties, "last_used") + delete(additionalProperties, "created_at") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableTokensList200ResponseInner struct { + value *TokensList200ResponseInner + isSet bool +} + +func (v NullableTokensList200ResponseInner) Get() *TokensList200ResponseInner { + return v.value +} + +func (v *NullableTokensList200ResponseInner) Set(val *TokensList200ResponseInner) { + v.value = val + v.isSet = true +} + +func (v NullableTokensList200ResponseInner) IsSet() bool { + return v.isSet +} + +func (v *NullableTokensList200ResponseInner) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableTokensList200ResponseInner(val *TokensList200ResponseInner) *NullableTokensList200ResponseInner { + return &NullableTokensList200ResponseInner{value: val, isSet: true} +} + +func (v NullableTokensList200ResponseInner) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableTokensList200ResponseInner) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_update_ai_agent_200_response.go b/model_update_ai_agent_200_response.go index 194713a..527062a 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.10.0 +API version: 4.12.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 b87c5de..2e25933 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.10.0 +API version: 4.12.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 d11e3b2..56b7c23 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.10.0 +API version: 4.12.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 975dca6..5d2e95b 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.10.0 +API version: 4.12.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 f6684b9..85f95b5 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.10.0 +API version: 4.12.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 37d64f6..e11b24e 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.10.0 +API version: 4.12.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 f16c0e3..70e31d3 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.10.0 +API version: 4.12.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 6d9836d..d6bf7a8 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.10.0 +API version: 4.12.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 51636d0..c0d1d68 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.10.0 +API version: 4.12.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_update_skill_200_response.go b/model_update_skill_200_response.go new file mode 100644 index 0000000..27b93a9 --- /dev/null +++ b/model_update_skill_200_response.go @@ -0,0 +1,229 @@ +/* +QuantCDN API + +Unified API for QuantCDN Admin and QuantCloud Platform services + +API version: 4.12.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package quantadmingo + +import ( + "encoding/json" +) + +// checks if the UpdateSkill200Response type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &UpdateSkill200Response{} + +// UpdateSkill200Response struct for UpdateSkill200Response +type UpdateSkill200Response struct { + Success *bool `json:"success,omitempty"` + Skill map[string]interface{} `json:"skill,omitempty"` + Message *string `json:"message,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _UpdateSkill200Response UpdateSkill200Response + +// NewUpdateSkill200Response instantiates a new UpdateSkill200Response 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 NewUpdateSkill200Response() *UpdateSkill200Response { + this := UpdateSkill200Response{} + return &this +} + +// NewUpdateSkill200ResponseWithDefaults instantiates a new UpdateSkill200Response 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 NewUpdateSkill200ResponseWithDefaults() *UpdateSkill200Response { + this := UpdateSkill200Response{} + return &this +} + +// GetSuccess returns the Success field value if set, zero value otherwise. +func (o *UpdateSkill200Response) 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 *UpdateSkill200Response) 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 *UpdateSkill200Response) 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 *UpdateSkill200Response) SetSuccess(v bool) { + o.Success = &v +} + +// GetSkill returns the Skill field value if set, zero value otherwise. +func (o *UpdateSkill200Response) GetSkill() map[string]interface{} { + if o == nil || IsNil(o.Skill) { + var ret map[string]interface{} + return ret + } + return o.Skill +} + +// GetSkillOk returns a tuple with the Skill field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *UpdateSkill200Response) GetSkillOk() (map[string]interface{}, bool) { + if o == nil || IsNil(o.Skill) { + return map[string]interface{}{}, false + } + return o.Skill, true +} + +// HasSkill returns a boolean if a field has been set. +func (o *UpdateSkill200Response) HasSkill() bool { + if o != nil && !IsNil(o.Skill) { + return true + } + + return false +} + +// SetSkill gets a reference to the given map[string]interface{} and assigns it to the Skill field. +func (o *UpdateSkill200Response) SetSkill(v map[string]interface{}) { + o.Skill = v +} + +// GetMessage returns the Message field value if set, zero value otherwise. +func (o *UpdateSkill200Response) 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 *UpdateSkill200Response) 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 *UpdateSkill200Response) 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 *UpdateSkill200Response) SetMessage(v string) { + o.Message = &v +} + +func (o UpdateSkill200Response) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o UpdateSkill200Response) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Success) { + toSerialize["success"] = o.Success + } + if !IsNil(o.Skill) { + toSerialize["skill"] = o.Skill + } + if !IsNil(o.Message) { + toSerialize["message"] = o.Message + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *UpdateSkill200Response) UnmarshalJSON(data []byte) (err error) { + varUpdateSkill200Response := _UpdateSkill200Response{} + + err = json.Unmarshal(data, &varUpdateSkill200Response) + + if err != nil { + return err + } + + *o = UpdateSkill200Response(varUpdateSkill200Response) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "success") + delete(additionalProperties, "skill") + delete(additionalProperties, "message") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableUpdateSkill200Response struct { + value *UpdateSkill200Response + isSet bool +} + +func (v NullableUpdateSkill200Response) Get() *UpdateSkill200Response { + return v.value +} + +func (v *NullableUpdateSkill200Response) Set(val *UpdateSkill200Response) { + v.value = val + v.isSet = true +} + +func (v NullableUpdateSkill200Response) IsSet() bool { + return v.isSet +} + +func (v *NullableUpdateSkill200Response) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableUpdateSkill200Response(val *UpdateSkill200Response) *NullableUpdateSkill200Response { + return &NullableUpdateSkill200Response{value: val, isSet: true} +} + +func (v NullableUpdateSkill200Response) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableUpdateSkill200Response) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_update_skill_request.go b/model_update_skill_request.go new file mode 100644 index 0000000..3393e22 --- /dev/null +++ b/model_update_skill_request.go @@ -0,0 +1,525 @@ +/* +QuantCDN API + +Unified API for QuantCDN Admin and QuantCloud Platform services + +API version: 4.12.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package quantadmingo + +import ( + "encoding/json" +) + +// checks if the UpdateSkillRequest type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &UpdateSkillRequest{} + +// UpdateSkillRequest struct for UpdateSkillRequest +type UpdateSkillRequest struct { + Name *string `json:"name,omitempty"` + Description *string `json:"description,omitempty"` + Content *string `json:"content,omitempty"` + TriggerCondition *string `json:"triggerCondition,omitempty"` + Tags []string `json:"tags,omitempty"` + RequiredTools []string `json:"requiredTools,omitempty"` + Source map[string]interface{} `json:"source,omitempty"` + Files map[string]interface{} `json:"files,omitempty"` + DisableModelInvocation *bool `json:"disableModelInvocation,omitempty"` + AllowedTools []string `json:"allowedTools,omitempty"` + Namespace *string `json:"namespace,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _UpdateSkillRequest UpdateSkillRequest + +// NewUpdateSkillRequest instantiates a new UpdateSkillRequest 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 NewUpdateSkillRequest() *UpdateSkillRequest { + this := UpdateSkillRequest{} + return &this +} + +// NewUpdateSkillRequestWithDefaults instantiates a new UpdateSkillRequest 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 NewUpdateSkillRequestWithDefaults() *UpdateSkillRequest { + this := UpdateSkillRequest{} + return &this +} + +// GetName returns the Name field value if set, zero value otherwise. +func (o *UpdateSkillRequest) 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 *UpdateSkillRequest) 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 *UpdateSkillRequest) 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 *UpdateSkillRequest) SetName(v string) { + o.Name = &v +} + +// GetDescription returns the Description field value if set, zero value otherwise. +func (o *UpdateSkillRequest) 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 *UpdateSkillRequest) 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 *UpdateSkillRequest) 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 *UpdateSkillRequest) SetDescription(v string) { + o.Description = &v +} + +// GetContent returns the Content field value if set, zero value otherwise. +func (o *UpdateSkillRequest) 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 *UpdateSkillRequest) 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 *UpdateSkillRequest) 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 *UpdateSkillRequest) SetContent(v string) { + o.Content = &v +} + +// GetTriggerCondition returns the TriggerCondition field value if set, zero value otherwise. +func (o *UpdateSkillRequest) GetTriggerCondition() string { + if o == nil || IsNil(o.TriggerCondition) { + var ret string + return ret + } + return *o.TriggerCondition +} + +// GetTriggerConditionOk returns a tuple with the TriggerCondition field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *UpdateSkillRequest) GetTriggerConditionOk() (*string, bool) { + if o == nil || IsNil(o.TriggerCondition) { + return nil, false + } + return o.TriggerCondition, true +} + +// HasTriggerCondition returns a boolean if a field has been set. +func (o *UpdateSkillRequest) HasTriggerCondition() bool { + if o != nil && !IsNil(o.TriggerCondition) { + return true + } + + return false +} + +// SetTriggerCondition gets a reference to the given string and assigns it to the TriggerCondition field. +func (o *UpdateSkillRequest) SetTriggerCondition(v string) { + o.TriggerCondition = &v +} + +// GetTags returns the Tags field value if set, zero value otherwise. +func (o *UpdateSkillRequest) GetTags() []string { + if o == nil || IsNil(o.Tags) { + var ret []string + return ret + } + return o.Tags +} + +// GetTagsOk returns a tuple with the Tags field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *UpdateSkillRequest) GetTagsOk() ([]string, bool) { + if o == nil || IsNil(o.Tags) { + return nil, false + } + return o.Tags, true +} + +// HasTags returns a boolean if a field has been set. +func (o *UpdateSkillRequest) HasTags() bool { + if o != nil && !IsNil(o.Tags) { + return true + } + + return false +} + +// SetTags gets a reference to the given []string and assigns it to the Tags field. +func (o *UpdateSkillRequest) SetTags(v []string) { + o.Tags = v +} + +// GetRequiredTools returns the RequiredTools field value if set, zero value otherwise. +func (o *UpdateSkillRequest) GetRequiredTools() []string { + if o == nil || IsNil(o.RequiredTools) { + var ret []string + return ret + } + return o.RequiredTools +} + +// GetRequiredToolsOk returns a tuple with the RequiredTools field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *UpdateSkillRequest) GetRequiredToolsOk() ([]string, bool) { + if o == nil || IsNil(o.RequiredTools) { + return nil, false + } + return o.RequiredTools, true +} + +// HasRequiredTools returns a boolean if a field has been set. +func (o *UpdateSkillRequest) HasRequiredTools() bool { + if o != nil && !IsNil(o.RequiredTools) { + return true + } + + return false +} + +// SetRequiredTools gets a reference to the given []string and assigns it to the RequiredTools field. +func (o *UpdateSkillRequest) SetRequiredTools(v []string) { + o.RequiredTools = v +} + +// GetSource returns the Source field value if set, zero value otherwise. +func (o *UpdateSkillRequest) GetSource() map[string]interface{} { + if o == nil || IsNil(o.Source) { + var ret map[string]interface{} + return ret + } + return o.Source +} + +// GetSourceOk returns a tuple with the Source field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *UpdateSkillRequest) GetSourceOk() (map[string]interface{}, bool) { + if o == nil || IsNil(o.Source) { + return map[string]interface{}{}, false + } + return o.Source, true +} + +// HasSource returns a boolean if a field has been set. +func (o *UpdateSkillRequest) HasSource() bool { + if o != nil && !IsNil(o.Source) { + return true + } + + return false +} + +// SetSource gets a reference to the given map[string]interface{} and assigns it to the Source field. +func (o *UpdateSkillRequest) SetSource(v map[string]interface{}) { + o.Source = v +} + +// GetFiles returns the Files field value if set, zero value otherwise. +func (o *UpdateSkillRequest) GetFiles() map[string]interface{} { + if o == nil || IsNil(o.Files) { + var ret map[string]interface{} + 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 *UpdateSkillRequest) GetFilesOk() (map[string]interface{}, bool) { + if o == nil || IsNil(o.Files) { + return map[string]interface{}{}, false + } + return o.Files, true +} + +// HasFiles returns a boolean if a field has been set. +func (o *UpdateSkillRequest) HasFiles() bool { + if o != nil && !IsNil(o.Files) { + return true + } + + return false +} + +// SetFiles gets a reference to the given map[string]interface{} and assigns it to the Files field. +func (o *UpdateSkillRequest) SetFiles(v map[string]interface{}) { + o.Files = v +} + +// GetDisableModelInvocation returns the DisableModelInvocation field value if set, zero value otherwise. +func (o *UpdateSkillRequest) GetDisableModelInvocation() bool { + if o == nil || IsNil(o.DisableModelInvocation) { + var ret bool + return ret + } + return *o.DisableModelInvocation +} + +// GetDisableModelInvocationOk returns a tuple with the DisableModelInvocation field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *UpdateSkillRequest) GetDisableModelInvocationOk() (*bool, bool) { + if o == nil || IsNil(o.DisableModelInvocation) { + return nil, false + } + return o.DisableModelInvocation, true +} + +// HasDisableModelInvocation returns a boolean if a field has been set. +func (o *UpdateSkillRequest) HasDisableModelInvocation() bool { + if o != nil && !IsNil(o.DisableModelInvocation) { + return true + } + + return false +} + +// SetDisableModelInvocation gets a reference to the given bool and assigns it to the DisableModelInvocation field. +func (o *UpdateSkillRequest) SetDisableModelInvocation(v bool) { + o.DisableModelInvocation = &v +} + +// GetAllowedTools returns the AllowedTools field value if set, zero value otherwise. +func (o *UpdateSkillRequest) GetAllowedTools() []string { + if o == nil || IsNil(o.AllowedTools) { + var ret []string + return ret + } + return o.AllowedTools +} + +// GetAllowedToolsOk returns a tuple with the AllowedTools field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *UpdateSkillRequest) GetAllowedToolsOk() ([]string, bool) { + if o == nil || IsNil(o.AllowedTools) { + return nil, false + } + return o.AllowedTools, true +} + +// HasAllowedTools returns a boolean if a field has been set. +func (o *UpdateSkillRequest) HasAllowedTools() bool { + if o != nil && !IsNil(o.AllowedTools) { + return true + } + + return false +} + +// SetAllowedTools gets a reference to the given []string and assigns it to the AllowedTools field. +func (o *UpdateSkillRequest) SetAllowedTools(v []string) { + o.AllowedTools = v +} + +// GetNamespace returns the Namespace field value if set, zero value otherwise. +func (o *UpdateSkillRequest) GetNamespace() string { + if o == nil || IsNil(o.Namespace) { + var ret string + return ret + } + return *o.Namespace +} + +// GetNamespaceOk returns a tuple with the Namespace field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *UpdateSkillRequest) GetNamespaceOk() (*string, bool) { + if o == nil || IsNil(o.Namespace) { + return nil, false + } + return o.Namespace, true +} + +// HasNamespace returns a boolean if a field has been set. +func (o *UpdateSkillRequest) HasNamespace() bool { + if o != nil && !IsNil(o.Namespace) { + return true + } + + return false +} + +// SetNamespace gets a reference to the given string and assigns it to the Namespace field. +func (o *UpdateSkillRequest) SetNamespace(v string) { + o.Namespace = &v +} + +func (o UpdateSkillRequest) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o UpdateSkillRequest) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Name) { + toSerialize["name"] = o.Name + } + if !IsNil(o.Description) { + toSerialize["description"] = o.Description + } + if !IsNil(o.Content) { + toSerialize["content"] = o.Content + } + if !IsNil(o.TriggerCondition) { + toSerialize["triggerCondition"] = o.TriggerCondition + } + if !IsNil(o.Tags) { + toSerialize["tags"] = o.Tags + } + if !IsNil(o.RequiredTools) { + toSerialize["requiredTools"] = o.RequiredTools + } + if !IsNil(o.Source) { + toSerialize["source"] = o.Source + } + if !IsNil(o.Files) { + toSerialize["files"] = o.Files + } + if !IsNil(o.DisableModelInvocation) { + toSerialize["disableModelInvocation"] = o.DisableModelInvocation + } + if !IsNil(o.AllowedTools) { + toSerialize["allowedTools"] = o.AllowedTools + } + if !IsNil(o.Namespace) { + toSerialize["namespace"] = o.Namespace + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *UpdateSkillRequest) UnmarshalJSON(data []byte) (err error) { + varUpdateSkillRequest := _UpdateSkillRequest{} + + err = json.Unmarshal(data, &varUpdateSkillRequest) + + if err != nil { + return err + } + + *o = UpdateSkillRequest(varUpdateSkillRequest) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "name") + delete(additionalProperties, "description") + delete(additionalProperties, "content") + delete(additionalProperties, "triggerCondition") + delete(additionalProperties, "tags") + delete(additionalProperties, "requiredTools") + delete(additionalProperties, "source") + delete(additionalProperties, "files") + delete(additionalProperties, "disableModelInvocation") + delete(additionalProperties, "allowedTools") + delete(additionalProperties, "namespace") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableUpdateSkillRequest struct { + value *UpdateSkillRequest + isSet bool +} + +func (v NullableUpdateSkillRequest) Get() *UpdateSkillRequest { + return v.value +} + +func (v *NullableUpdateSkillRequest) Set(val *UpdateSkillRequest) { + v.value = val + v.isSet = true +} + +func (v NullableUpdateSkillRequest) IsSet() bool { + return v.isSet +} + +func (v *NullableUpdateSkillRequest) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableUpdateSkillRequest(val *UpdateSkillRequest) *NullableUpdateSkillRequest { + return &NullableUpdateSkillRequest{value: val, isSet: true} +} + +func (v NullableUpdateSkillRequest) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableUpdateSkillRequest) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_update_task_200_response.go b/model_update_task_200_response.go index ee47345..ad711c2 100644 --- a/model_update_task_200_response.go +++ b/model_update_task_200_response.go @@ -3,7 +3,7 @@ QuantCDN API Unified API for QuantCDN Admin and QuantCloud Platform services -API version: 4.10.0 +API version: 4.12.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_update_task_request.go b/model_update_task_request.go index ed77971..bd9807e 100644 --- a/model_update_task_request.go +++ b/model_update_task_request.go @@ -3,7 +3,7 @@ QuantCDN API Unified API for QuantCDN Admin and QuantCloud Platform services -API version: 4.10.0 +API version: 4.12.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_upload_file_201_response.go b/model_upload_file_201_response.go index e032a02..757fe30 100644 --- a/model_upload_file_201_response.go +++ b/model_upload_file_201_response.go @@ -3,7 +3,7 @@ QuantCDN API Unified API for QuantCDN Admin and QuantCloud Platform services -API version: 4.10.0 +API version: 4.12.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_upload_file_request.go b/model_upload_file_request.go index 76c2d23..d374d31 100644 --- a/model_upload_file_request.go +++ b/model_upload_file_request.go @@ -3,7 +3,7 @@ QuantCDN API Unified API for QuantCDN Admin and QuantCloud Platform services -API version: 4.10.0 +API version: 4.12.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_upload_vector_documents_200_response.go b/model_upload_vector_documents_200_response.go index 9a09de1..50b98ab 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.10.0 +API version: 4.12.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 20f7c26..ca08d27 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.10.0 +API version: 4.12.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 97d66d5..41e60be 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.10.0 +API version: 4.12.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 65c294e..d42518f 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.10.0 +API version: 4.12.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 cbca7a2..d7706da 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.10.0 +API version: 4.12.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 25c63a4..b56614e 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.10.0 +API version: 4.12.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 c66b849..8aa13bc 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.10.0 +API version: 4.12.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 7cebf0d..29318e3 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.10.0 +API version: 4.12.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 3157772..e50d294 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.10.0 +API version: 4.12.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 2012364..5722cb4 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.10.0 +API version: 4.12.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 3311a84..fccafa6 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.10.0 +API version: 4.12.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 38a6679..e53ec8b 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.10.0 +API version: 4.12.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 57694e8..f18b2f8 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.10.0 +API version: 4.12.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 f6a890a..ea6daed 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.10.0 +API version: 4.12.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 9b4b45e..64cabb0 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.10.0 +API version: 4.12.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 660de59..79b9b59 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.10.0 +API version: 4.12.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 c69ed98..1498bfe 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.10.0 +API version: 4.12.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 9b5b5f7..7f14f51 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.10.0 +API version: 4.12.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 4e9a3c9..7d02d3e 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.10.0 +API version: 4.12.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 a0bd6e6..50e19a8 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.10.0 +API version: 4.12.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 6e76e2a..ed826d1 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.10.0 +API version: 4.12.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 3ce3a3e..f8f6f09 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.10.0 +API version: 4.12.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 249f044..93db879 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.10.0 +API version: 4.12.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 e132c5e..836b86e 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.10.0 +API version: 4.12.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 6eb0f13..b4183ae 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.10.0 +API version: 4.12.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 7fe3d55..511c362 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.10.0 +API version: 4.12.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 bcba335..c9ad64b 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.10.0 +API version: 4.12.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 4ca0253..363f0c3 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.10.0 +API version: 4.12.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 59b9b22..4448a85 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.10.0 +API version: 4.12.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 7c9439c..7b12c7a 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.10.0 +API version: 4.12.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 0bc080d..daa80f8 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.10.0 +API version: 4.12.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 bf12122..d34a4b8 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.10.0 +API version: 4.12.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 8a5bd05..84708d1 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.10.0 +API version: 4.12.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 cd29e1d..e129327 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.10.0 +API version: 4.12.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 2eb2fcd..ac697ea 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.10.0 +API version: 4.12.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 fcbbdd9..d47dc17 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.10.0 +API version: 4.12.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 5cb5f00..efd9b55 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.10.0 +API version: 4.12.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 2537ece..672692d 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.10.0 +API version: 4.12.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 8b2d5b6..b9b7758 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.10.0 +API version: 4.12.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 98d7eb5..2126577 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.10.0 +API version: 4.12.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 b160ecc..b5279ee 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.10.0 +API version: 4.12.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 8273e00..33e2080 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.10.0 +API version: 4.12.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 1195536..58e2ebb 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.10.0 +API version: 4.12.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 9e6d9af..e1b0f1a 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.10.0 +API version: 4.12.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 2b4b347..d974690 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.10.0 +API version: 4.12.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 7678e9a..ffcde1a 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.10.0 +API version: 4.12.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 723d7a2..a4833d5 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.10.0 +API version: 4.12.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 b282f06..40d69f5 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.10.0 +API version: 4.12.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 8a67e84..e3f4a14 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.10.0 +API version: 4.12.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 29677d5..0d5e61a 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.10.0 +API version: 4.12.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 90db9af..a9045de 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.10.0 +API version: 4.12.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 57f1015..57401e0 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.10.0 +API version: 4.12.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 8002b5b..8eacf1b 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.10.0 +API version: 4.12.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 c1e08ec..c27b5bd 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.10.0 +API version: 4.12.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 64a9161..6fbca78 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.10.0 +API version: 4.12.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 826fced..a502e5b 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.10.0 +API version: 4.12.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 f6d912d..3c97c1e 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.10.0 +API version: 4.12.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 5f25c97..1f7b3fc 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.10.0 +API version: 4.12.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 90aa765..1d52d26 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.10.0 +API version: 4.12.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_v2_metric_data.go b/model_v2_metric_data.go index a8c90ba..31b4a42 100644 --- a/model_v2_metric_data.go +++ b/model_v2_metric_data.go @@ -3,7 +3,7 @@ QuantCDN API Unified API for QuantCDN Admin and QuantCloud Platform services -API version: 4.10.0 +API version: 4.12.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_v2_metric_data_point.go b/model_v2_metric_data_point.go index a4904ea..66cc7ea 100644 --- a/model_v2_metric_data_point.go +++ b/model_v2_metric_data_point.go @@ -3,7 +3,7 @@ QuantCDN API Unified API for QuantCDN Admin and QuantCloud Platform services -API version: 4.10.0 +API version: 4.12.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_v2_metric_data_point_timestamp.go b/model_v2_metric_data_point_timestamp.go index 622a917..f18b778 100644 --- a/model_v2_metric_data_point_timestamp.go +++ b/model_v2_metric_data_point_timestamp.go @@ -3,7 +3,7 @@ QuantCDN API Unified API for QuantCDN Admin and QuantCloud Platform services -API version: 4.10.0 +API version: 4.12.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_v2_metrics_meta.go b/model_v2_metrics_meta.go index f4f6b9d..6652444 100644 --- a/model_v2_metrics_meta.go +++ b/model_v2_metrics_meta.go @@ -3,7 +3,7 @@ QuantCDN API Unified API for QuantCDN Admin and QuantCloud Platform services -API version: 4.10.0 +API version: 4.12.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_v2_metrics_response.go b/model_v2_metrics_response.go index 8529110..b3a16ab 100644 --- a/model_v2_metrics_response.go +++ b/model_v2_metrics_response.go @@ -3,7 +3,7 @@ QuantCDN API Unified API for QuantCDN Admin and QuantCloud Platform services -API version: 4.10.0 +API version: 4.12.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 7c3b03f..e6d8864 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.10.0 +API version: 4.12.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 1d89484..3d4b09b 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.10.0 +API version: 4.12.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 e62aa9f..f78bd83 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.10.0 +API version: 4.12.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 1746b28..23fd47d 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.10.0 +API version: 4.12.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 597cead..2503279 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.10.0 +API version: 4.12.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 aee00a8..0dba032 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.10.0 +API version: 4.12.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 259b205..286e893 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.10.0 +API version: 4.12.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 ece6e27..2cf6735 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.10.0 +API version: 4.12.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 05de724..5b746de 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.10.0 +API version: 4.12.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 399606d..e73f103 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.10.0 +API version: 4.12.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 43e48f6..dad086a 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.10.0 +API version: 4.12.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 66bebd2..aca5d74 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.10.0 +API version: 4.12.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 07ac56a..e61348e 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.10.0 +API version: 4.12.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 114e371..5405877 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.10.0 +API version: 4.12.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 12f108e..c129fe6 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.10.0 +API version: 4.12.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 d8f3c2d..e276edf 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.10.0 +API version: 4.12.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 d603b9e..97dcd56 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.10.0 +API version: 4.12.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 1958642..37643f9 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.10.0 +API version: 4.12.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 80bf4d7..d22aac1 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.10.0 +API version: 4.12.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 0e77046..f7d2b2d 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.10.0 +API version: 4.12.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 6bb2dd4..47dc698 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.10.0 +API version: 4.12.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 6d6fc91..941b9b2 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.10.0 +API version: 4.12.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 e8ddc60..956e286 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.10.0 +API version: 4.12.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 5469153..16f8e0c 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.10.0 +API version: 4.12.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 57c923a..1b20e1d 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.10.0 +API version: 4.12.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 1491892..4e22051 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.10.0 +API version: 4.12.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 837626d..ab1ac1e 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.10.0 +API version: 4.12.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 cb42b2c..def72b3 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.10.0 +API version: 4.12.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 832fd0d..7c2cf1d 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.10.0 +API version: 4.12.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 6f45a10..85c6476 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.10.0 +API version: 4.12.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 c7c2cd9..c144626 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.10.0 +API version: 4.12.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 efc2079..b6a3b3f 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.10.0 +API version: 4.12.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 e49b43e..83043f0 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.10.0 +API version: 4.12.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 be87727..08781e9 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.10.0 +API version: 4.12.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 9dcd4f4..e37152a 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.10.0 +API version: 4.12.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 3768507..5b94701 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.10.0 +API version: 4.12.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 7a15050..6d3078c 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.10.0 +API version: 4.12.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 77b83a9..92148f8 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.10.0 +API version: 4.12.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 76040f4..40fba41 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.10.0 +API version: 4.12.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 ed2eafb..72aec5f 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.10.0 +API version: 4.12.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 2f02925..6555853 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.10.0 +API version: 4.12.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 a3d6343..b0ed22c 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.10.0 +API version: 4.12.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 380d5b4..d4e97ec 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.10.0 +API version: 4.12.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 f047425..eaf34f2 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.10.0 +API version: 4.12.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 a0f32d0..417a58f 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.10.0 +API version: 4.12.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 d5dc4c1..45ed3e5 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.10.0 +API version: 4.12.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_variable.go b/model_variable.go index f879aa1..41d0685 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.10.0 +API version: 4.12.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_volume.go b/model_volume.go index bf452e3..93ee0f8 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.10.0 +API version: 4.12.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 a91e51b..eddec4f 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.10.0 +API version: 4.12.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 3311072..05887be 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.10.0 +API version: 4.12.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 2cd0b31..eb4c5fa 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.10.0 +API version: 4.12.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 204ef73..0f5f9e8 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.10.0 +API version: 4.12.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/response.go b/response.go index 049ac58..ce15906 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.10.0 +API version: 4.12.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/test/api_ai_skills_test.go b/test/api_ai_skills_test.go new file mode 100644 index 0000000..f570c9c --- /dev/null +++ b/test/api_ai_skills_test.go @@ -0,0 +1,185 @@ +/* +QuantCDN API + +Testing AISkillsAPIService + +*/ + +// 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_AISkillsAPIService(t *testing.T) { + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + + t.Run("Test AISkillsAPIService CreateSkill", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var organisation string + + resp, httpRes, err := apiClient.AISkillsAPI.CreateSkill(context.Background(), organisation).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test AISkillsAPIService DeleteSkill", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var organisation string + var skillId string + + resp, httpRes, err := apiClient.AISkillsAPI.DeleteSkill(context.Background(), organisation, skillId).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test AISkillsAPIService DeleteSkillCollection", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var organisation string + var namespace string + + resp, httpRes, err := apiClient.AISkillsAPI.DeleteSkillCollection(context.Background(), organisation, namespace).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test AISkillsAPIService GetSkill", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var organisation string + var skillId string + + resp, httpRes, err := apiClient.AISkillsAPI.GetSkill(context.Background(), organisation, skillId).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test AISkillsAPIService ImportSkill", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var organisation string + + resp, httpRes, err := apiClient.AISkillsAPI.ImportSkill(context.Background(), organisation).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test AISkillsAPIService ImportSkillCollection", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var organisation string + + resp, httpRes, err := apiClient.AISkillsAPI.ImportSkillCollection(context.Background(), organisation).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test AISkillsAPIService ListSkillCollections", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var organisation string + + resp, httpRes, err := apiClient.AISkillsAPI.ListSkillCollections(context.Background(), organisation).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test AISkillsAPIService ListSkills", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var organisation string + + resp, httpRes, err := apiClient.AISkillsAPI.ListSkills(context.Background(), organisation).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test AISkillsAPIService SyncSkill", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var organisation string + var skillId string + + resp, httpRes, err := apiClient.AISkillsAPI.SyncSkill(context.Background(), organisation, skillId).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test AISkillsAPIService SyncSkillCollection", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var organisation string + var namespace string + + resp, httpRes, err := apiClient.AISkillsAPI.SyncSkillCollection(context.Background(), organisation, namespace).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test AISkillsAPIService UpdateSkill", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var organisation string + var skillId string + + resp, httpRes, err := apiClient.AISkillsAPI.UpdateSkill(context.Background(), organisation, skillId).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + +} diff --git a/test/api_orchestration_test.go b/test/api_orchestration_test.go deleted file mode 100644 index 9c1e598..0000000 --- a/test/api_orchestration_test.go +++ /dev/null @@ -1,40 +0,0 @@ -/* -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_tokens_test.go b/test/api_tokens_test.go new file mode 100644 index 0000000..5edd40a --- /dev/null +++ b/test/api_tokens_test.go @@ -0,0 +1,68 @@ +/* +QuantCDN API + +Testing TokensAPIService + +*/ + +// 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_TokensAPIService(t *testing.T) { + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + + t.Run("Test TokensAPIService TokensCreate", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var organization string + + resp, httpRes, err := apiClient.TokensAPI.TokensCreate(context.Background(), organization).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test TokensAPIService TokensDelete", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var organization string + var tokenId int32 + + resp, httpRes, err := apiClient.TokensAPI.TokensDelete(context.Background(), organization, tokenId).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test TokensAPIService TokensList", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var organization string + + resp, httpRes, err := apiClient.TokensAPI.TokensList(context.Background(), organization).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + +} diff --git a/utils.go b/utils.go index fc2d35c..50571dc 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.10.0 +API version: 4.12.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/version.go b/version.go index 8a44f0c..a1e9bfc 100644 --- a/version.go +++ b/version.go @@ -1,4 +1,4 @@ package quantadmingo // Version of the SDK -const Version = "4.10.0" +const Version = "4.12.0"