From 0cc401c1dfc3a7b81c172424ec5dc5e122b93648 Mon Sep 17 00:00:00 2001 From: "quantcloud[bot]" Date: Mon, 30 Mar 2026 23:17:52 +0000 Subject: [PATCH] feat(sdk): v4.14.0 - Auto-generated from unified API spec Generated from unified API spec v4.14.0 Changes: - Auto-generated SDK updates This PR was automatically created by the API generation pipeline. --- .openapi-generator/FILES | 70 + README.md | 52 +- api/openapi.yaml | 4350 ++++++++++++----- api_ai_agents.go | 382 +- api_ai_custom_tools.go | 2 +- api_ai_file_storage.go | 2 +- api_ai_filter_policies.go | 872 ++++ api_ai_governance.go | 380 ++ 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 | 2 +- api_ai_slack_bots.go | 928 ++++ api_ai_task_management.go | 2 +- api_ai_tools.go | 2 +- api_ai_usage.go | 141 + api_ai_vector_database.go | 2 +- api_applications.go | 2 +- api_backup_management.go | 2 +- api_cdn_metrics.go | 2 +- 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_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 | 2 +- api_variables.go | 2 +- api_volumes.go | 2 +- client.go | 16 +- configuration.go | 2 +- docs/AIAgentsAPI.md | 224 + docs/AIFilterPoliciesAPI.md | 510 ++ docs/AIGovernanceAPI.md | 217 + docs/AISlackBotsAPI.md | 528 ++ docs/AIUsageAPI.md | 77 + docs/ChatWithAIAgentRequest.md | 78 + docs/CreateAIAgentRequest.md | 104 + docs/CreateFilterPolicyRequest.md | 134 + docs/CreateFilterPolicyRequestRulesInner.md | 134 + ...reateFilterPolicyRequestRulesInnerMatch.md | 108 + docs/CreateSlackBot201Response.md | 56 + docs/CreateSlackBotRequest.md | 202 + docs/DeleteAgentOverlay200Response.md | 82 + docs/DeleteSlackBot200Response.md | 82 + docs/GetAIAgent200ResponseAgent.md | 130 + docs/GetAgentOverlay200Response.md | 92 + docs/GetAgentOverlay200ResponseBase.md | 160 + docs/GetAgentOverlay200ResponseOverlay.md | 316 ++ docs/GetGovernanceConfig200Response.md | 248 + ...tGovernanceConfig200ResponseSpendLimits.md | 210 + docs/GetMyUsage200Response.md | 170 + docs/GetMyUsage200ResponseDaily.md | 56 + docs/GetMyUsage200ResponseMonthly.md | 82 + docs/GetSlackBot200Response.md | 56 + docs/GetSlackBot200ResponseBot.md | 342 ++ docs/ListAIAgents200ResponseAgentsInner.md | 130 + docs/ListSlackBots200Response.md | 56 + docs/ListSlackBots200ResponseBotsInner.md | 238 + ...SearchSlackWorkspaceChannels200Response.md | 56 + ...orkspaceChannels200ResponseResultsInner.md | 82 + docs/SearchSlackWorkspaceUsers200Response.md | 56 + ...ckWorkspaceUsers200ResponseResultsInner.md | 108 + docs/UpdateAIAgentRequest.md | 104 + docs/UpdateFilterPolicyRequest.md | 144 + docs/UpdateGovernanceConfig200Response.md | 82 + docs/UpdateGovernanceConfigRequest.md | 212 + docs/UpdateSlackBotRequest.md | 212 + docs/UpsertAgentOverlay200Response.md | 56 + docs/UpsertAgentOverlayRequest.md | 316 ++ docs/V2Rule.md | 78 + docs/V2RuleAuth.md | 78 + docs/V2RuleAuthRequest.md | 78 + docs/V2RuleBotChallenge.md | 78 + docs/V2RuleBotChallengeRequest.md | 78 + docs/V2RuleContentFilter.md | 78 + docs/V2RuleContentFilterRequest.md | 78 + docs/V2RuleCustomResponse.md | 78 + docs/V2RuleCustomResponseRequest.md | 78 + docs/V2RuleFunction.md | 78 + docs/V2RuleFunctionRequest.md | 78 + docs/V2RuleHeader.md | 78 + docs/V2RuleHeaderRequest.md | 78 + docs/V2RuleProxy.md | 78 + docs/V2RuleProxyRequest.md | 78 + docs/V2RuleRedirect.md | 78 + docs/V2RuleRedirectRequest.md | 78 + docs/V2RuleRequest.md | 78 + docs/V2RuleServeStatic.md | 78 + docs/V2RuleServeStaticRequest.md | 78 + 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 | 2 +- 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 | 2 +- ...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 | 120 +- 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 | 154 +- 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_filter_policy_request.go | 281 ++ ...reate_filter_policy_request_rules_inner.go | 266 + ...filter_policy_request_rules_inner_match.go | 231 + model_create_orchestration_request.go | 2 +- ...eate_orchestration_request_input_source.go | 2 +- ...te_orchestration_request_stop_condition.go | 2 +- model_create_skill_201_response.go | 2 +- model_create_skill_request.go | 2 +- model_create_slack_bot_201_response.go | 155 + model_create_slack_bot_request.go | 389 ++ 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_agent_overlay_200_response.go | 192 + model_delete_ai_agent_200_response.go | 2 +- model_delete_ai_session_200_response.go | 2 +- model_delete_backup_200_response.go | 2 +- model_delete_custom_tool_200_response.go | 2 +- model_delete_file_200_response.go | 2 +- model_delete_skill_200_response.go | 2 +- model_delete_skill_collection_200_response.go | 2 +- model_delete_slack_bot_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_agent_overlay_200_response.go | 202 + model_get_agent_overlay_200_response_base.go | 303 ++ ..._get_agent_overlay_200_response_overlay.go | 525 ++ model_get_ai_agent_200_response.go | 2 +- model_get_ai_agent_200_response_agent.go | 191 +- 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_governance_config_200_response.go | 424 ++ ...rnance_config_200_response_spend_limits.go | 353 ++ model_get_my_usage_200_response.go | 304 ++ model_get_my_usage_200_response_daily.go | 155 + model_get_my_usage_200_response_monthly.go | 192 + model_get_skill_200_response.go | 2 +- model_get_skill_200_response_skill.go | 2 +- model_get_slack_bot_200_response.go | 155 + model_get_slack_bot_200_response_bot.go | 563 +++ ...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 | 2 +- model_import_skill_collection_201_response.go | 2 +- model_import_skill_collection_request.go | 2 +- ..._import_skill_collection_request_source.go | 2 +- model_import_skill_request.go | 2 +- model_import_skill_request_source.go | 2 +- model_kv_items_create_200_response.go | 2 +- model_kv_items_delete_200_response.go | 2 +- model_kv_items_show_200_response.go | 2 +- model_kv_items_show_200_response_value.go | 2 +- model_kv_link_to_project_200_response.go | 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 | 187 +- 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 | 2 +- ...lections_200_response_collections_inner.go | 2 +- model_list_skills_200_response.go | 2 +- ...l_list_skills_200_response_skills_inner.go | 2 +- model_list_slack_bots_200_response.go | 155 + ...list_slack_bots_200_response_bots_inner.go | 415 ++ 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 +- ...h_slack_workspace_channels_200_response.go | 155 + ...ace_channels_200_response_results_inner.go | 192 + ...arch_slack_workspace_users_200_response.go | 155 + ...kspace_users_200_response_results_inner.go | 229 + 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 | 2 +- model_sync_to_environment_request.go | 2 +- model_tokens_create_201_response.go | 2 +- model_tokens_create_request.go | 2 +- model_tokens_delete_200_response.go | 2 +- model_tokens_list_200_response_inner.go | 2 +- model_update_ai_agent_200_response.go | 2 +- model_update_ai_agent_request.go | 154 +- 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_filter_policy_request.go | 276 ++ ...l_update_governance_config_200_response.go | 192 + model_update_governance_config_request.go | 392 ++ model_update_skill_200_response.go | 2 +- model_update_skill_request.go | 2 +- model_update_slack_bot_request.go | 384 ++ 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_upsert_agent_overlay_200_response.go | 155 + model_upsert_agent_overlay_request.go | 536 ++ 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 | 116 +- model_v2_rule_auth.go | 116 +- model_v2_rule_auth_action.go | 2 +- model_v2_rule_auth_request.go | 116 +- model_v2_rule_bot_challenge.go | 116 +- model_v2_rule_bot_challenge_action.go | 2 +- model_v2_rule_bot_challenge_request.go | 116 +- model_v2_rule_content_filter.go | 116 +- model_v2_rule_content_filter_action.go | 2 +- model_v2_rule_content_filter_request.go | 116 +- model_v2_rule_custom_response.go | 116 +- model_v2_rule_custom_response_action.go | 2 +- model_v2_rule_custom_response_request.go | 116 +- model_v2_rule_function.go | 116 +- model_v2_rule_function_action.go | 2 +- model_v2_rule_function_request.go | 116 +- model_v2_rule_header.go | 116 +- model_v2_rule_header_action.go | 2 +- model_v2_rule_header_request.go | 116 +- model_v2_rule_proxy.go | 116 +- 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 | 116 +- model_v2_rule_redirect.go | 116 +- model_v2_rule_redirect_action.go | 2 +- model_v2_rule_redirect_request.go | 116 +- model_v2_rule_request.go | 116 +- model_v2_rule_serve_static.go | 116 +- model_v2_rule_serve_static_action.go | 2 +- model_v2_rule_serve_static_request.go | 116 +- model_v2_secret_store.go | 2 +- model_v2_secret_store_request.go | 2 +- model_v2_store.go | 2 +- model_v2_store_item.go | 2 +- model_v2_store_item_request.go | 2 +- model_v2_store_item_update_request.go | 2 +- model_v2_store_items_list_response.go | 2 +- model_v2_store_request.go | 2 +- model_validate_compose_200_response.go | 2 +- model_validate_compose_422_response.go | 2 +- model_validate_compose_request.go | 2 +- model_variable.go | 2 +- model_volume.go | 2 +- model_waf_config.go | 2 +- model_waf_config_block_lists.go | 2 +- model_waf_config_httpbl.go | 2 +- model_waf_config_thresholds_inner.go | 2 +- response.go | 2 +- test/api_ai_agents_test.go | 45 + test/api_ai_filter_policies_test.go | 128 + test/api_ai_governance_test.go | 67 + test/api_ai_slack_bots_test.go | 128 + test/api_ai_usage_test.go | 39 + utils.go | 2 +- version.go | 2 +- 490 files changed, 25712 insertions(+), 1666 deletions(-) create mode 100644 api_ai_filter_policies.go create mode 100644 api_ai_governance.go create mode 100644 api_ai_slack_bots.go create mode 100644 api_ai_usage.go create mode 100644 docs/AIFilterPoliciesAPI.md create mode 100644 docs/AIGovernanceAPI.md create mode 100644 docs/AISlackBotsAPI.md create mode 100644 docs/AIUsageAPI.md create mode 100644 docs/CreateFilterPolicyRequest.md create mode 100644 docs/CreateFilterPolicyRequestRulesInner.md create mode 100644 docs/CreateFilterPolicyRequestRulesInnerMatch.md create mode 100644 docs/CreateSlackBot201Response.md create mode 100644 docs/CreateSlackBotRequest.md create mode 100644 docs/DeleteAgentOverlay200Response.md create mode 100644 docs/DeleteSlackBot200Response.md create mode 100644 docs/GetAgentOverlay200Response.md create mode 100644 docs/GetAgentOverlay200ResponseBase.md create mode 100644 docs/GetAgentOverlay200ResponseOverlay.md create mode 100644 docs/GetGovernanceConfig200Response.md create mode 100644 docs/GetGovernanceConfig200ResponseSpendLimits.md create mode 100644 docs/GetMyUsage200Response.md create mode 100644 docs/GetMyUsage200ResponseDaily.md create mode 100644 docs/GetMyUsage200ResponseMonthly.md create mode 100644 docs/GetSlackBot200Response.md create mode 100644 docs/GetSlackBot200ResponseBot.md create mode 100644 docs/ListSlackBots200Response.md create mode 100644 docs/ListSlackBots200ResponseBotsInner.md create mode 100644 docs/SearchSlackWorkspaceChannels200Response.md create mode 100644 docs/SearchSlackWorkspaceChannels200ResponseResultsInner.md create mode 100644 docs/SearchSlackWorkspaceUsers200Response.md create mode 100644 docs/SearchSlackWorkspaceUsers200ResponseResultsInner.md create mode 100644 docs/UpdateFilterPolicyRequest.md create mode 100644 docs/UpdateGovernanceConfig200Response.md create mode 100644 docs/UpdateGovernanceConfigRequest.md create mode 100644 docs/UpdateSlackBotRequest.md create mode 100644 docs/UpsertAgentOverlay200Response.md create mode 100644 docs/UpsertAgentOverlayRequest.md create mode 100644 model_create_filter_policy_request.go create mode 100644 model_create_filter_policy_request_rules_inner.go create mode 100644 model_create_filter_policy_request_rules_inner_match.go create mode 100644 model_create_slack_bot_201_response.go create mode 100644 model_create_slack_bot_request.go create mode 100644 model_delete_agent_overlay_200_response.go create mode 100644 model_delete_slack_bot_200_response.go create mode 100644 model_get_agent_overlay_200_response.go create mode 100644 model_get_agent_overlay_200_response_base.go create mode 100644 model_get_agent_overlay_200_response_overlay.go create mode 100644 model_get_governance_config_200_response.go create mode 100644 model_get_governance_config_200_response_spend_limits.go create mode 100644 model_get_my_usage_200_response.go create mode 100644 model_get_my_usage_200_response_daily.go create mode 100644 model_get_my_usage_200_response_monthly.go create mode 100644 model_get_slack_bot_200_response.go create mode 100644 model_get_slack_bot_200_response_bot.go create mode 100644 model_list_slack_bots_200_response.go create mode 100644 model_list_slack_bots_200_response_bots_inner.go create mode 100644 model_search_slack_workspace_channels_200_response.go create mode 100644 model_search_slack_workspace_channels_200_response_results_inner.go create mode 100644 model_search_slack_workspace_users_200_response.go create mode 100644 model_search_slack_workspace_users_200_response_results_inner.go create mode 100644 model_update_filter_policy_request.go create mode 100644 model_update_governance_config_200_response.go create mode 100644 model_update_governance_config_request.go create mode 100644 model_update_slack_bot_request.go create mode 100644 model_upsert_agent_overlay_200_response.go create mode 100644 model_upsert_agent_overlay_request.go create mode 100644 test/api_ai_filter_policies_test.go create mode 100644 test/api_ai_governance_test.go create mode 100644 test/api_ai_slack_bots_test.go create mode 100644 test/api_ai_usage_test.go diff --git a/.openapi-generator/FILES b/.openapi-generator/FILES index fdf766e..43828bb 100644 --- a/.openapi-generator/FILES +++ b/.openapi-generator/FILES @@ -5,14 +5,18 @@ api/openapi.yaml api_ai_agents.go api_ai_custom_tools.go api_ai_file_storage.go +api_ai_filter_policies.go +api_ai_governance.go api_ai_inference.go api_ai_models.go api_ai_monitoring.go api_ai_orchestrations.go api_ai_sessions.go api_ai_skills.go +api_ai_slack_bots.go api_ai_task_management.go api_ai_tools.go +api_ai_usage.go api_ai_vector_database.go api_applications.go api_backup_management.go @@ -41,14 +45,18 @@ configuration.go docs/AIAgentsAPI.md docs/AICustomToolsAPI.md docs/AIFileStorageAPI.md +docs/AIFilterPoliciesAPI.md +docs/AIGovernanceAPI.md docs/AIInferenceAPI.md docs/AIModelsAPI.md docs/AIMonitoringAPI.md docs/AIOrchestrationsAPI.md docs/AISessionsAPI.md docs/AISkillsAPI.md +docs/AISlackBotsAPI.md docs/AITaskManagementAPI.md docs/AIToolsAPI.md +docs/AIUsageAPI.md docs/AIVectorDatabaseAPI.md docs/Application.md docs/ApplicationDatabase.md @@ -133,11 +141,16 @@ docs/CreateCustomToolRequest.md docs/CreateEnvironment403Response.md docs/CreateEnvironmentRequest.md docs/CreateEnvironmentRequestEnvironmentInner.md +docs/CreateFilterPolicyRequest.md +docs/CreateFilterPolicyRequestRulesInner.md +docs/CreateFilterPolicyRequestRulesInnerMatch.md docs/CreateOrchestrationRequest.md docs/CreateOrchestrationRequestInputSource.md docs/CreateOrchestrationRequestStopCondition.md docs/CreateSkill201Response.md docs/CreateSkillRequest.md +docs/CreateSlackBot201Response.md +docs/CreateSlackBotRequest.md docs/CreateTask201Response.md docs/CreateTaskRequest.md docs/CreateVectorCollection201Response.md @@ -149,11 +162,13 @@ docs/CronAPI.md docs/CronRun.md docs/DeleteAIAgent200Response.md docs/DeleteAISession200Response.md +docs/DeleteAgentOverlay200Response.md docs/DeleteBackup200Response.md docs/DeleteCustomTool200Response.md docs/DeleteFile200Response.md docs/DeleteSkill200Response.md docs/DeleteSkillCollection200Response.md +docs/DeleteSlackBot200Response.md docs/DeleteTask200Response.md docs/DeleteTask409Response.md docs/DeleteVectorDocuments200Response.md @@ -187,6 +202,9 @@ docs/GetAIToolExecutionStatus200ResponseResult.md docs/GetAIToolExecutionStatus404Response.md docs/GetAIUsageStats200Response.md docs/GetAIUsageStats200ResponseByModelValue.md +docs/GetAgentOverlay200Response.md +docs/GetAgentOverlay200ResponseBase.md +docs/GetAgentOverlay200ResponseOverlay.md docs/GetDependencyGraph200Response.md docs/GetDurableExecutionStatus200Response.md docs/GetDurableExecutionStatus200ResponseError.md @@ -198,8 +216,15 @@ docs/GetEcrLoginCredentials200Response.md docs/GetEnvironmentLogs200Response.md docs/GetEnvironmentLogs200ResponseLogEventsInner.md docs/GetFile200Response.md +docs/GetGovernanceConfig200Response.md +docs/GetGovernanceConfig200ResponseSpendLimits.md +docs/GetMyUsage200Response.md +docs/GetMyUsage200ResponseDaily.md +docs/GetMyUsage200ResponseMonthly.md docs/GetSkill200Response.md docs/GetSkill200ResponseSkill.md +docs/GetSlackBot200Response.md +docs/GetSlackBot200ResponseBot.md docs/GetSshAccessCredentials200Response.md docs/GetSshAccessCredentials200ResponseCredentials.md docs/GetTask200Response.md @@ -255,6 +280,8 @@ docs/ListSkillCollections200Response.md docs/ListSkillCollections200ResponseCollectionsInner.md docs/ListSkills200Response.md docs/ListSkills200ResponseSkillsInner.md +docs/ListSlackBots200Response.md +docs/ListSlackBots200ResponseBotsInner.md docs/ListTasks200Response.md docs/ListTasks200ResponseTasksInner.md docs/ListVectorCollections200Response.md @@ -278,6 +305,10 @@ docs/RulesAPI.md docs/SSHAccessAPI.md docs/ScalingPolicy.md docs/ScalingPolicyAPI.md +docs/SearchSlackWorkspaceChannels200Response.md +docs/SearchSlackWorkspaceChannels200ResponseResultsInner.md +docs/SearchSlackWorkspaceUsers200Response.md +docs/SearchSlackWorkspaceUsers200ResponseResultsInner.md docs/SpotConfiguration.md docs/SubmitToolCallback200Response.md docs/SubmitToolCallbackRequest.md @@ -299,8 +330,12 @@ docs/UpdateCronJobRequest.md docs/UpdateEnvironmentRequest.md docs/UpdateEnvironmentStateRequest.md docs/UpdateEnvironmentVariableRequest.md +docs/UpdateFilterPolicyRequest.md +docs/UpdateGovernanceConfig200Response.md +docs/UpdateGovernanceConfigRequest.md docs/UpdateSkill200Response.md docs/UpdateSkillRequest.md +docs/UpdateSlackBotRequest.md docs/UpdateTask200Response.md docs/UpdateTaskRequest.md docs/UploadFile201Response.md @@ -309,6 +344,8 @@ docs/UploadVectorDocuments200Response.md docs/UploadVectorDocumentsRequest.md docs/UploadVectorDocumentsRequestDocumentsInner.md docs/UploadVectorDocumentsRequestDocumentsInnerMetadata.md +docs/UpsertAgentOverlay200Response.md +docs/UpsertAgentOverlayRequest.md docs/V1ContentItem.md docs/V1ContentListResponse.md docs/V1ContentRequest.md @@ -501,11 +538,16 @@ model_create_custom_tool_request.go model_create_environment_403_response.go model_create_environment_request.go model_create_environment_request_environment_inner.go +model_create_filter_policy_request.go +model_create_filter_policy_request_rules_inner.go +model_create_filter_policy_request_rules_inner_match.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_slack_bot_201_response.go +model_create_slack_bot_request.go model_create_task_201_response.go model_create_task_request.go model_create_vector_collection_201_response.go @@ -514,6 +556,7 @@ model_create_vector_collection_request.go model_create_volume_request.go model_cron.go model_cron_run.go +model_delete_agent_overlay_200_response.go model_delete_ai_agent_200_response.go model_delete_ai_session_200_response.go model_delete_backup_200_response.go @@ -521,6 +564,7 @@ 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_slack_bot_200_response.go model_delete_task_200_response.go model_delete_task_409_response.go model_delete_vector_documents_200_response.go @@ -537,6 +581,9 @@ model_environment_response.go model_environment_summary.go model_extend_ai_session_200_response.go model_extend_ai_session_request.go +model_get_agent_overlay_200_response.go +model_get_agent_overlay_200_response_base.go +model_get_agent_overlay_200_response_overlay.go model_get_ai_agent_200_response.go model_get_ai_agent_200_response_agent.go model_get_ai_model_200_response.go @@ -563,8 +610,15 @@ 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_governance_config_200_response.go +model_get_governance_config_200_response_spend_limits.go +model_get_my_usage_200_response.go +model_get_my_usage_200_response_daily.go +model_get_my_usage_200_response_monthly.go model_get_skill_200_response.go model_get_skill_200_response_skill.go +model_get_slack_bot_200_response.go +model_get_slack_bot_200_response_bot.go model_get_ssh_access_credentials_200_response.go model_get_ssh_access_credentials_200_response_credentials.go model_get_task_200_response.go @@ -618,6 +672,8 @@ 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_slack_bots_200_response.go +model_list_slack_bots_200_response_bots_inner.go model_list_tasks_200_response.go model_list_tasks_200_response_tasks_inner.go model_list_vector_collections_200_response.go @@ -635,6 +691,10 @@ model_query_vector_collection_200_response_results_inner.go model_query_vector_collection_request.go model_query_vector_collection_request_filter.go model_scaling_policy.go +model_search_slack_workspace_channels_200_response.go +model_search_slack_workspace_channels_200_response_results_inner.go +model_search_slack_workspace_users_200_response.go +model_search_slack_workspace_users_200_response_results_inner.go model_spot_configuration.go model_submit_tool_callback_200_response.go model_submit_tool_callback_request.go @@ -655,8 +715,12 @@ 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_filter_policy_request.go +model_update_governance_config_200_response.go +model_update_governance_config_request.go model_update_skill_200_response.go model_update_skill_request.go +model_update_slack_bot_request.go model_update_task_200_response.go model_update_task_request.go model_upload_file_201_response.go @@ -665,6 +729,8 @@ model_upload_vector_documents_200_response.go model_upload_vector_documents_request.go model_upload_vector_documents_request_documents_inner.go model_upload_vector_documents_request_documents_inner_metadata.go +model_upsert_agent_overlay_200_response.go +model_upsert_agent_overlay_request.go model_v1_content_item.go model_v1_content_list_response.go model_v1_content_request.go @@ -781,14 +847,18 @@ response.go test/api_ai_agents_test.go test/api_ai_custom_tools_test.go test/api_ai_file_storage_test.go +test/api_ai_filter_policies_test.go +test/api_ai_governance_test.go test/api_ai_inference_test.go test/api_ai_models_test.go test/api_ai_monitoring_test.go test/api_ai_orchestrations_test.go test/api_ai_sessions_test.go test/api_ai_skills_test.go +test/api_ai_slack_bots_test.go test/api_ai_task_management_test.go test/api_ai_tools_test.go +test/api_ai_usage_test.go test/api_ai_vector_database_test.go test/api_applications_test.go test/api_backup_management_test.go diff --git a/README.md b/README.md index 358285e..be48008 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.13.0 +- API version: 4.14.0 - Package version: 1.0.0 - Generator version: 7.13.0 - Build package: org.openapitools.codegen.languages.GoClientCodegen @@ -81,9 +81,12 @@ Class | Method | HTTP request | Description *AIAgentsAPI* | [**ChatWithAIAgent**](docs/AIAgentsAPI.md#chatwithaiagent) | **Post** /api/v3/organizations/{organisation}/ai/agents/{agentId}/chat | Chat with AI Agent *AIAgentsAPI* | [**CreateAIAgent**](docs/AIAgentsAPI.md#createaiagent) | **Post** /api/v3/organizations/{organisation}/ai/agents | Create AI Agent *AIAgentsAPI* | [**DeleteAIAgent**](docs/AIAgentsAPI.md#deleteaiagent) | **Delete** /api/v3/organizations/{organisation}/ai/agents/{agentId} | Delete Agent +*AIAgentsAPI* | [**DeleteAgentOverlay**](docs/AIAgentsAPI.md#deleteagentoverlay) | **Delete** /api/v3/organizations/{organisation}/ai/agents/{agentId}/overlay | Delete Agent Overlay *AIAgentsAPI* | [**GetAIAgent**](docs/AIAgentsAPI.md#getaiagent) | **Get** /api/v3/organizations/{organisation}/ai/agents/{agentId} | Get Agent Details +*AIAgentsAPI* | [**GetAgentOverlay**](docs/AIAgentsAPI.md#getagentoverlay) | **Get** /api/v3/organizations/{organisation}/ai/agents/{agentId}/overlay | Get Agent Overlay *AIAgentsAPI* | [**ListAIAgents**](docs/AIAgentsAPI.md#listaiagents) | **Get** /api/v3/organizations/{organisation}/ai/agents | List AI Agents *AIAgentsAPI* | [**UpdateAIAgent**](docs/AIAgentsAPI.md#updateaiagent) | **Put** /api/v3/organizations/{organisation}/ai/agents/{agentId} | Update Agent +*AIAgentsAPI* | [**UpsertAgentOverlay**](docs/AIAgentsAPI.md#upsertagentoverlay) | **Put** /api/v3/organizations/{organisation}/ai/agents/{agentId}/overlay | Upsert Agent Overlay *AICustomToolsAPI* | [**CreateCustomTool**](docs/AICustomToolsAPI.md#createcustomtool) | **Post** /api/v3/organizations/{organisation}/ai/custom-tools | Register Custom Edge Function Tool *AICustomToolsAPI* | [**DeleteCustomTool**](docs/AICustomToolsAPI.md#deletecustomtool) | **Delete** /api/v3/organizations/{organisation}/ai/custom-tools/{toolName} | Delete Custom Tool *AICustomToolsAPI* | [**ListCustomTools**](docs/AICustomToolsAPI.md#listcustomtools) | **Get** /api/v3/organizations/{organisation}/ai/custom-tools | List Custom Tools @@ -91,6 +94,16 @@ Class | Method | HTTP request | Description *AIFileStorageAPI* | [**GetFile**](docs/AIFileStorageAPI.md#getfile) | **Get** /api/v3/organizations/{organisation}/ai/files/{fileId} | Get File *AIFileStorageAPI* | [**ListFiles**](docs/AIFileStorageAPI.md#listfiles) | **Get** /api/v3/organizations/{organisation}/ai/files | List Files *AIFileStorageAPI* | [**UploadFile**](docs/AIFileStorageAPI.md#uploadfile) | **Post** /api/v3/organizations/{organisation}/ai/files | Upload File to S3 +*AIFilterPoliciesAPI* | [**CreateFilterPolicy**](docs/AIFilterPoliciesAPI.md#createfilterpolicy) | **Post** /api/v3/organizations/{organisation}/ai/filter-policies | Create an AI filter policy for an organisation +*AIFilterPoliciesAPI* | [**DeleteFilterPolicy**](docs/AIFilterPoliciesAPI.md#deletefilterpolicy) | **Delete** /api/v3/organizations/{organisation}/ai/filter-policies/{policyId} | Delete a specific AI filter policy +*AIFilterPoliciesAPI* | [**DisableFilterPolicy**](docs/AIFilterPoliciesAPI.md#disablefilterpolicy) | **Put** /api/v3/organizations/{organisation}/ai/filter-policies/{policyId}/disable | Disable a specific AI filter policy +*AIFilterPoliciesAPI* | [**EnableFilterPolicy**](docs/AIFilterPoliciesAPI.md#enablefilterpolicy) | **Put** /api/v3/organizations/{organisation}/ai/filter-policies/{policyId}/enable | Enable a specific AI filter policy +*AIFilterPoliciesAPI* | [**GetFilterPolicy**](docs/AIFilterPoliciesAPI.md#getfilterpolicy) | **Get** /api/v3/organizations/{organisation}/ai/filter-policies/{policyId} | Get a specific AI filter policy +*AIFilterPoliciesAPI* | [**ListFilterPolicies**](docs/AIFilterPoliciesAPI.md#listfilterpolicies) | **Get** /api/v3/organizations/{organisation}/ai/filter-policies | List AI filter policies for an organisation +*AIFilterPoliciesAPI* | [**UpdateFilterPolicy**](docs/AIFilterPoliciesAPI.md#updatefilterpolicy) | **Put** /api/v3/organizations/{organisation}/ai/filter-policies/{policyId} | Update a specific AI filter policy +*AIGovernanceAPI* | [**GetGovernanceConfig**](docs/AIGovernanceAPI.md#getgovernanceconfig) | **Get** /api/v3/organizations/{organisation}/ai/governance | Get AI governance configuration for an organisation +*AIGovernanceAPI* | [**GetGovernanceSpend**](docs/AIGovernanceAPI.md#getgovernancespend) | **Get** /api/v3/organizations/{organisation}/ai/governance/spend | Get AI spend summary for an organisation +*AIGovernanceAPI* | [**UpdateGovernanceConfig**](docs/AIGovernanceAPI.md#updategovernanceconfig) | **Put** /api/v3/organizations/{organisation}/ai/governance | Update AI governance configuration for an organisation *AIInferenceAPI* | [**ChatInference**](docs/AIInferenceAPI.md#chatinference) | **Post** /api/v3/organizations/{organisation}/ai/chat | Chat inference via API Gateway (buffered responses) with multimodal support *AIInferenceAPI* | [**ChatInferenceStream**](docs/AIInferenceAPI.md#chatinferencestream) | **Post** /api/v3/organizations/{organisation}/ai/chat/stream | Chat inference via streaming endpoint (true HTTP streaming) with multimodal support *AIInferenceAPI* | [**Embeddings**](docs/AIInferenceAPI.md#embeddings) | **Post** /api/v3/organizations/{organisation}/ai/embeddings | Generate text embeddings for semantic search and RAG applications @@ -126,6 +139,13 @@ Class | Method | HTTP request | Description *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 +*AISlackBotsAPI* | [**CreateSlackBot**](docs/AISlackBotsAPI.md#createslackbot) | **Post** /api/v3/organizations/{organisation}/ai/slack-bots | Create Slack Bot +*AISlackBotsAPI* | [**DeleteSlackBot**](docs/AISlackBotsAPI.md#deleteslackbot) | **Delete** /api/v3/organizations/{organisation}/ai/slack-bots/{botId} | Delete Slack Bot +*AISlackBotsAPI* | [**GetSlackBot**](docs/AISlackBotsAPI.md#getslackbot) | **Get** /api/v3/organizations/{organisation}/ai/slack-bots/{botId} | Get Slack Bot +*AISlackBotsAPI* | [**ListSlackBots**](docs/AISlackBotsAPI.md#listslackbots) | **Get** /api/v3/organizations/{organisation}/ai/slack-bots | List Slack Bots +*AISlackBotsAPI* | [**SearchSlackWorkspaceChannels**](docs/AISlackBotsAPI.md#searchslackworkspacechannels) | **Get** /api/v3/organizations/{organisation}/ai/slack-bots/{botId}/workspace/channels | Search Slack Workspace Channels +*AISlackBotsAPI* | [**SearchSlackWorkspaceUsers**](docs/AISlackBotsAPI.md#searchslackworkspaceusers) | **Get** /api/v3/organizations/{organisation}/ai/slack-bots/{botId}/workspace/users | Search Slack Workspace Users +*AISlackBotsAPI* | [**UpdateSlackBot**](docs/AISlackBotsAPI.md#updateslackbot) | **Put** /api/v3/organizations/{organisation}/ai/slack-bots/{botId} | Update Slack Bot *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 @@ -137,6 +157,7 @@ Class | Method | HTTP request | Description *AIToolsAPI* | [**ListAIToolExecutions**](docs/AIToolsAPI.md#listaitoolexecutions) | **Get** /api/v3/organizations/{organisation}/ai/tools/executions | List tool executions for monitoring and debugging *AIToolsAPI* | [**ListAIToolNames**](docs/AIToolsAPI.md#listaitoolnames) | **Get** /api/v3/organizations/{organisation}/ai/tools/names | List tool names only (lightweight response) *AIToolsAPI* | [**ListAITools**](docs/AIToolsAPI.md#listaitools) | **Get** /api/v3/organizations/{organisation}/ai/tools | List available built-in tools for function calling +*AIUsageAPI* | [**GetMyUsage**](docs/AIUsageAPI.md#getmyusage) | **Get** /api/v3/organizations/{organisation}/ai/usage/me | Get AI usage summary for the authenticated user *AIVectorDatabaseAPI* | [**CreateVectorCollection**](docs/AIVectorDatabaseAPI.md#createvectorcollection) | **Post** /api/v3/organizations/{organisation}/ai/vector-db/collections | Create Vector Database Collection *AIVectorDatabaseAPI* | [**DeleteVectorCollection**](docs/AIVectorDatabaseAPI.md#deletevectorcollection) | **Delete** /api/v3/organizations/{organisation}/ai/vector-db/collections/{collectionId} | Delete Collection *AIVectorDatabaseAPI* | [**DeleteVectorDocuments**](docs/AIVectorDatabaseAPI.md#deletevectordocuments) | **Delete** /api/v3/organizations/{organisation}/ai/vector-db/collections/{collectionId}/documents | Delete Documents from Collection @@ -360,11 +381,16 @@ Class | Method | HTTP request | Description - [CreateEnvironment403Response](docs/CreateEnvironment403Response.md) - [CreateEnvironmentRequest](docs/CreateEnvironmentRequest.md) - [CreateEnvironmentRequestEnvironmentInner](docs/CreateEnvironmentRequestEnvironmentInner.md) + - [CreateFilterPolicyRequest](docs/CreateFilterPolicyRequest.md) + - [CreateFilterPolicyRequestRulesInner](docs/CreateFilterPolicyRequestRulesInner.md) + - [CreateFilterPolicyRequestRulesInnerMatch](docs/CreateFilterPolicyRequestRulesInnerMatch.md) - [CreateOrchestrationRequest](docs/CreateOrchestrationRequest.md) - [CreateOrchestrationRequestInputSource](docs/CreateOrchestrationRequestInputSource.md) - [CreateOrchestrationRequestStopCondition](docs/CreateOrchestrationRequestStopCondition.md) - [CreateSkill201Response](docs/CreateSkill201Response.md) - [CreateSkillRequest](docs/CreateSkillRequest.md) + - [CreateSlackBot201Response](docs/CreateSlackBot201Response.md) + - [CreateSlackBotRequest](docs/CreateSlackBotRequest.md) - [CreateTask201Response](docs/CreateTask201Response.md) - [CreateTaskRequest](docs/CreateTaskRequest.md) - [CreateVectorCollection201Response](docs/CreateVectorCollection201Response.md) @@ -375,11 +401,13 @@ Class | Method | HTTP request | Description - [CronRun](docs/CronRun.md) - [DeleteAIAgent200Response](docs/DeleteAIAgent200Response.md) - [DeleteAISession200Response](docs/DeleteAISession200Response.md) + - [DeleteAgentOverlay200Response](docs/DeleteAgentOverlay200Response.md) - [DeleteBackup200Response](docs/DeleteBackup200Response.md) - [DeleteCustomTool200Response](docs/DeleteCustomTool200Response.md) - [DeleteFile200Response](docs/DeleteFile200Response.md) - [DeleteSkill200Response](docs/DeleteSkill200Response.md) - [DeleteSkillCollection200Response](docs/DeleteSkillCollection200Response.md) + - [DeleteSlackBot200Response](docs/DeleteSlackBot200Response.md) - [DeleteTask200Response](docs/DeleteTask200Response.md) - [DeleteTask409Response](docs/DeleteTask409Response.md) - [DeleteVectorDocuments200Response](docs/DeleteVectorDocuments200Response.md) @@ -411,6 +439,9 @@ Class | Method | HTTP request | Description - [GetAIToolExecutionStatus404Response](docs/GetAIToolExecutionStatus404Response.md) - [GetAIUsageStats200Response](docs/GetAIUsageStats200Response.md) - [GetAIUsageStats200ResponseByModelValue](docs/GetAIUsageStats200ResponseByModelValue.md) + - [GetAgentOverlay200Response](docs/GetAgentOverlay200Response.md) + - [GetAgentOverlay200ResponseBase](docs/GetAgentOverlay200ResponseBase.md) + - [GetAgentOverlay200ResponseOverlay](docs/GetAgentOverlay200ResponseOverlay.md) - [GetDependencyGraph200Response](docs/GetDependencyGraph200Response.md) - [GetDurableExecutionStatus200Response](docs/GetDurableExecutionStatus200Response.md) - [GetDurableExecutionStatus200ResponseError](docs/GetDurableExecutionStatus200ResponseError.md) @@ -422,8 +453,15 @@ Class | Method | HTTP request | Description - [GetEnvironmentLogs200Response](docs/GetEnvironmentLogs200Response.md) - [GetEnvironmentLogs200ResponseLogEventsInner](docs/GetEnvironmentLogs200ResponseLogEventsInner.md) - [GetFile200Response](docs/GetFile200Response.md) + - [GetGovernanceConfig200Response](docs/GetGovernanceConfig200Response.md) + - [GetGovernanceConfig200ResponseSpendLimits](docs/GetGovernanceConfig200ResponseSpendLimits.md) + - [GetMyUsage200Response](docs/GetMyUsage200Response.md) + - [GetMyUsage200ResponseDaily](docs/GetMyUsage200ResponseDaily.md) + - [GetMyUsage200ResponseMonthly](docs/GetMyUsage200ResponseMonthly.md) - [GetSkill200Response](docs/GetSkill200Response.md) - [GetSkill200ResponseSkill](docs/GetSkill200ResponseSkill.md) + - [GetSlackBot200Response](docs/GetSlackBot200Response.md) + - [GetSlackBot200ResponseBot](docs/GetSlackBot200ResponseBot.md) - [GetSshAccessCredentials200Response](docs/GetSshAccessCredentials200Response.md) - [GetSshAccessCredentials200ResponseCredentials](docs/GetSshAccessCredentials200ResponseCredentials.md) - [GetTask200Response](docs/GetTask200Response.md) @@ -477,6 +515,8 @@ Class | Method | HTTP request | Description - [ListSkillCollections200ResponseCollectionsInner](docs/ListSkillCollections200ResponseCollectionsInner.md) - [ListSkills200Response](docs/ListSkills200Response.md) - [ListSkills200ResponseSkillsInner](docs/ListSkills200ResponseSkillsInner.md) + - [ListSlackBots200Response](docs/ListSlackBots200Response.md) + - [ListSlackBots200ResponseBotsInner](docs/ListSlackBots200ResponseBotsInner.md) - [ListTasks200Response](docs/ListTasks200Response.md) - [ListTasks200ResponseTasksInner](docs/ListTasks200ResponseTasksInner.md) - [ListVectorCollections200Response](docs/ListVectorCollections200Response.md) @@ -494,6 +534,10 @@ Class | Method | HTTP request | Description - [QueryVectorCollectionRequest](docs/QueryVectorCollectionRequest.md) - [QueryVectorCollectionRequestFilter](docs/QueryVectorCollectionRequestFilter.md) - [ScalingPolicy](docs/ScalingPolicy.md) + - [SearchSlackWorkspaceChannels200Response](docs/SearchSlackWorkspaceChannels200Response.md) + - [SearchSlackWorkspaceChannels200ResponseResultsInner](docs/SearchSlackWorkspaceChannels200ResponseResultsInner.md) + - [SearchSlackWorkspaceUsers200Response](docs/SearchSlackWorkspaceUsers200Response.md) + - [SearchSlackWorkspaceUsers200ResponseResultsInner](docs/SearchSlackWorkspaceUsers200ResponseResultsInner.md) - [SpotConfiguration](docs/SpotConfiguration.md) - [SubmitToolCallback200Response](docs/SubmitToolCallback200Response.md) - [SubmitToolCallbackRequest](docs/SubmitToolCallbackRequest.md) @@ -514,8 +558,12 @@ Class | Method | HTTP request | Description - [UpdateEnvironmentRequest](docs/UpdateEnvironmentRequest.md) - [UpdateEnvironmentStateRequest](docs/UpdateEnvironmentStateRequest.md) - [UpdateEnvironmentVariableRequest](docs/UpdateEnvironmentVariableRequest.md) + - [UpdateFilterPolicyRequest](docs/UpdateFilterPolicyRequest.md) + - [UpdateGovernanceConfig200Response](docs/UpdateGovernanceConfig200Response.md) + - [UpdateGovernanceConfigRequest](docs/UpdateGovernanceConfigRequest.md) - [UpdateSkill200Response](docs/UpdateSkill200Response.md) - [UpdateSkillRequest](docs/UpdateSkillRequest.md) + - [UpdateSlackBotRequest](docs/UpdateSlackBotRequest.md) - [UpdateTask200Response](docs/UpdateTask200Response.md) - [UpdateTaskRequest](docs/UpdateTaskRequest.md) - [UploadFile201Response](docs/UploadFile201Response.md) @@ -524,6 +572,8 @@ Class | Method | HTTP request | Description - [UploadVectorDocumentsRequest](docs/UploadVectorDocumentsRequest.md) - [UploadVectorDocumentsRequestDocumentsInner](docs/UploadVectorDocumentsRequestDocumentsInner.md) - [UploadVectorDocumentsRequestDocumentsInnerMetadata](docs/UploadVectorDocumentsRequestDocumentsInnerMetadata.md) + - [UpsertAgentOverlay200Response](docs/UpsertAgentOverlay200Response.md) + - [UpsertAgentOverlayRequest](docs/UpsertAgentOverlayRequest.md) - [V1ContentItem](docs/V1ContentItem.md) - [V1ContentListResponse](docs/V1ContentListResponse.md) - [V1ContentRequest](docs/V1ContentRequest.md) diff --git a/api/openapi.yaml b/api/openapi.yaml index 5f8e7e3..7befbe3 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.13.0 + version: 4.14.0 servers: - description: QuantCDN Public Cloud url: https://dashboard.quantcdn.io @@ -80,6 +80,14 @@ tags: name: Volumes - description: API token management name: Tokens +- description: AI Slack Bots + name: AI Slack Bots +- description: AI Governance + name: AI Governance +- description: AI Filter Policies + name: AI Filter Policies +- description: AI Usage + name: AI Usage paths: /api/v2/organizations/{organization}/projects/{project}/crawlers/{crawler}/schedules: get: @@ -6615,6 +6623,130 @@ paths: summary: Chat with AI Agent tags: - AI Agents + /api/v3/organizations/{organisation}/ai/agents/{agentId}/overlay: + delete: + description: "Removes the per-organisation overlay for a global agent, reverting\ + \ it to platform defaults." + operationId: deleteAgentOverlay + parameters: + - description: The organisation ID + explode: false + in: path + name: organisation + required: true + schema: + type: string + style: simple + - description: Global agent identifier + explode: false + in: path + name: agentId + required: true + schema: + type: string + style: simple + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/deleteAgentOverlay_200_response' + description: Overlay deleted — agent reverted to defaults + "403": + description: Access denied + "404": + description: Not a global agent + "500": + description: Failed to reset overlay + summary: Delete Agent Overlay + tags: + - AI Agents + get: + description: "Returns the per-organisation overlay for a global agent, plus\ + \ base agent metadata for UI context. If no overlay exists the response contains\ + \ `overlay: null`. Overlays can only be created for global agents." + operationId: getAgentOverlay + parameters: + - description: The organisation ID + explode: false + in: path + name: organisation + required: true + schema: + type: string + style: simple + - description: "Global agent identifier (e.g., 'quantgov-code')" + explode: false + in: path + name: agentId + required: true + schema: + type: string + style: simple + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/getAgentOverlay_200_response' + description: Overlay retrieved (may be null if none set) + "403": + description: Access denied + "404": + description: Not a global agent + "500": + description: Failed to retrieve overlay + summary: Get Agent Overlay + tags: + - AI Agents + put: + description: Creates or replaces the per-organisation overlay for a global agent. + PUT is full replacement — omitted optional fields are removed. Include `version` + from a prior GET to enable compare-and-swap (409 on conflict). Omit for last-writer-wins. + operationId: upsertAgentOverlay + parameters: + - description: The organisation ID + explode: false + in: path + name: organisation + required: true + schema: + type: string + style: simple + - description: Global agent identifier + explode: false + in: path + name: agentId + required: true + schema: + type: string + style: simple + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/upsertAgentOverlay_request' + required: true + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/upsertAgentOverlay_200_response' + description: Overlay created or updated + "400": + description: Invalid request parameters + "403": + description: Access denied + "404": + description: Not a global agent + "409": + description: Version conflict — overlay was modified concurrently + "500": + description: Failed to save overlay + summary: Upsert Agent Overlay + tags: + - AI Agents /api/v3/organizations/{organisation}/ai/custom-tools: get: description: Lists all registered custom edge function tools for an organization. @@ -8137,9 +8269,11 @@ paths: summary: List Orchestration Batches tags: - AI Orchestrations - /api/v3/organizations/{organisation}/applications: + /api/v3/organizations/{organisation}/ai/slack-bots: get: - operationId: listApplications + description: Lists all Slack bots configured for the organization. Each bot + is backed by an AI agent and can be connected to a Slack workspace. + operationId: listSlackBots parameters: - description: The organisation ID explode: false @@ -8154,15 +8288,23 @@ paths: content: application/json: schema: - items: - $ref: '#/components/schemas/Application' - type: array - description: A list of applications - summary: Get all applications for an organisation + $ref: '#/components/schemas/listSlackBots_200_response' + description: Slack bots retrieved successfully + "403": + description: Access denied + "500": + description: Failed to retrieve Slack bots + summary: List Slack Bots tags: - - Applications + - AI Slack Bots post: - operationId: createApplication + description: |- + Creates a new Slack bot backed by an AI agent. The bot must be connected to a Slack workspace via OAuth before it can receive events. + * + * **Setup Types:** + * - `quant`: Quant-managed Slack app — uses shared OAuth credentials + * - `byo`: Bring Your Own — customer provides their own Slack app credentials + operationId: createSlackBot parameters: - description: The organisation ID explode: false @@ -8176,30 +8318,28 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/CreateApplicationRequest' + $ref: '#/components/schemas/createSlackBot_request' required: true responses: "201": content: application/json: schema: - $ref: '#/components/schemas/Application' - description: The created application + $ref: '#/components/schemas/createSlackBot_201_response' + description: Slack bot created successfully "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 + "500": + description: Failed to create Slack bot + summary: Create Slack Bot tags: - - Applications - /api/v3/organizations/{organisation}/applications/{application}: + - AI Slack Bots + /api/v3/organizations/{organisation}/ai/slack-bots/{botId}: delete: - operationId: deleteApplication + description: Permanently deletes a Slack bot and disconnects it from the workspace. + operationId: deleteSlackBot parameters: - description: The organisation ID explode: false @@ -8209,24 +8349,34 @@ paths: schema: type: string style: simple - - description: The application ID + - description: The Slack bot ID explode: false in: path - name: application + name: botId required: true schema: type: string style: simple responses: - "204": - description: The application deleted + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/deleteSlackBot_200_response' + description: Slack bot deleted successfully + "403": + description: Access denied "404": - description: The application not found - summary: Delete an application + description: Slack bot not found + "500": + description: Failed to delete Slack bot + summary: Delete Slack Bot tags: - - Applications + - AI Slack Bots get: - operationId: getApplication + description: Retrieves details for a specific Slack bot including its configuration + and connection status. + operationId: getSlackBot parameters: - description: The organisation ID explode: false @@ -8236,10 +8386,10 @@ paths: schema: type: string style: simple - - description: The application ID + - description: The Slack bot ID explode: false in: path - name: application + name: botId required: true schema: type: string @@ -8249,16 +8399,20 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/Application' - description: The application + $ref: '#/components/schemas/getSlackBot_200_response' + description: Slack bot details retrieved successfully + "403": + description: Access denied "404": - description: The application not found - summary: Get a single application + description: Slack bot not found + "500": + description: Failed to retrieve Slack bot + summary: Get Slack Bot tags: - - Applications - /api/v3/organizations/{organisation}/applications/ecr-login: - get: - operationId: getEcrLoginCredentials + - AI Slack Bots + put: + description: Updates a Slack bot's configuration. Only provided fields are updated. + operationId: updateSlackBot parameters: - description: The organisation ID explode: false @@ -8268,22 +8422,45 @@ paths: schema: type: string style: simple + - description: The Slack bot ID + explode: false + in: path + name: botId + required: true + schema: + type: string + style: simple + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/updateSlackBot_request' + required: true 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/createSlackBot_201_response' + description: Slack bot updated successfully + "400": + description: Invalid request parameters + "403": + description: Access denied + "404": + description: Slack bot not found + "500": + description: Failed to update Slack bot + summary: Update Slack Bot tags: - - Applications - /api/v3/organizations/{organisation}/environments/{environment}/commands: + - AI Slack Bots + /api/v3/organizations/{organisation}/ai/slack-bots/{botId}/workspace/users: get: - operationId: listCommands + description: Searches users in the Slack workspace connected to this bot. Requires + the bot to be connected via OAuth. + operationId: searchSlackWorkspaceUsers parameters: - description: The organisation ID - example: test-org explode: false in: path name: organisation @@ -8291,30 +8468,45 @@ paths: schema: type: string style: simple - - description: The environment ID - example: test-env + - description: The Slack bot ID explode: false in: path - name: environment + name: botId required: true schema: type: string style: simple + - description: Search query to filter users by name + explode: true + in: query + name: q + required: false + schema: + type: string + style: form responses: "200": content: application/json: schema: - $ref: '#/components/schemas/Command' - description: The commands - summary: Get all commands for an environment + $ref: '#/components/schemas/searchSlackWorkspaceUsers_200_response' + description: Workspace users retrieved successfully + "403": + description: Access denied + "404": + description: Slack bot not found or not connected + "500": + description: Failed to search users + summary: Search Slack Workspace Users tags: - - Commands - post: - operationId: createCommand + - AI Slack Bots + /api/v3/organizations/{organisation}/ai/slack-bots/{botId}/workspace/channels: + get: + description: Searches channels in the Slack workspace connected to this bot. + Requires the bot to be connected via OAuth. + operationId: searchSlackWorkspaceChannels parameters: - description: The organisation ID - example: test-org explode: false in: path name: organisation @@ -8322,37 +8514,43 @@ paths: schema: type: string style: simple - - description: The environment ID - example: test-env + - description: The Slack bot ID explode: false in: path - name: environment + name: botId required: true schema: type: string style: simple - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/createCommand_request' - required: true + - description: Search query to filter channels by name + explode: true + in: query + name: q + required: false + schema: + type: string + style: form responses: "200": content: application/json: schema: - $ref: '#/components/schemas/Command' - description: The command - summary: Create a command for an environment + $ref: '#/components/schemas/searchSlackWorkspaceChannels_200_response' + description: Workspace channels retrieved successfully + "403": + description: Access denied + "404": + description: Slack bot not found or not connected + "500": + description: Failed to search channels + summary: Search Slack Workspace Channels tags: - - Commands - /api/v3/organizations/{organisation}/environments/{environment}/commands/{command}: + - AI Slack Bots + /api/v3/organizations/{organisation}/ai/governance: get: - operationId: getCommand + operationId: getGovernanceConfig parameters: - description: The organisation ID - example: test-org explode: false in: path name: organisation @@ -8360,40 +8558,22 @@ 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 - explode: false - in: path - name: command - required: true - schema: - type: string - style: simple responses: "200": content: application/json: schema: - $ref: '#/components/schemas/Command' - description: The command - summary: Get a command + $ref: '#/components/schemas/getGovernanceConfig_200_response' + description: AI governance configuration + "500": + description: Failed to retrieve governance configuration + summary: Get AI governance configuration for an organisation tags: - - Commands - /api/v3/organizations/{organisation}/applications/{application}/environments/{environment}/compose: - get: - operationId: getEnvironmentCompose + - AI Governance + put: + operationId: updateGovernanceConfig parameters: - description: The organisation ID - example: test-org explode: false in: path name: organisation @@ -8401,48 +8581,31 @@ 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 + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/updateGovernanceConfig_request' required: true - schema: - type: string - style: simple responses: "200": content: application/json: schema: - $ref: '#/components/schemas/Compose' - description: The compose file - "404": - description: The compose file not found - summary: Get the compose file for an environment + $ref: '#/components/schemas/updateGovernanceConfig_200_response' + description: Governance configuration updated successfully + "422": + description: Validation error + "500": + description: Failed to update governance configuration + summary: Update AI governance configuration for an organisation 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 Governance + /api/v3/organizations/{organisation}/ai/governance/spend: + get: + operationId: getGovernanceSpend parameters: - description: The organisation ID - example: test-org explode: false in: path name: organisation @@ -8450,65 +8613,46 @@ 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 + responses: + "200": + content: + application/json: + schema: + type: object + description: AI spend summary + "500": + description: Failed to retrieve spend summary + summary: Get AI spend summary for an organisation + tags: + - AI Governance + /api/v3/organizations/{organisation}/ai/filter-policies: + get: + operationId: listFilterPolicies + parameters: + - description: The organisation ID explode: false in: path - name: environment + name: organisation 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": - 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." - "400": + "200": 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: Partially Update Environment Compose Definition + type: object + description: List of filter policies + "500": + description: Failed to retrieve filter policies + summary: List AI filter policies for an organisation tags: - - Compose - /api/v3/organizations/{organisation}/compose/validate: + - AI Filter Policies 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 + operationId: createFilterPolicy parameters: - description: The organisation ID - example: test-org explode: false in: path name: organisation @@ -8516,121 +8660,98 @@ 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 - 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. + $ref: '#/components/schemas/createFilterPolicy_request' required: true responses: - "200": + "201": content: application/json: schema: - $ref: '#/components/schemas/validateCompose_200_response' - description: Validation successful. Body contains the translated compose - definition and any warnings. + type: object + description: Filter policy created successfully "422": - content: - application/json: - schema: - $ref: '#/components/schemas/validateCompose_422_response' - description: Invalid YAML input or validation failed - summary: Validate a compose file + description: Validation error + "500": + description: Failed to create filter policy + summary: Create an AI filter policy for an organisation tags: - - Compose - /api/v3/organizations/{organisation}/applications/{application}/environments/{environment}/containers: - get: - operationId: listContainers + - AI Filter Policies + /api/v3/organizations/{organisation}/ai/filter-policies/{policyId}: + delete: + operationId: deleteFilterPolicy parameters: - - description: The organisation ID - example: test-org - explode: false + - explode: false in: path name: organisation required: true schema: type: string style: simple - - description: The application ID - example: test-app - explode: false - in: path - name: application - required: true - schema: - type: string - style: simple - - description: The environment ID - example: test-env - explode: false + - explode: false in: path - name: environment + name: policyId required: true schema: type: string style: simple responses: "200": - description: The containers in the environment - "404": - description: The environment not found - summary: Get the containers in an environment + content: + application/json: + schema: + type: object + description: Filter policy deleted successfully + "500": + description: Failed to delete filter policy + summary: Delete a specific AI filter policy tags: - - Containers - /api/v3/organizations/{organisation}/applications/{application}/environments/{environment}/containers/{container}: - put: - operationId: updateContainer + - AI Filter Policies + get: + operationId: getFilterPolicy parameters: - - description: The organisation ID - example: test-org - explode: false + - explode: false in: path name: organisation required: true schema: type: string style: simple - - description: The application ID - example: test-app - explode: false + - explode: false in: path - name: application + name: policyId required: true schema: type: string style: simple - - description: The environment ID - example: test-env - explode: false + responses: + "200": + content: + application/json: + schema: + type: object + description: Filter policy details + "404": + description: Filter policy not found + summary: Get a specific AI filter policy + tags: + - AI Filter Policies + put: + operationId: updateFilterPolicy + parameters: + - explode: false in: path - name: environment + name: organisation required: true schema: type: string style: simple - - description: The container ID - example: test-container - explode: false + - explode: false in: path - name: container + name: policyId required: true schema: type: string @@ -8639,43 +8760,66 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/Container' + $ref: '#/components/schemas/updateFilterPolicy_request' required: true responses: "200": - description: The updated container - "404": - description: The container not found - summary: Update a container in an environment + content: + application/json: + schema: + type: object + description: Filter policy updated successfully + "422": + description: Validation error + "500": + description: Failed to update filter policy + summary: Update a specific AI filter policy tags: - - Containers - /api/v3/organizations/{organisation}/applications/{application}/environments/{environment}/cron: - get: - operationId: listCronJobs + - AI Filter Policies + /api/v3/organizations/{organisation}/ai/filter-policies/{policyId}/enable: + put: + operationId: enableFilterPolicy parameters: - - description: The organisation ID - example: test-org - explode: false + - explode: false in: path name: organisation required: true schema: type: string style: simple - - description: The application ID - example: test-app - explode: false + - explode: false in: path - name: application + name: policyId required: true schema: type: string style: simple - - description: The environment ID - example: test-env - explode: false + responses: + "200": + content: + application/json: + schema: + type: object + description: Filter policy enabled successfully + "500": + description: Failed to enable filter policy + summary: Enable a specific AI filter policy + tags: + - AI Filter Policies + /api/v3/organizations/{organisation}/ai/filter-policies/{policyId}/disable: + put: + operationId: disableFilterPolicy + parameters: + - explode: false in: path - name: environment + name: organisation + required: true + schema: + type: string + style: simple + - explode: false + in: path + name: policyId required: true schema: type: string @@ -8685,18 +8829,18 @@ paths: 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 + type: object + description: Filter policy disabled successfully + "500": + description: Failed to disable filter policy + summary: Disable a specific AI filter policy tags: - - Cron - post: - operationId: createCronJob + - AI Filter Policies + /api/v3/organizations/{organisation}/ai/usage/me: + get: + operationId: getMyUsage parameters: - description: The organisation ID - example: test-org explode: false in: path name: organisation @@ -8704,20 +8848,51 @@ paths: schema: type: string style: simple - - description: The application ID - example: test-app + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/getMyUsage_200_response' + description: User AI usage summary + "401": + description: Cannot determine caller identity + "500": + description: Failed to retrieve usage data + summary: Get AI usage summary for the authenticated user + tags: + - AI Usage + /api/v3/organizations/{organisation}/applications: + get: + operationId: listApplications + parameters: + - description: The organisation ID explode: false in: path - name: application + name: organisation required: true schema: type: string style: simple - - description: The environment ID - example: test-env + 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 + tags: + - Applications + post: + operationId: createApplication + parameters: + - description: The organisation ID explode: false in: path - name: environment + name: organisation required: true schema: type: string @@ -8726,32 +8901,32 @@ paths: 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 @@ -8760,7 +8935,6 @@ paths: type: string style: simple - description: The application ID - example: test-app explode: false in: path name: application @@ -8768,34 +8942,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 @@ -8803,11 +8993,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 @@ -8821,28 +9025,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 @@ -8853,15 +9047,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 @@ -8871,35 +9056,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 @@ -8910,15 +9085,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 @@ -8928,11 +9094,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 @@ -8942,16 +9108,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 @@ -8980,36 +9144,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 @@ -9029,23 +9184,53 @@ 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 + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/patchEnvironmentCompose_request' + description: Partial compose definition updates. All fields are optional. + required: true responses: - "200": + "202": content: application/json: schema: - items: - $ref: '#/components/schemas/EnvironmentSummary' - type: array - description: List of environments with summary information including deployment - status + $ref: '#/components/schemas/patchEnvironmentCompose_202_response' + description: "Request accepted, compose definition partial update is processing.\ + \ Returns the full updated compose definition." + "400": + content: + application/json: + schema: + $ref: '#/components/schemas/patchEnvironmentCompose_400_response' + description: Invalid compose definition or validation failed. "404": - description: The organisation or application not found - summary: Get all environments for an application + description: Application or environment not found + summary: Partially Update Environment Compose Definition tags: - - Environments + - Compose + /api/v3/organizations/{organisation}/compose/validate: post: - operationId: createEnvironment + 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 @@ -9056,43 +9241,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 + style: form requestBody: content: application/json: schema: - $ref: '#/components/schemas/createEnvironment_request' + $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 responses: - "201": + "200": content: application/json: schema: - $ref: '#/components/schemas/EnvironmentResponse' - description: The environment created - "400": - description: The environment data is invalid - "403": + $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/createEnvironment_403_response' - description: Environment limit reached - application has reached the maximum - number of allowed environments - summary: Create a new environment + $ref: '#/components/schemas/validateCompose_422_response' + description: Invalid YAML input or validation failed + summary: Validate a compose file tags: - - Environments - /api/v3/organizations/{organisation}/applications/{application}/environments/{environment}: - delete: - operationId: deleteEnvironment + - Compose + /api/v3/organizations/{organisation}/applications/{application}/environments/{environment}/containers: + get: + operationId: listContainers parameters: - description: The organisation ID example: test-org @@ -9122,15 +9313,70 @@ paths: type: string style: simple responses: - "204": - description: The environment deleted + "200": + description: The containers in the environment "404": description: The environment not found - summary: Delete an environment + summary: Get the containers in an environment tags: - - Environments + - Containers + /api/v3/organizations/{organisation}/applications/{application}/environments/{environment}/containers/{container}: + put: + operationId: updateContainer + 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 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/Container' + required: true + responses: + "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: getEnvironment + operationId: listCronJobs parameters: - description: The organisation ID example: test-org @@ -9164,21 +9410,18 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/EnvironmentResponse' - description: The environment with runtime details + $ref: '#/components/schemas/Cron' + description: The cron jobs "404": description: The environment not found - summary: Get a single environment + summary: Get all cron jobs for an environment tags: - - Environments - 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 + - Cron + post: + operationId: createCronJob parameters: - description: The organisation ID + example: test-org explode: false in: path name: organisation @@ -9187,6 +9430,7 @@ paths: type: string style: simple - description: The application ID + example: test-app explode: false in: path name: application @@ -9195,6 +9439,7 @@ paths: type: string style: simple - description: The environment ID + example: test-env explode: false in: path name: environment @@ -9206,25 +9451,29 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/updateEnvironment_request' + $ref: '#/components/schemas/createCronJob_request' required: true responses: - "202": - description: "Request accepted, compose definition update is processing." + "201": + content: + application/json: + schema: + $ref: '#/components/schemas/Cron' + description: The created cron job "400": + description: The request is invalid + "422": 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 + description: The request is invalid + summary: Create a new cron job tags: - - Environments - /api/v3/organizations/{organisation}/applications/{application}/environments/{environment}/state: - put: - operationId: updateEnvironmentState + - Cron + /api/v3/organizations/{organisation}/applications/{application}/environments/{environment}/cron/{cron}: + delete: + operationId: deleteCronJob parameters: - description: The organisation ID example: test-org @@ -9253,26 +9502,22 @@ paths: schema: type: string style: simple - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/updateEnvironmentState_request' + - description: The cron job ID + explode: false + in: path + name: cron required: true + schema: + type: string + style: simple responses: "204": - description: The environment state updated - "400": - description: The environment data is invalid - summary: Update the state of an environment + description: The cron job deleted + summary: Delete a cron job tags: - - Environments - /api/v3/organizations/{organisation}/applications/{application}/environments/{environment}/logs: + - Cron 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 + operationId: getCronJob parameters: - description: The organisation ID example: test-org @@ -9301,76 +9546,28 @@ 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 + - description: The cron job ID + explode: false + in: path + name: cron + required: true 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 + style: simple responses: "200": content: application/json: schema: - $ref: '#/components/schemas/getEnvironmentLogs_200_response' - description: The logs + $ref: '#/components/schemas/Cron' + description: The cron job "404": - description: The environment not found - "422": - description: Validation error - summary: Get the logs for an environment + description: The cron job not found + summary: Get a cron job tags: - - Environments - /api/v3/organizations/{organisation}/applications/{application}/environments/{environment}/metrics: - get: - description: "Retrieves CloudWatch metrics for the specified environment with\ - \ optional filtering by time range, container, and metric configuration." - operationId: getEnvironmentMetrics + - Cron + patch: + operationId: updateCronJob parameters: - description: The organisation ID example: test-org @@ -9399,66 +9596,35 @@ 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 - schema: - type: string - style: form - - description: Filter metrics by specific container name - explode: true - in: query - name: containerName - required: false + - description: The cron job ID + explode: false + in: path + name: cron + required: true schema: type: string - style: form + style: simple + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/updateCronJob_request' + required: true responses: "200": content: application/json: schema: - description: CloudWatch metrics data - type: object - description: The metrics + $ref: '#/components/schemas/Cron' + description: The updated 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: Update a cron job tags: - - Environments - /api/v3/organizations/{organisation}/applications/{application}/environments/{environment}/sync/{type}: + - Cron + /api/v3/organizations/{organisation}/applications/{application}/environments/{environment}/cron/{cron}/runs: get: - operationId: listSyncOperations + operationId: listCronJobRuns parameters: - description: The organisation ID example: test-org @@ -9487,15 +9653,13 @@ 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 responses: @@ -9504,14 +9668,15 @@ paths: application/json: schema: items: - $ref: '#/components/schemas/SyncOperation' + $ref: '#/components/schemas/CronRun' type: array - description: The sync operations - summary: List the sync operations for an environment + description: The runs + summary: Get all runs for a cron job tags: - - Environments - post: - operationId: syncToEnvironment + - Cron + /api/v3/organizations/{organisation}/applications/{application}/environments/{environment}/cron/{cron}/runs/{run}: + get: + operationId: getCronRun parameters: - description: The organisation ID example: test-org @@ -9540,39 +9705,119 @@ 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: + 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 + tags: + - Cron + /api/v3/organizations/{organisation}/applications/{application}/environments: + get: + operationId: listEnvironments + 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 + 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 + explode: false + in: path + name: application required: true schema: - enum: - - database - - filesystem type: string style: simple requestBody: content: application/json: schema: - $ref: '#/components/schemas/syncToEnvironment_request' + $ref: '#/components/schemas/createEnvironment_request' required: true responses: - "200": + "201": 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 + $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: - Environments - /api/v3/organizations/{organisation}/applications/{application}/environments/{environment}/backups/{type}: - 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 + /api/v3/organizations/{organisation}/applications/{application}/environments/{environment}: + delete: + operationId: deleteEnvironment parameters: - description: The organisation ID example: test-org @@ -9601,102 +9846,64 @@ paths: schema: type: string style: simple - - description: The backup type + responses: + "204": + description: The environment deleted + "404": + description: The environment not found + summary: Delete an environment + tags: + - Environments + get: + operationId: getEnvironment + parameters: + - description: The organisation ID + example: test-org explode: false in: path - name: type + name: organisation 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 + - description: The application ID + example: test-app + explode: false + in: path + name: application + required: true 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 + style: simple + - description: The environment ID + example: test-env + explode: false + in: path + name: environment + 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/EnvironmentResponse' + description: The environment with runtime details + "404": + description: The environment not found + summary: Get a single environment tags: - - Backup Management - post: - operationId: createBackup + - Environments + 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 parameters: - description: The organisation ID - example: test-org explode: false in: path name: organisation @@ -9705,7 +9912,6 @@ paths: type: string style: simple - description: The application ID - example: test-app explode: false in: path name: application @@ -9714,7 +9920,6 @@ paths: type: string style: simple - description: The environment ID - example: test-env explode: false in: path name: environment @@ -9722,36 +9927,29 @@ 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/createBackup_request' - required: false + $ref: '#/components/schemas/updateEnvironment_request' + required: true responses: "202": + description: "Request accepted, compose definition update is processing." + "400": content: application/json: schema: - $ref: '#/components/schemas/createBackup_202_response' - description: Backup operation initiated - summary: Create a backup for an environment + $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: - - Backup Management - /api/v3/organizations/{organisation}/applications/{application}/environments/{environment}/backups/{type}/{backupId}: - delete: - operationId: deleteBackup + - Environments + /api/v3/organizations/{organisation}/applications/{application}/environments/{environment}/state: + put: + operationId: updateEnvironmentState parameters: - description: The organisation ID example: test-org @@ -9780,38 +9978,124 @@ paths: schema: type: string style: simple - - description: The backup type + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/updateEnvironmentState_request' + required: true + responses: + "204": + description: The environment state updated + "400": + description: The environment data is invalid + summary: Update the state of an environment + 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 + parameters: + - description: The organisation ID + example: test-org explode: false in: path - name: type + name: organisation required: true schema: - enum: - - database - - filesystem type: string style: simple - - description: The backup ID + - description: The application ID + example: test-app explode: false in: path - name: backupId + 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: 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/deleteBackup_200_response' - description: Backup deleted successfully - summary: Delete a backup + $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 tags: - - Backup Management - /api/v3/organizations/{organisation}/applications/{application}/environments/{environment}/backups/{type}/{backupId}/download: + - Environments + /api/v3/organizations/{organisation}/applications/{application}/environments/{environment}/metrics: get: - operationId: downloadBackup + 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 @@ -9840,38 +10124,66 @@ paths: schema: type: string style: simple - - description: The backup type - explode: false - in: path - name: type - required: true - schema: - enum: - - database - - filesystem + - 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 + schema: type: string - style: simple - - description: The backup ID - explode: false - in: path - name: backupId - required: true + style: form + - description: Filter metrics by specific container name + explode: true + in: query + name: containerName + required: false schema: type: string - style: simple + style: form 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 + 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: - - Backup Management - /api/v3/organizations/{organisation}/applications/{application}/environments/{environment}/scaling-policies: + - Environments + /api/v3/organizations/{organisation}/applications/{application}/environments/{environment}/sync/{type}: get: - operationId: getScalingPolicies + operationId: listSyncOperations parameters: - description: The organisation ID example: test-org @@ -9900,14 +10212,31 @@ paths: schema: type: string style: simple + - description: The sync type + explode: false + in: path + name: type + required: true + schema: + enum: + - database + - filesystem + type: string + style: simple responses: "200": - description: The scaling policy for the environment - summary: Get the scaling policies for an environment + content: + application/json: + schema: + items: + $ref: '#/components/schemas/SyncOperation' + type: array + description: The sync operations + summary: List the sync operations for an environment tags: - - ScalingPolicy - put: - operationId: updateScalingPolicy + - Environments + post: + operationId: syncToEnvironment parameters: - description: The organisation ID example: test-org @@ -9936,21 +10265,39 @@ paths: schema: type: string style: simple + - description: The sync 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/ScalingPolicy' + $ref: '#/components/schemas/syncToEnvironment_request' required: true responses: "200": - description: The scaling policy for the environment - summary: Update the scaling policy for an environment + 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: - - ScalingPolicy - /api/v3/organizations/{organisation}/applications/{application}/environments/{environment}/scaling-policies/{policyName}: - delete: - operationId: deleteScalingPolicy + - Environments + /api/v3/organizations/{organisation}/applications/{application}/environments/{environment}/backups/{type}: + 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 parameters: - description: The organisation ID example: test-org @@ -9979,23 +10326,99 @@ paths: schema: type: string style: simple - - description: The policy name + - description: The backup type explode: false in: path - name: policyName + 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: - "204": - description: The scaling policy for the environment - summary: Delete the scaling policy for an environment + "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 tags: - - ScalingPolicy - /api/v3/organizations/{organisation}/applications/{application}/environments/{environment}/ssh-access: - get: - operationId: getSshAccessCredentials + - Backup Management + post: + operationId: createBackup parameters: - description: The organisation ID example: test-org @@ -10024,31 +10447,42 @@ 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/createBackup_request' + required: false responses: - "200": + "202": 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 + $ref: '#/components/schemas/createBackup_202_response' + description: Backup operation initiated + summary: Create a backup for an environment tags: - - SSH Access - /api/v3/organizations/{api_organisation}/applications/{api_application}/environments/{api_environment}/variables: - get: - operationId: listEnvironmentVariables + - Backup Management + /api/v3/organizations/{organisation}/applications/{application}/environments/{environment}/backups/{type}/{backupId}: + delete: + operationId: deleteBackup parameters: - description: The organisation ID example: test-org explode: false in: path - name: api_organisation + name: organisation required: true schema: type: string @@ -10057,7 +10491,7 @@ paths: example: test-app explode: false in: path - name: api_application + name: application required: true schema: type: string @@ -10066,25 +10500,49 @@ paths: example: test-env explode: false in: path - name: api_environment + 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 + - description: The backup ID + explode: false + in: path + name: backupId required: true schema: type: string style: simple responses: "200": - description: A list of variables - summary: Get all variables for an environment + content: + application/json: + schema: + $ref: '#/components/schemas/deleteBackup_200_response' + description: Backup deleted successfully + summary: Delete a backup tags: - - Variables - put: - operationId: bulkSetEnvironmentVariables + - Backup Management + /api/v3/organizations/{organisation}/applications/{application}/environments/{environment}/backups/{type}/{backupId}/download: + get: + operationId: downloadBackup parameters: - description: The organisation ID example: test-org explode: false in: path - name: api_organisation + name: organisation required: true schema: type: string @@ -10093,7 +10551,7 @@ paths: example: test-app explode: false in: path - name: api_application + name: application required: true schema: type: string @@ -10102,75 +10560,85 @@ paths: example: test-env explode: false in: path - name: api_environment + name: environment required: true schema: type: string style: simple - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/bulkSetEnvironmentVariables_request' + - 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": - description: Environment variables set/replaced successfully - summary: Bulk set/replace environment variables + content: + application/json: + schema: + $ref: '#/components/schemas/downloadBackup_200_response' + description: Download URL generated successfully + summary: Generate a download URL for a backup tags: - - Variables - /api/v3/organizations/{api_organisation}/applications/{api_application}/environments/{api_environment}/variables/{api_variable}: - delete: - operationId: deleteEnvironmentVariable + - 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: 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 - required: true - schema: - type: string - style: simple - - description: The variable key - explode: false - in: path - name: api_variable + name: environment required: true schema: type: string style: simple responses: - "204": - description: The variable deleted - "404": - description: The variable not found - summary: Delete a variable + "200": + description: The scaling policy for the environment + summary: Get the scaling policies for an environment tags: - - Variables + - ScalingPolicy put: - operationId: updateEnvironmentVariable + operationId: updateScalingPolicy parameters: - description: The organisation ID example: test-org explode: false in: path - name: api_organisation + name: organisation required: true schema: type: string @@ -10179,7 +10647,7 @@ paths: example: test-app explode: false in: path - name: api_application + name: application required: true schema: type: string @@ -10188,15 +10656,7 @@ paths: 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 + name: environment required: true schema: type: string @@ -10205,19 +10665,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/updateEnvironmentVariable_request' + $ref: '#/components/schemas/ScalingPolicy' required: true responses: "200": - description: The variable updated - "404": - description: The variable not found - summary: Update a variable + description: The scaling policy for the environment + summary: Update the scaling policy for an environment tags: - - Variables - /api/v3/organizations/{organisation}/applications/{application}/environments/{environment}/volumes: - get: - operationId: listVolumes + - ScalingPolicy + /api/v3/organizations/{organisation}/applications/{application}/environments/{environment}/scaling-policies/{policyName}: + delete: + operationId: deleteScalingPolicy parameters: - description: The organisation ID example: test-org @@ -10246,20 +10704,23 @@ paths: schema: type: string style: simple + - description: The policy name + explode: false + in: path + name: policyName + 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 + "204": + description: The scaling policy for the environment + summary: Delete the scaling policy for an environment tags: - - Volumes - post: - operationId: createVolume + - ScalingPolicy + /api/v3/organizations/{organisation}/applications/{application}/environments/{environment}/ssh-access: + get: + operationId: getSshAccessCredentials parameters: - description: The organisation ID example: test-org @@ -10288,33 +10749,31 @@ paths: schema: type: string style: simple - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/createVolume_request' - required: true responses: - "201": + "200": content: application/json: schema: - $ref: '#/components/schemas/Volume' - description: The volume created + $ref: '#/components/schemas/getSshAccessCredentials_200_response' + description: SSH access credentials + "403": + description: Insufficient permissions "404": - description: The environment not found - summary: Create a new volume + description: Environment not found + "500": + description: Failed to generate SSH access credentials + summary: Get SSH access credentials for an environment tags: - - Volumes - /api/v3/organizations/{organisation}/applications/{application}/environments/{environment}/volumes/{volume}: - delete: - operationId: deleteVolume + - 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: organisation + name: api_organisation required: true schema: type: string @@ -10323,7 +10782,7 @@ paths: example: test-app explode: false in: path - name: application + name: api_application required: true schema: type: string @@ -10332,35 +10791,25 @@ paths: 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 + name: api_environment required: true schema: type: string style: simple responses: - "204": - description: The volume deleted - "404": - description: The environment not found - summary: Delete a volume + "200": + description: A list of variables + summary: Get all variables for an environment tags: - - Volumes - get: - operationId: getVolume + - Variables + put: + operationId: bulkSetEnvironmentVariables parameters: - description: The organisation ID example: test-org explode: false in: path - name: organisation + name: api_organisation required: true schema: type: string @@ -10369,7 +10818,7 @@ paths: example: test-app explode: false in: path - name: application + name: api_application required: true schema: type: string @@ -10378,22 +10827,298 @@ paths: example: test-env explode: false in: path - name: environment + name: api_environment required: true schema: type: string style: simple - - description: The volume ID + 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: volume + name: api_organisation required: true schema: type: string style: simple - responses: - "200": - content: + - 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' @@ -12698,6 +13423,25 @@ components: items: type: string type: array + asn: + description: "ASN filter type (asn_is, asn_is_not, any)" + example: any + type: string + asn_is: + description: Allowed AS numbers + example: + - "15169" + - "8075" + items: + type: string + type: array + asn_is_not: + description: Excluded AS numbers + example: + - "13335" + items: + type: string + type: array country: description: Country code example: US @@ -12824,6 +13568,25 @@ components: items: type: string type: array + asn: + description: "ASN filter type (asn_is, asn_is_not, any)" + example: any + type: string + asn_is: + description: Allowed AS numbers + example: + - "15169" + - "8075" + items: + type: string + type: array + asn_is_not: + description: Excluded AS numbers + example: + - "13335" + items: + type: string + type: array required: - domain - url @@ -13094,6 +13857,9 @@ components: V2RuleProxyRequest: example: country: country_is + asn_is: + - "15169" + - "8075" cache_lifetime: "3600" proxy_strip_request_headers: - Cookie @@ -13114,6 +13880,8 @@ components: country_is_not: - CN - RU + asn_is_not: + - "13335" application_name: my-app auth_user: admin host: backend.test-domain.com @@ -13210,6 +13978,7 @@ components: - block_ua notify_slack: https://hooks.slack.com/services/XXX paranoia_level: 1 + asn: any failover_origin_status_codes: - "502" - "503" @@ -13310,6 +14079,25 @@ components: items: type: string type: array + asn: + description: "ASN filter type (asn_is, asn_is_not, any)" + example: any + type: string + asn_is: + description: Allowed AS numbers + example: + - "15169" + - "8075" + items: + type: string + type: array + asn_is_not: + description: Excluded AS numbers + example: + - "13335" + items: + type: string + type: array to: description: Target URL to proxy to example: https://backend.test-domain.com @@ -13466,6 +14254,9 @@ components: type: object example: country: US + asn_is: + - "15169" + - "8075" method: GET ip_is_not: - 172.16.0.0/12 @@ -13487,6 +14278,8 @@ components: - /old-path/* - /legacy/* rule_id: rule_id + asn_is_not: + - "13335" country_is_not: - CN - RU @@ -13499,6 +14292,7 @@ components: - 10.0.0.1 action: redirect disabled: false + asn: any action_config: cache_lifetime: "3600" proxy_strip_request_headers: @@ -13630,6 +14424,9 @@ components: type: object example: country: US + asn_is: + - "15169" + - "8075" method: GET ip_is_not: - 172.16.0.0/12 @@ -13651,6 +14448,8 @@ components: - /old-path/* - /legacy/* rule_id: rule-001 + asn_is_not: + - "13335" country_is_not: - CN - RU @@ -13663,6 +14462,7 @@ components: - 10.0.0.1 action: redirect disabled: false + asn: any action_config: status_code: "301" to: https://test-domain.com/new-path @@ -13693,6 +14493,9 @@ components: type: object example: country: US + asn_is: + - "15169" + - "8075" method: GET ip_is_not: - 172.16.0.0/12 @@ -13714,6 +14517,8 @@ components: - /old-path/* - /legacy/* rule_id: rule-001 + asn_is_not: + - "13335" country_is_not: - CN - RU @@ -13726,6 +14531,7 @@ components: - 10.0.0.1 action: redirect disabled: false + asn: any action_config: custom_response_status_code: 503 custom_response_body: Custom maintenance page @@ -13752,6 +14558,9 @@ components: type: object example: country: US + asn_is: + - "15169" + - "8075" method: GET ip_is_not: - 172.16.0.0/12 @@ -13773,6 +14582,8 @@ components: - /old-path/* - /legacy/* rule_id: rule-001 + asn_is_not: + - "13335" country_is_not: - CN - RU @@ -13785,12 +14596,16 @@ components: - 10.0.0.1 action: redirect disabled: false + asn: any action_config: fn_uuid: 8d3f4820-8536-51ef-b827-f18gc2g01bf8 type: object V2RuleRedirectRequest: example: country: country_is + asn_is: + - "15169" + - "8075" method: method_is ip_is_not: - 172.16.0.0/12 @@ -13815,6 +14630,8 @@ components: country_is_not: - CN - RU + asn_is_not: + - "13335" domain: - test-domain.com - '*.test-domain.com' @@ -13823,6 +14640,7 @@ components: - 192.168.1.0/24 - 10.0.0.1 disabled: false + asn: any properties: domain: description: "Domain patterns (default: any)" @@ -13918,6 +14736,25 @@ components: items: type: string type: array + asn: + description: "ASN filter type (asn_is, asn_is_not, any)" + example: any + type: string + asn_is: + description: Allowed AS numbers + example: + - "15169" + - "8075" + items: + type: string + type: array + asn_is_not: + description: Excluded AS numbers + example: + - "13335" + items: + type: string + type: array redirect_to: description: Redirect destination URL example: https://test-domain.com/new-path @@ -13935,6 +14772,9 @@ components: V2RuleCustomResponseRequest: example: country: country_is + asn_is: + - "15169" + - "8075" status_code: 503 method: method_is ip_is_not: @@ -13961,6 +14801,8 @@ components: country_is_not: - CN - RU + asn_is_not: + - "13335" domain: - test-domain.com - '*.test-domain.com' @@ -13969,6 +14811,7 @@ components: - 192.168.1.0/24 - 10.0.0.1 disabled: false + asn: any properties: domain: description: "Domain patterns (default: any)" @@ -14064,6 +14907,25 @@ components: items: type: string type: array + asn: + description: "ASN filter type (asn_is, asn_is_not, any)" + example: any + type: string + asn_is: + description: Allowed AS numbers + example: + - "15169" + - "8075" + items: + type: string + type: array + asn_is_not: + description: Excluded AS numbers + example: + - "13335" + items: + type: string + type: array custom_response_body: description: Custom response body content example: Custom maintenance page @@ -14089,6 +14951,9 @@ components: V2RuleContentFilterRequest: example: country: country_is + asn_is: + - "15169" + - "8075" method: method_is ip_is_not: - 172.16.0.0/12 @@ -14110,6 +14975,8 @@ components: country_is_not: - CN - RU + asn_is_not: + - "13335" fn_uuid: 8d3f4820-8536-51ef-b827-f18gc2g01bf8 domain: - test-domain.com @@ -14119,6 +14986,7 @@ components: - 192.168.1.0/24 - 10.0.0.1 disabled: false + asn: any properties: domain: description: "Domain patterns (default: any)" @@ -14213,6 +15081,25 @@ components: items: type: string type: array + asn: + description: "ASN filter type (asn_is, asn_is_not, any)" + example: any + type: string + asn_is: + description: Allowed AS numbers + example: + - "15169" + - "8075" + items: + type: string + type: array + asn_is_not: + description: Excluded AS numbers + example: + - "13335" + items: + type: string + type: array fn_uuid: description: Function UUID example: 8d3f4820-8536-51ef-b827-f18gc2g01bf8 @@ -14244,6 +15131,9 @@ components: type: object example: country: US + asn_is: + - "15169" + - "8075" method: GET ip_is_not: - 172.16.0.0/12 @@ -14265,6 +15155,8 @@ components: - /old-path/* - /legacy/* rule_id: rule-001 + asn_is_not: + - "13335" country_is_not: - CN - RU @@ -14277,6 +15169,7 @@ components: - 10.0.0.1 action: redirect disabled: false + asn: any action_config: static_file_path: /index.html type: object @@ -14293,6 +15186,9 @@ components: type: object example: country: country_is + asn_is: + - "15169" + - "8075" method: method_is static_file_path: /index.html ip_is_not: @@ -14316,6 +15212,8 @@ components: country_is_not: - CN - RU + asn_is_not: + - "13335" domain: - test-domain.com - '*.test-domain.com' @@ -14324,6 +15222,7 @@ components: - 192.168.1.0/24 - 10.0.0.1 disabled: false + asn: any type: object V2RuleHeaderAction: example: @@ -14353,6 +15252,9 @@ components: type: object example: country: US + asn_is: + - "15169" + - "8075" method: GET ip_is_not: - 172.16.0.0/12 @@ -14374,6 +15276,8 @@ components: - /old-path/* - /legacy/* rule_id: rule-001 + asn_is_not: + - "13335" country_is_not: - CN - RU @@ -14386,6 +15290,7 @@ components: - 10.0.0.1 action: redirect disabled: false + asn: any action_config: headers: X-Custom-Header: value @@ -14411,6 +15316,9 @@ components: headers: X-Custom-Header: value Cache-Control: max-age=3600 + asn_is: + - "15169" + - "8075" method: method_is ip_is_not: - 172.16.0.0/12 @@ -14433,6 +15341,8 @@ components: country_is_not: - CN - RU + asn_is_not: + - "13335" domain: - test-domain.com - '*.test-domain.com' @@ -14441,6 +15351,7 @@ components: - 192.168.1.0/24 - 10.0.0.1 disabled: false + asn: any type: object V2RuleFunctionAction: example: @@ -14464,6 +15375,9 @@ components: type: object example: country: US + asn_is: + - "15169" + - "8075" method: GET ip_is_not: - 172.16.0.0/12 @@ -14485,6 +15399,8 @@ components: - /old-path/* - /legacy/* rule_id: rule-001 + asn_is_not: + - "13335" country_is_not: - CN - RU @@ -14497,12 +15413,16 @@ components: - 10.0.0.1 action: redirect disabled: false + asn: any action_config: fn_uuid: 7c9e6679-7425-40de-944b-e07fc1f90ae7 type: object V2RuleFunctionRequest: example: country: country_is + asn_is: + - "15169" + - "8075" method: method_is ip_is_not: - 172.16.0.0/12 @@ -14524,6 +15444,8 @@ components: country_is_not: - CN - RU + asn_is_not: + - "13335" fn_uuid: 7c9e6679-7425-40de-944b-e07fc1f90ae7 domain: - test-domain.com @@ -14533,6 +15455,7 @@ components: - 192.168.1.0/24 - 10.0.0.1 disabled: false + asn: any properties: domain: description: "Domain patterns (default: any)" @@ -14627,6 +15550,25 @@ components: items: type: string type: array + asn: + description: "ASN filter type (asn_is, asn_is_not, any)" + example: any + type: string + asn_is: + description: Allowed AS numbers + example: + - "15169" + - "8075" + items: + type: string + type: array + asn_is_not: + description: Excluded AS numbers + example: + - "13335" + items: + type: string + type: array fn_uuid: description: Function UUID example: 7c9e6679-7425-40de-944b-e07fc1f90ae7 @@ -14670,6 +15612,9 @@ components: type: object example: country: US + asn_is: + - "15169" + - "8075" method: GET ip_is_not: - 172.16.0.0/12 @@ -14691,6 +15636,8 @@ components: - /old-path/* - /legacy/* rule_id: rule-001 + asn_is_not: + - "13335" country_is_not: - CN - RU @@ -14703,6 +15650,7 @@ components: - 10.0.0.1 action: redirect disabled: false + asn: any action_config: robot_challenge_type: invisible robot_challenge_verification_ttl: 10800 @@ -14732,6 +15680,9 @@ components: example: country: country_is robot_challenge_type: invisible + asn_is: + - "15169" + - "8075" method: method_is ip_is_not: - 172.16.0.0/12 @@ -14754,6 +15705,8 @@ components: country_is_not: - CN - RU + asn_is_not: + - "13335" robot_challenge_verification_ttl: 10800 domain: - test-domain.com @@ -14764,6 +15717,7 @@ components: - 10.0.0.1 robot_challenge_challenge_ttl: 30 disabled: false + asn: any type: object V2RuleAuthAction: example: @@ -14793,6 +15747,9 @@ components: type: object example: country: US + asn_is: + - "15169" + - "8075" method: GET ip_is_not: - 172.16.0.0/12 @@ -14814,6 +15771,8 @@ components: - /old-path/* - /legacy/* rule_id: rule-001 + asn_is_not: + - "13335" country_is_not: - CN - RU @@ -14826,6 +15785,7 @@ components: - 10.0.0.1 action: redirect disabled: false + asn: any action_config: auth_user: admin auth_pass: secure_password123 @@ -14848,6 +15808,9 @@ components: type: object example: country: country_is + asn_is: + - "15169" + - "8075" method: method_is ip_is_not: - 172.16.0.0/12 @@ -14870,6 +15833,8 @@ components: country_is_not: - CN - RU + asn_is_not: + - "13335" auth_user: admin domain: - test-domain.com @@ -14880,6 +15845,7 @@ components: - 10.0.0.1 auth_pass: secure_password123 disabled: false + asn: any type: object V2SecretStore: properties: @@ -18451,13 +19417,20 @@ components: type: object listAIAgents_200_response_agents_inner: example: - createdAt: 2000-01-23T04:56:07.000+00:00 + assignedSkills: + - assignedSkills + - assignedSkills agentId: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 + guardrailPreset: guardrailPreset modelId: modelId + description: description + hasOverlay: true + createdAt: 2000-01-23T04:56:07.000+00:00 + longContext: true name: name temperature: 0.8008281904610115 maxTokens: 6 - description: description + isGlobal: true group: group allowedTools: - allowedTools @@ -18483,6 +19456,18 @@ components: items: type: string type: array + assignedSkills: + items: + type: string + type: array + longContext: + type: boolean + guardrailPreset: + type: string + isGlobal: + type: boolean + hasOverlay: + type: boolean createdAt: format: date-time type: string @@ -18493,25 +19478,39 @@ components: listAIAgents_200_response: example: agents: - - createdAt: 2000-01-23T04:56:07.000+00:00 + - assignedSkills: + - assignedSkills + - assignedSkills agentId: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 + guardrailPreset: guardrailPreset modelId: modelId + description: description + hasOverlay: true + createdAt: 2000-01-23T04:56:07.000+00:00 + longContext: true name: name temperature: 0.8008281904610115 maxTokens: 6 - description: description + isGlobal: true group: group allowedTools: - allowedTools - allowedTools updatedAt: 2000-01-23T04:56:07.000+00:00 - - createdAt: 2000-01-23T04:56:07.000+00:00 + - assignedSkills: + - assignedSkills + - assignedSkills agentId: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 + guardrailPreset: guardrailPreset modelId: modelId + description: description + hasOverlay: true + createdAt: 2000-01-23T04:56:07.000+00:00 + longContext: true name: name temperature: 0.8008281904610115 maxTokens: 6 - description: description + isGlobal: true group: group allowedTools: - allowedTools @@ -18562,9 +19561,29 @@ components: items: type: string type: array + assignedSkills: + description: Skill IDs to assign to this agent + items: + type: string + type: array createdBy: description: User identifier who created the agent type: string + longContext: + description: Enable 1M context window support + type: boolean + guardrailPreset: + description: Guardrail preset name + enum: + - official + - official-sensitive + - protected + type: string + filterPolicies: + description: Filter policy IDs to apply to this agent's inference requests + items: + type: string + type: array required: - description - modelId @@ -18588,18 +19607,25 @@ components: type: object getAIAgent_200_response_agent: example: + assignedSkills: + - assignedSkills + - assignedSkills agentId: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 + guardrailPreset: guardrailPreset modelId: modelId description: description + hasOverlay: true systemPrompt: systemPrompt createdAt: 2000-01-23T04:56:07.000+00:00 createdBy: createdBy + longContext: true name: name temperature: 0.8008281904610115 maxTokens: 6 allowedCollections: - allowedCollections - allowedCollections + isGlobal: true group: group allowedTools: - allowedTools @@ -18631,6 +19657,23 @@ components: items: type: string type: array + assignedSkills: + items: + type: string + type: array + longContext: + description: Whether 1M context window is enabled + type: boolean + guardrailPreset: + description: Guardrail preset name + type: string + isGlobal: + description: Whether this is a platform-managed global agent + type: boolean + hasOverlay: + description: Whether the requesting org has a per-org overlay for this global + agent + type: boolean createdBy: type: string createdAt: @@ -18643,18 +19686,25 @@ components: getAIAgent_200_response: example: agent: + assignedSkills: + - assignedSkills + - assignedSkills agentId: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 + guardrailPreset: guardrailPreset modelId: modelId description: description + hasOverlay: true systemPrompt: systemPrompt createdAt: 2000-01-23T04:56:07.000+00:00 createdBy: createdBy + longContext: true name: name temperature: 0.8008281904610115 maxTokens: 6 allowedCollections: - allowedCollections - allowedCollections + isGlobal: true group: group allowedTools: - allowedTools @@ -18692,6 +19742,26 @@ components: items: type: string type: array + assignedSkills: + description: Skill IDs to assign to this agent + items: + type: string + type: array + longContext: + description: Enable 1M context window support + type: boolean + guardrailPreset: + description: Guardrail preset name + enum: + - official + - official-sensitive + - protected + type: string + filterPolicies: + description: Filter policy IDs to apply to this agent's inference requests + items: + type: string + type: array type: object updateAIAgent_200_response: example: @@ -18745,6 +19815,21 @@ components: description: Optional additional system prompt (appended to agent's configured prompt) type: string + longContext: + default: false + description: Per-request override to force 1M context window routing + type: boolean + maxToolIterations: + description: Maximum tool auto-execution iterations for this request + maximum: 1000 + minimum: 1 + type: integer + allowedCollections: + description: Per-request override for vector DB collections the agent can + query + items: + type: string + type: array required: - message type: object @@ -18837,11 +19922,209 @@ components: description: URL to poll for execution status example: /ai/chat/executions/90fe0c53-a41b-4b28-b19e-5e900b3df959 type: string - required: - - agentId - - pollUrl - - requestId - - status + required: + - agentId + - pollUrl + - requestId + - status + type: object + getAgentOverlay_200_response_overlay: + example: + disabledSkills: + - disabledSkills + - disabledSkills + guardrailPreset: guardrailPreset + modelId: modelId + disabledTools: + - disabledTools + - disabledTools + temperature: 0.8008281904610115 + maxTokens: 6 + additionalSkills: + - additionalSkills + - additionalSkills + allowedCollections: + - allowedCollections + - allowedCollections + systemPromptAppend: systemPromptAppend + version: 1 + additionalTools: + - additionalTools + - additionalTools + nullable: true + properties: + modelId: + type: string + temperature: + type: number + maxTokens: + type: integer + disabledSkills: + items: + type: string + type: array + additionalSkills: + items: + type: string + type: array + additionalTools: + items: + type: string + type: array + disabledTools: + items: + type: string + type: array + systemPromptAppend: + type: string + allowedCollections: + items: + type: string + type: array + guardrailPreset: + type: string + version: + type: integer + type: object + getAgentOverlay_200_response_base: + description: Base global agent metadata + example: + assignedSkillIds: + - assignedSkillIds + - assignedSkillIds + agentId: agentId + modelId: modelId + name: name + allowedTools: + - allowedTools + - allowedTools + properties: + agentId: + type: string + name: + type: string + modelId: + type: string + allowedTools: + items: + type: string + type: array + assignedSkillIds: + items: + type: string + type: array + type: object + getAgentOverlay_200_response: + example: + overlay: + disabledSkills: + - disabledSkills + - disabledSkills + guardrailPreset: guardrailPreset + modelId: modelId + disabledTools: + - disabledTools + - disabledTools + temperature: 0.8008281904610115 + maxTokens: 6 + additionalSkills: + - additionalSkills + - additionalSkills + allowedCollections: + - allowedCollections + - allowedCollections + systemPromptAppend: systemPromptAppend + version: 1 + additionalTools: + - additionalTools + - additionalTools + base: + assignedSkillIds: + - assignedSkillIds + - assignedSkillIds + agentId: agentId + modelId: modelId + name: name + allowedTools: + - allowedTools + - allowedTools + properties: + overlay: + $ref: '#/components/schemas/getAgentOverlay_200_response_overlay' + base: + $ref: '#/components/schemas/getAgentOverlay_200_response_base' + type: object + upsertAgentOverlay_request: + properties: + modelId: + description: Override the base agent's model + type: string + temperature: + description: Override temperature + maximum: 1 + minimum: 0 + type: number + maxTokens: + description: Override max tokens + minimum: 1 + type: integer + disabledSkills: + description: Global skill IDs to exclude + items: + type: string + type: array + additionalSkills: + description: Org-owned skill IDs to add + items: + type: string + type: array + additionalTools: + description: Tool names to add + items: + type: string + type: array + disabledTools: + description: Tool names to remove + items: + type: string + type: array + systemPromptAppend: + description: Text appended to base system prompt + type: string + allowedCollections: + description: Vector DB collections + items: + type: string + type: array + guardrailPreset: + description: Guardrail preset + enum: + - official + - official-sensitive + - protected + type: string + version: + description: Current version for optimistic concurrency + type: integer + type: object + upsertAgentOverlay_200_response: + example: + overlay: "{}" + properties: + overlay: + type: object + type: object + deleteAgentOverlay_200_response: + example: + success: true + message: Agent reverted to defaults + properties: + success: + example: true + type: boolean + message: + example: Agent reverted to defaults + type: string type: object listCustomTools_200_response_tools_inner: example: @@ -19760,497 +21043,1016 @@ components: - desc type: string type: object - queryVectorCollection_200_response_results_inner: + queryVectorCollection_200_response_results_inner: + example: + metadata: + key: "" + similarity: 0.08008282 + documentId: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 + embedding: + - 6.027456183070403 + - 6.027456183070403 + content: content + properties: + documentId: + format: uuid + type: string + content: + description: Document text content + type: string + similarity: + description: Cosine similarity score (1.0 for metadata-only queries) + format: float + maximum: 1 + minimum: 0 + type: number + metadata: + additionalProperties: true + type: object + embedding: + description: Vector embedding (only if includeEmbeddings=true) + items: + type: number + type: array + type: object + queryVectorCollection_200_response_pagination: + description: Pagination info (listByMetadata mode only) + example: + sortOrder: asc + limit: 5 + sortBy: created_at + nullable: true + properties: + sortBy: + enum: + - created_at + - document_id + type: string + sortOrder: + enum: + - asc + - desc + type: string + limit: + type: integer + type: object + queryVectorCollection_200_response: + example: + filter: "{}" + nextCursor: nextCursor + pagination: + sortOrder: asc + limit: 5 + sortBy: created_at + query: query + executionTimeMs: 5 + searchMode: text + count: 1 + hasMore: true + results: + - metadata: + key: "" + similarity: 0.08008282 + documentId: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 + embedding: + - 6.027456183070403 + - 6.027456183070403 + content: content + - metadata: + key: "" + similarity: 0.08008282 + documentId: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 + embedding: + - 6.027456183070403 + - 6.027456183070403 + content: content + collectionId: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 + properties: + results: + items: + $ref: '#/components/schemas/queryVectorCollection_200_response_results_inner' + type: array + query: + description: Original query text (null if vector or metadata search was + used) + nullable: true + type: string + searchMode: + description: "Search mode used: text (query provided), vector (pre-computed),\ + \ metadata (listByMetadata)" + enum: + - text + - vector + - metadata + type: string + filter: + description: Filter that was applied (if any) + nullable: true + type: object + count: + description: Number of results returned + type: integer + executionTimeMs: + description: Query execution time in milliseconds + type: integer + collectionId: + format: uuid + type: string + hasMore: + description: True if more results available (listByMetadata mode only) + type: boolean + nextCursor: + description: Cursor for next page. Pass as cursor param to continue. Null + when no more results. Only in listByMetadata mode. + nullable: true + type: string + pagination: + $ref: '#/components/schemas/queryVectorCollection_200_response_pagination' + type: object + listFiles_200_response_files_inner: + example: + createdAt: 2000-01-23T04:56:07.000+00:00 + metadata: "{}" + filename: filename + size: 0 + contentType: contentType + fileId: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 + properties: + fileId: + format: uuid + type: string + filename: + type: string + contentType: + type: string + size: + type: integer + metadata: + type: object + createdAt: + format: date-time + type: string + type: object + listFiles_200_response: + example: + nextCursor: nextCursor + hasMore: true + files: + - createdAt: 2000-01-23T04:56:07.000+00:00 + metadata: "{}" + filename: filename + size: 0 + contentType: contentType + fileId: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 + - createdAt: 2000-01-23T04:56:07.000+00:00 + metadata: "{}" + filename: filename + size: 0 + contentType: contentType + fileId: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 + properties: + files: + items: + $ref: '#/components/schemas/listFiles_200_response_files_inner' + type: array + nextCursor: + description: Cursor for next page + nullable: true + type: string + hasMore: + description: True if more results available + type: boolean + type: object + uploadFile_request: + properties: + content: + description: Base64-encoded file content (for direct upload). Required unless + using requestUploadUrl. + type: string + requestUploadUrl: + default: false + description: Set to true to get a presigned S3 upload URL instead of uploading + directly. + type: boolean + size: + description: File size in bytes. Optional but recommended for presigned + uploads. + type: integer + filename: + description: Original filename + example: diagram.png + type: string + contentType: + description: MIME type of the file + example: image/png + type: string + metadata: + additionalProperties: true + description: Custom metadata for filtering. Any fields allowed. + example: + collectionId: col-123 + tags: + - architecture + - generated + type: object + required: + - contentType + type: object + uploadFile_201_response: + example: + expiresIn: 0 + s3Uri: s3Uri + createdAt: 2000-01-23T04:56:07.000+00:00 + metadata: "{}" + s3Key: s3Key + filename: filename + uploadUrl: https://openapi-generator.tech + size: 6 + contentType: contentType + url: https://openapi-generator.tech + fileId: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 + properties: + fileId: + format: uuid + type: string + s3Uri: + description: S3 URI (direct upload only) + type: string + url: + description: Presigned download URL (direct upload only) + format: uri + type: string + uploadUrl: + description: Presigned PUT URL (presigned upload only) + format: uri + type: string + s3Key: + description: S3 object key (presigned upload only) + type: string + expiresIn: + description: URL expiry in seconds (presigned upload only) + type: integer + filename: + type: string + contentType: + type: string + size: + type: integer + metadata: + type: object + createdAt: + format: date-time + type: string + type: object + getFile_200_response: example: - metadata: - key: "" - similarity: 0.08008282 - documentId: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 - embedding: - - 6.027456183070403 - - 6.027456183070403 - content: content + s3Uri: s3Uri + createdAt: 2000-01-23T04:56:07.000+00:00 + metadata: "{}" + filename: filename + size: 0 + contentType: contentType + url: https://openapi-generator.tech + fileId: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 properties: - documentId: + fileId: format: uuid type: string - content: - description: Document text content + s3Uri: type: string - similarity: - description: Cosine similarity score (1.0 for metadata-only queries) - format: float - maximum: 1 - minimum: 0 - type: number + url: + description: Presigned download URL (1 hour) + format: uri + type: string + filename: + type: string + contentType: + type: string + size: + type: integer metadata: - additionalProperties: true type: object - embedding: - description: Vector embedding (only if includeEmbeddings=true) + createdAt: + format: date-time + type: string + type: object + deleteFile_200_response: + example: + message: File deleted + fileId: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 + properties: + message: + example: File deleted + type: string + fileId: + format: uuid + type: string + type: object + listOrchestrations_200_response: + example: + nextCursor: nextCursor + orchestrations: + - "{}" + - "{}" + properties: + orchestrations: items: - type: number + type: object type: array + nextCursor: + nullable: true + type: string type: object - queryVectorCollection_200_response_pagination: - description: Pagination info (listByMetadata mode only) - example: - sortOrder: asc - limit: 5 - sortBy: created_at - nullable: true + createOrchestration_request_inputSource: properties: - sortBy: + type: + description: Input source type (api type not yet supported) enum: - - created_at - - document_id + - static + - task_query + - generator type: string - sortOrder: + items: + description: Static items (for type=static) + items: + type: object + type: array + taskQuery: + description: Task query filters (for type=task_query) + type: object + generatorPrompt: + description: AI prompt (for type=generator) + type: string + required: + - type + type: object + createOrchestration_request_stopCondition: + properties: + type: + default: all_complete enum: - - asc - - desc + - all_complete + - max_iterations + - condition + - manual type: string - limit: + maxIterations: + description: Max iterations (for type=max_iterations) + minimum: 1 type: integer + conditionPrompt: + description: AI prompt to evaluate stop (for type=condition) + type: string type: object - queryVectorCollection_200_response: - example: - filter: "{}" - nextCursor: nextCursor - pagination: - sortOrder: asc - limit: 5 - sortBy: created_at - query: query - executionTimeMs: 5 - searchMode: text - count: 1 - hasMore: true - results: - - metadata: - key: "" - similarity: 0.08008282 - documentId: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 - embedding: - - 6.027456183070403 - - 6.027456183070403 - content: content - - metadata: - key: "" - similarity: 0.08008282 - documentId: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 - embedding: - - 6.027456183070403 - - 6.027456183070403 - content: content - collectionId: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 + createOrchestration_request: properties: - results: + name: + description: Orchestration name + example: Process batch documents + type: string + description: + description: Optional description + nullable: true + type: string + agentId: + description: Agent to process items + nullable: true + type: string + toolId: + description: Tool to execute for items + nullable: true + type: string + workflowId: + description: Workflow to run for items + nullable: true + type: string + inputSource: + $ref: '#/components/schemas/createOrchestration_request_inputSource' + batchSize: + default: 10 + description: Items per batch + maximum: 100 + minimum: 1 + type: integer + concurrency: + default: 1 + description: Concurrent items within a batch + maximum: 10 + minimum: 1 + type: integer + stopCondition: + $ref: '#/components/schemas/createOrchestration_request_stopCondition' + assignedSkills: + description: Skill IDs to assign items: - $ref: '#/components/schemas/queryVectorCollection_200_response_results_inner' + type: string type: array - query: - description: Original query text (null if vector or metadata search was - used) + 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 + type: boolean + required: + - inputSource + - name + type: object + listOrchestrationBatches_200_response_batches_inner: + example: + completedAt: 2000-01-23T04:56:07.000+00:00 + failedCount: 5 + orchestrationId: orchestrationId + iteration: 0 + startedAt: 2000-01-23T04:56:07.000+00:00 + batchId: batchId + completedCount: 1 + error: error + itemCount: 6 + status: pending + properties: + batchId: type: string - searchMode: - description: "Search mode used: text (query provided), vector (pre-computed),\ - \ metadata (listByMetadata)" + orchestrationId: + type: string + iteration: + type: integer + itemCount: + type: integer + completedCount: + type: integer + failedCount: + type: integer + status: enum: - - text - - vector - - metadata + - pending + - running + - completed + - failed + type: string + startedAt: + format: date-time + type: string + completedAt: + format: date-time type: string - filter: - description: Filter that was applied (if any) + error: nullable: true - type: object - count: - description: Number of results returned - type: integer - executionTimeMs: - description: Query execution time in milliseconds - type: integer - collectionId: - format: uuid type: string - hasMore: - description: True if more results available (listByMetadata mode only) - type: boolean + type: object + listOrchestrationBatches_200_response: + example: + nextCursor: nextCursor + batches: + - completedAt: 2000-01-23T04:56:07.000+00:00 + failedCount: 5 + orchestrationId: orchestrationId + iteration: 0 + startedAt: 2000-01-23T04:56:07.000+00:00 + batchId: batchId + completedCount: 1 + error: error + itemCount: 6 + status: pending + - completedAt: 2000-01-23T04:56:07.000+00:00 + failedCount: 5 + orchestrationId: orchestrationId + iteration: 0 + startedAt: 2000-01-23T04:56:07.000+00:00 + batchId: batchId + completedCount: 1 + error: error + itemCount: 6 + status: pending + properties: + batches: + items: + $ref: '#/components/schemas/listOrchestrationBatches_200_response_batches_inner' + type: array nextCursor: - description: Cursor for next page. Pass as cursor param to continue. Null - when no more results. Only in listByMetadata mode. nullable: true type: string - pagination: - $ref: '#/components/schemas/queryVectorCollection_200_response_pagination' type: object - listFiles_200_response_files_inner: + listSlackBots_200_response_bots_inner: example: + connected: true createdAt: 2000-01-23T04:56:07.000+00:00 - metadata: "{}" - filename: filename - size: 0 - contentType: contentType - fileId: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 + agentId: agentId + sessionTtlDays: 0 + setupType: quant + keywordsEnabled: true + botId: botId + status: active properties: - fileId: - format: uuid + botId: type: string - filename: + agentId: type: string - contentType: + setupType: + enum: + - quant + - byo type: string - size: + status: + enum: + - active + - inactive + type: string + connected: + type: boolean + sessionTtlDays: type: integer - metadata: - type: object + keywordsEnabled: + type: boolean createdAt: format: date-time type: string type: object - listFiles_200_response: + listSlackBots_200_response: example: - nextCursor: nextCursor - hasMore: true - files: - - createdAt: 2000-01-23T04:56:07.000+00:00 - metadata: "{}" - filename: filename - size: 0 - contentType: contentType - fileId: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 - - createdAt: 2000-01-23T04:56:07.000+00:00 - metadata: "{}" - filename: filename - size: 0 - contentType: contentType - fileId: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 - properties: - files: + bots: + - connected: true + createdAt: 2000-01-23T04:56:07.000+00:00 + agentId: agentId + sessionTtlDays: 0 + setupType: quant + keywordsEnabled: true + botId: botId + status: active + - connected: true + createdAt: 2000-01-23T04:56:07.000+00:00 + agentId: agentId + sessionTtlDays: 0 + setupType: quant + keywordsEnabled: true + botId: botId + status: active + properties: + bots: items: - $ref: '#/components/schemas/listFiles_200_response_files_inner' + $ref: '#/components/schemas/listSlackBots_200_response_bots_inner' type: array - nextCursor: - description: Cursor for next page - nullable: true - type: string - hasMore: - description: True if more results available - type: boolean type: object - uploadFile_request: + createSlackBot_request: properties: - content: - description: Base64-encoded file content (for direct upload). Required unless - using requestUploadUrl. - type: string - requestUploadUrl: - default: false - description: Set to true to get a presigned S3 upload URL instead of uploading - directly. - type: boolean - size: - description: File size in bytes. Optional but recommended for presigned - uploads. - type: integer - filename: - description: Original filename - example: diagram.png + agentId: + description: The AI agent that powers this bot type: string - contentType: - description: MIME type of the file - example: image/png + setupType: + description: Whether to use Quant-managed or customer-provided Slack app + enum: + - quant + - byo type: string - metadata: - additionalProperties: true - description: Custom metadata for filtering. Any fields allowed. - example: - collectionId: col-123 - tags: - - architecture - - generated - type: object + sessionTtlDays: + description: Session TTL in days + maximum: 90 + minimum: 1 + type: integer + allowedChannels: + description: Slack channel IDs the bot may respond in + items: + type: string + type: array + keywordsEnabled: + description: Whether keyword triggers are enabled + type: boolean + keywords: + description: Keywords that trigger the bot + items: + type: string + type: array + slashCommands: + description: Slash commands the bot responds to + items: + type: string + type: array required: - - contentType + - agentId + - setupType type: object - uploadFile_201_response: + createSlackBot_201_response: example: - expiresIn: 0 - s3Uri: s3Uri + bot: "{}" + properties: + bot: + type: object + type: object + getSlackBot_200_response_bot: + example: + connected: true createdAt: 2000-01-23T04:56:07.000+00:00 - metadata: "{}" - s3Key: s3Key - filename: filename - uploadUrl: https://openapi-generator.tech - size: 6 - contentType: contentType - url: https://openapi-generator.tech - fileId: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 + agentId: agentId + sessionTtlDays: 0 + keywords: + - keywords + - keywords + slashCommands: + - slashCommands + - slashCommands + setupType: quant + keywordsEnabled: true + botId: botId + allowedChannels: + - allowedChannels + - allowedChannels + status: active + updatedAt: 2000-01-23T04:56:07.000+00:00 properties: - fileId: - format: uuid - type: string - s3Uri: - description: S3 URI (direct upload only) - type: string - url: - description: Presigned download URL (direct upload only) - format: uri - type: string - uploadUrl: - description: Presigned PUT URL (presigned upload only) - format: uri + botId: type: string - s3Key: - description: S3 object key (presigned upload only) + agentId: type: string - expiresIn: - description: URL expiry in seconds (presigned upload only) - type: integer - filename: + setupType: + enum: + - quant + - byo type: string - contentType: + status: + enum: + - active + - inactive type: string - size: + connected: + type: boolean + sessionTtlDays: type: integer - metadata: - type: object + allowedChannels: + items: + type: string + type: array + keywordsEnabled: + type: boolean + keywords: + items: + type: string + type: array + slashCommands: + items: + type: string + type: array createdAt: format: date-time type: string + updatedAt: + format: date-time + type: string type: object - getFile_200_response: + getSlackBot_200_response: example: - s3Uri: s3Uri - createdAt: 2000-01-23T04:56:07.000+00:00 - metadata: "{}" - filename: filename - size: 0 - contentType: contentType - url: https://openapi-generator.tech - fileId: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 + bot: + connected: true + createdAt: 2000-01-23T04:56:07.000+00:00 + agentId: agentId + sessionTtlDays: 0 + keywords: + - keywords + - keywords + slashCommands: + - slashCommands + - slashCommands + setupType: quant + keywordsEnabled: true + botId: botId + allowedChannels: + - allowedChannels + - allowedChannels + status: active + updatedAt: 2000-01-23T04:56:07.000+00:00 properties: - fileId: - format: uuid + bot: + $ref: '#/components/schemas/getSlackBot_200_response_bot' + type: object + updateSlackBot_request: + properties: + agentId: + description: Change the backing AI agent type: string - s3Uri: + status: + description: Enable or disable the bot + enum: + - active + - inactive type: string - url: - description: Presigned download URL (1 hour) - format: uri + sessionTtlDays: + description: Session TTL in days + maximum: 90 + minimum: 1 + type: integer + allowedChannels: + description: Slack channel IDs the bot may respond in + items: + type: string + type: array + keywordsEnabled: + description: Whether keyword triggers are enabled + type: boolean + keywords: + description: Keywords that trigger the bot + items: + type: string + type: array + slashCommands: + description: Slash commands the bot responds to + items: + type: string + type: array + type: object + deleteSlackBot_200_response: + example: + success: true + message: Slack bot deleted successfully + properties: + success: + example: true + type: boolean + message: + example: Slack bot deleted successfully type: string - filename: + type: object + searchSlackWorkspaceUsers_200_response_results_inner: + example: + name: name + real_name: real_name + id: id + properties: + id: type: string - contentType: + name: type: string - size: - type: integer - metadata: - type: object - createdAt: - format: date-time + real_name: type: string type: object - deleteFile_200_response: + searchSlackWorkspaceUsers_200_response: example: - message: File deleted - fileId: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 + results: + - name: name + real_name: real_name + id: id + - name: name + real_name: real_name + id: id properties: - message: - example: File deleted + results: + items: + $ref: '#/components/schemas/searchSlackWorkspaceUsers_200_response_results_inner' + type: array + type: object + searchSlackWorkspaceChannels_200_response_results_inner: + example: + name: name + id: id + properties: + id: type: string - fileId: - format: uuid + name: type: string type: object - listOrchestrations_200_response: + searchSlackWorkspaceChannels_200_response: example: - nextCursor: nextCursor - orchestrations: - - "{}" - - "{}" + results: + - name: name + id: id + - name: name + id: id properties: - orchestrations: + results: items: - type: object + $ref: '#/components/schemas/searchSlackWorkspaceChannels_200_response_results_inner' type: array - nextCursor: + type: object + getGovernanceConfig_200_response_spendLimits: + example: + monthlyBudgetCents: 0 + perUserDailyBudgetCents: 5 + warningThresholdPercent: 5 + perUserMonthlyBudgetCents: 1 + dailyBudgetCents: 6 + properties: + monthlyBudgetCents: + nullable: true + type: integer + dailyBudgetCents: + nullable: true + type: integer + perUserMonthlyBudgetCents: + nullable: true + type: integer + perUserDailyBudgetCents: + nullable: true + type: integer + warningThresholdPercent: + nullable: true + type: integer + type: object + getGovernanceConfig_200_response: + example: + mandatoryFilterPolicies: + - mandatoryFilterPolicies + - mandatoryFilterPolicies + modelList: + - modelList + - modelList + modelPolicy: unrestricted + aiEnabled: true + mandatoryGuardrailPreset: mandatoryGuardrailPreset + version: 2 + orgId: orgId + spendLimits: + monthlyBudgetCents: 0 + perUserDailyBudgetCents: 5 + warningThresholdPercent: 5 + perUserMonthlyBudgetCents: 1 + dailyBudgetCents: 6 + properties: + orgId: + type: string + aiEnabled: + type: boolean + modelPolicy: + enum: + - unrestricted + - allowlist + - blocklist + type: string + modelList: + items: + type: string + type: array + mandatoryGuardrailPreset: nullable: true type: string + mandatoryFilterPolicies: + items: + type: string + type: array + spendLimits: + $ref: '#/components/schemas/getGovernanceConfig_200_response_spendLimits' + version: + type: integer type: object - createOrchestration_request_inputSource: + updateGovernanceConfig_request: properties: - type: - description: Input source type (api type not yet supported) + aiEnabled: + type: boolean + modelPolicy: enum: - - static - - task_query - - generator + - unrestricted + - allowlist + - blocklist type: string - items: - description: Static items (for type=static) + modelList: items: - type: object + type: string type: array - taskQuery: - description: Task query filters (for type=task_query) - type: object - generatorPrompt: - description: AI prompt (for type=generator) + mandatoryGuardrailPreset: + enum: + - official + - official-sensitive + - protected + nullable: true type: string + mandatoryFilterPolicies: + items: + type: string + type: array + spendLimits: + type: object + version: + type: integer required: - - type + - aiEnabled + - modelPolicy type: object - createOrchestration_request_stopCondition: + updateGovernanceConfig_200_response: + example: + success: true + config: "{}" + properties: + success: + example: true + type: boolean + config: + type: object + type: object + createFilterPolicy_request_rules_inner_match: + description: Match criteria properties: type: - default: all_complete enum: - - all_complete - - max_iterations - - condition - - manual + - word + - regex type: string - maxIterations: - description: Max iterations (for type=max_iterations) - minimum: 1 - type: integer - conditionPrompt: - description: AI prompt to evaluate stop (for type=condition) + values: + description: Required when type=word + items: + maxLength: 100 + type: string + type: array + pattern: + description: Required when type=regex + maxLength: 500 type: string type: object - createOrchestration_request: + createFilterPolicy_request_rules_inner: properties: name: - description: Orchestration name - example: Process batch documents type: string - description: - description: Optional description - nullable: true + match: + $ref: '#/components/schemas/createFilterPolicy_request_rules_inner_match' + action: + enum: + - BLOCK + - REDACT type: string - agentId: - description: Agent to process items - nullable: true + applyTo: + enum: + - input + - output + - both type: string - toolId: - description: Tool to execute for items - nullable: true + type: object + createFilterPolicy_request: + properties: + name: + maxLength: 255 type: string - workflowId: - description: Workflow to run for items + description: + maxLength: 1000 nullable: true type: string - inputSource: - $ref: '#/components/schemas/createOrchestration_request_inputSource' - batchSize: - default: 10 - description: Items per batch - maximum: 100 - minimum: 1 - type: integer - concurrency: - default: 1 - description: Concurrent items within a batch - maximum: 10 - minimum: 1 - type: integer - stopCondition: - $ref: '#/components/schemas/createOrchestration_request_stopCondition' - assignedSkills: - description: Skill IDs to assign + enabled: + type: boolean + rules: items: - type: string + $ref: '#/components/schemas/createFilterPolicy_request_rules_inner' + maxItems: 100 + minItems: 1 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 - type: boolean required: - - inputSource - name + - rules type: object - listOrchestrationBatches_200_response_batches_inner: - example: - completedAt: 2000-01-23T04:56:07.000+00:00 - failedCount: 5 - orchestrationId: orchestrationId - iteration: 0 - startedAt: 2000-01-23T04:56:07.000+00:00 - batchId: batchId - completedCount: 1 - error: error - itemCount: 6 - status: pending + updateFilterPolicy_request: properties: - batchId: + name: + maxLength: 255 type: string - orchestrationId: + description: + maxLength: 1000 + nullable: true type: string - iteration: - type: integer - itemCount: + enabled: + type: boolean + rules: + items: + $ref: '#/components/schemas/createFilterPolicy_request_rules_inner' + maxItems: 100 + minItems: 1 + type: array + type: object + getMyUsage_200_response_monthly: + example: + requestCount: 6 + spendCents: 0 + properties: + spendCents: type: integer - completedCount: + requestCount: type: integer - failedCount: + type: object + getMyUsage_200_response_daily: + example: + spendCents: 1 + properties: + spendCents: type: integer - status: - enum: - - pending - - running - - completed - - failed - type: string - startedAt: - format: date-time - type: string - completedAt: - format: date-time - type: string - error: - nullable: true - type: string type: object - listOrchestrationBatches_200_response: + getMyUsage_200_response: example: - nextCursor: nextCursor - batches: - - completedAt: 2000-01-23T04:56:07.000+00:00 - failedCount: 5 - orchestrationId: orchestrationId - iteration: 0 - startedAt: 2000-01-23T04:56:07.000+00:00 - batchId: batchId - completedCount: 1 - error: error - itemCount: 6 - status: pending - - completedAt: 2000-01-23T04:56:07.000+00:00 - failedCount: 5 - orchestrationId: orchestrationId - iteration: 0 - startedAt: 2000-01-23T04:56:07.000+00:00 - batchId: batchId - completedCount: 1 - error: error - itemCount: 6 - status: pending + daily: + spendCents: 1 + quota: "{}" + monthly: + requestCount: 6 + spendCents: 0 + currentMonth: 2026-03 + userId: userId properties: - batches: - items: - $ref: '#/components/schemas/listOrchestrationBatches_200_response_batches_inner' - type: array - nextCursor: - nullable: true + userId: + type: string + currentMonth: + example: 2026-03 type: string + monthly: + $ref: '#/components/schemas/getMyUsage_200_response_monthly' + daily: + $ref: '#/components/schemas/getMyUsage_200_response_daily' + quota: + nullable: true + type: object type: object createApplication_403_response: example: diff --git a/api_ai_agents.go b/api_ai_agents.go index 550ecb2..a0e30fe 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.13.0 +API version: 4.14.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -108,6 +108,22 @@ type AIAgentsAPI interface { // @return DeleteAIAgent200Response DeleteAIAgentExecute(r AIAgentsAPIDeleteAIAgentRequest) (*DeleteAIAgent200Response, *http.Response, error) + /* + DeleteAgentOverlay Delete Agent Overlay + + Removes the per-organisation overlay for a global agent, reverting it to platform defaults. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param organisation The organisation ID + @param agentId Global agent identifier + @return AIAgentsAPIDeleteAgentOverlayRequest + */ + DeleteAgentOverlay(ctx context.Context, organisation string, agentId string) AIAgentsAPIDeleteAgentOverlayRequest + + // DeleteAgentOverlayExecute executes the request + // @return DeleteAgentOverlay200Response + DeleteAgentOverlayExecute(r AIAgentsAPIDeleteAgentOverlayRequest) (*DeleteAgentOverlay200Response, *http.Response, error) + /* GetAIAgent Get Agent Details @@ -124,6 +140,22 @@ type AIAgentsAPI interface { // @return GetAIAgent200Response GetAIAgentExecute(r AIAgentsAPIGetAIAgentRequest) (*GetAIAgent200Response, *http.Response, error) + /* + GetAgentOverlay Get Agent Overlay + + Returns the per-organisation overlay for a global agent, plus base agent metadata for UI context. If no overlay exists the response contains `overlay: null`. Overlays can only be created for global agents. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param organisation The organisation ID + @param agentId Global agent identifier (e.g., 'quantgov-code') + @return AIAgentsAPIGetAgentOverlayRequest + */ + GetAgentOverlay(ctx context.Context, organisation string, agentId string) AIAgentsAPIGetAgentOverlayRequest + + // GetAgentOverlayExecute executes the request + // @return GetAgentOverlay200Response + GetAgentOverlayExecute(r AIAgentsAPIGetAgentOverlayRequest) (*GetAgentOverlay200Response, *http.Response, error) + /* ListAIAgents List AI Agents @@ -159,6 +191,22 @@ type AIAgentsAPI interface { // UpdateAIAgentExecute executes the request // @return UpdateAIAgent200Response UpdateAIAgentExecute(r AIAgentsAPIUpdateAIAgentRequest) (*UpdateAIAgent200Response, *http.Response, error) + + /* + UpsertAgentOverlay Upsert Agent Overlay + + Creates or replaces the per-organisation overlay for a global agent. PUT is full replacement — omitted optional fields are removed. Include `version` from a prior GET to enable compare-and-swap (409 on conflict). Omit for last-writer-wins. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param organisation The organisation ID + @param agentId Global agent identifier + @return AIAgentsAPIUpsertAgentOverlayRequest + */ + UpsertAgentOverlay(ctx context.Context, organisation string, agentId string) AIAgentsAPIUpsertAgentOverlayRequest + + // UpsertAgentOverlayExecute executes the request + // @return UpsertAgentOverlay200Response + UpsertAgentOverlayExecute(r AIAgentsAPIUpsertAgentOverlayRequest) (*UpsertAgentOverlay200Response, *http.Response, error) } // AIAgentsAPIService AIAgentsAPI service @@ -542,6 +590,113 @@ func (a *AIAgentsAPIService) DeleteAIAgentExecute(r AIAgentsAPIDeleteAIAgentRequ return localVarReturnValue, localVarHTTPResponse, nil } +type AIAgentsAPIDeleteAgentOverlayRequest struct { + ctx context.Context + ApiService AIAgentsAPI + organisation string + agentId string +} + +func (r AIAgentsAPIDeleteAgentOverlayRequest) Execute() (*DeleteAgentOverlay200Response, *http.Response, error) { + return r.ApiService.DeleteAgentOverlayExecute(r) +} + +/* +DeleteAgentOverlay Delete Agent Overlay + +Removes the per-organisation overlay for a global agent, reverting it to platform defaults. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param organisation The organisation ID + @param agentId Global agent identifier + @return AIAgentsAPIDeleteAgentOverlayRequest +*/ +func (a *AIAgentsAPIService) DeleteAgentOverlay(ctx context.Context, organisation string, agentId string) AIAgentsAPIDeleteAgentOverlayRequest { + return AIAgentsAPIDeleteAgentOverlayRequest{ + ApiService: a, + ctx: ctx, + organisation: organisation, + agentId: agentId, + } +} + +// Execute executes the request +// @return DeleteAgentOverlay200Response +func (a *AIAgentsAPIService) DeleteAgentOverlayExecute(r AIAgentsAPIDeleteAgentOverlayRequest) (*DeleteAgentOverlay200Response, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *DeleteAgentOverlay200Response + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "AIAgentsAPIService.DeleteAgentOverlay") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/api/v3/organizations/{organisation}/ai/agents/{agentId}/overlay" + localVarPath = strings.Replace(localVarPath, "{"+"organisation"+"}", url.PathEscape(parameterValueToString(r.organisation, "organisation")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"agentId"+"}", url.PathEscape(parameterValueToString(r.agentId, "agentId")), -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 AIAgentsAPIGetAIAgentRequest struct { ctx context.Context ApiService AIAgentsAPI @@ -649,6 +804,113 @@ func (a *AIAgentsAPIService) GetAIAgentExecute(r AIAgentsAPIGetAIAgentRequest) ( return localVarReturnValue, localVarHTTPResponse, nil } +type AIAgentsAPIGetAgentOverlayRequest struct { + ctx context.Context + ApiService AIAgentsAPI + organisation string + agentId string +} + +func (r AIAgentsAPIGetAgentOverlayRequest) Execute() (*GetAgentOverlay200Response, *http.Response, error) { + return r.ApiService.GetAgentOverlayExecute(r) +} + +/* +GetAgentOverlay Get Agent Overlay + +Returns the per-organisation overlay for a global agent, plus base agent metadata for UI context. If no overlay exists the response contains `overlay: null`. Overlays can only be created for global agents. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param organisation The organisation ID + @param agentId Global agent identifier (e.g., 'quantgov-code') + @return AIAgentsAPIGetAgentOverlayRequest +*/ +func (a *AIAgentsAPIService) GetAgentOverlay(ctx context.Context, organisation string, agentId string) AIAgentsAPIGetAgentOverlayRequest { + return AIAgentsAPIGetAgentOverlayRequest{ + ApiService: a, + ctx: ctx, + organisation: organisation, + agentId: agentId, + } +} + +// Execute executes the request +// @return GetAgentOverlay200Response +func (a *AIAgentsAPIService) GetAgentOverlayExecute(r AIAgentsAPIGetAgentOverlayRequest) (*GetAgentOverlay200Response, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *GetAgentOverlay200Response + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "AIAgentsAPIService.GetAgentOverlay") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/api/v3/organizations/{organisation}/ai/agents/{agentId}/overlay" + localVarPath = strings.Replace(localVarPath, "{"+"organisation"+"}", url.PathEscape(parameterValueToString(r.organisation, "organisation")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"agentId"+"}", url.PathEscape(parameterValueToString(r.agentId, "agentId")), -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 AIAgentsAPIListAIAgentsRequest struct { ctx context.Context ApiService AIAgentsAPI @@ -884,3 +1146,121 @@ func (a *AIAgentsAPIService) UpdateAIAgentExecute(r AIAgentsAPIUpdateAIAgentRequ return localVarReturnValue, localVarHTTPResponse, nil } + +type AIAgentsAPIUpsertAgentOverlayRequest struct { + ctx context.Context + ApiService AIAgentsAPI + organisation string + agentId string + upsertAgentOverlayRequest *UpsertAgentOverlayRequest +} + +func (r AIAgentsAPIUpsertAgentOverlayRequest) UpsertAgentOverlayRequest(upsertAgentOverlayRequest UpsertAgentOverlayRequest) AIAgentsAPIUpsertAgentOverlayRequest { + r.upsertAgentOverlayRequest = &upsertAgentOverlayRequest + return r +} + +func (r AIAgentsAPIUpsertAgentOverlayRequest) Execute() (*UpsertAgentOverlay200Response, *http.Response, error) { + return r.ApiService.UpsertAgentOverlayExecute(r) +} + +/* +UpsertAgentOverlay Upsert Agent Overlay + +Creates or replaces the per-organisation overlay for a global agent. PUT is full replacement — omitted optional fields are removed. Include `version` from a prior GET to enable compare-and-swap (409 on conflict). Omit for last-writer-wins. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param organisation The organisation ID + @param agentId Global agent identifier + @return AIAgentsAPIUpsertAgentOverlayRequest +*/ +func (a *AIAgentsAPIService) UpsertAgentOverlay(ctx context.Context, organisation string, agentId string) AIAgentsAPIUpsertAgentOverlayRequest { + return AIAgentsAPIUpsertAgentOverlayRequest{ + ApiService: a, + ctx: ctx, + organisation: organisation, + agentId: agentId, + } +} + +// Execute executes the request +// @return UpsertAgentOverlay200Response +func (a *AIAgentsAPIService) UpsertAgentOverlayExecute(r AIAgentsAPIUpsertAgentOverlayRequest) (*UpsertAgentOverlay200Response, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *UpsertAgentOverlay200Response + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "AIAgentsAPIService.UpsertAgentOverlay") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/api/v3/organizations/{organisation}/ai/agents/{agentId}/overlay" + localVarPath = strings.Replace(localVarPath, "{"+"organisation"+"}", url.PathEscape(parameterValueToString(r.organisation, "organisation")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"agentId"+"}", url.PathEscape(parameterValueToString(r.agentId, "agentId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.upsertAgentOverlayRequest == nil { + return localVarReturnValue, nil, reportError("upsertAgentOverlayRequest 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.upsertAgentOverlayRequest + 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_custom_tools.go b/api_ai_custom_tools.go index d888800..556625e 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.13.0 +API version: 4.14.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 1d4e1a2..d5a9980 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.13.0 +API version: 4.14.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/api_ai_filter_policies.go b/api_ai_filter_policies.go new file mode 100644 index 0000000..094143c --- /dev/null +++ b/api_ai_filter_policies.go @@ -0,0 +1,872 @@ +/* +QuantCDN API + +Unified API for QuantCDN Admin and QuantCloud Platform services + +API version: 4.14.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 AIFilterPoliciesAPI interface { + + /* + CreateFilterPolicy Create an AI filter policy for an organisation + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param organisation The organisation ID + @return AIFilterPoliciesAPICreateFilterPolicyRequest + */ + CreateFilterPolicy(ctx context.Context, organisation string) AIFilterPoliciesAPICreateFilterPolicyRequest + + // CreateFilterPolicyExecute executes the request + // @return map[string]interface{} + CreateFilterPolicyExecute(r AIFilterPoliciesAPICreateFilterPolicyRequest) (map[string]interface{}, *http.Response, error) + + /* + DeleteFilterPolicy Delete a specific AI filter policy + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param organisation + @param policyId + @return AIFilterPoliciesAPIDeleteFilterPolicyRequest + */ + DeleteFilterPolicy(ctx context.Context, organisation string, policyId string) AIFilterPoliciesAPIDeleteFilterPolicyRequest + + // DeleteFilterPolicyExecute executes the request + // @return map[string]interface{} + DeleteFilterPolicyExecute(r AIFilterPoliciesAPIDeleteFilterPolicyRequest) (map[string]interface{}, *http.Response, error) + + /* + DisableFilterPolicy Disable a specific AI filter policy + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param organisation + @param policyId + @return AIFilterPoliciesAPIDisableFilterPolicyRequest + */ + DisableFilterPolicy(ctx context.Context, organisation string, policyId string) AIFilterPoliciesAPIDisableFilterPolicyRequest + + // DisableFilterPolicyExecute executes the request + // @return map[string]interface{} + DisableFilterPolicyExecute(r AIFilterPoliciesAPIDisableFilterPolicyRequest) (map[string]interface{}, *http.Response, error) + + /* + EnableFilterPolicy Enable a specific AI filter policy + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param organisation + @param policyId + @return AIFilterPoliciesAPIEnableFilterPolicyRequest + */ + EnableFilterPolicy(ctx context.Context, organisation string, policyId string) AIFilterPoliciesAPIEnableFilterPolicyRequest + + // EnableFilterPolicyExecute executes the request + // @return map[string]interface{} + EnableFilterPolicyExecute(r AIFilterPoliciesAPIEnableFilterPolicyRequest) (map[string]interface{}, *http.Response, error) + + /* + GetFilterPolicy Get a specific AI filter policy + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param organisation + @param policyId + @return AIFilterPoliciesAPIGetFilterPolicyRequest + */ + GetFilterPolicy(ctx context.Context, organisation string, policyId string) AIFilterPoliciesAPIGetFilterPolicyRequest + + // GetFilterPolicyExecute executes the request + // @return map[string]interface{} + GetFilterPolicyExecute(r AIFilterPoliciesAPIGetFilterPolicyRequest) (map[string]interface{}, *http.Response, error) + + /* + ListFilterPolicies List AI filter policies for an organisation + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param organisation The organisation ID + @return AIFilterPoliciesAPIListFilterPoliciesRequest + */ + ListFilterPolicies(ctx context.Context, organisation string) AIFilterPoliciesAPIListFilterPoliciesRequest + + // ListFilterPoliciesExecute executes the request + // @return map[string]interface{} + ListFilterPoliciesExecute(r AIFilterPoliciesAPIListFilterPoliciesRequest) (map[string]interface{}, *http.Response, error) + + /* + UpdateFilterPolicy Update a specific AI filter policy + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param organisation + @param policyId + @return AIFilterPoliciesAPIUpdateFilterPolicyRequest + */ + UpdateFilterPolicy(ctx context.Context, organisation string, policyId string) AIFilterPoliciesAPIUpdateFilterPolicyRequest + + // UpdateFilterPolicyExecute executes the request + // @return map[string]interface{} + UpdateFilterPolicyExecute(r AIFilterPoliciesAPIUpdateFilterPolicyRequest) (map[string]interface{}, *http.Response, error) +} + +// AIFilterPoliciesAPIService AIFilterPoliciesAPI service +type AIFilterPoliciesAPIService service + +type AIFilterPoliciesAPICreateFilterPolicyRequest struct { + ctx context.Context + ApiService AIFilterPoliciesAPI + organisation string + createFilterPolicyRequest *CreateFilterPolicyRequest +} + +func (r AIFilterPoliciesAPICreateFilterPolicyRequest) CreateFilterPolicyRequest(createFilterPolicyRequest CreateFilterPolicyRequest) AIFilterPoliciesAPICreateFilterPolicyRequest { + r.createFilterPolicyRequest = &createFilterPolicyRequest + return r +} + +func (r AIFilterPoliciesAPICreateFilterPolicyRequest) Execute() (map[string]interface{}, *http.Response, error) { + return r.ApiService.CreateFilterPolicyExecute(r) +} + +/* +CreateFilterPolicy Create an AI filter policy for an organisation + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param organisation The organisation ID + @return AIFilterPoliciesAPICreateFilterPolicyRequest +*/ +func (a *AIFilterPoliciesAPIService) CreateFilterPolicy(ctx context.Context, organisation string) AIFilterPoliciesAPICreateFilterPolicyRequest { + return AIFilterPoliciesAPICreateFilterPolicyRequest{ + ApiService: a, + ctx: ctx, + organisation: organisation, + } +} + +// Execute executes the request +// @return map[string]interface{} +func (a *AIFilterPoliciesAPIService) CreateFilterPolicyExecute(r AIFilterPoliciesAPICreateFilterPolicyRequest) (map[string]interface{}, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue map[string]interface{} + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "AIFilterPoliciesAPIService.CreateFilterPolicy") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/api/v3/organizations/{organisation}/ai/filter-policies" + 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.createFilterPolicyRequest == nil { + return localVarReturnValue, nil, reportError("createFilterPolicyRequest 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.createFilterPolicyRequest + 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 AIFilterPoliciesAPIDeleteFilterPolicyRequest struct { + ctx context.Context + ApiService AIFilterPoliciesAPI + organisation string + policyId string +} + +func (r AIFilterPoliciesAPIDeleteFilterPolicyRequest) Execute() (map[string]interface{}, *http.Response, error) { + return r.ApiService.DeleteFilterPolicyExecute(r) +} + +/* +DeleteFilterPolicy Delete a specific AI filter policy + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param organisation + @param policyId + @return AIFilterPoliciesAPIDeleteFilterPolicyRequest +*/ +func (a *AIFilterPoliciesAPIService) DeleteFilterPolicy(ctx context.Context, organisation string, policyId string) AIFilterPoliciesAPIDeleteFilterPolicyRequest { + return AIFilterPoliciesAPIDeleteFilterPolicyRequest{ + ApiService: a, + ctx: ctx, + organisation: organisation, + policyId: policyId, + } +} + +// Execute executes the request +// @return map[string]interface{} +func (a *AIFilterPoliciesAPIService) DeleteFilterPolicyExecute(r AIFilterPoliciesAPIDeleteFilterPolicyRequest) (map[string]interface{}, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue map[string]interface{} + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "AIFilterPoliciesAPIService.DeleteFilterPolicy") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/api/v3/organizations/{organisation}/ai/filter-policies/{policyId}" + localVarPath = strings.Replace(localVarPath, "{"+"organisation"+"}", url.PathEscape(parameterValueToString(r.organisation, "organisation")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"policyId"+"}", url.PathEscape(parameterValueToString(r.policyId, "policyId")), -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 AIFilterPoliciesAPIDisableFilterPolicyRequest struct { + ctx context.Context + ApiService AIFilterPoliciesAPI + organisation string + policyId string +} + +func (r AIFilterPoliciesAPIDisableFilterPolicyRequest) Execute() (map[string]interface{}, *http.Response, error) { + return r.ApiService.DisableFilterPolicyExecute(r) +} + +/* +DisableFilterPolicy Disable a specific AI filter policy + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param organisation + @param policyId + @return AIFilterPoliciesAPIDisableFilterPolicyRequest +*/ +func (a *AIFilterPoliciesAPIService) DisableFilterPolicy(ctx context.Context, organisation string, policyId string) AIFilterPoliciesAPIDisableFilterPolicyRequest { + return AIFilterPoliciesAPIDisableFilterPolicyRequest{ + ApiService: a, + ctx: ctx, + organisation: organisation, + policyId: policyId, + } +} + +// Execute executes the request +// @return map[string]interface{} +func (a *AIFilterPoliciesAPIService) DisableFilterPolicyExecute(r AIFilterPoliciesAPIDisableFilterPolicyRequest) (map[string]interface{}, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue map[string]interface{} + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "AIFilterPoliciesAPIService.DisableFilterPolicy") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/api/v3/organizations/{organisation}/ai/filter-policies/{policyId}/disable" + localVarPath = strings.Replace(localVarPath, "{"+"organisation"+"}", url.PathEscape(parameterValueToString(r.organisation, "organisation")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"policyId"+"}", url.PathEscape(parameterValueToString(r.policyId, "policyId")), -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 AIFilterPoliciesAPIEnableFilterPolicyRequest struct { + ctx context.Context + ApiService AIFilterPoliciesAPI + organisation string + policyId string +} + +func (r AIFilterPoliciesAPIEnableFilterPolicyRequest) Execute() (map[string]interface{}, *http.Response, error) { + return r.ApiService.EnableFilterPolicyExecute(r) +} + +/* +EnableFilterPolicy Enable a specific AI filter policy + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param organisation + @param policyId + @return AIFilterPoliciesAPIEnableFilterPolicyRequest +*/ +func (a *AIFilterPoliciesAPIService) EnableFilterPolicy(ctx context.Context, organisation string, policyId string) AIFilterPoliciesAPIEnableFilterPolicyRequest { + return AIFilterPoliciesAPIEnableFilterPolicyRequest{ + ApiService: a, + ctx: ctx, + organisation: organisation, + policyId: policyId, + } +} + +// Execute executes the request +// @return map[string]interface{} +func (a *AIFilterPoliciesAPIService) EnableFilterPolicyExecute(r AIFilterPoliciesAPIEnableFilterPolicyRequest) (map[string]interface{}, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue map[string]interface{} + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "AIFilterPoliciesAPIService.EnableFilterPolicy") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/api/v3/organizations/{organisation}/ai/filter-policies/{policyId}/enable" + localVarPath = strings.Replace(localVarPath, "{"+"organisation"+"}", url.PathEscape(parameterValueToString(r.organisation, "organisation")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"policyId"+"}", url.PathEscape(parameterValueToString(r.policyId, "policyId")), -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 AIFilterPoliciesAPIGetFilterPolicyRequest struct { + ctx context.Context + ApiService AIFilterPoliciesAPI + organisation string + policyId string +} + +func (r AIFilterPoliciesAPIGetFilterPolicyRequest) Execute() (map[string]interface{}, *http.Response, error) { + return r.ApiService.GetFilterPolicyExecute(r) +} + +/* +GetFilterPolicy Get a specific AI filter policy + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param organisation + @param policyId + @return AIFilterPoliciesAPIGetFilterPolicyRequest +*/ +func (a *AIFilterPoliciesAPIService) GetFilterPolicy(ctx context.Context, organisation string, policyId string) AIFilterPoliciesAPIGetFilterPolicyRequest { + return AIFilterPoliciesAPIGetFilterPolicyRequest{ + ApiService: a, + ctx: ctx, + organisation: organisation, + policyId: policyId, + } +} + +// Execute executes the request +// @return map[string]interface{} +func (a *AIFilterPoliciesAPIService) GetFilterPolicyExecute(r AIFilterPoliciesAPIGetFilterPolicyRequest) (map[string]interface{}, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue map[string]interface{} + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "AIFilterPoliciesAPIService.GetFilterPolicy") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/api/v3/organizations/{organisation}/ai/filter-policies/{policyId}" + localVarPath = strings.Replace(localVarPath, "{"+"organisation"+"}", url.PathEscape(parameterValueToString(r.organisation, "organisation")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"policyId"+"}", url.PathEscape(parameterValueToString(r.policyId, "policyId")), -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 AIFilterPoliciesAPIListFilterPoliciesRequest struct { + ctx context.Context + ApiService AIFilterPoliciesAPI + organisation string +} + +func (r AIFilterPoliciesAPIListFilterPoliciesRequest) Execute() (map[string]interface{}, *http.Response, error) { + return r.ApiService.ListFilterPoliciesExecute(r) +} + +/* +ListFilterPolicies List AI filter policies for an organisation + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param organisation The organisation ID + @return AIFilterPoliciesAPIListFilterPoliciesRequest +*/ +func (a *AIFilterPoliciesAPIService) ListFilterPolicies(ctx context.Context, organisation string) AIFilterPoliciesAPIListFilterPoliciesRequest { + return AIFilterPoliciesAPIListFilterPoliciesRequest{ + ApiService: a, + ctx: ctx, + organisation: organisation, + } +} + +// Execute executes the request +// @return map[string]interface{} +func (a *AIFilterPoliciesAPIService) ListFilterPoliciesExecute(r AIFilterPoliciesAPIListFilterPoliciesRequest) (map[string]interface{}, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue map[string]interface{} + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "AIFilterPoliciesAPIService.ListFilterPolicies") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/api/v3/organizations/{organisation}/ai/filter-policies" + 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 AIFilterPoliciesAPIUpdateFilterPolicyRequest struct { + ctx context.Context + ApiService AIFilterPoliciesAPI + organisation string + policyId string + updateFilterPolicyRequest *UpdateFilterPolicyRequest +} + +func (r AIFilterPoliciesAPIUpdateFilterPolicyRequest) UpdateFilterPolicyRequest(updateFilterPolicyRequest UpdateFilterPolicyRequest) AIFilterPoliciesAPIUpdateFilterPolicyRequest { + r.updateFilterPolicyRequest = &updateFilterPolicyRequest + return r +} + +func (r AIFilterPoliciesAPIUpdateFilterPolicyRequest) Execute() (map[string]interface{}, *http.Response, error) { + return r.ApiService.UpdateFilterPolicyExecute(r) +} + +/* +UpdateFilterPolicy Update a specific AI filter policy + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param organisation + @param policyId + @return AIFilterPoliciesAPIUpdateFilterPolicyRequest +*/ +func (a *AIFilterPoliciesAPIService) UpdateFilterPolicy(ctx context.Context, organisation string, policyId string) AIFilterPoliciesAPIUpdateFilterPolicyRequest { + return AIFilterPoliciesAPIUpdateFilterPolicyRequest{ + ApiService: a, + ctx: ctx, + organisation: organisation, + policyId: policyId, + } +} + +// Execute executes the request +// @return map[string]interface{} +func (a *AIFilterPoliciesAPIService) UpdateFilterPolicyExecute(r AIFilterPoliciesAPIUpdateFilterPolicyRequest) (map[string]interface{}, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue map[string]interface{} + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "AIFilterPoliciesAPIService.UpdateFilterPolicy") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/api/v3/organizations/{organisation}/ai/filter-policies/{policyId}" + localVarPath = strings.Replace(localVarPath, "{"+"organisation"+"}", url.PathEscape(parameterValueToString(r.organisation, "organisation")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"policyId"+"}", url.PathEscape(parameterValueToString(r.policyId, "policyId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.updateFilterPolicyRequest == nil { + return localVarReturnValue, nil, reportError("updateFilterPolicyRequest 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.updateFilterPolicyRequest + 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_governance.go b/api_ai_governance.go new file mode 100644 index 0000000..3a38192 --- /dev/null +++ b/api_ai_governance.go @@ -0,0 +1,380 @@ +/* +QuantCDN API + +Unified API for QuantCDN Admin and QuantCloud Platform services + +API version: 4.14.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 AIGovernanceAPI interface { + + /* + GetGovernanceConfig Get AI governance configuration for an organisation + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param organisation The organisation ID + @return AIGovernanceAPIGetGovernanceConfigRequest + */ + GetGovernanceConfig(ctx context.Context, organisation string) AIGovernanceAPIGetGovernanceConfigRequest + + // GetGovernanceConfigExecute executes the request + // @return GetGovernanceConfig200Response + GetGovernanceConfigExecute(r AIGovernanceAPIGetGovernanceConfigRequest) (*GetGovernanceConfig200Response, *http.Response, error) + + /* + GetGovernanceSpend Get AI spend summary for an organisation + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param organisation The organisation ID + @return AIGovernanceAPIGetGovernanceSpendRequest + */ + GetGovernanceSpend(ctx context.Context, organisation string) AIGovernanceAPIGetGovernanceSpendRequest + + // GetGovernanceSpendExecute executes the request + // @return map[string]interface{} + GetGovernanceSpendExecute(r AIGovernanceAPIGetGovernanceSpendRequest) (map[string]interface{}, *http.Response, error) + + /* + UpdateGovernanceConfig Update AI governance configuration for an organisation + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param organisation The organisation ID + @return AIGovernanceAPIUpdateGovernanceConfigRequest + */ + UpdateGovernanceConfig(ctx context.Context, organisation string) AIGovernanceAPIUpdateGovernanceConfigRequest + + // UpdateGovernanceConfigExecute executes the request + // @return UpdateGovernanceConfig200Response + UpdateGovernanceConfigExecute(r AIGovernanceAPIUpdateGovernanceConfigRequest) (*UpdateGovernanceConfig200Response, *http.Response, error) +} + +// AIGovernanceAPIService AIGovernanceAPI service +type AIGovernanceAPIService service + +type AIGovernanceAPIGetGovernanceConfigRequest struct { + ctx context.Context + ApiService AIGovernanceAPI + organisation string +} + +func (r AIGovernanceAPIGetGovernanceConfigRequest) Execute() (*GetGovernanceConfig200Response, *http.Response, error) { + return r.ApiService.GetGovernanceConfigExecute(r) +} + +/* +GetGovernanceConfig Get AI governance configuration for an organisation + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param organisation The organisation ID + @return AIGovernanceAPIGetGovernanceConfigRequest +*/ +func (a *AIGovernanceAPIService) GetGovernanceConfig(ctx context.Context, organisation string) AIGovernanceAPIGetGovernanceConfigRequest { + return AIGovernanceAPIGetGovernanceConfigRequest{ + ApiService: a, + ctx: ctx, + organisation: organisation, + } +} + +// Execute executes the request +// @return GetGovernanceConfig200Response +func (a *AIGovernanceAPIService) GetGovernanceConfigExecute(r AIGovernanceAPIGetGovernanceConfigRequest) (*GetGovernanceConfig200Response, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *GetGovernanceConfig200Response + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "AIGovernanceAPIService.GetGovernanceConfig") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/api/v3/organizations/{organisation}/ai/governance" + 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 AIGovernanceAPIGetGovernanceSpendRequest struct { + ctx context.Context + ApiService AIGovernanceAPI + organisation string +} + +func (r AIGovernanceAPIGetGovernanceSpendRequest) Execute() (map[string]interface{}, *http.Response, error) { + return r.ApiService.GetGovernanceSpendExecute(r) +} + +/* +GetGovernanceSpend Get AI spend summary for an organisation + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param organisation The organisation ID + @return AIGovernanceAPIGetGovernanceSpendRequest +*/ +func (a *AIGovernanceAPIService) GetGovernanceSpend(ctx context.Context, organisation string) AIGovernanceAPIGetGovernanceSpendRequest { + return AIGovernanceAPIGetGovernanceSpendRequest{ + ApiService: a, + ctx: ctx, + organisation: organisation, + } +} + +// Execute executes the request +// @return map[string]interface{} +func (a *AIGovernanceAPIService) GetGovernanceSpendExecute(r AIGovernanceAPIGetGovernanceSpendRequest) (map[string]interface{}, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue map[string]interface{} + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "AIGovernanceAPIService.GetGovernanceSpend") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/api/v3/organizations/{organisation}/ai/governance/spend" + 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 AIGovernanceAPIUpdateGovernanceConfigRequest struct { + ctx context.Context + ApiService AIGovernanceAPI + organisation string + updateGovernanceConfigRequest *UpdateGovernanceConfigRequest +} + +func (r AIGovernanceAPIUpdateGovernanceConfigRequest) UpdateGovernanceConfigRequest(updateGovernanceConfigRequest UpdateGovernanceConfigRequest) AIGovernanceAPIUpdateGovernanceConfigRequest { + r.updateGovernanceConfigRequest = &updateGovernanceConfigRequest + return r +} + +func (r AIGovernanceAPIUpdateGovernanceConfigRequest) Execute() (*UpdateGovernanceConfig200Response, *http.Response, error) { + return r.ApiService.UpdateGovernanceConfigExecute(r) +} + +/* +UpdateGovernanceConfig Update AI governance configuration for an organisation + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param organisation The organisation ID + @return AIGovernanceAPIUpdateGovernanceConfigRequest +*/ +func (a *AIGovernanceAPIService) UpdateGovernanceConfig(ctx context.Context, organisation string) AIGovernanceAPIUpdateGovernanceConfigRequest { + return AIGovernanceAPIUpdateGovernanceConfigRequest{ + ApiService: a, + ctx: ctx, + organisation: organisation, + } +} + +// Execute executes the request +// @return UpdateGovernanceConfig200Response +func (a *AIGovernanceAPIService) UpdateGovernanceConfigExecute(r AIGovernanceAPIUpdateGovernanceConfigRequest) (*UpdateGovernanceConfig200Response, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *UpdateGovernanceConfig200Response + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "AIGovernanceAPIService.UpdateGovernanceConfig") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/api/v3/organizations/{organisation}/ai/governance" + 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.updateGovernanceConfigRequest == nil { + return localVarReturnValue, nil, reportError("updateGovernanceConfigRequest 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.updateGovernanceConfigRequest + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} diff --git a/api_ai_inference.go b/api_ai_inference.go index 5767987..f862e1a 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.13.0 +API version: 4.14.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 f9ad53c..a547c6d 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.13.0 +API version: 4.14.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 5921c8d..4399ff7 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.13.0 +API version: 4.14.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 8223c0a..417d8dc 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.13.0 +API version: 4.14.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 e21de69..36a7867 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.13.0 +API version: 4.14.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/api_ai_skills.go b/api_ai_skills.go index d98c2f0..5b2e4d1 100644 --- a/api_ai_skills.go +++ b/api_ai_skills.go @@ -3,7 +3,7 @@ QuantCDN API Unified API for QuantCDN Admin and QuantCloud Platform services -API version: 4.13.0 +API version: 4.14.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/api_ai_slack_bots.go b/api_ai_slack_bots.go new file mode 100644 index 0000000..a715acb --- /dev/null +++ b/api_ai_slack_bots.go @@ -0,0 +1,928 @@ +/* +QuantCDN API + +Unified API for QuantCDN Admin and QuantCloud Platform services + +API version: 4.14.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 AISlackBotsAPI interface { + + /* + CreateSlackBot Create Slack Bot + + Creates a new Slack bot backed by an AI agent. The bot must be connected to a Slack workspace via OAuth before it can receive events. + * + * **Setup Types:** + * - `quant`: Quant-managed Slack app — uses shared OAuth credentials + * - `byo`: Bring Your Own — customer provides their own Slack app credentials + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param organisation The organisation ID + @return AISlackBotsAPICreateSlackBotRequest + */ + CreateSlackBot(ctx context.Context, organisation string) AISlackBotsAPICreateSlackBotRequest + + // CreateSlackBotExecute executes the request + // @return CreateSlackBot201Response + CreateSlackBotExecute(r AISlackBotsAPICreateSlackBotRequest) (*CreateSlackBot201Response, *http.Response, error) + + /* + DeleteSlackBot Delete Slack Bot + + Permanently deletes a Slack bot and disconnects it from the workspace. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param organisation The organisation ID + @param botId The Slack bot ID + @return AISlackBotsAPIDeleteSlackBotRequest + */ + DeleteSlackBot(ctx context.Context, organisation string, botId string) AISlackBotsAPIDeleteSlackBotRequest + + // DeleteSlackBotExecute executes the request + // @return DeleteSlackBot200Response + DeleteSlackBotExecute(r AISlackBotsAPIDeleteSlackBotRequest) (*DeleteSlackBot200Response, *http.Response, error) + + /* + GetSlackBot Get Slack Bot + + Retrieves details for a specific Slack bot including its configuration and connection status. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param organisation The organisation ID + @param botId The Slack bot ID + @return AISlackBotsAPIGetSlackBotRequest + */ + GetSlackBot(ctx context.Context, organisation string, botId string) AISlackBotsAPIGetSlackBotRequest + + // GetSlackBotExecute executes the request + // @return GetSlackBot200Response + GetSlackBotExecute(r AISlackBotsAPIGetSlackBotRequest) (*GetSlackBot200Response, *http.Response, error) + + /* + ListSlackBots List Slack Bots + + Lists all Slack bots configured for the organization. Each bot is backed by an AI agent and can be connected to a Slack workspace. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param organisation The organisation ID + @return AISlackBotsAPIListSlackBotsRequest + */ + ListSlackBots(ctx context.Context, organisation string) AISlackBotsAPIListSlackBotsRequest + + // ListSlackBotsExecute executes the request + // @return ListSlackBots200Response + ListSlackBotsExecute(r AISlackBotsAPIListSlackBotsRequest) (*ListSlackBots200Response, *http.Response, error) + + /* + SearchSlackWorkspaceChannels Search Slack Workspace Channels + + Searches channels in the Slack workspace connected to this bot. Requires the bot to be connected via OAuth. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param organisation The organisation ID + @param botId The Slack bot ID + @return AISlackBotsAPISearchSlackWorkspaceChannelsRequest + */ + SearchSlackWorkspaceChannels(ctx context.Context, organisation string, botId string) AISlackBotsAPISearchSlackWorkspaceChannelsRequest + + // SearchSlackWorkspaceChannelsExecute executes the request + // @return SearchSlackWorkspaceChannels200Response + SearchSlackWorkspaceChannelsExecute(r AISlackBotsAPISearchSlackWorkspaceChannelsRequest) (*SearchSlackWorkspaceChannels200Response, *http.Response, error) + + /* + SearchSlackWorkspaceUsers Search Slack Workspace Users + + Searches users in the Slack workspace connected to this bot. Requires the bot to be connected via OAuth. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param organisation The organisation ID + @param botId The Slack bot ID + @return AISlackBotsAPISearchSlackWorkspaceUsersRequest + */ + SearchSlackWorkspaceUsers(ctx context.Context, organisation string, botId string) AISlackBotsAPISearchSlackWorkspaceUsersRequest + + // SearchSlackWorkspaceUsersExecute executes the request + // @return SearchSlackWorkspaceUsers200Response + SearchSlackWorkspaceUsersExecute(r AISlackBotsAPISearchSlackWorkspaceUsersRequest) (*SearchSlackWorkspaceUsers200Response, *http.Response, error) + + /* + UpdateSlackBot Update Slack Bot + + Updates a Slack bot's configuration. Only provided fields are updated. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param organisation The organisation ID + @param botId The Slack bot ID + @return AISlackBotsAPIUpdateSlackBotRequest + */ + UpdateSlackBot(ctx context.Context, organisation string, botId string) AISlackBotsAPIUpdateSlackBotRequest + + // UpdateSlackBotExecute executes the request + // @return CreateSlackBot201Response + UpdateSlackBotExecute(r AISlackBotsAPIUpdateSlackBotRequest) (*CreateSlackBot201Response, *http.Response, error) +} + +// AISlackBotsAPIService AISlackBotsAPI service +type AISlackBotsAPIService service + +type AISlackBotsAPICreateSlackBotRequest struct { + ctx context.Context + ApiService AISlackBotsAPI + organisation string + createSlackBotRequest *CreateSlackBotRequest +} + +func (r AISlackBotsAPICreateSlackBotRequest) CreateSlackBotRequest(createSlackBotRequest CreateSlackBotRequest) AISlackBotsAPICreateSlackBotRequest { + r.createSlackBotRequest = &createSlackBotRequest + return r +} + +func (r AISlackBotsAPICreateSlackBotRequest) Execute() (*CreateSlackBot201Response, *http.Response, error) { + return r.ApiService.CreateSlackBotExecute(r) +} + +/* +CreateSlackBot Create Slack Bot + +Creates a new Slack bot backed by an AI agent. The bot must be connected to a Slack workspace via OAuth before it can receive events. + * + * **Setup Types:** + * - `quant`: Quant-managed Slack app — uses shared OAuth credentials + * - `byo`: Bring Your Own — customer provides their own Slack app credentials + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param organisation The organisation ID + @return AISlackBotsAPICreateSlackBotRequest +*/ +func (a *AISlackBotsAPIService) CreateSlackBot(ctx context.Context, organisation string) AISlackBotsAPICreateSlackBotRequest { + return AISlackBotsAPICreateSlackBotRequest{ + ApiService: a, + ctx: ctx, + organisation: organisation, + } +} + +// Execute executes the request +// @return CreateSlackBot201Response +func (a *AISlackBotsAPIService) CreateSlackBotExecute(r AISlackBotsAPICreateSlackBotRequest) (*CreateSlackBot201Response, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *CreateSlackBot201Response + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "AISlackBotsAPIService.CreateSlackBot") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/api/v3/organizations/{organisation}/ai/slack-bots" + 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.createSlackBotRequest == nil { + return localVarReturnValue, nil, reportError("createSlackBotRequest 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.createSlackBotRequest + 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 AISlackBotsAPIDeleteSlackBotRequest struct { + ctx context.Context + ApiService AISlackBotsAPI + organisation string + botId string +} + +func (r AISlackBotsAPIDeleteSlackBotRequest) Execute() (*DeleteSlackBot200Response, *http.Response, error) { + return r.ApiService.DeleteSlackBotExecute(r) +} + +/* +DeleteSlackBot Delete Slack Bot + +Permanently deletes a Slack bot and disconnects it from the workspace. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param organisation The organisation ID + @param botId The Slack bot ID + @return AISlackBotsAPIDeleteSlackBotRequest +*/ +func (a *AISlackBotsAPIService) DeleteSlackBot(ctx context.Context, organisation string, botId string) AISlackBotsAPIDeleteSlackBotRequest { + return AISlackBotsAPIDeleteSlackBotRequest{ + ApiService: a, + ctx: ctx, + organisation: organisation, + botId: botId, + } +} + +// Execute executes the request +// @return DeleteSlackBot200Response +func (a *AISlackBotsAPIService) DeleteSlackBotExecute(r AISlackBotsAPIDeleteSlackBotRequest) (*DeleteSlackBot200Response, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *DeleteSlackBot200Response + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "AISlackBotsAPIService.DeleteSlackBot") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/api/v3/organizations/{organisation}/ai/slack-bots/{botId}" + localVarPath = strings.Replace(localVarPath, "{"+"organisation"+"}", url.PathEscape(parameterValueToString(r.organisation, "organisation")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"botId"+"}", url.PathEscape(parameterValueToString(r.botId, "botId")), -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 AISlackBotsAPIGetSlackBotRequest struct { + ctx context.Context + ApiService AISlackBotsAPI + organisation string + botId string +} + +func (r AISlackBotsAPIGetSlackBotRequest) Execute() (*GetSlackBot200Response, *http.Response, error) { + return r.ApiService.GetSlackBotExecute(r) +} + +/* +GetSlackBot Get Slack Bot + +Retrieves details for a specific Slack bot including its configuration and connection status. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param organisation The organisation ID + @param botId The Slack bot ID + @return AISlackBotsAPIGetSlackBotRequest +*/ +func (a *AISlackBotsAPIService) GetSlackBot(ctx context.Context, organisation string, botId string) AISlackBotsAPIGetSlackBotRequest { + return AISlackBotsAPIGetSlackBotRequest{ + ApiService: a, + ctx: ctx, + organisation: organisation, + botId: botId, + } +} + +// Execute executes the request +// @return GetSlackBot200Response +func (a *AISlackBotsAPIService) GetSlackBotExecute(r AISlackBotsAPIGetSlackBotRequest) (*GetSlackBot200Response, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *GetSlackBot200Response + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "AISlackBotsAPIService.GetSlackBot") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/api/v3/organizations/{organisation}/ai/slack-bots/{botId}" + localVarPath = strings.Replace(localVarPath, "{"+"organisation"+"}", url.PathEscape(parameterValueToString(r.organisation, "organisation")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"botId"+"}", url.PathEscape(parameterValueToString(r.botId, "botId")), -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 AISlackBotsAPIListSlackBotsRequest struct { + ctx context.Context + ApiService AISlackBotsAPI + organisation string +} + +func (r AISlackBotsAPIListSlackBotsRequest) Execute() (*ListSlackBots200Response, *http.Response, error) { + return r.ApiService.ListSlackBotsExecute(r) +} + +/* +ListSlackBots List Slack Bots + +Lists all Slack bots configured for the organization. Each bot is backed by an AI agent and can be connected to a Slack workspace. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param organisation The organisation ID + @return AISlackBotsAPIListSlackBotsRequest +*/ +func (a *AISlackBotsAPIService) ListSlackBots(ctx context.Context, organisation string) AISlackBotsAPIListSlackBotsRequest { + return AISlackBotsAPIListSlackBotsRequest{ + ApiService: a, + ctx: ctx, + organisation: organisation, + } +} + +// Execute executes the request +// @return ListSlackBots200Response +func (a *AISlackBotsAPIService) ListSlackBotsExecute(r AISlackBotsAPIListSlackBotsRequest) (*ListSlackBots200Response, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ListSlackBots200Response + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "AISlackBotsAPIService.ListSlackBots") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/api/v3/organizations/{organisation}/ai/slack-bots" + 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 AISlackBotsAPISearchSlackWorkspaceChannelsRequest struct { + ctx context.Context + ApiService AISlackBotsAPI + organisation string + botId string + q *string +} + +// Search query to filter channels by name +func (r AISlackBotsAPISearchSlackWorkspaceChannelsRequest) Q(q string) AISlackBotsAPISearchSlackWorkspaceChannelsRequest { + r.q = &q + return r +} + +func (r AISlackBotsAPISearchSlackWorkspaceChannelsRequest) Execute() (*SearchSlackWorkspaceChannels200Response, *http.Response, error) { + return r.ApiService.SearchSlackWorkspaceChannelsExecute(r) +} + +/* +SearchSlackWorkspaceChannels Search Slack Workspace Channels + +Searches channels in the Slack workspace connected to this bot. Requires the bot to be connected via OAuth. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param organisation The organisation ID + @param botId The Slack bot ID + @return AISlackBotsAPISearchSlackWorkspaceChannelsRequest +*/ +func (a *AISlackBotsAPIService) SearchSlackWorkspaceChannels(ctx context.Context, organisation string, botId string) AISlackBotsAPISearchSlackWorkspaceChannelsRequest { + return AISlackBotsAPISearchSlackWorkspaceChannelsRequest{ + ApiService: a, + ctx: ctx, + organisation: organisation, + botId: botId, + } +} + +// Execute executes the request +// @return SearchSlackWorkspaceChannels200Response +func (a *AISlackBotsAPIService) SearchSlackWorkspaceChannelsExecute(r AISlackBotsAPISearchSlackWorkspaceChannelsRequest) (*SearchSlackWorkspaceChannels200Response, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *SearchSlackWorkspaceChannels200Response + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "AISlackBotsAPIService.SearchSlackWorkspaceChannels") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/api/v3/organizations/{organisation}/ai/slack-bots/{botId}/workspace/channels" + localVarPath = strings.Replace(localVarPath, "{"+"organisation"+"}", url.PathEscape(parameterValueToString(r.organisation, "organisation")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"botId"+"}", url.PathEscape(parameterValueToString(r.botId, "botId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if r.q != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "q", r.q, "form", "") + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type AISlackBotsAPISearchSlackWorkspaceUsersRequest struct { + ctx context.Context + ApiService AISlackBotsAPI + organisation string + botId string + q *string +} + +// Search query to filter users by name +func (r AISlackBotsAPISearchSlackWorkspaceUsersRequest) Q(q string) AISlackBotsAPISearchSlackWorkspaceUsersRequest { + r.q = &q + return r +} + +func (r AISlackBotsAPISearchSlackWorkspaceUsersRequest) Execute() (*SearchSlackWorkspaceUsers200Response, *http.Response, error) { + return r.ApiService.SearchSlackWorkspaceUsersExecute(r) +} + +/* +SearchSlackWorkspaceUsers Search Slack Workspace Users + +Searches users in the Slack workspace connected to this bot. Requires the bot to be connected via OAuth. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param organisation The organisation ID + @param botId The Slack bot ID + @return AISlackBotsAPISearchSlackWorkspaceUsersRequest +*/ +func (a *AISlackBotsAPIService) SearchSlackWorkspaceUsers(ctx context.Context, organisation string, botId string) AISlackBotsAPISearchSlackWorkspaceUsersRequest { + return AISlackBotsAPISearchSlackWorkspaceUsersRequest{ + ApiService: a, + ctx: ctx, + organisation: organisation, + botId: botId, + } +} + +// Execute executes the request +// @return SearchSlackWorkspaceUsers200Response +func (a *AISlackBotsAPIService) SearchSlackWorkspaceUsersExecute(r AISlackBotsAPISearchSlackWorkspaceUsersRequest) (*SearchSlackWorkspaceUsers200Response, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *SearchSlackWorkspaceUsers200Response + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "AISlackBotsAPIService.SearchSlackWorkspaceUsers") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/api/v3/organizations/{organisation}/ai/slack-bots/{botId}/workspace/users" + localVarPath = strings.Replace(localVarPath, "{"+"organisation"+"}", url.PathEscape(parameterValueToString(r.organisation, "organisation")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"botId"+"}", url.PathEscape(parameterValueToString(r.botId, "botId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if r.q != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "q", r.q, "form", "") + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type AISlackBotsAPIUpdateSlackBotRequest struct { + ctx context.Context + ApiService AISlackBotsAPI + organisation string + botId string + updateSlackBotRequest *UpdateSlackBotRequest +} + +func (r AISlackBotsAPIUpdateSlackBotRequest) UpdateSlackBotRequest(updateSlackBotRequest UpdateSlackBotRequest) AISlackBotsAPIUpdateSlackBotRequest { + r.updateSlackBotRequest = &updateSlackBotRequest + return r +} + +func (r AISlackBotsAPIUpdateSlackBotRequest) Execute() (*CreateSlackBot201Response, *http.Response, error) { + return r.ApiService.UpdateSlackBotExecute(r) +} + +/* +UpdateSlackBot Update Slack Bot + +Updates a Slack bot's configuration. Only provided fields are updated. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param organisation The organisation ID + @param botId The Slack bot ID + @return AISlackBotsAPIUpdateSlackBotRequest +*/ +func (a *AISlackBotsAPIService) UpdateSlackBot(ctx context.Context, organisation string, botId string) AISlackBotsAPIUpdateSlackBotRequest { + return AISlackBotsAPIUpdateSlackBotRequest{ + ApiService: a, + ctx: ctx, + organisation: organisation, + botId: botId, + } +} + +// Execute executes the request +// @return CreateSlackBot201Response +func (a *AISlackBotsAPIService) UpdateSlackBotExecute(r AISlackBotsAPIUpdateSlackBotRequest) (*CreateSlackBot201Response, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *CreateSlackBot201Response + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "AISlackBotsAPIService.UpdateSlackBot") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/api/v3/organizations/{organisation}/ai/slack-bots/{botId}" + localVarPath = strings.Replace(localVarPath, "{"+"organisation"+"}", url.PathEscape(parameterValueToString(r.organisation, "organisation")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"botId"+"}", url.PathEscape(parameterValueToString(r.botId, "botId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.updateSlackBotRequest == nil { + return localVarReturnValue, nil, reportError("updateSlackBotRequest 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.updateSlackBotRequest + 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 14db0c5..0d4b63d 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.13.0 +API version: 4.14.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 5c87afa..60b7978 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.13.0 +API version: 4.14.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/api_ai_usage.go b/api_ai_usage.go new file mode 100644 index 0000000..576e29c --- /dev/null +++ b/api_ai_usage.go @@ -0,0 +1,141 @@ +/* +QuantCDN API + +Unified API for QuantCDN Admin and QuantCloud Platform services + +API version: 4.14.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 AIUsageAPI interface { + + /* + GetMyUsage Get AI usage summary for the authenticated user + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param organisation The organisation ID + @return AIUsageAPIGetMyUsageRequest + */ + GetMyUsage(ctx context.Context, organisation string) AIUsageAPIGetMyUsageRequest + + // GetMyUsageExecute executes the request + // @return GetMyUsage200Response + GetMyUsageExecute(r AIUsageAPIGetMyUsageRequest) (*GetMyUsage200Response, *http.Response, error) +} + +// AIUsageAPIService AIUsageAPI service +type AIUsageAPIService service + +type AIUsageAPIGetMyUsageRequest struct { + ctx context.Context + ApiService AIUsageAPI + organisation string +} + +func (r AIUsageAPIGetMyUsageRequest) Execute() (*GetMyUsage200Response, *http.Response, error) { + return r.ApiService.GetMyUsageExecute(r) +} + +/* +GetMyUsage Get AI usage summary for the authenticated user + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param organisation The organisation ID + @return AIUsageAPIGetMyUsageRequest +*/ +func (a *AIUsageAPIService) GetMyUsage(ctx context.Context, organisation string) AIUsageAPIGetMyUsageRequest { + return AIUsageAPIGetMyUsageRequest{ + ApiService: a, + ctx: ctx, + organisation: organisation, + } +} + +// Execute executes the request +// @return GetMyUsage200Response +func (a *AIUsageAPIService) GetMyUsageExecute(r AIUsageAPIGetMyUsageRequest) (*GetMyUsage200Response, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *GetMyUsage200Response + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "AIUsageAPIService.GetMyUsage") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/api/v3/organizations/{organisation}/ai/usage/me" + 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 +} diff --git a/api_ai_vector_database.go b/api_ai_vector_database.go index 4ca90ff..f7832bd 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.13.0 +API version: 4.14.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/api_applications.go b/api_applications.go index 12f40af..20d27ed 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.13.0 +API version: 4.14.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 6171a67..435f062 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.13.0 +API version: 4.14.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 95cb89b..8c0e1f2 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.13.0 +API version: 4.14.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/api_commands.go b/api_commands.go index 357d142..910833a 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.13.0 +API version: 4.14.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/api_compose.go b/api_compose.go index c58e506..f06878e 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.13.0 +API version: 4.14.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/api_containers.go b/api_containers.go index 09ea4b2..12a7917 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.13.0 +API version: 4.14.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 65e12d5..33c0d92 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.13.0 +API version: 4.14.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/api_crawlers.go b/api_crawlers.go index 90da90a..4ace810 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.13.0 +API version: 4.14.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/api_cron.go b/api_cron.go index 0e0728a..476e5cb 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.13.0 +API version: 4.14.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/api_domains.go b/api_domains.go index be14662..62a33b2 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.13.0 +API version: 4.14.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/api_environments.go b/api_environments.go index 2f3d606..227335f 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.13.0 +API version: 4.14.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/api_headers.go b/api_headers.go index 6978e22..e678743 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.13.0 +API version: 4.14.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/api_kv.go b/api_kv.go index 3aa8b9a..345ddf6 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.13.0 +API version: 4.14.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/api_organizations.go b/api_organizations.go index 421fd5e..c7f2482 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.13.0 +API version: 4.14.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/api_projects.go b/api_projects.go index ee87661..665419a 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.13.0 +API version: 4.14.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/api_purge.go b/api_purge.go index b073f24..484c349 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.13.0 +API version: 4.14.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/api_rules.go b/api_rules.go index 0492ee1..c076369 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.13.0 +API version: 4.14.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 a2a3460..0692f34 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.13.0 +API version: 4.14.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 4ed3b8b..adb0dce 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.13.0 +API version: 4.14.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/api_tokens.go b/api_tokens.go index 9be6683..5686cd7 100644 --- a/api_tokens.go +++ b/api_tokens.go @@ -3,7 +3,7 @@ QuantCDN API Unified API for QuantCDN Admin and QuantCloud Platform services -API version: 4.13.0 +API version: 4.14.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/api_variables.go b/api_variables.go index 7ff080a..dd6af8a 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.13.0 +API version: 4.14.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/api_volumes.go b/api_volumes.go index 5c93333..9c7b47d 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.13.0 +API version: 4.14.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/client.go b/client.go index 2980d95..5560f41 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.13.0 +API version: 4.14.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.13.0 +// APIClient manages communication with the QuantCDN API API v4.14.0 // In most cases there should be only one, shared, APIClient. type APIClient struct { cfg *Configuration @@ -55,6 +55,10 @@ type APIClient struct { AIFileStorageAPI AIFileStorageAPI + AIFilterPoliciesAPI AIFilterPoliciesAPI + + AIGovernanceAPI AIGovernanceAPI + AIInferenceAPI AIInferenceAPI AIModelsAPI AIModelsAPI @@ -67,10 +71,14 @@ type APIClient struct { AISkillsAPI AISkillsAPI + AISlackBotsAPI AISlackBotsAPI + AITaskManagementAPI AITaskManagementAPI AIToolsAPI AIToolsAPI + AIUsageAPI AIUsageAPI + AIVectorDatabaseAPI AIVectorDatabaseAPI ApplicationsAPI ApplicationsAPI @@ -137,14 +145,18 @@ func NewAPIClient(cfg *Configuration) *APIClient { c.AIAgentsAPI = (*AIAgentsAPIService)(&c.common) c.AICustomToolsAPI = (*AICustomToolsAPIService)(&c.common) c.AIFileStorageAPI = (*AIFileStorageAPIService)(&c.common) + c.AIFilterPoliciesAPI = (*AIFilterPoliciesAPIService)(&c.common) + c.AIGovernanceAPI = (*AIGovernanceAPIService)(&c.common) c.AIInferenceAPI = (*AIInferenceAPIService)(&c.common) c.AIModelsAPI = (*AIModelsAPIService)(&c.common) c.AIMonitoringAPI = (*AIMonitoringAPIService)(&c.common) c.AIOrchestrationsAPI = (*AIOrchestrationsAPIService)(&c.common) c.AISessionsAPI = (*AISessionsAPIService)(&c.common) c.AISkillsAPI = (*AISkillsAPIService)(&c.common) + c.AISlackBotsAPI = (*AISlackBotsAPIService)(&c.common) c.AITaskManagementAPI = (*AITaskManagementAPIService)(&c.common) c.AIToolsAPI = (*AIToolsAPIService)(&c.common) + c.AIUsageAPI = (*AIUsageAPIService)(&c.common) c.AIVectorDatabaseAPI = (*AIVectorDatabaseAPIService)(&c.common) c.ApplicationsAPI = (*ApplicationsAPIService)(&c.common) c.BackupManagementAPI = (*BackupManagementAPIService)(&c.common) diff --git a/configuration.go b/configuration.go index 7786fb7..b8c3939 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.13.0 +API version: 4.14.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/docs/AIAgentsAPI.md b/docs/AIAgentsAPI.md index a0828b6..5c7b431 100644 --- a/docs/AIAgentsAPI.md +++ b/docs/AIAgentsAPI.md @@ -7,9 +7,12 @@ Method | HTTP request | Description [**ChatWithAIAgent**](AIAgentsAPI.md#ChatWithAIAgent) | **Post** /api/v3/organizations/{organisation}/ai/agents/{agentId}/chat | Chat with AI Agent [**CreateAIAgent**](AIAgentsAPI.md#CreateAIAgent) | **Post** /api/v3/organizations/{organisation}/ai/agents | Create AI Agent [**DeleteAIAgent**](AIAgentsAPI.md#DeleteAIAgent) | **Delete** /api/v3/organizations/{organisation}/ai/agents/{agentId} | Delete Agent +[**DeleteAgentOverlay**](AIAgentsAPI.md#DeleteAgentOverlay) | **Delete** /api/v3/organizations/{organisation}/ai/agents/{agentId}/overlay | Delete Agent Overlay [**GetAIAgent**](AIAgentsAPI.md#GetAIAgent) | **Get** /api/v3/organizations/{organisation}/ai/agents/{agentId} | Get Agent Details +[**GetAgentOverlay**](AIAgentsAPI.md#GetAgentOverlay) | **Get** /api/v3/organizations/{organisation}/ai/agents/{agentId}/overlay | Get Agent Overlay [**ListAIAgents**](AIAgentsAPI.md#ListAIAgents) | **Get** /api/v3/organizations/{organisation}/ai/agents | List AI Agents [**UpdateAIAgent**](AIAgentsAPI.md#UpdateAIAgent) | **Put** /api/v3/organizations/{organisation}/ai/agents/{agentId} | Update Agent +[**UpsertAgentOverlay**](AIAgentsAPI.md#UpsertAgentOverlay) | **Put** /api/v3/organizations/{organisation}/ai/agents/{agentId}/overlay | Upsert Agent Overlay @@ -233,6 +236,79 @@ Name | Type | Description | Notes [[Back to README]](../README.md) +## DeleteAgentOverlay + +> DeleteAgentOverlay200Response DeleteAgentOverlay(ctx, organisation, agentId).Execute() + +Delete Agent Overlay + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/quantcdn/quant-admin-go" +) + +func main() { + organisation := "organisation_example" // string | The organisation ID + agentId := "agentId_example" // string | Global agent identifier + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.AIAgentsAPI.DeleteAgentOverlay(context.Background(), organisation, agentId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `AIAgentsAPI.DeleteAgentOverlay``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `DeleteAgentOverlay`: DeleteAgentOverlay200Response + fmt.Fprintf(os.Stdout, "Response from `AIAgentsAPI.DeleteAgentOverlay`: %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 | +**agentId** | **string** | Global agent identifier | + +### Other Parameters + +Other parameters are passed through a pointer to a apiDeleteAgentOverlayRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + +### Return type + +[**DeleteAgentOverlay200Response**](DeleteAgentOverlay200Response.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) + + ## GetAIAgent > GetAIAgent200Response GetAIAgent(ctx, organisation, agentId).Execute() @@ -306,6 +382,79 @@ Name | Type | Description | Notes [[Back to README]](../README.md) +## GetAgentOverlay + +> GetAgentOverlay200Response GetAgentOverlay(ctx, organisation, agentId).Execute() + +Get Agent Overlay + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/quantcdn/quant-admin-go" +) + +func main() { + organisation := "organisation_example" // string | The organisation ID + agentId := "agentId_example" // string | Global agent identifier (e.g., 'quantgov-code') + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.AIAgentsAPI.GetAgentOverlay(context.Background(), organisation, agentId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `AIAgentsAPI.GetAgentOverlay``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetAgentOverlay`: GetAgentOverlay200Response + fmt.Fprintf(os.Stdout, "Response from `AIAgentsAPI.GetAgentOverlay`: %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 | +**agentId** | **string** | Global agent identifier (e.g., 'quantgov-code') | + +### Other Parameters + +Other parameters are passed through a pointer to a apiGetAgentOverlayRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + +### Return type + +[**GetAgentOverlay200Response**](GetAgentOverlay200Response.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) + + ## ListAIAgents > ListAIAgents200Response ListAIAgents(ctx, organisation).Group(group).Execute() @@ -452,3 +601,78 @@ Name | Type | Description | Notes [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +## UpsertAgentOverlay + +> UpsertAgentOverlay200Response UpsertAgentOverlay(ctx, organisation, agentId).UpsertAgentOverlayRequest(upsertAgentOverlayRequest).Execute() + +Upsert Agent Overlay + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/quantcdn/quant-admin-go" +) + +func main() { + organisation := "organisation_example" // string | The organisation ID + agentId := "agentId_example" // string | Global agent identifier + upsertAgentOverlayRequest := *openapiclient.NewUpsertAgentOverlayRequest() // UpsertAgentOverlayRequest | + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.AIAgentsAPI.UpsertAgentOverlay(context.Background(), organisation, agentId).UpsertAgentOverlayRequest(upsertAgentOverlayRequest).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `AIAgentsAPI.UpsertAgentOverlay``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `UpsertAgentOverlay`: UpsertAgentOverlay200Response + fmt.Fprintf(os.Stdout, "Response from `AIAgentsAPI.UpsertAgentOverlay`: %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 | +**agentId** | **string** | Global agent identifier | + +### Other Parameters + +Other parameters are passed through a pointer to a apiUpsertAgentOverlayRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + **upsertAgentOverlayRequest** | [**UpsertAgentOverlayRequest**](UpsertAgentOverlayRequest.md) | | + +### Return type + +[**UpsertAgentOverlay200Response**](UpsertAgentOverlay200Response.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/AIFilterPoliciesAPI.md b/docs/AIFilterPoliciesAPI.md new file mode 100644 index 0000000..f0f6c9c --- /dev/null +++ b/docs/AIFilterPoliciesAPI.md @@ -0,0 +1,510 @@ +# \AIFilterPoliciesAPI + +All URIs are relative to *https://dashboard.quantcdn.io* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**CreateFilterPolicy**](AIFilterPoliciesAPI.md#CreateFilterPolicy) | **Post** /api/v3/organizations/{organisation}/ai/filter-policies | Create an AI filter policy for an organisation +[**DeleteFilterPolicy**](AIFilterPoliciesAPI.md#DeleteFilterPolicy) | **Delete** /api/v3/organizations/{organisation}/ai/filter-policies/{policyId} | Delete a specific AI filter policy +[**DisableFilterPolicy**](AIFilterPoliciesAPI.md#DisableFilterPolicy) | **Put** /api/v3/organizations/{organisation}/ai/filter-policies/{policyId}/disable | Disable a specific AI filter policy +[**EnableFilterPolicy**](AIFilterPoliciesAPI.md#EnableFilterPolicy) | **Put** /api/v3/organizations/{organisation}/ai/filter-policies/{policyId}/enable | Enable a specific AI filter policy +[**GetFilterPolicy**](AIFilterPoliciesAPI.md#GetFilterPolicy) | **Get** /api/v3/organizations/{organisation}/ai/filter-policies/{policyId} | Get a specific AI filter policy +[**ListFilterPolicies**](AIFilterPoliciesAPI.md#ListFilterPolicies) | **Get** /api/v3/organizations/{organisation}/ai/filter-policies | List AI filter policies for an organisation +[**UpdateFilterPolicy**](AIFilterPoliciesAPI.md#UpdateFilterPolicy) | **Put** /api/v3/organizations/{organisation}/ai/filter-policies/{policyId} | Update a specific AI filter policy + + + +## CreateFilterPolicy + +> map[string]interface{} CreateFilterPolicy(ctx, organisation).CreateFilterPolicyRequest(createFilterPolicyRequest).Execute() + +Create an AI filter policy for an organisation + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/quantcdn/quant-admin-go" +) + +func main() { + organisation := "organisation_example" // string | The organisation ID + createFilterPolicyRequest := *openapiclient.NewCreateFilterPolicyRequest("Name_example", []openapiclient.CreateFilterPolicyRequestRulesInner{*openapiclient.NewCreateFilterPolicyRequestRulesInner()}) // CreateFilterPolicyRequest | + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.AIFilterPoliciesAPI.CreateFilterPolicy(context.Background(), organisation).CreateFilterPolicyRequest(createFilterPolicyRequest).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `AIFilterPoliciesAPI.CreateFilterPolicy``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `CreateFilterPolicy`: map[string]interface{} + fmt.Fprintf(os.Stdout, "Response from `AIFilterPoliciesAPI.CreateFilterPolicy`: %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 apiCreateFilterPolicyRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **createFilterPolicyRequest** | [**CreateFilterPolicyRequest**](CreateFilterPolicyRequest.md) | | + +### Return type + +**map[string]interface{}** + +### Authorization + +[BearerAuth](../README.md#BearerAuth) + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## DeleteFilterPolicy + +> map[string]interface{} DeleteFilterPolicy(ctx, organisation, policyId).Execute() + +Delete a specific AI filter policy + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/quantcdn/quant-admin-go" +) + +func main() { + organisation := "organisation_example" // string | + policyId := "policyId_example" // string | + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.AIFilterPoliciesAPI.DeleteFilterPolicy(context.Background(), organisation, policyId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `AIFilterPoliciesAPI.DeleteFilterPolicy``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `DeleteFilterPolicy`: map[string]interface{} + fmt.Fprintf(os.Stdout, "Response from `AIFilterPoliciesAPI.DeleteFilterPolicy`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**organisation** | **string** | | +**policyId** | **string** | | + +### Other Parameters + +Other parameters are passed through a pointer to a apiDeleteFilterPolicyRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + +### Return type + +**map[string]interface{}** + +### Authorization + +[BearerAuth](../README.md#BearerAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## DisableFilterPolicy + +> map[string]interface{} DisableFilterPolicy(ctx, organisation, policyId).Execute() + +Disable a specific AI filter policy + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/quantcdn/quant-admin-go" +) + +func main() { + organisation := "organisation_example" // string | + policyId := "policyId_example" // string | + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.AIFilterPoliciesAPI.DisableFilterPolicy(context.Background(), organisation, policyId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `AIFilterPoliciesAPI.DisableFilterPolicy``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `DisableFilterPolicy`: map[string]interface{} + fmt.Fprintf(os.Stdout, "Response from `AIFilterPoliciesAPI.DisableFilterPolicy`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**organisation** | **string** | | +**policyId** | **string** | | + +### Other Parameters + +Other parameters are passed through a pointer to a apiDisableFilterPolicyRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + +### Return type + +**map[string]interface{}** + +### Authorization + +[BearerAuth](../README.md#BearerAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## EnableFilterPolicy + +> map[string]interface{} EnableFilterPolicy(ctx, organisation, policyId).Execute() + +Enable a specific AI filter policy + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/quantcdn/quant-admin-go" +) + +func main() { + organisation := "organisation_example" // string | + policyId := "policyId_example" // string | + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.AIFilterPoliciesAPI.EnableFilterPolicy(context.Background(), organisation, policyId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `AIFilterPoliciesAPI.EnableFilterPolicy``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `EnableFilterPolicy`: map[string]interface{} + fmt.Fprintf(os.Stdout, "Response from `AIFilterPoliciesAPI.EnableFilterPolicy`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**organisation** | **string** | | +**policyId** | **string** | | + +### Other Parameters + +Other parameters are passed through a pointer to a apiEnableFilterPolicyRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + +### Return type + +**map[string]interface{}** + +### Authorization + +[BearerAuth](../README.md#BearerAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## GetFilterPolicy + +> map[string]interface{} GetFilterPolicy(ctx, organisation, policyId).Execute() + +Get a specific AI filter policy + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/quantcdn/quant-admin-go" +) + +func main() { + organisation := "organisation_example" // string | + policyId := "policyId_example" // string | + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.AIFilterPoliciesAPI.GetFilterPolicy(context.Background(), organisation, policyId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `AIFilterPoliciesAPI.GetFilterPolicy``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetFilterPolicy`: map[string]interface{} + fmt.Fprintf(os.Stdout, "Response from `AIFilterPoliciesAPI.GetFilterPolicy`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**organisation** | **string** | | +**policyId** | **string** | | + +### Other Parameters + +Other parameters are passed through a pointer to a apiGetFilterPolicyRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + +### Return type + +**map[string]interface{}** + +### Authorization + +[BearerAuth](../README.md#BearerAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## ListFilterPolicies + +> map[string]interface{} ListFilterPolicies(ctx, organisation).Execute() + +List AI filter policies for an organisation + +### 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.AIFilterPoliciesAPI.ListFilterPolicies(context.Background(), organisation).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `AIFilterPoliciesAPI.ListFilterPolicies``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ListFilterPolicies`: map[string]interface{} + fmt.Fprintf(os.Stdout, "Response from `AIFilterPoliciesAPI.ListFilterPolicies`: %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 apiListFilterPoliciesRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + +### Return type + +**map[string]interface{}** + +### Authorization + +[BearerAuth](../README.md#BearerAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## UpdateFilterPolicy + +> map[string]interface{} UpdateFilterPolicy(ctx, organisation, policyId).UpdateFilterPolicyRequest(updateFilterPolicyRequest).Execute() + +Update a specific AI filter policy + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/quantcdn/quant-admin-go" +) + +func main() { + organisation := "organisation_example" // string | + policyId := "policyId_example" // string | + updateFilterPolicyRequest := *openapiclient.NewUpdateFilterPolicyRequest() // UpdateFilterPolicyRequest | + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.AIFilterPoliciesAPI.UpdateFilterPolicy(context.Background(), organisation, policyId).UpdateFilterPolicyRequest(updateFilterPolicyRequest).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `AIFilterPoliciesAPI.UpdateFilterPolicy``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `UpdateFilterPolicy`: map[string]interface{} + fmt.Fprintf(os.Stdout, "Response from `AIFilterPoliciesAPI.UpdateFilterPolicy`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**organisation** | **string** | | +**policyId** | **string** | | + +### Other Parameters + +Other parameters are passed through a pointer to a apiUpdateFilterPolicyRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + **updateFilterPolicyRequest** | [**UpdateFilterPolicyRequest**](UpdateFilterPolicyRequest.md) | | + +### Return type + +**map[string]interface{}** + +### Authorization + +[BearerAuth](../README.md#BearerAuth) + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + diff --git a/docs/AIGovernanceAPI.md b/docs/AIGovernanceAPI.md new file mode 100644 index 0000000..9f8912f --- /dev/null +++ b/docs/AIGovernanceAPI.md @@ -0,0 +1,217 @@ +# \AIGovernanceAPI + +All URIs are relative to *https://dashboard.quantcdn.io* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**GetGovernanceConfig**](AIGovernanceAPI.md#GetGovernanceConfig) | **Get** /api/v3/organizations/{organisation}/ai/governance | Get AI governance configuration for an organisation +[**GetGovernanceSpend**](AIGovernanceAPI.md#GetGovernanceSpend) | **Get** /api/v3/organizations/{organisation}/ai/governance/spend | Get AI spend summary for an organisation +[**UpdateGovernanceConfig**](AIGovernanceAPI.md#UpdateGovernanceConfig) | **Put** /api/v3/organizations/{organisation}/ai/governance | Update AI governance configuration for an organisation + + + +## GetGovernanceConfig + +> GetGovernanceConfig200Response GetGovernanceConfig(ctx, organisation).Execute() + +Get AI governance configuration for an organisation + +### 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.AIGovernanceAPI.GetGovernanceConfig(context.Background(), organisation).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `AIGovernanceAPI.GetGovernanceConfig``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetGovernanceConfig`: GetGovernanceConfig200Response + fmt.Fprintf(os.Stdout, "Response from `AIGovernanceAPI.GetGovernanceConfig`: %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 apiGetGovernanceConfigRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + +### Return type + +[**GetGovernanceConfig200Response**](GetGovernanceConfig200Response.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) + + +## GetGovernanceSpend + +> map[string]interface{} GetGovernanceSpend(ctx, organisation).Execute() + +Get AI spend summary for an organisation + +### 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.AIGovernanceAPI.GetGovernanceSpend(context.Background(), organisation).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `AIGovernanceAPI.GetGovernanceSpend``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetGovernanceSpend`: map[string]interface{} + fmt.Fprintf(os.Stdout, "Response from `AIGovernanceAPI.GetGovernanceSpend`: %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 apiGetGovernanceSpendRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + +### Return type + +**map[string]interface{}** + +### Authorization + +[BearerAuth](../README.md#BearerAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## UpdateGovernanceConfig + +> UpdateGovernanceConfig200Response UpdateGovernanceConfig(ctx, organisation).UpdateGovernanceConfigRequest(updateGovernanceConfigRequest).Execute() + +Update AI governance configuration for an organisation + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/quantcdn/quant-admin-go" +) + +func main() { + organisation := "organisation_example" // string | The organisation ID + updateGovernanceConfigRequest := *openapiclient.NewUpdateGovernanceConfigRequest(false, "ModelPolicy_example") // UpdateGovernanceConfigRequest | + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.AIGovernanceAPI.UpdateGovernanceConfig(context.Background(), organisation).UpdateGovernanceConfigRequest(updateGovernanceConfigRequest).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `AIGovernanceAPI.UpdateGovernanceConfig``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `UpdateGovernanceConfig`: UpdateGovernanceConfig200Response + fmt.Fprintf(os.Stdout, "Response from `AIGovernanceAPI.UpdateGovernanceConfig`: %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 apiUpdateGovernanceConfigRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **updateGovernanceConfigRequest** | [**UpdateGovernanceConfigRequest**](UpdateGovernanceConfigRequest.md) | | + +### Return type + +[**UpdateGovernanceConfig200Response**](UpdateGovernanceConfig200Response.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/AISlackBotsAPI.md b/docs/AISlackBotsAPI.md new file mode 100644 index 0000000..a44792b --- /dev/null +++ b/docs/AISlackBotsAPI.md @@ -0,0 +1,528 @@ +# \AISlackBotsAPI + +All URIs are relative to *https://dashboard.quantcdn.io* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**CreateSlackBot**](AISlackBotsAPI.md#CreateSlackBot) | **Post** /api/v3/organizations/{organisation}/ai/slack-bots | Create Slack Bot +[**DeleteSlackBot**](AISlackBotsAPI.md#DeleteSlackBot) | **Delete** /api/v3/organizations/{organisation}/ai/slack-bots/{botId} | Delete Slack Bot +[**GetSlackBot**](AISlackBotsAPI.md#GetSlackBot) | **Get** /api/v3/organizations/{organisation}/ai/slack-bots/{botId} | Get Slack Bot +[**ListSlackBots**](AISlackBotsAPI.md#ListSlackBots) | **Get** /api/v3/organizations/{organisation}/ai/slack-bots | List Slack Bots +[**SearchSlackWorkspaceChannels**](AISlackBotsAPI.md#SearchSlackWorkspaceChannels) | **Get** /api/v3/organizations/{organisation}/ai/slack-bots/{botId}/workspace/channels | Search Slack Workspace Channels +[**SearchSlackWorkspaceUsers**](AISlackBotsAPI.md#SearchSlackWorkspaceUsers) | **Get** /api/v3/organizations/{organisation}/ai/slack-bots/{botId}/workspace/users | Search Slack Workspace Users +[**UpdateSlackBot**](AISlackBotsAPI.md#UpdateSlackBot) | **Put** /api/v3/organizations/{organisation}/ai/slack-bots/{botId} | Update Slack Bot + + + +## CreateSlackBot + +> CreateSlackBot201Response CreateSlackBot(ctx, organisation).CreateSlackBotRequest(createSlackBotRequest).Execute() + +Create Slack Bot + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/quantcdn/quant-admin-go" +) + +func main() { + organisation := "organisation_example" // string | The organisation ID + createSlackBotRequest := *openapiclient.NewCreateSlackBotRequest("AgentId_example", "SetupType_example") // CreateSlackBotRequest | + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.AISlackBotsAPI.CreateSlackBot(context.Background(), organisation).CreateSlackBotRequest(createSlackBotRequest).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `AISlackBotsAPI.CreateSlackBot``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `CreateSlackBot`: CreateSlackBot201Response + fmt.Fprintf(os.Stdout, "Response from `AISlackBotsAPI.CreateSlackBot`: %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 apiCreateSlackBotRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **createSlackBotRequest** | [**CreateSlackBotRequest**](CreateSlackBotRequest.md) | | + +### Return type + +[**CreateSlackBot201Response**](CreateSlackBot201Response.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) + + +## DeleteSlackBot + +> DeleteSlackBot200Response DeleteSlackBot(ctx, organisation, botId).Execute() + +Delete Slack Bot + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/quantcdn/quant-admin-go" +) + +func main() { + organisation := "organisation_example" // string | The organisation ID + botId := "botId_example" // string | The Slack bot ID + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.AISlackBotsAPI.DeleteSlackBot(context.Background(), organisation, botId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `AISlackBotsAPI.DeleteSlackBot``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `DeleteSlackBot`: DeleteSlackBot200Response + fmt.Fprintf(os.Stdout, "Response from `AISlackBotsAPI.DeleteSlackBot`: %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 | +**botId** | **string** | The Slack bot ID | + +### Other Parameters + +Other parameters are passed through a pointer to a apiDeleteSlackBotRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + +### Return type + +[**DeleteSlackBot200Response**](DeleteSlackBot200Response.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) + + +## GetSlackBot + +> GetSlackBot200Response GetSlackBot(ctx, organisation, botId).Execute() + +Get Slack Bot + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/quantcdn/quant-admin-go" +) + +func main() { + organisation := "organisation_example" // string | The organisation ID + botId := "botId_example" // string | The Slack bot ID + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.AISlackBotsAPI.GetSlackBot(context.Background(), organisation, botId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `AISlackBotsAPI.GetSlackBot``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetSlackBot`: GetSlackBot200Response + fmt.Fprintf(os.Stdout, "Response from `AISlackBotsAPI.GetSlackBot`: %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 | +**botId** | **string** | The Slack bot ID | + +### Other Parameters + +Other parameters are passed through a pointer to a apiGetSlackBotRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + +### Return type + +[**GetSlackBot200Response**](GetSlackBot200Response.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) + + +## ListSlackBots + +> ListSlackBots200Response ListSlackBots(ctx, organisation).Execute() + +List Slack Bots + + + +### 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.AISlackBotsAPI.ListSlackBots(context.Background(), organisation).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `AISlackBotsAPI.ListSlackBots``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ListSlackBots`: ListSlackBots200Response + fmt.Fprintf(os.Stdout, "Response from `AISlackBotsAPI.ListSlackBots`: %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 apiListSlackBotsRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + +### Return type + +[**ListSlackBots200Response**](ListSlackBots200Response.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) + + +## SearchSlackWorkspaceChannels + +> SearchSlackWorkspaceChannels200Response SearchSlackWorkspaceChannels(ctx, organisation, botId).Q(q).Execute() + +Search Slack Workspace Channels + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/quantcdn/quant-admin-go" +) + +func main() { + organisation := "organisation_example" // string | The organisation ID + botId := "botId_example" // string | The Slack bot ID + q := "q_example" // string | Search query to filter channels by name (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.AISlackBotsAPI.SearchSlackWorkspaceChannels(context.Background(), organisation, botId).Q(q).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `AISlackBotsAPI.SearchSlackWorkspaceChannels``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `SearchSlackWorkspaceChannels`: SearchSlackWorkspaceChannels200Response + fmt.Fprintf(os.Stdout, "Response from `AISlackBotsAPI.SearchSlackWorkspaceChannels`: %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 | +**botId** | **string** | The Slack bot ID | + +### Other Parameters + +Other parameters are passed through a pointer to a apiSearchSlackWorkspaceChannelsRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + **q** | **string** | Search query to filter channels by name | + +### Return type + +[**SearchSlackWorkspaceChannels200Response**](SearchSlackWorkspaceChannels200Response.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) + + +## SearchSlackWorkspaceUsers + +> SearchSlackWorkspaceUsers200Response SearchSlackWorkspaceUsers(ctx, organisation, botId).Q(q).Execute() + +Search Slack Workspace Users + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/quantcdn/quant-admin-go" +) + +func main() { + organisation := "organisation_example" // string | The organisation ID + botId := "botId_example" // string | The Slack bot ID + q := "q_example" // string | Search query to filter users by name (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.AISlackBotsAPI.SearchSlackWorkspaceUsers(context.Background(), organisation, botId).Q(q).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `AISlackBotsAPI.SearchSlackWorkspaceUsers``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `SearchSlackWorkspaceUsers`: SearchSlackWorkspaceUsers200Response + fmt.Fprintf(os.Stdout, "Response from `AISlackBotsAPI.SearchSlackWorkspaceUsers`: %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 | +**botId** | **string** | The Slack bot ID | + +### Other Parameters + +Other parameters are passed through a pointer to a apiSearchSlackWorkspaceUsersRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + **q** | **string** | Search query to filter users by name | + +### Return type + +[**SearchSlackWorkspaceUsers200Response**](SearchSlackWorkspaceUsers200Response.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) + + +## UpdateSlackBot + +> CreateSlackBot201Response UpdateSlackBot(ctx, organisation, botId).UpdateSlackBotRequest(updateSlackBotRequest).Execute() + +Update Slack Bot + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/quantcdn/quant-admin-go" +) + +func main() { + organisation := "organisation_example" // string | The organisation ID + botId := "botId_example" // string | The Slack bot ID + updateSlackBotRequest := *openapiclient.NewUpdateSlackBotRequest() // UpdateSlackBotRequest | + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.AISlackBotsAPI.UpdateSlackBot(context.Background(), organisation, botId).UpdateSlackBotRequest(updateSlackBotRequest).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `AISlackBotsAPI.UpdateSlackBot``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `UpdateSlackBot`: CreateSlackBot201Response + fmt.Fprintf(os.Stdout, "Response from `AISlackBotsAPI.UpdateSlackBot`: %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 | +**botId** | **string** | The Slack bot ID | + +### Other Parameters + +Other parameters are passed through a pointer to a apiUpdateSlackBotRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + **updateSlackBotRequest** | [**UpdateSlackBotRequest**](UpdateSlackBotRequest.md) | | + +### Return type + +[**CreateSlackBot201Response**](CreateSlackBot201Response.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/AIUsageAPI.md b/docs/AIUsageAPI.md new file mode 100644 index 0000000..1c89344 --- /dev/null +++ b/docs/AIUsageAPI.md @@ -0,0 +1,77 @@ +# \AIUsageAPI + +All URIs are relative to *https://dashboard.quantcdn.io* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**GetMyUsage**](AIUsageAPI.md#GetMyUsage) | **Get** /api/v3/organizations/{organisation}/ai/usage/me | Get AI usage summary for the authenticated user + + + +## GetMyUsage + +> GetMyUsage200Response GetMyUsage(ctx, organisation).Execute() + +Get AI usage summary for the authenticated user + +### 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.AIUsageAPI.GetMyUsage(context.Background(), organisation).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `AIUsageAPI.GetMyUsage``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetMyUsage`: GetMyUsage200Response + fmt.Fprintf(os.Stdout, "Response from `AIUsageAPI.GetMyUsage`: %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 apiGetMyUsageRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + +### Return type + +[**GetMyUsage200Response**](GetMyUsage200Response.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/ChatWithAIAgentRequest.md b/docs/ChatWithAIAgentRequest.md index 934f264..8ec3802 100644 --- a/docs/ChatWithAIAgentRequest.md +++ b/docs/ChatWithAIAgentRequest.md @@ -10,6 +10,9 @@ Name | Type | Description | Notes **Stream** | Pointer to **bool** | Whether to stream the response (SSE) | [optional] [default to false] **Async** | Pointer to **bool** | Enable async/durable execution mode. When true, returns 202 with pollUrl. Use for long-running agent tasks. | [optional] [default to false] **System** | Pointer to **string** | Optional additional system prompt (appended to agent's configured prompt) | [optional] +**LongContext** | Pointer to **bool** | Per-request override to force 1M context window routing | [optional] [default to false] +**MaxToolIterations** | Pointer to **int32** | Maximum tool auto-execution iterations for this request | [optional] +**AllowedCollections** | Pointer to **[]string** | Per-request override for vector DB collections the agent can query | [optional] ## Methods @@ -175,6 +178,81 @@ SetSystem sets System field to given value. HasSystem returns a boolean if a field has been set. +### GetLongContext + +`func (o *ChatWithAIAgentRequest) GetLongContext() bool` + +GetLongContext returns the LongContext field if non-nil, zero value otherwise. + +### GetLongContextOk + +`func (o *ChatWithAIAgentRequest) 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 *ChatWithAIAgentRequest) SetLongContext(v bool)` + +SetLongContext sets LongContext field to given value. + +### HasLongContext + +`func (o *ChatWithAIAgentRequest) HasLongContext() bool` + +HasLongContext returns a boolean if a field has been set. + +### GetMaxToolIterations + +`func (o *ChatWithAIAgentRequest) GetMaxToolIterations() int32` + +GetMaxToolIterations returns the MaxToolIterations field if non-nil, zero value otherwise. + +### GetMaxToolIterationsOk + +`func (o *ChatWithAIAgentRequest) GetMaxToolIterationsOk() (*int32, bool)` + +GetMaxToolIterationsOk returns a tuple with the MaxToolIterations field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMaxToolIterations + +`func (o *ChatWithAIAgentRequest) SetMaxToolIterations(v int32)` + +SetMaxToolIterations sets MaxToolIterations field to given value. + +### HasMaxToolIterations + +`func (o *ChatWithAIAgentRequest) HasMaxToolIterations() bool` + +HasMaxToolIterations returns a boolean if a field has been set. + +### GetAllowedCollections + +`func (o *ChatWithAIAgentRequest) GetAllowedCollections() []string` + +GetAllowedCollections returns the AllowedCollections field if non-nil, zero value otherwise. + +### GetAllowedCollectionsOk + +`func (o *ChatWithAIAgentRequest) GetAllowedCollectionsOk() (*[]string, bool)` + +GetAllowedCollectionsOk returns a tuple with the AllowedCollections field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAllowedCollections + +`func (o *ChatWithAIAgentRequest) SetAllowedCollections(v []string)` + +SetAllowedCollections sets AllowedCollections field to given value. + +### HasAllowedCollections + +`func (o *ChatWithAIAgentRequest) HasAllowedCollections() bool` + +HasAllowedCollections returns a boolean if a field has been set. + [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/CreateAIAgentRequest.md b/docs/CreateAIAgentRequest.md index c16a5d9..cb3348c 100644 --- a/docs/CreateAIAgentRequest.md +++ b/docs/CreateAIAgentRequest.md @@ -13,7 +13,11 @@ Name | Type | Description | Notes **MaxTokens** | Pointer to **int32** | | [optional] **AllowedTools** | Pointer to **[]string** | | [optional] **AllowedCollections** | Pointer to **[]string** | | [optional] +**AssignedSkills** | Pointer to **[]string** | Skill IDs to assign to this agent | [optional] **CreatedBy** | Pointer to **string** | User identifier who created the agent | [optional] +**LongContext** | Pointer to **bool** | Enable 1M context window support | [optional] +**GuardrailPreset** | Pointer to **string** | Guardrail preset name | [optional] +**FilterPolicies** | Pointer to **[]string** | Filter policy IDs to apply to this agent's inference requests | [optional] ## Methods @@ -239,6 +243,31 @@ SetAllowedCollections sets AllowedCollections field to given value. HasAllowedCollections returns a boolean if a field has been set. +### GetAssignedSkills + +`func (o *CreateAIAgentRequest) GetAssignedSkills() []string` + +GetAssignedSkills returns the AssignedSkills field if non-nil, zero value otherwise. + +### GetAssignedSkillsOk + +`func (o *CreateAIAgentRequest) GetAssignedSkillsOk() (*[]string, bool)` + +GetAssignedSkillsOk returns a tuple with the AssignedSkills field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAssignedSkills + +`func (o *CreateAIAgentRequest) SetAssignedSkills(v []string)` + +SetAssignedSkills sets AssignedSkills field to given value. + +### HasAssignedSkills + +`func (o *CreateAIAgentRequest) HasAssignedSkills() bool` + +HasAssignedSkills returns a boolean if a field has been set. + ### GetCreatedBy `func (o *CreateAIAgentRequest) GetCreatedBy() string` @@ -264,6 +293,81 @@ SetCreatedBy sets CreatedBy field to given value. HasCreatedBy returns a boolean if a field has been set. +### GetLongContext + +`func (o *CreateAIAgentRequest) GetLongContext() bool` + +GetLongContext returns the LongContext field if non-nil, zero value otherwise. + +### GetLongContextOk + +`func (o *CreateAIAgentRequest) 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 *CreateAIAgentRequest) SetLongContext(v bool)` + +SetLongContext sets LongContext field to given value. + +### HasLongContext + +`func (o *CreateAIAgentRequest) HasLongContext() bool` + +HasLongContext returns a boolean if a field has been set. + +### GetGuardrailPreset + +`func (o *CreateAIAgentRequest) GetGuardrailPreset() string` + +GetGuardrailPreset returns the GuardrailPreset field if non-nil, zero value otherwise. + +### GetGuardrailPresetOk + +`func (o *CreateAIAgentRequest) GetGuardrailPresetOk() (*string, bool)` + +GetGuardrailPresetOk returns a tuple with the GuardrailPreset field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetGuardrailPreset + +`func (o *CreateAIAgentRequest) SetGuardrailPreset(v string)` + +SetGuardrailPreset sets GuardrailPreset field to given value. + +### HasGuardrailPreset + +`func (o *CreateAIAgentRequest) HasGuardrailPreset() bool` + +HasGuardrailPreset returns a boolean if a field has been set. + +### GetFilterPolicies + +`func (o *CreateAIAgentRequest) GetFilterPolicies() []string` + +GetFilterPolicies returns the FilterPolicies field if non-nil, zero value otherwise. + +### GetFilterPoliciesOk + +`func (o *CreateAIAgentRequest) GetFilterPoliciesOk() (*[]string, bool)` + +GetFilterPoliciesOk returns a tuple with the FilterPolicies field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetFilterPolicies + +`func (o *CreateAIAgentRequest) SetFilterPolicies(v []string)` + +SetFilterPolicies sets FilterPolicies field to given value. + +### HasFilterPolicies + +`func (o *CreateAIAgentRequest) HasFilterPolicies() bool` + +HasFilterPolicies 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/CreateFilterPolicyRequest.md b/docs/CreateFilterPolicyRequest.md new file mode 100644 index 0000000..01e0f66 --- /dev/null +++ b/docs/CreateFilterPolicyRequest.md @@ -0,0 +1,134 @@ +# CreateFilterPolicyRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Name** | **string** | | +**Description** | Pointer to **NullableString** | | [optional] +**Enabled** | Pointer to **bool** | | [optional] +**Rules** | [**[]CreateFilterPolicyRequestRulesInner**](CreateFilterPolicyRequestRulesInner.md) | | + +## Methods + +### NewCreateFilterPolicyRequest + +`func NewCreateFilterPolicyRequest(name string, rules []CreateFilterPolicyRequestRulesInner, ) *CreateFilterPolicyRequest` + +NewCreateFilterPolicyRequest instantiates a new CreateFilterPolicyRequest 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 + +### NewCreateFilterPolicyRequestWithDefaults + +`func NewCreateFilterPolicyRequestWithDefaults() *CreateFilterPolicyRequest` + +NewCreateFilterPolicyRequestWithDefaults instantiates a new CreateFilterPolicyRequest 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 *CreateFilterPolicyRequest) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *CreateFilterPolicyRequest) 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 *CreateFilterPolicyRequest) SetName(v string)` + +SetName sets Name field to given value. + + +### GetDescription + +`func (o *CreateFilterPolicyRequest) GetDescription() string` + +GetDescription returns the Description field if non-nil, zero value otherwise. + +### GetDescriptionOk + +`func (o *CreateFilterPolicyRequest) 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 *CreateFilterPolicyRequest) SetDescription(v string)` + +SetDescription sets Description field to given value. + +### HasDescription + +`func (o *CreateFilterPolicyRequest) HasDescription() bool` + +HasDescription returns a boolean if a field has been set. + +### SetDescriptionNil + +`func (o *CreateFilterPolicyRequest) SetDescriptionNil(b bool)` + + SetDescriptionNil sets the value for Description to be an explicit nil + +### UnsetDescription +`func (o *CreateFilterPolicyRequest) UnsetDescription()` + +UnsetDescription ensures that no value is present for Description, not even an explicit nil +### GetEnabled + +`func (o *CreateFilterPolicyRequest) GetEnabled() bool` + +GetEnabled returns the Enabled field if non-nil, zero value otherwise. + +### GetEnabledOk + +`func (o *CreateFilterPolicyRequest) GetEnabledOk() (*bool, bool)` + +GetEnabledOk returns a tuple with the Enabled field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetEnabled + +`func (o *CreateFilterPolicyRequest) SetEnabled(v bool)` + +SetEnabled sets Enabled field to given value. + +### HasEnabled + +`func (o *CreateFilterPolicyRequest) HasEnabled() bool` + +HasEnabled returns a boolean if a field has been set. + +### GetRules + +`func (o *CreateFilterPolicyRequest) GetRules() []CreateFilterPolicyRequestRulesInner` + +GetRules returns the Rules field if non-nil, zero value otherwise. + +### GetRulesOk + +`func (o *CreateFilterPolicyRequest) GetRulesOk() (*[]CreateFilterPolicyRequestRulesInner, bool)` + +GetRulesOk returns a tuple with the Rules field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRules + +`func (o *CreateFilterPolicyRequest) SetRules(v []CreateFilterPolicyRequestRulesInner)` + +SetRules sets Rules 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/CreateFilterPolicyRequestRulesInner.md b/docs/CreateFilterPolicyRequestRulesInner.md new file mode 100644 index 0000000..c957a9c --- /dev/null +++ b/docs/CreateFilterPolicyRequestRulesInner.md @@ -0,0 +1,134 @@ +# CreateFilterPolicyRequestRulesInner + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Name** | Pointer to **string** | | [optional] +**Match** | Pointer to [**CreateFilterPolicyRequestRulesInnerMatch**](CreateFilterPolicyRequestRulesInnerMatch.md) | | [optional] +**Action** | Pointer to **string** | | [optional] +**ApplyTo** | Pointer to **string** | | [optional] + +## Methods + +### NewCreateFilterPolicyRequestRulesInner + +`func NewCreateFilterPolicyRequestRulesInner() *CreateFilterPolicyRequestRulesInner` + +NewCreateFilterPolicyRequestRulesInner instantiates a new CreateFilterPolicyRequestRulesInner 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 + +### NewCreateFilterPolicyRequestRulesInnerWithDefaults + +`func NewCreateFilterPolicyRequestRulesInnerWithDefaults() *CreateFilterPolicyRequestRulesInner` + +NewCreateFilterPolicyRequestRulesInnerWithDefaults instantiates a new CreateFilterPolicyRequestRulesInner 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 *CreateFilterPolicyRequestRulesInner) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *CreateFilterPolicyRequestRulesInner) 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 *CreateFilterPolicyRequestRulesInner) SetName(v string)` + +SetName sets Name field to given value. + +### HasName + +`func (o *CreateFilterPolicyRequestRulesInner) HasName() bool` + +HasName returns a boolean if a field has been set. + +### GetMatch + +`func (o *CreateFilterPolicyRequestRulesInner) GetMatch() CreateFilterPolicyRequestRulesInnerMatch` + +GetMatch returns the Match field if non-nil, zero value otherwise. + +### GetMatchOk + +`func (o *CreateFilterPolicyRequestRulesInner) GetMatchOk() (*CreateFilterPolicyRequestRulesInnerMatch, bool)` + +GetMatchOk returns a tuple with the Match field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMatch + +`func (o *CreateFilterPolicyRequestRulesInner) SetMatch(v CreateFilterPolicyRequestRulesInnerMatch)` + +SetMatch sets Match field to given value. + +### HasMatch + +`func (o *CreateFilterPolicyRequestRulesInner) HasMatch() bool` + +HasMatch returns a boolean if a field has been set. + +### GetAction + +`func (o *CreateFilterPolicyRequestRulesInner) GetAction() string` + +GetAction returns the Action field if non-nil, zero value otherwise. + +### GetActionOk + +`func (o *CreateFilterPolicyRequestRulesInner) GetActionOk() (*string, bool)` + +GetActionOk returns a tuple with the Action field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAction + +`func (o *CreateFilterPolicyRequestRulesInner) SetAction(v string)` + +SetAction sets Action field to given value. + +### HasAction + +`func (o *CreateFilterPolicyRequestRulesInner) HasAction() bool` + +HasAction returns a boolean if a field has been set. + +### GetApplyTo + +`func (o *CreateFilterPolicyRequestRulesInner) GetApplyTo() string` + +GetApplyTo returns the ApplyTo field if non-nil, zero value otherwise. + +### GetApplyToOk + +`func (o *CreateFilterPolicyRequestRulesInner) GetApplyToOk() (*string, bool)` + +GetApplyToOk returns a tuple with the ApplyTo field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetApplyTo + +`func (o *CreateFilterPolicyRequestRulesInner) SetApplyTo(v string)` + +SetApplyTo sets ApplyTo field to given value. + +### HasApplyTo + +`func (o *CreateFilterPolicyRequestRulesInner) HasApplyTo() bool` + +HasApplyTo 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/CreateFilterPolicyRequestRulesInnerMatch.md b/docs/CreateFilterPolicyRequestRulesInnerMatch.md new file mode 100644 index 0000000..65ca102 --- /dev/null +++ b/docs/CreateFilterPolicyRequestRulesInnerMatch.md @@ -0,0 +1,108 @@ +# CreateFilterPolicyRequestRulesInnerMatch + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Type** | Pointer to **string** | | [optional] +**Values** | Pointer to **[]string** | Required when type=word | [optional] +**Pattern** | Pointer to **string** | Required when type=regex | [optional] + +## Methods + +### NewCreateFilterPolicyRequestRulesInnerMatch + +`func NewCreateFilterPolicyRequestRulesInnerMatch() *CreateFilterPolicyRequestRulesInnerMatch` + +NewCreateFilterPolicyRequestRulesInnerMatch instantiates a new CreateFilterPolicyRequestRulesInnerMatch 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 + +### NewCreateFilterPolicyRequestRulesInnerMatchWithDefaults + +`func NewCreateFilterPolicyRequestRulesInnerMatchWithDefaults() *CreateFilterPolicyRequestRulesInnerMatch` + +NewCreateFilterPolicyRequestRulesInnerMatchWithDefaults instantiates a new CreateFilterPolicyRequestRulesInnerMatch 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 *CreateFilterPolicyRequestRulesInnerMatch) GetType() string` + +GetType returns the Type field if non-nil, zero value otherwise. + +### GetTypeOk + +`func (o *CreateFilterPolicyRequestRulesInnerMatch) 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 *CreateFilterPolicyRequestRulesInnerMatch) SetType(v string)` + +SetType sets Type field to given value. + +### HasType + +`func (o *CreateFilterPolicyRequestRulesInnerMatch) HasType() bool` + +HasType returns a boolean if a field has been set. + +### GetValues + +`func (o *CreateFilterPolicyRequestRulesInnerMatch) GetValues() []string` + +GetValues returns the Values field if non-nil, zero value otherwise. + +### GetValuesOk + +`func (o *CreateFilterPolicyRequestRulesInnerMatch) GetValuesOk() (*[]string, bool)` + +GetValuesOk returns a tuple with the Values field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetValues + +`func (o *CreateFilterPolicyRequestRulesInnerMatch) SetValues(v []string)` + +SetValues sets Values field to given value. + +### HasValues + +`func (o *CreateFilterPolicyRequestRulesInnerMatch) HasValues() bool` + +HasValues returns a boolean if a field has been set. + +### GetPattern + +`func (o *CreateFilterPolicyRequestRulesInnerMatch) GetPattern() string` + +GetPattern returns the Pattern field if non-nil, zero value otherwise. + +### GetPatternOk + +`func (o *CreateFilterPolicyRequestRulesInnerMatch) GetPatternOk() (*string, bool)` + +GetPatternOk returns a tuple with the Pattern field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPattern + +`func (o *CreateFilterPolicyRequestRulesInnerMatch) SetPattern(v string)` + +SetPattern sets Pattern field to given value. + +### HasPattern + +`func (o *CreateFilterPolicyRequestRulesInnerMatch) HasPattern() bool` + +HasPattern 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/CreateSlackBot201Response.md b/docs/CreateSlackBot201Response.md new file mode 100644 index 0000000..b3e55c9 --- /dev/null +++ b/docs/CreateSlackBot201Response.md @@ -0,0 +1,56 @@ +# CreateSlackBot201Response + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Bot** | Pointer to **map[string]interface{}** | | [optional] + +## Methods + +### NewCreateSlackBot201Response + +`func NewCreateSlackBot201Response() *CreateSlackBot201Response` + +NewCreateSlackBot201Response instantiates a new CreateSlackBot201Response 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 + +### NewCreateSlackBot201ResponseWithDefaults + +`func NewCreateSlackBot201ResponseWithDefaults() *CreateSlackBot201Response` + +NewCreateSlackBot201ResponseWithDefaults instantiates a new CreateSlackBot201Response 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 + +### GetBot + +`func (o *CreateSlackBot201Response) GetBot() map[string]interface{}` + +GetBot returns the Bot field if non-nil, zero value otherwise. + +### GetBotOk + +`func (o *CreateSlackBot201Response) GetBotOk() (*map[string]interface{}, bool)` + +GetBotOk returns a tuple with the Bot field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetBot + +`func (o *CreateSlackBot201Response) SetBot(v map[string]interface{})` + +SetBot sets Bot field to given value. + +### HasBot + +`func (o *CreateSlackBot201Response) HasBot() bool` + +HasBot 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/CreateSlackBotRequest.md b/docs/CreateSlackBotRequest.md new file mode 100644 index 0000000..1f3cba5 --- /dev/null +++ b/docs/CreateSlackBotRequest.md @@ -0,0 +1,202 @@ +# CreateSlackBotRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**AgentId** | **string** | The AI agent that powers this bot | +**SetupType** | **string** | Whether to use Quant-managed or customer-provided Slack app | +**SessionTtlDays** | Pointer to **int32** | Session TTL in days | [optional] +**AllowedChannels** | Pointer to **[]string** | Slack channel IDs the bot may respond in | [optional] +**KeywordsEnabled** | Pointer to **bool** | Whether keyword triggers are enabled | [optional] +**Keywords** | Pointer to **[]string** | Keywords that trigger the bot | [optional] +**SlashCommands** | Pointer to **[]string** | Slash commands the bot responds to | [optional] + +## Methods + +### NewCreateSlackBotRequest + +`func NewCreateSlackBotRequest(agentId string, setupType string, ) *CreateSlackBotRequest` + +NewCreateSlackBotRequest instantiates a new CreateSlackBotRequest 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 + +### NewCreateSlackBotRequestWithDefaults + +`func NewCreateSlackBotRequestWithDefaults() *CreateSlackBotRequest` + +NewCreateSlackBotRequestWithDefaults instantiates a new CreateSlackBotRequest 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 + +### GetAgentId + +`func (o *CreateSlackBotRequest) GetAgentId() string` + +GetAgentId returns the AgentId field if non-nil, zero value otherwise. + +### GetAgentIdOk + +`func (o *CreateSlackBotRequest) GetAgentIdOk() (*string, bool)` + +GetAgentIdOk returns a tuple with the AgentId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAgentId + +`func (o *CreateSlackBotRequest) SetAgentId(v string)` + +SetAgentId sets AgentId field to given value. + + +### GetSetupType + +`func (o *CreateSlackBotRequest) GetSetupType() string` + +GetSetupType returns the SetupType field if non-nil, zero value otherwise. + +### GetSetupTypeOk + +`func (o *CreateSlackBotRequest) GetSetupTypeOk() (*string, bool)` + +GetSetupTypeOk returns a tuple with the SetupType field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSetupType + +`func (o *CreateSlackBotRequest) SetSetupType(v string)` + +SetSetupType sets SetupType field to given value. + + +### GetSessionTtlDays + +`func (o *CreateSlackBotRequest) GetSessionTtlDays() int32` + +GetSessionTtlDays returns the SessionTtlDays field if non-nil, zero value otherwise. + +### GetSessionTtlDaysOk + +`func (o *CreateSlackBotRequest) GetSessionTtlDaysOk() (*int32, bool)` + +GetSessionTtlDaysOk returns a tuple with the SessionTtlDays field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSessionTtlDays + +`func (o *CreateSlackBotRequest) SetSessionTtlDays(v int32)` + +SetSessionTtlDays sets SessionTtlDays field to given value. + +### HasSessionTtlDays + +`func (o *CreateSlackBotRequest) HasSessionTtlDays() bool` + +HasSessionTtlDays returns a boolean if a field has been set. + +### GetAllowedChannels + +`func (o *CreateSlackBotRequest) GetAllowedChannels() []string` + +GetAllowedChannels returns the AllowedChannels field if non-nil, zero value otherwise. + +### GetAllowedChannelsOk + +`func (o *CreateSlackBotRequest) GetAllowedChannelsOk() (*[]string, bool)` + +GetAllowedChannelsOk returns a tuple with the AllowedChannels field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAllowedChannels + +`func (o *CreateSlackBotRequest) SetAllowedChannels(v []string)` + +SetAllowedChannels sets AllowedChannels field to given value. + +### HasAllowedChannels + +`func (o *CreateSlackBotRequest) HasAllowedChannels() bool` + +HasAllowedChannels returns a boolean if a field has been set. + +### GetKeywordsEnabled + +`func (o *CreateSlackBotRequest) GetKeywordsEnabled() bool` + +GetKeywordsEnabled returns the KeywordsEnabled field if non-nil, zero value otherwise. + +### GetKeywordsEnabledOk + +`func (o *CreateSlackBotRequest) GetKeywordsEnabledOk() (*bool, bool)` + +GetKeywordsEnabledOk returns a tuple with the KeywordsEnabled field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetKeywordsEnabled + +`func (o *CreateSlackBotRequest) SetKeywordsEnabled(v bool)` + +SetKeywordsEnabled sets KeywordsEnabled field to given value. + +### HasKeywordsEnabled + +`func (o *CreateSlackBotRequest) HasKeywordsEnabled() bool` + +HasKeywordsEnabled returns a boolean if a field has been set. + +### GetKeywords + +`func (o *CreateSlackBotRequest) GetKeywords() []string` + +GetKeywords returns the Keywords field if non-nil, zero value otherwise. + +### GetKeywordsOk + +`func (o *CreateSlackBotRequest) GetKeywordsOk() (*[]string, bool)` + +GetKeywordsOk returns a tuple with the Keywords field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetKeywords + +`func (o *CreateSlackBotRequest) SetKeywords(v []string)` + +SetKeywords sets Keywords field to given value. + +### HasKeywords + +`func (o *CreateSlackBotRequest) HasKeywords() bool` + +HasKeywords returns a boolean if a field has been set. + +### GetSlashCommands + +`func (o *CreateSlackBotRequest) GetSlashCommands() []string` + +GetSlashCommands returns the SlashCommands field if non-nil, zero value otherwise. + +### GetSlashCommandsOk + +`func (o *CreateSlackBotRequest) GetSlashCommandsOk() (*[]string, bool)` + +GetSlashCommandsOk returns a tuple with the SlashCommands field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSlashCommands + +`func (o *CreateSlackBotRequest) SetSlashCommands(v []string)` + +SetSlashCommands sets SlashCommands field to given value. + +### HasSlashCommands + +`func (o *CreateSlackBotRequest) HasSlashCommands() bool` + +HasSlashCommands 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/DeleteAgentOverlay200Response.md b/docs/DeleteAgentOverlay200Response.md new file mode 100644 index 0000000..ca3e576 --- /dev/null +++ b/docs/DeleteAgentOverlay200Response.md @@ -0,0 +1,82 @@ +# DeleteAgentOverlay200Response + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Success** | Pointer to **bool** | | [optional] +**Message** | Pointer to **string** | | [optional] + +## Methods + +### NewDeleteAgentOverlay200Response + +`func NewDeleteAgentOverlay200Response() *DeleteAgentOverlay200Response` + +NewDeleteAgentOverlay200Response instantiates a new DeleteAgentOverlay200Response 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 + +### NewDeleteAgentOverlay200ResponseWithDefaults + +`func NewDeleteAgentOverlay200ResponseWithDefaults() *DeleteAgentOverlay200Response` + +NewDeleteAgentOverlay200ResponseWithDefaults instantiates a new DeleteAgentOverlay200Response 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 *DeleteAgentOverlay200Response) GetSuccess() bool` + +GetSuccess returns the Success field if non-nil, zero value otherwise. + +### GetSuccessOk + +`func (o *DeleteAgentOverlay200Response) 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 *DeleteAgentOverlay200Response) SetSuccess(v bool)` + +SetSuccess sets Success field to given value. + +### HasSuccess + +`func (o *DeleteAgentOverlay200Response) HasSuccess() bool` + +HasSuccess returns a boolean if a field has been set. + +### GetMessage + +`func (o *DeleteAgentOverlay200Response) GetMessage() string` + +GetMessage returns the Message field if non-nil, zero value otherwise. + +### GetMessageOk + +`func (o *DeleteAgentOverlay200Response) 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 *DeleteAgentOverlay200Response) SetMessage(v string)` + +SetMessage sets Message field to given value. + +### HasMessage + +`func (o *DeleteAgentOverlay200Response) 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/DeleteSlackBot200Response.md b/docs/DeleteSlackBot200Response.md new file mode 100644 index 0000000..53a17f6 --- /dev/null +++ b/docs/DeleteSlackBot200Response.md @@ -0,0 +1,82 @@ +# DeleteSlackBot200Response + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Success** | Pointer to **bool** | | [optional] +**Message** | Pointer to **string** | | [optional] + +## Methods + +### NewDeleteSlackBot200Response + +`func NewDeleteSlackBot200Response() *DeleteSlackBot200Response` + +NewDeleteSlackBot200Response instantiates a new DeleteSlackBot200Response 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 + +### NewDeleteSlackBot200ResponseWithDefaults + +`func NewDeleteSlackBot200ResponseWithDefaults() *DeleteSlackBot200Response` + +NewDeleteSlackBot200ResponseWithDefaults instantiates a new DeleteSlackBot200Response 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 *DeleteSlackBot200Response) GetSuccess() bool` + +GetSuccess returns the Success field if non-nil, zero value otherwise. + +### GetSuccessOk + +`func (o *DeleteSlackBot200Response) 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 *DeleteSlackBot200Response) SetSuccess(v bool)` + +SetSuccess sets Success field to given value. + +### HasSuccess + +`func (o *DeleteSlackBot200Response) HasSuccess() bool` + +HasSuccess returns a boolean if a field has been set. + +### GetMessage + +`func (o *DeleteSlackBot200Response) GetMessage() string` + +GetMessage returns the Message field if non-nil, zero value otherwise. + +### GetMessageOk + +`func (o *DeleteSlackBot200Response) 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 *DeleteSlackBot200Response) SetMessage(v string)` + +SetMessage sets Message field to given value. + +### HasMessage + +`func (o *DeleteSlackBot200Response) 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/GetAIAgent200ResponseAgent.md b/docs/GetAIAgent200ResponseAgent.md index c23f1c1..b0cce18 100644 --- a/docs/GetAIAgent200ResponseAgent.md +++ b/docs/GetAIAgent200ResponseAgent.md @@ -14,6 +14,11 @@ Name | Type | Description | Notes **MaxTokens** | Pointer to **int32** | | [optional] **AllowedTools** | Pointer to **[]string** | | [optional] **AllowedCollections** | Pointer to **[]string** | | [optional] +**AssignedSkills** | Pointer to **[]string** | | [optional] +**LongContext** | Pointer to **bool** | Whether 1M context window is enabled | [optional] +**GuardrailPreset** | Pointer to **string** | Guardrail preset name | [optional] +**IsGlobal** | Pointer to **bool** | Whether this is a platform-managed global agent | [optional] +**HasOverlay** | Pointer to **bool** | Whether the requesting org has a per-org overlay for this global agent | [optional] **CreatedBy** | Pointer to **string** | | [optional] **CreatedAt** | Pointer to **time.Time** | | [optional] **UpdatedAt** | Pointer to **time.Time** | | [optional] @@ -287,6 +292,131 @@ SetAllowedCollections sets AllowedCollections field to given value. HasAllowedCollections returns a boolean if a field has been set. +### GetAssignedSkills + +`func (o *GetAIAgent200ResponseAgent) GetAssignedSkills() []string` + +GetAssignedSkills returns the AssignedSkills field if non-nil, zero value otherwise. + +### GetAssignedSkillsOk + +`func (o *GetAIAgent200ResponseAgent) GetAssignedSkillsOk() (*[]string, bool)` + +GetAssignedSkillsOk returns a tuple with the AssignedSkills field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAssignedSkills + +`func (o *GetAIAgent200ResponseAgent) SetAssignedSkills(v []string)` + +SetAssignedSkills sets AssignedSkills field to given value. + +### HasAssignedSkills + +`func (o *GetAIAgent200ResponseAgent) HasAssignedSkills() bool` + +HasAssignedSkills returns a boolean if a field has been set. + +### GetLongContext + +`func (o *GetAIAgent200ResponseAgent) GetLongContext() bool` + +GetLongContext returns the LongContext field if non-nil, zero value otherwise. + +### GetLongContextOk + +`func (o *GetAIAgent200ResponseAgent) 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 *GetAIAgent200ResponseAgent) SetLongContext(v bool)` + +SetLongContext sets LongContext field to given value. + +### HasLongContext + +`func (o *GetAIAgent200ResponseAgent) HasLongContext() bool` + +HasLongContext returns a boolean if a field has been set. + +### GetGuardrailPreset + +`func (o *GetAIAgent200ResponseAgent) GetGuardrailPreset() string` + +GetGuardrailPreset returns the GuardrailPreset field if non-nil, zero value otherwise. + +### GetGuardrailPresetOk + +`func (o *GetAIAgent200ResponseAgent) GetGuardrailPresetOk() (*string, bool)` + +GetGuardrailPresetOk returns a tuple with the GuardrailPreset field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetGuardrailPreset + +`func (o *GetAIAgent200ResponseAgent) SetGuardrailPreset(v string)` + +SetGuardrailPreset sets GuardrailPreset field to given value. + +### HasGuardrailPreset + +`func (o *GetAIAgent200ResponseAgent) HasGuardrailPreset() bool` + +HasGuardrailPreset returns a boolean if a field has been set. + +### GetIsGlobal + +`func (o *GetAIAgent200ResponseAgent) GetIsGlobal() bool` + +GetIsGlobal returns the IsGlobal field if non-nil, zero value otherwise. + +### GetIsGlobalOk + +`func (o *GetAIAgent200ResponseAgent) GetIsGlobalOk() (*bool, bool)` + +GetIsGlobalOk returns a tuple with the IsGlobal field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetIsGlobal + +`func (o *GetAIAgent200ResponseAgent) SetIsGlobal(v bool)` + +SetIsGlobal sets IsGlobal field to given value. + +### HasIsGlobal + +`func (o *GetAIAgent200ResponseAgent) HasIsGlobal() bool` + +HasIsGlobal returns a boolean if a field has been set. + +### GetHasOverlay + +`func (o *GetAIAgent200ResponseAgent) GetHasOverlay() bool` + +GetHasOverlay returns the HasOverlay field if non-nil, zero value otherwise. + +### GetHasOverlayOk + +`func (o *GetAIAgent200ResponseAgent) GetHasOverlayOk() (*bool, bool)` + +GetHasOverlayOk returns a tuple with the HasOverlay field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetHasOverlay + +`func (o *GetAIAgent200ResponseAgent) SetHasOverlay(v bool)` + +SetHasOverlay sets HasOverlay field to given value. + +### HasHasOverlay + +`func (o *GetAIAgent200ResponseAgent) HasHasOverlay() bool` + +HasHasOverlay returns a boolean if a field has been set. + ### GetCreatedBy `func (o *GetAIAgent200ResponseAgent) GetCreatedBy() string` diff --git a/docs/GetAgentOverlay200Response.md b/docs/GetAgentOverlay200Response.md new file mode 100644 index 0000000..bc7dd12 --- /dev/null +++ b/docs/GetAgentOverlay200Response.md @@ -0,0 +1,92 @@ +# GetAgentOverlay200Response + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Overlay** | Pointer to [**NullableGetAgentOverlay200ResponseOverlay**](GetAgentOverlay200ResponseOverlay.md) | | [optional] +**Base** | Pointer to [**GetAgentOverlay200ResponseBase**](GetAgentOverlay200ResponseBase.md) | | [optional] + +## Methods + +### NewGetAgentOverlay200Response + +`func NewGetAgentOverlay200Response() *GetAgentOverlay200Response` + +NewGetAgentOverlay200Response instantiates a new GetAgentOverlay200Response 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 + +### NewGetAgentOverlay200ResponseWithDefaults + +`func NewGetAgentOverlay200ResponseWithDefaults() *GetAgentOverlay200Response` + +NewGetAgentOverlay200ResponseWithDefaults instantiates a new GetAgentOverlay200Response 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 + +### GetOverlay + +`func (o *GetAgentOverlay200Response) GetOverlay() GetAgentOverlay200ResponseOverlay` + +GetOverlay returns the Overlay field if non-nil, zero value otherwise. + +### GetOverlayOk + +`func (o *GetAgentOverlay200Response) GetOverlayOk() (*GetAgentOverlay200ResponseOverlay, bool)` + +GetOverlayOk returns a tuple with the Overlay field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetOverlay + +`func (o *GetAgentOverlay200Response) SetOverlay(v GetAgentOverlay200ResponseOverlay)` + +SetOverlay sets Overlay field to given value. + +### HasOverlay + +`func (o *GetAgentOverlay200Response) HasOverlay() bool` + +HasOverlay returns a boolean if a field has been set. + +### SetOverlayNil + +`func (o *GetAgentOverlay200Response) SetOverlayNil(b bool)` + + SetOverlayNil sets the value for Overlay to be an explicit nil + +### UnsetOverlay +`func (o *GetAgentOverlay200Response) UnsetOverlay()` + +UnsetOverlay ensures that no value is present for Overlay, not even an explicit nil +### GetBase + +`func (o *GetAgentOverlay200Response) GetBase() GetAgentOverlay200ResponseBase` + +GetBase returns the Base field if non-nil, zero value otherwise. + +### GetBaseOk + +`func (o *GetAgentOverlay200Response) GetBaseOk() (*GetAgentOverlay200ResponseBase, bool)` + +GetBaseOk returns a tuple with the Base field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetBase + +`func (o *GetAgentOverlay200Response) SetBase(v GetAgentOverlay200ResponseBase)` + +SetBase sets Base field to given value. + +### HasBase + +`func (o *GetAgentOverlay200Response) HasBase() bool` + +HasBase 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/GetAgentOverlay200ResponseBase.md b/docs/GetAgentOverlay200ResponseBase.md new file mode 100644 index 0000000..4a09e3e --- /dev/null +++ b/docs/GetAgentOverlay200ResponseBase.md @@ -0,0 +1,160 @@ +# GetAgentOverlay200ResponseBase + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**AgentId** | Pointer to **string** | | [optional] +**Name** | Pointer to **string** | | [optional] +**ModelId** | Pointer to **string** | | [optional] +**AllowedTools** | Pointer to **[]string** | | [optional] +**AssignedSkillIds** | Pointer to **[]string** | | [optional] + +## Methods + +### NewGetAgentOverlay200ResponseBase + +`func NewGetAgentOverlay200ResponseBase() *GetAgentOverlay200ResponseBase` + +NewGetAgentOverlay200ResponseBase instantiates a new GetAgentOverlay200ResponseBase 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 + +### NewGetAgentOverlay200ResponseBaseWithDefaults + +`func NewGetAgentOverlay200ResponseBaseWithDefaults() *GetAgentOverlay200ResponseBase` + +NewGetAgentOverlay200ResponseBaseWithDefaults instantiates a new GetAgentOverlay200ResponseBase 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 + +### GetAgentId + +`func (o *GetAgentOverlay200ResponseBase) GetAgentId() string` + +GetAgentId returns the AgentId field if non-nil, zero value otherwise. + +### GetAgentIdOk + +`func (o *GetAgentOverlay200ResponseBase) GetAgentIdOk() (*string, bool)` + +GetAgentIdOk returns a tuple with the AgentId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAgentId + +`func (o *GetAgentOverlay200ResponseBase) SetAgentId(v string)` + +SetAgentId sets AgentId field to given value. + +### HasAgentId + +`func (o *GetAgentOverlay200ResponseBase) HasAgentId() bool` + +HasAgentId returns a boolean if a field has been set. + +### GetName + +`func (o *GetAgentOverlay200ResponseBase) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *GetAgentOverlay200ResponseBase) 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 *GetAgentOverlay200ResponseBase) SetName(v string)` + +SetName sets Name field to given value. + +### HasName + +`func (o *GetAgentOverlay200ResponseBase) HasName() bool` + +HasName returns a boolean if a field has been set. + +### GetModelId + +`func (o *GetAgentOverlay200ResponseBase) GetModelId() string` + +GetModelId returns the ModelId field if non-nil, zero value otherwise. + +### GetModelIdOk + +`func (o *GetAgentOverlay200ResponseBase) GetModelIdOk() (*string, bool)` + +GetModelIdOk returns a tuple with the ModelId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetModelId + +`func (o *GetAgentOverlay200ResponseBase) SetModelId(v string)` + +SetModelId sets ModelId field to given value. + +### HasModelId + +`func (o *GetAgentOverlay200ResponseBase) HasModelId() bool` + +HasModelId returns a boolean if a field has been set. + +### GetAllowedTools + +`func (o *GetAgentOverlay200ResponseBase) GetAllowedTools() []string` + +GetAllowedTools returns the AllowedTools field if non-nil, zero value otherwise. + +### GetAllowedToolsOk + +`func (o *GetAgentOverlay200ResponseBase) 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 *GetAgentOverlay200ResponseBase) SetAllowedTools(v []string)` + +SetAllowedTools sets AllowedTools field to given value. + +### HasAllowedTools + +`func (o *GetAgentOverlay200ResponseBase) HasAllowedTools() bool` + +HasAllowedTools returns a boolean if a field has been set. + +### GetAssignedSkillIds + +`func (o *GetAgentOverlay200ResponseBase) GetAssignedSkillIds() []string` + +GetAssignedSkillIds returns the AssignedSkillIds field if non-nil, zero value otherwise. + +### GetAssignedSkillIdsOk + +`func (o *GetAgentOverlay200ResponseBase) GetAssignedSkillIdsOk() (*[]string, bool)` + +GetAssignedSkillIdsOk returns a tuple with the AssignedSkillIds field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAssignedSkillIds + +`func (o *GetAgentOverlay200ResponseBase) SetAssignedSkillIds(v []string)` + +SetAssignedSkillIds sets AssignedSkillIds field to given value. + +### HasAssignedSkillIds + +`func (o *GetAgentOverlay200ResponseBase) HasAssignedSkillIds() bool` + +HasAssignedSkillIds 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/GetAgentOverlay200ResponseOverlay.md b/docs/GetAgentOverlay200ResponseOverlay.md new file mode 100644 index 0000000..f8ff9a3 --- /dev/null +++ b/docs/GetAgentOverlay200ResponseOverlay.md @@ -0,0 +1,316 @@ +# GetAgentOverlay200ResponseOverlay + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**ModelId** | Pointer to **string** | | [optional] +**Temperature** | Pointer to **float32** | | [optional] +**MaxTokens** | Pointer to **int32** | | [optional] +**DisabledSkills** | Pointer to **[]string** | | [optional] +**AdditionalSkills** | Pointer to **[]string** | | [optional] +**AdditionalTools** | Pointer to **[]string** | | [optional] +**DisabledTools** | Pointer to **[]string** | | [optional] +**SystemPromptAppend** | Pointer to **string** | | [optional] +**AllowedCollections** | Pointer to **[]string** | | [optional] +**GuardrailPreset** | Pointer to **string** | | [optional] +**Version** | Pointer to **int32** | | [optional] + +## Methods + +### NewGetAgentOverlay200ResponseOverlay + +`func NewGetAgentOverlay200ResponseOverlay() *GetAgentOverlay200ResponseOverlay` + +NewGetAgentOverlay200ResponseOverlay instantiates a new GetAgentOverlay200ResponseOverlay 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 + +### NewGetAgentOverlay200ResponseOverlayWithDefaults + +`func NewGetAgentOverlay200ResponseOverlayWithDefaults() *GetAgentOverlay200ResponseOverlay` + +NewGetAgentOverlay200ResponseOverlayWithDefaults instantiates a new GetAgentOverlay200ResponseOverlay 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 + +### GetModelId + +`func (o *GetAgentOverlay200ResponseOverlay) GetModelId() string` + +GetModelId returns the ModelId field if non-nil, zero value otherwise. + +### GetModelIdOk + +`func (o *GetAgentOverlay200ResponseOverlay) GetModelIdOk() (*string, bool)` + +GetModelIdOk returns a tuple with the ModelId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetModelId + +`func (o *GetAgentOverlay200ResponseOverlay) SetModelId(v string)` + +SetModelId sets ModelId field to given value. + +### HasModelId + +`func (o *GetAgentOverlay200ResponseOverlay) HasModelId() bool` + +HasModelId returns a boolean if a field has been set. + +### GetTemperature + +`func (o *GetAgentOverlay200ResponseOverlay) GetTemperature() float32` + +GetTemperature returns the Temperature field if non-nil, zero value otherwise. + +### GetTemperatureOk + +`func (o *GetAgentOverlay200ResponseOverlay) GetTemperatureOk() (*float32, bool)` + +GetTemperatureOk returns a tuple with the Temperature field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTemperature + +`func (o *GetAgentOverlay200ResponseOverlay) SetTemperature(v float32)` + +SetTemperature sets Temperature field to given value. + +### HasTemperature + +`func (o *GetAgentOverlay200ResponseOverlay) HasTemperature() bool` + +HasTemperature returns a boolean if a field has been set. + +### GetMaxTokens + +`func (o *GetAgentOverlay200ResponseOverlay) GetMaxTokens() int32` + +GetMaxTokens returns the MaxTokens field if non-nil, zero value otherwise. + +### GetMaxTokensOk + +`func (o *GetAgentOverlay200ResponseOverlay) GetMaxTokensOk() (*int32, bool)` + +GetMaxTokensOk returns a tuple with the MaxTokens field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMaxTokens + +`func (o *GetAgentOverlay200ResponseOverlay) SetMaxTokens(v int32)` + +SetMaxTokens sets MaxTokens field to given value. + +### HasMaxTokens + +`func (o *GetAgentOverlay200ResponseOverlay) HasMaxTokens() bool` + +HasMaxTokens returns a boolean if a field has been set. + +### GetDisabledSkills + +`func (o *GetAgentOverlay200ResponseOverlay) GetDisabledSkills() []string` + +GetDisabledSkills returns the DisabledSkills field if non-nil, zero value otherwise. + +### GetDisabledSkillsOk + +`func (o *GetAgentOverlay200ResponseOverlay) GetDisabledSkillsOk() (*[]string, bool)` + +GetDisabledSkillsOk returns a tuple with the DisabledSkills field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisabledSkills + +`func (o *GetAgentOverlay200ResponseOverlay) SetDisabledSkills(v []string)` + +SetDisabledSkills sets DisabledSkills field to given value. + +### HasDisabledSkills + +`func (o *GetAgentOverlay200ResponseOverlay) HasDisabledSkills() bool` + +HasDisabledSkills returns a boolean if a field has been set. + +### GetAdditionalSkills + +`func (o *GetAgentOverlay200ResponseOverlay) GetAdditionalSkills() []string` + +GetAdditionalSkills returns the AdditionalSkills field if non-nil, zero value otherwise. + +### GetAdditionalSkillsOk + +`func (o *GetAgentOverlay200ResponseOverlay) GetAdditionalSkillsOk() (*[]string, bool)` + +GetAdditionalSkillsOk returns a tuple with the AdditionalSkills field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAdditionalSkills + +`func (o *GetAgentOverlay200ResponseOverlay) SetAdditionalSkills(v []string)` + +SetAdditionalSkills sets AdditionalSkills field to given value. + +### HasAdditionalSkills + +`func (o *GetAgentOverlay200ResponseOverlay) HasAdditionalSkills() bool` + +HasAdditionalSkills returns a boolean if a field has been set. + +### GetAdditionalTools + +`func (o *GetAgentOverlay200ResponseOverlay) GetAdditionalTools() []string` + +GetAdditionalTools returns the AdditionalTools field if non-nil, zero value otherwise. + +### GetAdditionalToolsOk + +`func (o *GetAgentOverlay200ResponseOverlay) GetAdditionalToolsOk() (*[]string, bool)` + +GetAdditionalToolsOk returns a tuple with the AdditionalTools field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAdditionalTools + +`func (o *GetAgentOverlay200ResponseOverlay) SetAdditionalTools(v []string)` + +SetAdditionalTools sets AdditionalTools field to given value. + +### HasAdditionalTools + +`func (o *GetAgentOverlay200ResponseOverlay) HasAdditionalTools() bool` + +HasAdditionalTools returns a boolean if a field has been set. + +### GetDisabledTools + +`func (o *GetAgentOverlay200ResponseOverlay) GetDisabledTools() []string` + +GetDisabledTools returns the DisabledTools field if non-nil, zero value otherwise. + +### GetDisabledToolsOk + +`func (o *GetAgentOverlay200ResponseOverlay) GetDisabledToolsOk() (*[]string, bool)` + +GetDisabledToolsOk returns a tuple with the DisabledTools field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisabledTools + +`func (o *GetAgentOverlay200ResponseOverlay) SetDisabledTools(v []string)` + +SetDisabledTools sets DisabledTools field to given value. + +### HasDisabledTools + +`func (o *GetAgentOverlay200ResponseOverlay) HasDisabledTools() bool` + +HasDisabledTools returns a boolean if a field has been set. + +### GetSystemPromptAppend + +`func (o *GetAgentOverlay200ResponseOverlay) GetSystemPromptAppend() string` + +GetSystemPromptAppend returns the SystemPromptAppend field if non-nil, zero value otherwise. + +### GetSystemPromptAppendOk + +`func (o *GetAgentOverlay200ResponseOverlay) GetSystemPromptAppendOk() (*string, bool)` + +GetSystemPromptAppendOk returns a tuple with the SystemPromptAppend field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSystemPromptAppend + +`func (o *GetAgentOverlay200ResponseOverlay) SetSystemPromptAppend(v string)` + +SetSystemPromptAppend sets SystemPromptAppend field to given value. + +### HasSystemPromptAppend + +`func (o *GetAgentOverlay200ResponseOverlay) HasSystemPromptAppend() bool` + +HasSystemPromptAppend returns a boolean if a field has been set. + +### GetAllowedCollections + +`func (o *GetAgentOverlay200ResponseOverlay) GetAllowedCollections() []string` + +GetAllowedCollections returns the AllowedCollections field if non-nil, zero value otherwise. + +### GetAllowedCollectionsOk + +`func (o *GetAgentOverlay200ResponseOverlay) GetAllowedCollectionsOk() (*[]string, bool)` + +GetAllowedCollectionsOk returns a tuple with the AllowedCollections field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAllowedCollections + +`func (o *GetAgentOverlay200ResponseOverlay) SetAllowedCollections(v []string)` + +SetAllowedCollections sets AllowedCollections field to given value. + +### HasAllowedCollections + +`func (o *GetAgentOverlay200ResponseOverlay) HasAllowedCollections() bool` + +HasAllowedCollections returns a boolean if a field has been set. + +### GetGuardrailPreset + +`func (o *GetAgentOverlay200ResponseOverlay) GetGuardrailPreset() string` + +GetGuardrailPreset returns the GuardrailPreset field if non-nil, zero value otherwise. + +### GetGuardrailPresetOk + +`func (o *GetAgentOverlay200ResponseOverlay) GetGuardrailPresetOk() (*string, bool)` + +GetGuardrailPresetOk returns a tuple with the GuardrailPreset field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetGuardrailPreset + +`func (o *GetAgentOverlay200ResponseOverlay) SetGuardrailPreset(v string)` + +SetGuardrailPreset sets GuardrailPreset field to given value. + +### HasGuardrailPreset + +`func (o *GetAgentOverlay200ResponseOverlay) HasGuardrailPreset() bool` + +HasGuardrailPreset returns a boolean if a field has been set. + +### GetVersion + +`func (o *GetAgentOverlay200ResponseOverlay) GetVersion() int32` + +GetVersion returns the Version field if non-nil, zero value otherwise. + +### GetVersionOk + +`func (o *GetAgentOverlay200ResponseOverlay) GetVersionOk() (*int32, 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 *GetAgentOverlay200ResponseOverlay) SetVersion(v int32)` + +SetVersion sets Version field to given value. + +### HasVersion + +`func (o *GetAgentOverlay200ResponseOverlay) 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/GetGovernanceConfig200Response.md b/docs/GetGovernanceConfig200Response.md new file mode 100644 index 0000000..11548b1 --- /dev/null +++ b/docs/GetGovernanceConfig200Response.md @@ -0,0 +1,248 @@ +# GetGovernanceConfig200Response + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**OrgId** | Pointer to **string** | | [optional] +**AiEnabled** | Pointer to **bool** | | [optional] +**ModelPolicy** | Pointer to **string** | | [optional] +**ModelList** | Pointer to **[]string** | | [optional] +**MandatoryGuardrailPreset** | Pointer to **NullableString** | | [optional] +**MandatoryFilterPolicies** | Pointer to **[]string** | | [optional] +**SpendLimits** | Pointer to [**GetGovernanceConfig200ResponseSpendLimits**](GetGovernanceConfig200ResponseSpendLimits.md) | | [optional] +**Version** | Pointer to **int32** | | [optional] + +## Methods + +### NewGetGovernanceConfig200Response + +`func NewGetGovernanceConfig200Response() *GetGovernanceConfig200Response` + +NewGetGovernanceConfig200Response instantiates a new GetGovernanceConfig200Response 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 + +### NewGetGovernanceConfig200ResponseWithDefaults + +`func NewGetGovernanceConfig200ResponseWithDefaults() *GetGovernanceConfig200Response` + +NewGetGovernanceConfig200ResponseWithDefaults instantiates a new GetGovernanceConfig200Response 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 + +### GetOrgId + +`func (o *GetGovernanceConfig200Response) GetOrgId() string` + +GetOrgId returns the OrgId field if non-nil, zero value otherwise. + +### GetOrgIdOk + +`func (o *GetGovernanceConfig200Response) GetOrgIdOk() (*string, bool)` + +GetOrgIdOk returns a tuple with the OrgId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetOrgId + +`func (o *GetGovernanceConfig200Response) SetOrgId(v string)` + +SetOrgId sets OrgId field to given value. + +### HasOrgId + +`func (o *GetGovernanceConfig200Response) HasOrgId() bool` + +HasOrgId returns a boolean if a field has been set. + +### GetAiEnabled + +`func (o *GetGovernanceConfig200Response) GetAiEnabled() bool` + +GetAiEnabled returns the AiEnabled field if non-nil, zero value otherwise. + +### GetAiEnabledOk + +`func (o *GetGovernanceConfig200Response) GetAiEnabledOk() (*bool, bool)` + +GetAiEnabledOk returns a tuple with the AiEnabled field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAiEnabled + +`func (o *GetGovernanceConfig200Response) SetAiEnabled(v bool)` + +SetAiEnabled sets AiEnabled field to given value. + +### HasAiEnabled + +`func (o *GetGovernanceConfig200Response) HasAiEnabled() bool` + +HasAiEnabled returns a boolean if a field has been set. + +### GetModelPolicy + +`func (o *GetGovernanceConfig200Response) GetModelPolicy() string` + +GetModelPolicy returns the ModelPolicy field if non-nil, zero value otherwise. + +### GetModelPolicyOk + +`func (o *GetGovernanceConfig200Response) GetModelPolicyOk() (*string, bool)` + +GetModelPolicyOk returns a tuple with the ModelPolicy field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetModelPolicy + +`func (o *GetGovernanceConfig200Response) SetModelPolicy(v string)` + +SetModelPolicy sets ModelPolicy field to given value. + +### HasModelPolicy + +`func (o *GetGovernanceConfig200Response) HasModelPolicy() bool` + +HasModelPolicy returns a boolean if a field has been set. + +### GetModelList + +`func (o *GetGovernanceConfig200Response) GetModelList() []string` + +GetModelList returns the ModelList field if non-nil, zero value otherwise. + +### GetModelListOk + +`func (o *GetGovernanceConfig200Response) GetModelListOk() (*[]string, bool)` + +GetModelListOk returns a tuple with the ModelList field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetModelList + +`func (o *GetGovernanceConfig200Response) SetModelList(v []string)` + +SetModelList sets ModelList field to given value. + +### HasModelList + +`func (o *GetGovernanceConfig200Response) HasModelList() bool` + +HasModelList returns a boolean if a field has been set. + +### GetMandatoryGuardrailPreset + +`func (o *GetGovernanceConfig200Response) GetMandatoryGuardrailPreset() string` + +GetMandatoryGuardrailPreset returns the MandatoryGuardrailPreset field if non-nil, zero value otherwise. + +### GetMandatoryGuardrailPresetOk + +`func (o *GetGovernanceConfig200Response) GetMandatoryGuardrailPresetOk() (*string, bool)` + +GetMandatoryGuardrailPresetOk returns a tuple with the MandatoryGuardrailPreset field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMandatoryGuardrailPreset + +`func (o *GetGovernanceConfig200Response) SetMandatoryGuardrailPreset(v string)` + +SetMandatoryGuardrailPreset sets MandatoryGuardrailPreset field to given value. + +### HasMandatoryGuardrailPreset + +`func (o *GetGovernanceConfig200Response) HasMandatoryGuardrailPreset() bool` + +HasMandatoryGuardrailPreset returns a boolean if a field has been set. + +### SetMandatoryGuardrailPresetNil + +`func (o *GetGovernanceConfig200Response) SetMandatoryGuardrailPresetNil(b bool)` + + SetMandatoryGuardrailPresetNil sets the value for MandatoryGuardrailPreset to be an explicit nil + +### UnsetMandatoryGuardrailPreset +`func (o *GetGovernanceConfig200Response) UnsetMandatoryGuardrailPreset()` + +UnsetMandatoryGuardrailPreset ensures that no value is present for MandatoryGuardrailPreset, not even an explicit nil +### GetMandatoryFilterPolicies + +`func (o *GetGovernanceConfig200Response) GetMandatoryFilterPolicies() []string` + +GetMandatoryFilterPolicies returns the MandatoryFilterPolicies field if non-nil, zero value otherwise. + +### GetMandatoryFilterPoliciesOk + +`func (o *GetGovernanceConfig200Response) GetMandatoryFilterPoliciesOk() (*[]string, bool)` + +GetMandatoryFilterPoliciesOk returns a tuple with the MandatoryFilterPolicies field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMandatoryFilterPolicies + +`func (o *GetGovernanceConfig200Response) SetMandatoryFilterPolicies(v []string)` + +SetMandatoryFilterPolicies sets MandatoryFilterPolicies field to given value. + +### HasMandatoryFilterPolicies + +`func (o *GetGovernanceConfig200Response) HasMandatoryFilterPolicies() bool` + +HasMandatoryFilterPolicies returns a boolean if a field has been set. + +### GetSpendLimits + +`func (o *GetGovernanceConfig200Response) GetSpendLimits() GetGovernanceConfig200ResponseSpendLimits` + +GetSpendLimits returns the SpendLimits field if non-nil, zero value otherwise. + +### GetSpendLimitsOk + +`func (o *GetGovernanceConfig200Response) GetSpendLimitsOk() (*GetGovernanceConfig200ResponseSpendLimits, bool)` + +GetSpendLimitsOk returns a tuple with the SpendLimits field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSpendLimits + +`func (o *GetGovernanceConfig200Response) SetSpendLimits(v GetGovernanceConfig200ResponseSpendLimits)` + +SetSpendLimits sets SpendLimits field to given value. + +### HasSpendLimits + +`func (o *GetGovernanceConfig200Response) HasSpendLimits() bool` + +HasSpendLimits returns a boolean if a field has been set. + +### GetVersion + +`func (o *GetGovernanceConfig200Response) GetVersion() int32` + +GetVersion returns the Version field if non-nil, zero value otherwise. + +### GetVersionOk + +`func (o *GetGovernanceConfig200Response) GetVersionOk() (*int32, 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 *GetGovernanceConfig200Response) SetVersion(v int32)` + +SetVersion sets Version field to given value. + +### HasVersion + +`func (o *GetGovernanceConfig200Response) 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/GetGovernanceConfig200ResponseSpendLimits.md b/docs/GetGovernanceConfig200ResponseSpendLimits.md new file mode 100644 index 0000000..b9291bc --- /dev/null +++ b/docs/GetGovernanceConfig200ResponseSpendLimits.md @@ -0,0 +1,210 @@ +# GetGovernanceConfig200ResponseSpendLimits + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**MonthlyBudgetCents** | Pointer to **NullableInt32** | | [optional] +**DailyBudgetCents** | Pointer to **NullableInt32** | | [optional] +**PerUserMonthlyBudgetCents** | Pointer to **NullableInt32** | | [optional] +**PerUserDailyBudgetCents** | Pointer to **NullableInt32** | | [optional] +**WarningThresholdPercent** | Pointer to **NullableInt32** | | [optional] + +## Methods + +### NewGetGovernanceConfig200ResponseSpendLimits + +`func NewGetGovernanceConfig200ResponseSpendLimits() *GetGovernanceConfig200ResponseSpendLimits` + +NewGetGovernanceConfig200ResponseSpendLimits instantiates a new GetGovernanceConfig200ResponseSpendLimits 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 + +### NewGetGovernanceConfig200ResponseSpendLimitsWithDefaults + +`func NewGetGovernanceConfig200ResponseSpendLimitsWithDefaults() *GetGovernanceConfig200ResponseSpendLimits` + +NewGetGovernanceConfig200ResponseSpendLimitsWithDefaults instantiates a new GetGovernanceConfig200ResponseSpendLimits 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 + +### GetMonthlyBudgetCents + +`func (o *GetGovernanceConfig200ResponseSpendLimits) GetMonthlyBudgetCents() int32` + +GetMonthlyBudgetCents returns the MonthlyBudgetCents field if non-nil, zero value otherwise. + +### GetMonthlyBudgetCentsOk + +`func (o *GetGovernanceConfig200ResponseSpendLimits) GetMonthlyBudgetCentsOk() (*int32, bool)` + +GetMonthlyBudgetCentsOk returns a tuple with the MonthlyBudgetCents field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMonthlyBudgetCents + +`func (o *GetGovernanceConfig200ResponseSpendLimits) SetMonthlyBudgetCents(v int32)` + +SetMonthlyBudgetCents sets MonthlyBudgetCents field to given value. + +### HasMonthlyBudgetCents + +`func (o *GetGovernanceConfig200ResponseSpendLimits) HasMonthlyBudgetCents() bool` + +HasMonthlyBudgetCents returns a boolean if a field has been set. + +### SetMonthlyBudgetCentsNil + +`func (o *GetGovernanceConfig200ResponseSpendLimits) SetMonthlyBudgetCentsNil(b bool)` + + SetMonthlyBudgetCentsNil sets the value for MonthlyBudgetCents to be an explicit nil + +### UnsetMonthlyBudgetCents +`func (o *GetGovernanceConfig200ResponseSpendLimits) UnsetMonthlyBudgetCents()` + +UnsetMonthlyBudgetCents ensures that no value is present for MonthlyBudgetCents, not even an explicit nil +### GetDailyBudgetCents + +`func (o *GetGovernanceConfig200ResponseSpendLimits) GetDailyBudgetCents() int32` + +GetDailyBudgetCents returns the DailyBudgetCents field if non-nil, zero value otherwise. + +### GetDailyBudgetCentsOk + +`func (o *GetGovernanceConfig200ResponseSpendLimits) GetDailyBudgetCentsOk() (*int32, bool)` + +GetDailyBudgetCentsOk returns a tuple with the DailyBudgetCents field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDailyBudgetCents + +`func (o *GetGovernanceConfig200ResponseSpendLimits) SetDailyBudgetCents(v int32)` + +SetDailyBudgetCents sets DailyBudgetCents field to given value. + +### HasDailyBudgetCents + +`func (o *GetGovernanceConfig200ResponseSpendLimits) HasDailyBudgetCents() bool` + +HasDailyBudgetCents returns a boolean if a field has been set. + +### SetDailyBudgetCentsNil + +`func (o *GetGovernanceConfig200ResponseSpendLimits) SetDailyBudgetCentsNil(b bool)` + + SetDailyBudgetCentsNil sets the value for DailyBudgetCents to be an explicit nil + +### UnsetDailyBudgetCents +`func (o *GetGovernanceConfig200ResponseSpendLimits) UnsetDailyBudgetCents()` + +UnsetDailyBudgetCents ensures that no value is present for DailyBudgetCents, not even an explicit nil +### GetPerUserMonthlyBudgetCents + +`func (o *GetGovernanceConfig200ResponseSpendLimits) GetPerUserMonthlyBudgetCents() int32` + +GetPerUserMonthlyBudgetCents returns the PerUserMonthlyBudgetCents field if non-nil, zero value otherwise. + +### GetPerUserMonthlyBudgetCentsOk + +`func (o *GetGovernanceConfig200ResponseSpendLimits) GetPerUserMonthlyBudgetCentsOk() (*int32, bool)` + +GetPerUserMonthlyBudgetCentsOk returns a tuple with the PerUserMonthlyBudgetCents field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPerUserMonthlyBudgetCents + +`func (o *GetGovernanceConfig200ResponseSpendLimits) SetPerUserMonthlyBudgetCents(v int32)` + +SetPerUserMonthlyBudgetCents sets PerUserMonthlyBudgetCents field to given value. + +### HasPerUserMonthlyBudgetCents + +`func (o *GetGovernanceConfig200ResponseSpendLimits) HasPerUserMonthlyBudgetCents() bool` + +HasPerUserMonthlyBudgetCents returns a boolean if a field has been set. + +### SetPerUserMonthlyBudgetCentsNil + +`func (o *GetGovernanceConfig200ResponseSpendLimits) SetPerUserMonthlyBudgetCentsNil(b bool)` + + SetPerUserMonthlyBudgetCentsNil sets the value for PerUserMonthlyBudgetCents to be an explicit nil + +### UnsetPerUserMonthlyBudgetCents +`func (o *GetGovernanceConfig200ResponseSpendLimits) UnsetPerUserMonthlyBudgetCents()` + +UnsetPerUserMonthlyBudgetCents ensures that no value is present for PerUserMonthlyBudgetCents, not even an explicit nil +### GetPerUserDailyBudgetCents + +`func (o *GetGovernanceConfig200ResponseSpendLimits) GetPerUserDailyBudgetCents() int32` + +GetPerUserDailyBudgetCents returns the PerUserDailyBudgetCents field if non-nil, zero value otherwise. + +### GetPerUserDailyBudgetCentsOk + +`func (o *GetGovernanceConfig200ResponseSpendLimits) GetPerUserDailyBudgetCentsOk() (*int32, bool)` + +GetPerUserDailyBudgetCentsOk returns a tuple with the PerUserDailyBudgetCents field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPerUserDailyBudgetCents + +`func (o *GetGovernanceConfig200ResponseSpendLimits) SetPerUserDailyBudgetCents(v int32)` + +SetPerUserDailyBudgetCents sets PerUserDailyBudgetCents field to given value. + +### HasPerUserDailyBudgetCents + +`func (o *GetGovernanceConfig200ResponseSpendLimits) HasPerUserDailyBudgetCents() bool` + +HasPerUserDailyBudgetCents returns a boolean if a field has been set. + +### SetPerUserDailyBudgetCentsNil + +`func (o *GetGovernanceConfig200ResponseSpendLimits) SetPerUserDailyBudgetCentsNil(b bool)` + + SetPerUserDailyBudgetCentsNil sets the value for PerUserDailyBudgetCents to be an explicit nil + +### UnsetPerUserDailyBudgetCents +`func (o *GetGovernanceConfig200ResponseSpendLimits) UnsetPerUserDailyBudgetCents()` + +UnsetPerUserDailyBudgetCents ensures that no value is present for PerUserDailyBudgetCents, not even an explicit nil +### GetWarningThresholdPercent + +`func (o *GetGovernanceConfig200ResponseSpendLimits) GetWarningThresholdPercent() int32` + +GetWarningThresholdPercent returns the WarningThresholdPercent field if non-nil, zero value otherwise. + +### GetWarningThresholdPercentOk + +`func (o *GetGovernanceConfig200ResponseSpendLimits) GetWarningThresholdPercentOk() (*int32, bool)` + +GetWarningThresholdPercentOk returns a tuple with the WarningThresholdPercent field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetWarningThresholdPercent + +`func (o *GetGovernanceConfig200ResponseSpendLimits) SetWarningThresholdPercent(v int32)` + +SetWarningThresholdPercent sets WarningThresholdPercent field to given value. + +### HasWarningThresholdPercent + +`func (o *GetGovernanceConfig200ResponseSpendLimits) HasWarningThresholdPercent() bool` + +HasWarningThresholdPercent returns a boolean if a field has been set. + +### SetWarningThresholdPercentNil + +`func (o *GetGovernanceConfig200ResponseSpendLimits) SetWarningThresholdPercentNil(b bool)` + + SetWarningThresholdPercentNil sets the value for WarningThresholdPercent to be an explicit nil + +### UnsetWarningThresholdPercent +`func (o *GetGovernanceConfig200ResponseSpendLimits) UnsetWarningThresholdPercent()` + +UnsetWarningThresholdPercent ensures that no value is present for WarningThresholdPercent, not even an explicit nil + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/GetMyUsage200Response.md b/docs/GetMyUsage200Response.md new file mode 100644 index 0000000..e47597f --- /dev/null +++ b/docs/GetMyUsage200Response.md @@ -0,0 +1,170 @@ +# GetMyUsage200Response + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**UserId** | Pointer to **string** | | [optional] +**CurrentMonth** | Pointer to **string** | | [optional] +**Monthly** | Pointer to [**GetMyUsage200ResponseMonthly**](GetMyUsage200ResponseMonthly.md) | | [optional] +**Daily** | Pointer to [**GetMyUsage200ResponseDaily**](GetMyUsage200ResponseDaily.md) | | [optional] +**Quota** | Pointer to **map[string]interface{}** | | [optional] + +## Methods + +### NewGetMyUsage200Response + +`func NewGetMyUsage200Response() *GetMyUsage200Response` + +NewGetMyUsage200Response instantiates a new GetMyUsage200Response 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 + +### NewGetMyUsage200ResponseWithDefaults + +`func NewGetMyUsage200ResponseWithDefaults() *GetMyUsage200Response` + +NewGetMyUsage200ResponseWithDefaults instantiates a new GetMyUsage200Response 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 + +### GetUserId + +`func (o *GetMyUsage200Response) GetUserId() string` + +GetUserId returns the UserId field if non-nil, zero value otherwise. + +### GetUserIdOk + +`func (o *GetMyUsage200Response) GetUserIdOk() (*string, bool)` + +GetUserIdOk returns a tuple with the UserId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUserId + +`func (o *GetMyUsage200Response) SetUserId(v string)` + +SetUserId sets UserId field to given value. + +### HasUserId + +`func (o *GetMyUsage200Response) HasUserId() bool` + +HasUserId returns a boolean if a field has been set. + +### GetCurrentMonth + +`func (o *GetMyUsage200Response) GetCurrentMonth() string` + +GetCurrentMonth returns the CurrentMonth field if non-nil, zero value otherwise. + +### GetCurrentMonthOk + +`func (o *GetMyUsage200Response) GetCurrentMonthOk() (*string, bool)` + +GetCurrentMonthOk returns a tuple with the CurrentMonth field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCurrentMonth + +`func (o *GetMyUsage200Response) SetCurrentMonth(v string)` + +SetCurrentMonth sets CurrentMonth field to given value. + +### HasCurrentMonth + +`func (o *GetMyUsage200Response) HasCurrentMonth() bool` + +HasCurrentMonth returns a boolean if a field has been set. + +### GetMonthly + +`func (o *GetMyUsage200Response) GetMonthly() GetMyUsage200ResponseMonthly` + +GetMonthly returns the Monthly field if non-nil, zero value otherwise. + +### GetMonthlyOk + +`func (o *GetMyUsage200Response) GetMonthlyOk() (*GetMyUsage200ResponseMonthly, bool)` + +GetMonthlyOk returns a tuple with the Monthly field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMonthly + +`func (o *GetMyUsage200Response) SetMonthly(v GetMyUsage200ResponseMonthly)` + +SetMonthly sets Monthly field to given value. + +### HasMonthly + +`func (o *GetMyUsage200Response) HasMonthly() bool` + +HasMonthly returns a boolean if a field has been set. + +### GetDaily + +`func (o *GetMyUsage200Response) GetDaily() GetMyUsage200ResponseDaily` + +GetDaily returns the Daily field if non-nil, zero value otherwise. + +### GetDailyOk + +`func (o *GetMyUsage200Response) GetDailyOk() (*GetMyUsage200ResponseDaily, bool)` + +GetDailyOk returns a tuple with the Daily field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDaily + +`func (o *GetMyUsage200Response) SetDaily(v GetMyUsage200ResponseDaily)` + +SetDaily sets Daily field to given value. + +### HasDaily + +`func (o *GetMyUsage200Response) HasDaily() bool` + +HasDaily returns a boolean if a field has been set. + +### GetQuota + +`func (o *GetMyUsage200Response) GetQuota() map[string]interface{}` + +GetQuota returns the Quota field if non-nil, zero value otherwise. + +### GetQuotaOk + +`func (o *GetMyUsage200Response) GetQuotaOk() (*map[string]interface{}, bool)` + +GetQuotaOk returns a tuple with the Quota field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetQuota + +`func (o *GetMyUsage200Response) SetQuota(v map[string]interface{})` + +SetQuota sets Quota field to given value. + +### HasQuota + +`func (o *GetMyUsage200Response) HasQuota() bool` + +HasQuota returns a boolean if a field has been set. + +### SetQuotaNil + +`func (o *GetMyUsage200Response) SetQuotaNil(b bool)` + + SetQuotaNil sets the value for Quota to be an explicit nil + +### UnsetQuota +`func (o *GetMyUsage200Response) UnsetQuota()` + +UnsetQuota ensures that no value is present for Quota, not even an explicit nil + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/GetMyUsage200ResponseDaily.md b/docs/GetMyUsage200ResponseDaily.md new file mode 100644 index 0000000..f499601 --- /dev/null +++ b/docs/GetMyUsage200ResponseDaily.md @@ -0,0 +1,56 @@ +# GetMyUsage200ResponseDaily + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**SpendCents** | Pointer to **int32** | | [optional] + +## Methods + +### NewGetMyUsage200ResponseDaily + +`func NewGetMyUsage200ResponseDaily() *GetMyUsage200ResponseDaily` + +NewGetMyUsage200ResponseDaily instantiates a new GetMyUsage200ResponseDaily 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 + +### NewGetMyUsage200ResponseDailyWithDefaults + +`func NewGetMyUsage200ResponseDailyWithDefaults() *GetMyUsage200ResponseDaily` + +NewGetMyUsage200ResponseDailyWithDefaults instantiates a new GetMyUsage200ResponseDaily 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 + +### GetSpendCents + +`func (o *GetMyUsage200ResponseDaily) GetSpendCents() int32` + +GetSpendCents returns the SpendCents field if non-nil, zero value otherwise. + +### GetSpendCentsOk + +`func (o *GetMyUsage200ResponseDaily) GetSpendCentsOk() (*int32, bool)` + +GetSpendCentsOk returns a tuple with the SpendCents field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSpendCents + +`func (o *GetMyUsage200ResponseDaily) SetSpendCents(v int32)` + +SetSpendCents sets SpendCents field to given value. + +### HasSpendCents + +`func (o *GetMyUsage200ResponseDaily) HasSpendCents() bool` + +HasSpendCents 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/GetMyUsage200ResponseMonthly.md b/docs/GetMyUsage200ResponseMonthly.md new file mode 100644 index 0000000..c71a739 --- /dev/null +++ b/docs/GetMyUsage200ResponseMonthly.md @@ -0,0 +1,82 @@ +# GetMyUsage200ResponseMonthly + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**SpendCents** | Pointer to **int32** | | [optional] +**RequestCount** | Pointer to **int32** | | [optional] + +## Methods + +### NewGetMyUsage200ResponseMonthly + +`func NewGetMyUsage200ResponseMonthly() *GetMyUsage200ResponseMonthly` + +NewGetMyUsage200ResponseMonthly instantiates a new GetMyUsage200ResponseMonthly 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 + +### NewGetMyUsage200ResponseMonthlyWithDefaults + +`func NewGetMyUsage200ResponseMonthlyWithDefaults() *GetMyUsage200ResponseMonthly` + +NewGetMyUsage200ResponseMonthlyWithDefaults instantiates a new GetMyUsage200ResponseMonthly 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 + +### GetSpendCents + +`func (o *GetMyUsage200ResponseMonthly) GetSpendCents() int32` + +GetSpendCents returns the SpendCents field if non-nil, zero value otherwise. + +### GetSpendCentsOk + +`func (o *GetMyUsage200ResponseMonthly) GetSpendCentsOk() (*int32, bool)` + +GetSpendCentsOk returns a tuple with the SpendCents field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSpendCents + +`func (o *GetMyUsage200ResponseMonthly) SetSpendCents(v int32)` + +SetSpendCents sets SpendCents field to given value. + +### HasSpendCents + +`func (o *GetMyUsage200ResponseMonthly) HasSpendCents() bool` + +HasSpendCents returns a boolean if a field has been set. + +### GetRequestCount + +`func (o *GetMyUsage200ResponseMonthly) GetRequestCount() int32` + +GetRequestCount returns the RequestCount field if non-nil, zero value otherwise. + +### GetRequestCountOk + +`func (o *GetMyUsage200ResponseMonthly) GetRequestCountOk() (*int32, bool)` + +GetRequestCountOk returns a tuple with the RequestCount field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRequestCount + +`func (o *GetMyUsage200ResponseMonthly) SetRequestCount(v int32)` + +SetRequestCount sets RequestCount field to given value. + +### HasRequestCount + +`func (o *GetMyUsage200ResponseMonthly) HasRequestCount() bool` + +HasRequestCount 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/GetSlackBot200Response.md b/docs/GetSlackBot200Response.md new file mode 100644 index 0000000..a99aebd --- /dev/null +++ b/docs/GetSlackBot200Response.md @@ -0,0 +1,56 @@ +# GetSlackBot200Response + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Bot** | Pointer to [**GetSlackBot200ResponseBot**](GetSlackBot200ResponseBot.md) | | [optional] + +## Methods + +### NewGetSlackBot200Response + +`func NewGetSlackBot200Response() *GetSlackBot200Response` + +NewGetSlackBot200Response instantiates a new GetSlackBot200Response 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 + +### NewGetSlackBot200ResponseWithDefaults + +`func NewGetSlackBot200ResponseWithDefaults() *GetSlackBot200Response` + +NewGetSlackBot200ResponseWithDefaults instantiates a new GetSlackBot200Response 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 + +### GetBot + +`func (o *GetSlackBot200Response) GetBot() GetSlackBot200ResponseBot` + +GetBot returns the Bot field if non-nil, zero value otherwise. + +### GetBotOk + +`func (o *GetSlackBot200Response) GetBotOk() (*GetSlackBot200ResponseBot, bool)` + +GetBotOk returns a tuple with the Bot field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetBot + +`func (o *GetSlackBot200Response) SetBot(v GetSlackBot200ResponseBot)` + +SetBot sets Bot field to given value. + +### HasBot + +`func (o *GetSlackBot200Response) HasBot() bool` + +HasBot 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/GetSlackBot200ResponseBot.md b/docs/GetSlackBot200ResponseBot.md new file mode 100644 index 0000000..8277791 --- /dev/null +++ b/docs/GetSlackBot200ResponseBot.md @@ -0,0 +1,342 @@ +# GetSlackBot200ResponseBot + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**BotId** | Pointer to **string** | | [optional] +**AgentId** | Pointer to **string** | | [optional] +**SetupType** | Pointer to **string** | | [optional] +**Status** | Pointer to **string** | | [optional] +**Connected** | Pointer to **bool** | | [optional] +**SessionTtlDays** | Pointer to **int32** | | [optional] +**AllowedChannels** | Pointer to **[]string** | | [optional] +**KeywordsEnabled** | Pointer to **bool** | | [optional] +**Keywords** | Pointer to **[]string** | | [optional] +**SlashCommands** | Pointer to **[]string** | | [optional] +**CreatedAt** | Pointer to **time.Time** | | [optional] +**UpdatedAt** | Pointer to **time.Time** | | [optional] + +## Methods + +### NewGetSlackBot200ResponseBot + +`func NewGetSlackBot200ResponseBot() *GetSlackBot200ResponseBot` + +NewGetSlackBot200ResponseBot instantiates a new GetSlackBot200ResponseBot 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 + +### NewGetSlackBot200ResponseBotWithDefaults + +`func NewGetSlackBot200ResponseBotWithDefaults() *GetSlackBot200ResponseBot` + +NewGetSlackBot200ResponseBotWithDefaults instantiates a new GetSlackBot200ResponseBot 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 + +### GetBotId + +`func (o *GetSlackBot200ResponseBot) GetBotId() string` + +GetBotId returns the BotId field if non-nil, zero value otherwise. + +### GetBotIdOk + +`func (o *GetSlackBot200ResponseBot) GetBotIdOk() (*string, bool)` + +GetBotIdOk returns a tuple with the BotId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetBotId + +`func (o *GetSlackBot200ResponseBot) SetBotId(v string)` + +SetBotId sets BotId field to given value. + +### HasBotId + +`func (o *GetSlackBot200ResponseBot) HasBotId() bool` + +HasBotId returns a boolean if a field has been set. + +### GetAgentId + +`func (o *GetSlackBot200ResponseBot) GetAgentId() string` + +GetAgentId returns the AgentId field if non-nil, zero value otherwise. + +### GetAgentIdOk + +`func (o *GetSlackBot200ResponseBot) GetAgentIdOk() (*string, bool)` + +GetAgentIdOk returns a tuple with the AgentId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAgentId + +`func (o *GetSlackBot200ResponseBot) SetAgentId(v string)` + +SetAgentId sets AgentId field to given value. + +### HasAgentId + +`func (o *GetSlackBot200ResponseBot) HasAgentId() bool` + +HasAgentId returns a boolean if a field has been set. + +### GetSetupType + +`func (o *GetSlackBot200ResponseBot) GetSetupType() string` + +GetSetupType returns the SetupType field if non-nil, zero value otherwise. + +### GetSetupTypeOk + +`func (o *GetSlackBot200ResponseBot) GetSetupTypeOk() (*string, bool)` + +GetSetupTypeOk returns a tuple with the SetupType field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSetupType + +`func (o *GetSlackBot200ResponseBot) SetSetupType(v string)` + +SetSetupType sets SetupType field to given value. + +### HasSetupType + +`func (o *GetSlackBot200ResponseBot) HasSetupType() bool` + +HasSetupType returns a boolean if a field has been set. + +### GetStatus + +`func (o *GetSlackBot200ResponseBot) GetStatus() string` + +GetStatus returns the Status field if non-nil, zero value otherwise. + +### GetStatusOk + +`func (o *GetSlackBot200ResponseBot) GetStatusOk() (*string, bool)` + +GetStatusOk returns a tuple with the Status field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetStatus + +`func (o *GetSlackBot200ResponseBot) SetStatus(v string)` + +SetStatus sets Status field to given value. + +### HasStatus + +`func (o *GetSlackBot200ResponseBot) HasStatus() bool` + +HasStatus returns a boolean if a field has been set. + +### GetConnected + +`func (o *GetSlackBot200ResponseBot) GetConnected() bool` + +GetConnected returns the Connected field if non-nil, zero value otherwise. + +### GetConnectedOk + +`func (o *GetSlackBot200ResponseBot) GetConnectedOk() (*bool, bool)` + +GetConnectedOk returns a tuple with the Connected field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetConnected + +`func (o *GetSlackBot200ResponseBot) SetConnected(v bool)` + +SetConnected sets Connected field to given value. + +### HasConnected + +`func (o *GetSlackBot200ResponseBot) HasConnected() bool` + +HasConnected returns a boolean if a field has been set. + +### GetSessionTtlDays + +`func (o *GetSlackBot200ResponseBot) GetSessionTtlDays() int32` + +GetSessionTtlDays returns the SessionTtlDays field if non-nil, zero value otherwise. + +### GetSessionTtlDaysOk + +`func (o *GetSlackBot200ResponseBot) GetSessionTtlDaysOk() (*int32, bool)` + +GetSessionTtlDaysOk returns a tuple with the SessionTtlDays field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSessionTtlDays + +`func (o *GetSlackBot200ResponseBot) SetSessionTtlDays(v int32)` + +SetSessionTtlDays sets SessionTtlDays field to given value. + +### HasSessionTtlDays + +`func (o *GetSlackBot200ResponseBot) HasSessionTtlDays() bool` + +HasSessionTtlDays returns a boolean if a field has been set. + +### GetAllowedChannels + +`func (o *GetSlackBot200ResponseBot) GetAllowedChannels() []string` + +GetAllowedChannels returns the AllowedChannels field if non-nil, zero value otherwise. + +### GetAllowedChannelsOk + +`func (o *GetSlackBot200ResponseBot) GetAllowedChannelsOk() (*[]string, bool)` + +GetAllowedChannelsOk returns a tuple with the AllowedChannels field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAllowedChannels + +`func (o *GetSlackBot200ResponseBot) SetAllowedChannels(v []string)` + +SetAllowedChannels sets AllowedChannels field to given value. + +### HasAllowedChannels + +`func (o *GetSlackBot200ResponseBot) HasAllowedChannels() bool` + +HasAllowedChannels returns a boolean if a field has been set. + +### GetKeywordsEnabled + +`func (o *GetSlackBot200ResponseBot) GetKeywordsEnabled() bool` + +GetKeywordsEnabled returns the KeywordsEnabled field if non-nil, zero value otherwise. + +### GetKeywordsEnabledOk + +`func (o *GetSlackBot200ResponseBot) GetKeywordsEnabledOk() (*bool, bool)` + +GetKeywordsEnabledOk returns a tuple with the KeywordsEnabled field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetKeywordsEnabled + +`func (o *GetSlackBot200ResponseBot) SetKeywordsEnabled(v bool)` + +SetKeywordsEnabled sets KeywordsEnabled field to given value. + +### HasKeywordsEnabled + +`func (o *GetSlackBot200ResponseBot) HasKeywordsEnabled() bool` + +HasKeywordsEnabled returns a boolean if a field has been set. + +### GetKeywords + +`func (o *GetSlackBot200ResponseBot) GetKeywords() []string` + +GetKeywords returns the Keywords field if non-nil, zero value otherwise. + +### GetKeywordsOk + +`func (o *GetSlackBot200ResponseBot) GetKeywordsOk() (*[]string, bool)` + +GetKeywordsOk returns a tuple with the Keywords field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetKeywords + +`func (o *GetSlackBot200ResponseBot) SetKeywords(v []string)` + +SetKeywords sets Keywords field to given value. + +### HasKeywords + +`func (o *GetSlackBot200ResponseBot) HasKeywords() bool` + +HasKeywords returns a boolean if a field has been set. + +### GetSlashCommands + +`func (o *GetSlackBot200ResponseBot) GetSlashCommands() []string` + +GetSlashCommands returns the SlashCommands field if non-nil, zero value otherwise. + +### GetSlashCommandsOk + +`func (o *GetSlackBot200ResponseBot) GetSlashCommandsOk() (*[]string, bool)` + +GetSlashCommandsOk returns a tuple with the SlashCommands field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSlashCommands + +`func (o *GetSlackBot200ResponseBot) SetSlashCommands(v []string)` + +SetSlashCommands sets SlashCommands field to given value. + +### HasSlashCommands + +`func (o *GetSlackBot200ResponseBot) HasSlashCommands() bool` + +HasSlashCommands returns a boolean if a field has been set. + +### GetCreatedAt + +`func (o *GetSlackBot200ResponseBot) GetCreatedAt() time.Time` + +GetCreatedAt returns the CreatedAt field if non-nil, zero value otherwise. + +### GetCreatedAtOk + +`func (o *GetSlackBot200ResponseBot) 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 *GetSlackBot200ResponseBot) SetCreatedAt(v time.Time)` + +SetCreatedAt sets CreatedAt field to given value. + +### HasCreatedAt + +`func (o *GetSlackBot200ResponseBot) HasCreatedAt() bool` + +HasCreatedAt returns a boolean if a field has been set. + +### GetUpdatedAt + +`func (o *GetSlackBot200ResponseBot) GetUpdatedAt() time.Time` + +GetUpdatedAt returns the UpdatedAt field if non-nil, zero value otherwise. + +### GetUpdatedAtOk + +`func (o *GetSlackBot200ResponseBot) 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 *GetSlackBot200ResponseBot) SetUpdatedAt(v time.Time)` + +SetUpdatedAt sets UpdatedAt field to given value. + +### HasUpdatedAt + +`func (o *GetSlackBot200ResponseBot) 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/ListAIAgents200ResponseAgentsInner.md b/docs/ListAIAgents200ResponseAgentsInner.md index b31df1d..d10a340 100644 --- a/docs/ListAIAgents200ResponseAgentsInner.md +++ b/docs/ListAIAgents200ResponseAgentsInner.md @@ -12,6 +12,11 @@ Name | Type | Description | Notes **Temperature** | Pointer to **float32** | | [optional] **MaxTokens** | Pointer to **int32** | | [optional] **AllowedTools** | Pointer to **[]string** | | [optional] +**AssignedSkills** | Pointer to **[]string** | | [optional] +**LongContext** | Pointer to **bool** | | [optional] +**GuardrailPreset** | Pointer to **string** | | [optional] +**IsGlobal** | Pointer to **bool** | | [optional] +**HasOverlay** | Pointer to **bool** | | [optional] **CreatedAt** | Pointer to **time.Time** | | [optional] **UpdatedAt** | Pointer to **time.Time** | | [optional] @@ -234,6 +239,131 @@ SetAllowedTools sets AllowedTools field to given value. HasAllowedTools returns a boolean if a field has been set. +### GetAssignedSkills + +`func (o *ListAIAgents200ResponseAgentsInner) GetAssignedSkills() []string` + +GetAssignedSkills returns the AssignedSkills field if non-nil, zero value otherwise. + +### GetAssignedSkillsOk + +`func (o *ListAIAgents200ResponseAgentsInner) GetAssignedSkillsOk() (*[]string, bool)` + +GetAssignedSkillsOk returns a tuple with the AssignedSkills field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAssignedSkills + +`func (o *ListAIAgents200ResponseAgentsInner) SetAssignedSkills(v []string)` + +SetAssignedSkills sets AssignedSkills field to given value. + +### HasAssignedSkills + +`func (o *ListAIAgents200ResponseAgentsInner) HasAssignedSkills() bool` + +HasAssignedSkills returns a boolean if a field has been set. + +### GetLongContext + +`func (o *ListAIAgents200ResponseAgentsInner) GetLongContext() bool` + +GetLongContext returns the LongContext field if non-nil, zero value otherwise. + +### GetLongContextOk + +`func (o *ListAIAgents200ResponseAgentsInner) 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 *ListAIAgents200ResponseAgentsInner) SetLongContext(v bool)` + +SetLongContext sets LongContext field to given value. + +### HasLongContext + +`func (o *ListAIAgents200ResponseAgentsInner) HasLongContext() bool` + +HasLongContext returns a boolean if a field has been set. + +### GetGuardrailPreset + +`func (o *ListAIAgents200ResponseAgentsInner) GetGuardrailPreset() string` + +GetGuardrailPreset returns the GuardrailPreset field if non-nil, zero value otherwise. + +### GetGuardrailPresetOk + +`func (o *ListAIAgents200ResponseAgentsInner) GetGuardrailPresetOk() (*string, bool)` + +GetGuardrailPresetOk returns a tuple with the GuardrailPreset field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetGuardrailPreset + +`func (o *ListAIAgents200ResponseAgentsInner) SetGuardrailPreset(v string)` + +SetGuardrailPreset sets GuardrailPreset field to given value. + +### HasGuardrailPreset + +`func (o *ListAIAgents200ResponseAgentsInner) HasGuardrailPreset() bool` + +HasGuardrailPreset returns a boolean if a field has been set. + +### GetIsGlobal + +`func (o *ListAIAgents200ResponseAgentsInner) GetIsGlobal() bool` + +GetIsGlobal returns the IsGlobal field if non-nil, zero value otherwise. + +### GetIsGlobalOk + +`func (o *ListAIAgents200ResponseAgentsInner) GetIsGlobalOk() (*bool, bool)` + +GetIsGlobalOk returns a tuple with the IsGlobal field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetIsGlobal + +`func (o *ListAIAgents200ResponseAgentsInner) SetIsGlobal(v bool)` + +SetIsGlobal sets IsGlobal field to given value. + +### HasIsGlobal + +`func (o *ListAIAgents200ResponseAgentsInner) HasIsGlobal() bool` + +HasIsGlobal returns a boolean if a field has been set. + +### GetHasOverlay + +`func (o *ListAIAgents200ResponseAgentsInner) GetHasOverlay() bool` + +GetHasOverlay returns the HasOverlay field if non-nil, zero value otherwise. + +### GetHasOverlayOk + +`func (o *ListAIAgents200ResponseAgentsInner) GetHasOverlayOk() (*bool, bool)` + +GetHasOverlayOk returns a tuple with the HasOverlay field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetHasOverlay + +`func (o *ListAIAgents200ResponseAgentsInner) SetHasOverlay(v bool)` + +SetHasOverlay sets HasOverlay field to given value. + +### HasHasOverlay + +`func (o *ListAIAgents200ResponseAgentsInner) HasHasOverlay() bool` + +HasHasOverlay returns a boolean if a field has been set. + ### GetCreatedAt `func (o *ListAIAgents200ResponseAgentsInner) GetCreatedAt() time.Time` diff --git a/docs/ListSlackBots200Response.md b/docs/ListSlackBots200Response.md new file mode 100644 index 0000000..d01fe6d --- /dev/null +++ b/docs/ListSlackBots200Response.md @@ -0,0 +1,56 @@ +# ListSlackBots200Response + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Bots** | Pointer to [**[]ListSlackBots200ResponseBotsInner**](ListSlackBots200ResponseBotsInner.md) | | [optional] + +## Methods + +### NewListSlackBots200Response + +`func NewListSlackBots200Response() *ListSlackBots200Response` + +NewListSlackBots200Response instantiates a new ListSlackBots200Response 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 + +### NewListSlackBots200ResponseWithDefaults + +`func NewListSlackBots200ResponseWithDefaults() *ListSlackBots200Response` + +NewListSlackBots200ResponseWithDefaults instantiates a new ListSlackBots200Response 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 + +### GetBots + +`func (o *ListSlackBots200Response) GetBots() []ListSlackBots200ResponseBotsInner` + +GetBots returns the Bots field if non-nil, zero value otherwise. + +### GetBotsOk + +`func (o *ListSlackBots200Response) GetBotsOk() (*[]ListSlackBots200ResponseBotsInner, bool)` + +GetBotsOk returns a tuple with the Bots field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetBots + +`func (o *ListSlackBots200Response) SetBots(v []ListSlackBots200ResponseBotsInner)` + +SetBots sets Bots field to given value. + +### HasBots + +`func (o *ListSlackBots200Response) HasBots() bool` + +HasBots 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/ListSlackBots200ResponseBotsInner.md b/docs/ListSlackBots200ResponseBotsInner.md new file mode 100644 index 0000000..b3f6716 --- /dev/null +++ b/docs/ListSlackBots200ResponseBotsInner.md @@ -0,0 +1,238 @@ +# ListSlackBots200ResponseBotsInner + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**BotId** | Pointer to **string** | | [optional] +**AgentId** | Pointer to **string** | | [optional] +**SetupType** | Pointer to **string** | | [optional] +**Status** | Pointer to **string** | | [optional] +**Connected** | Pointer to **bool** | | [optional] +**SessionTtlDays** | Pointer to **int32** | | [optional] +**KeywordsEnabled** | Pointer to **bool** | | [optional] +**CreatedAt** | Pointer to **time.Time** | | [optional] + +## Methods + +### NewListSlackBots200ResponseBotsInner + +`func NewListSlackBots200ResponseBotsInner() *ListSlackBots200ResponseBotsInner` + +NewListSlackBots200ResponseBotsInner instantiates a new ListSlackBots200ResponseBotsInner 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 + +### NewListSlackBots200ResponseBotsInnerWithDefaults + +`func NewListSlackBots200ResponseBotsInnerWithDefaults() *ListSlackBots200ResponseBotsInner` + +NewListSlackBots200ResponseBotsInnerWithDefaults instantiates a new ListSlackBots200ResponseBotsInner 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 + +### GetBotId + +`func (o *ListSlackBots200ResponseBotsInner) GetBotId() string` + +GetBotId returns the BotId field if non-nil, zero value otherwise. + +### GetBotIdOk + +`func (o *ListSlackBots200ResponseBotsInner) GetBotIdOk() (*string, bool)` + +GetBotIdOk returns a tuple with the BotId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetBotId + +`func (o *ListSlackBots200ResponseBotsInner) SetBotId(v string)` + +SetBotId sets BotId field to given value. + +### HasBotId + +`func (o *ListSlackBots200ResponseBotsInner) HasBotId() bool` + +HasBotId returns a boolean if a field has been set. + +### GetAgentId + +`func (o *ListSlackBots200ResponseBotsInner) GetAgentId() string` + +GetAgentId returns the AgentId field if non-nil, zero value otherwise. + +### GetAgentIdOk + +`func (o *ListSlackBots200ResponseBotsInner) GetAgentIdOk() (*string, bool)` + +GetAgentIdOk returns a tuple with the AgentId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAgentId + +`func (o *ListSlackBots200ResponseBotsInner) SetAgentId(v string)` + +SetAgentId sets AgentId field to given value. + +### HasAgentId + +`func (o *ListSlackBots200ResponseBotsInner) HasAgentId() bool` + +HasAgentId returns a boolean if a field has been set. + +### GetSetupType + +`func (o *ListSlackBots200ResponseBotsInner) GetSetupType() string` + +GetSetupType returns the SetupType field if non-nil, zero value otherwise. + +### GetSetupTypeOk + +`func (o *ListSlackBots200ResponseBotsInner) GetSetupTypeOk() (*string, bool)` + +GetSetupTypeOk returns a tuple with the SetupType field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSetupType + +`func (o *ListSlackBots200ResponseBotsInner) SetSetupType(v string)` + +SetSetupType sets SetupType field to given value. + +### HasSetupType + +`func (o *ListSlackBots200ResponseBotsInner) HasSetupType() bool` + +HasSetupType returns a boolean if a field has been set. + +### GetStatus + +`func (o *ListSlackBots200ResponseBotsInner) GetStatus() string` + +GetStatus returns the Status field if non-nil, zero value otherwise. + +### GetStatusOk + +`func (o *ListSlackBots200ResponseBotsInner) GetStatusOk() (*string, bool)` + +GetStatusOk returns a tuple with the Status field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetStatus + +`func (o *ListSlackBots200ResponseBotsInner) SetStatus(v string)` + +SetStatus sets Status field to given value. + +### HasStatus + +`func (o *ListSlackBots200ResponseBotsInner) HasStatus() bool` + +HasStatus returns a boolean if a field has been set. + +### GetConnected + +`func (o *ListSlackBots200ResponseBotsInner) GetConnected() bool` + +GetConnected returns the Connected field if non-nil, zero value otherwise. + +### GetConnectedOk + +`func (o *ListSlackBots200ResponseBotsInner) GetConnectedOk() (*bool, bool)` + +GetConnectedOk returns a tuple with the Connected field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetConnected + +`func (o *ListSlackBots200ResponseBotsInner) SetConnected(v bool)` + +SetConnected sets Connected field to given value. + +### HasConnected + +`func (o *ListSlackBots200ResponseBotsInner) HasConnected() bool` + +HasConnected returns a boolean if a field has been set. + +### GetSessionTtlDays + +`func (o *ListSlackBots200ResponseBotsInner) GetSessionTtlDays() int32` + +GetSessionTtlDays returns the SessionTtlDays field if non-nil, zero value otherwise. + +### GetSessionTtlDaysOk + +`func (o *ListSlackBots200ResponseBotsInner) GetSessionTtlDaysOk() (*int32, bool)` + +GetSessionTtlDaysOk returns a tuple with the SessionTtlDays field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSessionTtlDays + +`func (o *ListSlackBots200ResponseBotsInner) SetSessionTtlDays(v int32)` + +SetSessionTtlDays sets SessionTtlDays field to given value. + +### HasSessionTtlDays + +`func (o *ListSlackBots200ResponseBotsInner) HasSessionTtlDays() bool` + +HasSessionTtlDays returns a boolean if a field has been set. + +### GetKeywordsEnabled + +`func (o *ListSlackBots200ResponseBotsInner) GetKeywordsEnabled() bool` + +GetKeywordsEnabled returns the KeywordsEnabled field if non-nil, zero value otherwise. + +### GetKeywordsEnabledOk + +`func (o *ListSlackBots200ResponseBotsInner) GetKeywordsEnabledOk() (*bool, bool)` + +GetKeywordsEnabledOk returns a tuple with the KeywordsEnabled field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetKeywordsEnabled + +`func (o *ListSlackBots200ResponseBotsInner) SetKeywordsEnabled(v bool)` + +SetKeywordsEnabled sets KeywordsEnabled field to given value. + +### HasKeywordsEnabled + +`func (o *ListSlackBots200ResponseBotsInner) HasKeywordsEnabled() bool` + +HasKeywordsEnabled returns a boolean if a field has been set. + +### GetCreatedAt + +`func (o *ListSlackBots200ResponseBotsInner) GetCreatedAt() time.Time` + +GetCreatedAt returns the CreatedAt field if non-nil, zero value otherwise. + +### GetCreatedAtOk + +`func (o *ListSlackBots200ResponseBotsInner) 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 *ListSlackBots200ResponseBotsInner) SetCreatedAt(v time.Time)` + +SetCreatedAt sets CreatedAt field to given value. + +### HasCreatedAt + +`func (o *ListSlackBots200ResponseBotsInner) 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/SearchSlackWorkspaceChannels200Response.md b/docs/SearchSlackWorkspaceChannels200Response.md new file mode 100644 index 0000000..7f1e548 --- /dev/null +++ b/docs/SearchSlackWorkspaceChannels200Response.md @@ -0,0 +1,56 @@ +# SearchSlackWorkspaceChannels200Response + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Results** | Pointer to [**[]SearchSlackWorkspaceChannels200ResponseResultsInner**](SearchSlackWorkspaceChannels200ResponseResultsInner.md) | | [optional] + +## Methods + +### NewSearchSlackWorkspaceChannels200Response + +`func NewSearchSlackWorkspaceChannels200Response() *SearchSlackWorkspaceChannels200Response` + +NewSearchSlackWorkspaceChannels200Response instantiates a new SearchSlackWorkspaceChannels200Response 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 + +### NewSearchSlackWorkspaceChannels200ResponseWithDefaults + +`func NewSearchSlackWorkspaceChannels200ResponseWithDefaults() *SearchSlackWorkspaceChannels200Response` + +NewSearchSlackWorkspaceChannels200ResponseWithDefaults instantiates a new SearchSlackWorkspaceChannels200Response 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 + +### GetResults + +`func (o *SearchSlackWorkspaceChannels200Response) GetResults() []SearchSlackWorkspaceChannels200ResponseResultsInner` + +GetResults returns the Results field if non-nil, zero value otherwise. + +### GetResultsOk + +`func (o *SearchSlackWorkspaceChannels200Response) GetResultsOk() (*[]SearchSlackWorkspaceChannels200ResponseResultsInner, bool)` + +GetResultsOk returns a tuple with the Results field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetResults + +`func (o *SearchSlackWorkspaceChannels200Response) SetResults(v []SearchSlackWorkspaceChannels200ResponseResultsInner)` + +SetResults sets Results field to given value. + +### HasResults + +`func (o *SearchSlackWorkspaceChannels200Response) HasResults() bool` + +HasResults 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/SearchSlackWorkspaceChannels200ResponseResultsInner.md b/docs/SearchSlackWorkspaceChannels200ResponseResultsInner.md new file mode 100644 index 0000000..d565cc2 --- /dev/null +++ b/docs/SearchSlackWorkspaceChannels200ResponseResultsInner.md @@ -0,0 +1,82 @@ +# SearchSlackWorkspaceChannels200ResponseResultsInner + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Id** | Pointer to **string** | | [optional] +**Name** | Pointer to **string** | | [optional] + +## Methods + +### NewSearchSlackWorkspaceChannels200ResponseResultsInner + +`func NewSearchSlackWorkspaceChannels200ResponseResultsInner() *SearchSlackWorkspaceChannels200ResponseResultsInner` + +NewSearchSlackWorkspaceChannels200ResponseResultsInner instantiates a new SearchSlackWorkspaceChannels200ResponseResultsInner 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 + +### NewSearchSlackWorkspaceChannels200ResponseResultsInnerWithDefaults + +`func NewSearchSlackWorkspaceChannels200ResponseResultsInnerWithDefaults() *SearchSlackWorkspaceChannels200ResponseResultsInner` + +NewSearchSlackWorkspaceChannels200ResponseResultsInnerWithDefaults instantiates a new SearchSlackWorkspaceChannels200ResponseResultsInner 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 *SearchSlackWorkspaceChannels200ResponseResultsInner) GetId() string` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *SearchSlackWorkspaceChannels200ResponseResultsInner) GetIdOk() (*string, 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 *SearchSlackWorkspaceChannels200ResponseResultsInner) SetId(v string)` + +SetId sets Id field to given value. + +### HasId + +`func (o *SearchSlackWorkspaceChannels200ResponseResultsInner) HasId() bool` + +HasId returns a boolean if a field has been set. + +### GetName + +`func (o *SearchSlackWorkspaceChannels200ResponseResultsInner) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *SearchSlackWorkspaceChannels200ResponseResultsInner) 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 *SearchSlackWorkspaceChannels200ResponseResultsInner) SetName(v string)` + +SetName sets Name field to given value. + +### HasName + +`func (o *SearchSlackWorkspaceChannels200ResponseResultsInner) HasName() bool` + +HasName 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/SearchSlackWorkspaceUsers200Response.md b/docs/SearchSlackWorkspaceUsers200Response.md new file mode 100644 index 0000000..95aab42 --- /dev/null +++ b/docs/SearchSlackWorkspaceUsers200Response.md @@ -0,0 +1,56 @@ +# SearchSlackWorkspaceUsers200Response + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Results** | Pointer to [**[]SearchSlackWorkspaceUsers200ResponseResultsInner**](SearchSlackWorkspaceUsers200ResponseResultsInner.md) | | [optional] + +## Methods + +### NewSearchSlackWorkspaceUsers200Response + +`func NewSearchSlackWorkspaceUsers200Response() *SearchSlackWorkspaceUsers200Response` + +NewSearchSlackWorkspaceUsers200Response instantiates a new SearchSlackWorkspaceUsers200Response 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 + +### NewSearchSlackWorkspaceUsers200ResponseWithDefaults + +`func NewSearchSlackWorkspaceUsers200ResponseWithDefaults() *SearchSlackWorkspaceUsers200Response` + +NewSearchSlackWorkspaceUsers200ResponseWithDefaults instantiates a new SearchSlackWorkspaceUsers200Response 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 + +### GetResults + +`func (o *SearchSlackWorkspaceUsers200Response) GetResults() []SearchSlackWorkspaceUsers200ResponseResultsInner` + +GetResults returns the Results field if non-nil, zero value otherwise. + +### GetResultsOk + +`func (o *SearchSlackWorkspaceUsers200Response) GetResultsOk() (*[]SearchSlackWorkspaceUsers200ResponseResultsInner, bool)` + +GetResultsOk returns a tuple with the Results field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetResults + +`func (o *SearchSlackWorkspaceUsers200Response) SetResults(v []SearchSlackWorkspaceUsers200ResponseResultsInner)` + +SetResults sets Results field to given value. + +### HasResults + +`func (o *SearchSlackWorkspaceUsers200Response) HasResults() bool` + +HasResults 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/SearchSlackWorkspaceUsers200ResponseResultsInner.md b/docs/SearchSlackWorkspaceUsers200ResponseResultsInner.md new file mode 100644 index 0000000..383afc5 --- /dev/null +++ b/docs/SearchSlackWorkspaceUsers200ResponseResultsInner.md @@ -0,0 +1,108 @@ +# SearchSlackWorkspaceUsers200ResponseResultsInner + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Id** | Pointer to **string** | | [optional] +**Name** | Pointer to **string** | | [optional] +**RealName** | Pointer to **string** | | [optional] + +## Methods + +### NewSearchSlackWorkspaceUsers200ResponseResultsInner + +`func NewSearchSlackWorkspaceUsers200ResponseResultsInner() *SearchSlackWorkspaceUsers200ResponseResultsInner` + +NewSearchSlackWorkspaceUsers200ResponseResultsInner instantiates a new SearchSlackWorkspaceUsers200ResponseResultsInner 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 + +### NewSearchSlackWorkspaceUsers200ResponseResultsInnerWithDefaults + +`func NewSearchSlackWorkspaceUsers200ResponseResultsInnerWithDefaults() *SearchSlackWorkspaceUsers200ResponseResultsInner` + +NewSearchSlackWorkspaceUsers200ResponseResultsInnerWithDefaults instantiates a new SearchSlackWorkspaceUsers200ResponseResultsInner 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 *SearchSlackWorkspaceUsers200ResponseResultsInner) GetId() string` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *SearchSlackWorkspaceUsers200ResponseResultsInner) GetIdOk() (*string, 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 *SearchSlackWorkspaceUsers200ResponseResultsInner) SetId(v string)` + +SetId sets Id field to given value. + +### HasId + +`func (o *SearchSlackWorkspaceUsers200ResponseResultsInner) HasId() bool` + +HasId returns a boolean if a field has been set. + +### GetName + +`func (o *SearchSlackWorkspaceUsers200ResponseResultsInner) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *SearchSlackWorkspaceUsers200ResponseResultsInner) 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 *SearchSlackWorkspaceUsers200ResponseResultsInner) SetName(v string)` + +SetName sets Name field to given value. + +### HasName + +`func (o *SearchSlackWorkspaceUsers200ResponseResultsInner) HasName() bool` + +HasName returns a boolean if a field has been set. + +### GetRealName + +`func (o *SearchSlackWorkspaceUsers200ResponseResultsInner) GetRealName() string` + +GetRealName returns the RealName field if non-nil, zero value otherwise. + +### GetRealNameOk + +`func (o *SearchSlackWorkspaceUsers200ResponseResultsInner) GetRealNameOk() (*string, bool)` + +GetRealNameOk returns a tuple with the RealName field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRealName + +`func (o *SearchSlackWorkspaceUsers200ResponseResultsInner) SetRealName(v string)` + +SetRealName sets RealName field to given value. + +### HasRealName + +`func (o *SearchSlackWorkspaceUsers200ResponseResultsInner) HasRealName() bool` + +HasRealName 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/UpdateAIAgentRequest.md b/docs/UpdateAIAgentRequest.md index c928074..559e4ae 100644 --- a/docs/UpdateAIAgentRequest.md +++ b/docs/UpdateAIAgentRequest.md @@ -13,6 +13,10 @@ Name | Type | Description | Notes **MaxTokens** | Pointer to **int32** | | [optional] **AllowedTools** | Pointer to **[]string** | | [optional] **AllowedCollections** | Pointer to **[]string** | | [optional] +**AssignedSkills** | Pointer to **[]string** | Skill IDs to assign to this agent | [optional] +**LongContext** | Pointer to **bool** | Enable 1M context window support | [optional] +**GuardrailPreset** | Pointer to **string** | Guardrail preset name | [optional] +**FilterPolicies** | Pointer to **[]string** | Filter policy IDs to apply to this agent's inference requests | [optional] ## Methods @@ -258,6 +262,106 @@ SetAllowedCollections sets AllowedCollections field to given value. HasAllowedCollections returns a boolean if a field has been set. +### GetAssignedSkills + +`func (o *UpdateAIAgentRequest) GetAssignedSkills() []string` + +GetAssignedSkills returns the AssignedSkills field if non-nil, zero value otherwise. + +### GetAssignedSkillsOk + +`func (o *UpdateAIAgentRequest) GetAssignedSkillsOk() (*[]string, bool)` + +GetAssignedSkillsOk returns a tuple with the AssignedSkills field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAssignedSkills + +`func (o *UpdateAIAgentRequest) SetAssignedSkills(v []string)` + +SetAssignedSkills sets AssignedSkills field to given value. + +### HasAssignedSkills + +`func (o *UpdateAIAgentRequest) HasAssignedSkills() bool` + +HasAssignedSkills returns a boolean if a field has been set. + +### GetLongContext + +`func (o *UpdateAIAgentRequest) GetLongContext() bool` + +GetLongContext returns the LongContext field if non-nil, zero value otherwise. + +### GetLongContextOk + +`func (o *UpdateAIAgentRequest) 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 *UpdateAIAgentRequest) SetLongContext(v bool)` + +SetLongContext sets LongContext field to given value. + +### HasLongContext + +`func (o *UpdateAIAgentRequest) HasLongContext() bool` + +HasLongContext returns a boolean if a field has been set. + +### GetGuardrailPreset + +`func (o *UpdateAIAgentRequest) GetGuardrailPreset() string` + +GetGuardrailPreset returns the GuardrailPreset field if non-nil, zero value otherwise. + +### GetGuardrailPresetOk + +`func (o *UpdateAIAgentRequest) GetGuardrailPresetOk() (*string, bool)` + +GetGuardrailPresetOk returns a tuple with the GuardrailPreset field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetGuardrailPreset + +`func (o *UpdateAIAgentRequest) SetGuardrailPreset(v string)` + +SetGuardrailPreset sets GuardrailPreset field to given value. + +### HasGuardrailPreset + +`func (o *UpdateAIAgentRequest) HasGuardrailPreset() bool` + +HasGuardrailPreset returns a boolean if a field has been set. + +### GetFilterPolicies + +`func (o *UpdateAIAgentRequest) GetFilterPolicies() []string` + +GetFilterPolicies returns the FilterPolicies field if non-nil, zero value otherwise. + +### GetFilterPoliciesOk + +`func (o *UpdateAIAgentRequest) GetFilterPoliciesOk() (*[]string, bool)` + +GetFilterPoliciesOk returns a tuple with the FilterPolicies field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetFilterPolicies + +`func (o *UpdateAIAgentRequest) SetFilterPolicies(v []string)` + +SetFilterPolicies sets FilterPolicies field to given value. + +### HasFilterPolicies + +`func (o *UpdateAIAgentRequest) HasFilterPolicies() bool` + +HasFilterPolicies 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/UpdateFilterPolicyRequest.md b/docs/UpdateFilterPolicyRequest.md new file mode 100644 index 0000000..d140c5c --- /dev/null +++ b/docs/UpdateFilterPolicyRequest.md @@ -0,0 +1,144 @@ +# UpdateFilterPolicyRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Name** | Pointer to **string** | | [optional] +**Description** | Pointer to **NullableString** | | [optional] +**Enabled** | Pointer to **bool** | | [optional] +**Rules** | Pointer to [**[]CreateFilterPolicyRequestRulesInner**](CreateFilterPolicyRequestRulesInner.md) | | [optional] + +## Methods + +### NewUpdateFilterPolicyRequest + +`func NewUpdateFilterPolicyRequest() *UpdateFilterPolicyRequest` + +NewUpdateFilterPolicyRequest instantiates a new UpdateFilterPolicyRequest 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 + +### NewUpdateFilterPolicyRequestWithDefaults + +`func NewUpdateFilterPolicyRequestWithDefaults() *UpdateFilterPolicyRequest` + +NewUpdateFilterPolicyRequestWithDefaults instantiates a new UpdateFilterPolicyRequest 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 *UpdateFilterPolicyRequest) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *UpdateFilterPolicyRequest) 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 *UpdateFilterPolicyRequest) SetName(v string)` + +SetName sets Name field to given value. + +### HasName + +`func (o *UpdateFilterPolicyRequest) HasName() bool` + +HasName returns a boolean if a field has been set. + +### GetDescription + +`func (o *UpdateFilterPolicyRequest) GetDescription() string` + +GetDescription returns the Description field if non-nil, zero value otherwise. + +### GetDescriptionOk + +`func (o *UpdateFilterPolicyRequest) 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 *UpdateFilterPolicyRequest) SetDescription(v string)` + +SetDescription sets Description field to given value. + +### HasDescription + +`func (o *UpdateFilterPolicyRequest) HasDescription() bool` + +HasDescription returns a boolean if a field has been set. + +### SetDescriptionNil + +`func (o *UpdateFilterPolicyRequest) SetDescriptionNil(b bool)` + + SetDescriptionNil sets the value for Description to be an explicit nil + +### UnsetDescription +`func (o *UpdateFilterPolicyRequest) UnsetDescription()` + +UnsetDescription ensures that no value is present for Description, not even an explicit nil +### GetEnabled + +`func (o *UpdateFilterPolicyRequest) GetEnabled() bool` + +GetEnabled returns the Enabled field if non-nil, zero value otherwise. + +### GetEnabledOk + +`func (o *UpdateFilterPolicyRequest) GetEnabledOk() (*bool, bool)` + +GetEnabledOk returns a tuple with the Enabled field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetEnabled + +`func (o *UpdateFilterPolicyRequest) SetEnabled(v bool)` + +SetEnabled sets Enabled field to given value. + +### HasEnabled + +`func (o *UpdateFilterPolicyRequest) HasEnabled() bool` + +HasEnabled returns a boolean if a field has been set. + +### GetRules + +`func (o *UpdateFilterPolicyRequest) GetRules() []CreateFilterPolicyRequestRulesInner` + +GetRules returns the Rules field if non-nil, zero value otherwise. + +### GetRulesOk + +`func (o *UpdateFilterPolicyRequest) GetRulesOk() (*[]CreateFilterPolicyRequestRulesInner, bool)` + +GetRulesOk returns a tuple with the Rules field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRules + +`func (o *UpdateFilterPolicyRequest) SetRules(v []CreateFilterPolicyRequestRulesInner)` + +SetRules sets Rules field to given value. + +### HasRules + +`func (o *UpdateFilterPolicyRequest) HasRules() bool` + +HasRules 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/UpdateGovernanceConfig200Response.md b/docs/UpdateGovernanceConfig200Response.md new file mode 100644 index 0000000..41f32a1 --- /dev/null +++ b/docs/UpdateGovernanceConfig200Response.md @@ -0,0 +1,82 @@ +# UpdateGovernanceConfig200Response + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Success** | Pointer to **bool** | | [optional] +**Config** | Pointer to **map[string]interface{}** | | [optional] + +## Methods + +### NewUpdateGovernanceConfig200Response + +`func NewUpdateGovernanceConfig200Response() *UpdateGovernanceConfig200Response` + +NewUpdateGovernanceConfig200Response instantiates a new UpdateGovernanceConfig200Response 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 + +### NewUpdateGovernanceConfig200ResponseWithDefaults + +`func NewUpdateGovernanceConfig200ResponseWithDefaults() *UpdateGovernanceConfig200Response` + +NewUpdateGovernanceConfig200ResponseWithDefaults instantiates a new UpdateGovernanceConfig200Response 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 *UpdateGovernanceConfig200Response) GetSuccess() bool` + +GetSuccess returns the Success field if non-nil, zero value otherwise. + +### GetSuccessOk + +`func (o *UpdateGovernanceConfig200Response) 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 *UpdateGovernanceConfig200Response) SetSuccess(v bool)` + +SetSuccess sets Success field to given value. + +### HasSuccess + +`func (o *UpdateGovernanceConfig200Response) HasSuccess() bool` + +HasSuccess returns a boolean if a field has been set. + +### GetConfig + +`func (o *UpdateGovernanceConfig200Response) GetConfig() map[string]interface{}` + +GetConfig returns the Config field if non-nil, zero value otherwise. + +### GetConfigOk + +`func (o *UpdateGovernanceConfig200Response) GetConfigOk() (*map[string]interface{}, bool)` + +GetConfigOk returns a tuple with the Config field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetConfig + +`func (o *UpdateGovernanceConfig200Response) SetConfig(v map[string]interface{})` + +SetConfig sets Config field to given value. + +### HasConfig + +`func (o *UpdateGovernanceConfig200Response) HasConfig() bool` + +HasConfig 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/UpdateGovernanceConfigRequest.md b/docs/UpdateGovernanceConfigRequest.md new file mode 100644 index 0000000..add975d --- /dev/null +++ b/docs/UpdateGovernanceConfigRequest.md @@ -0,0 +1,212 @@ +# UpdateGovernanceConfigRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**AiEnabled** | **bool** | | +**ModelPolicy** | **string** | | +**ModelList** | Pointer to **[]string** | | [optional] +**MandatoryGuardrailPreset** | Pointer to **NullableString** | | [optional] +**MandatoryFilterPolicies** | Pointer to **[]string** | | [optional] +**SpendLimits** | Pointer to **map[string]interface{}** | | [optional] +**Version** | Pointer to **int32** | | [optional] + +## Methods + +### NewUpdateGovernanceConfigRequest + +`func NewUpdateGovernanceConfigRequest(aiEnabled bool, modelPolicy string, ) *UpdateGovernanceConfigRequest` + +NewUpdateGovernanceConfigRequest instantiates a new UpdateGovernanceConfigRequest 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 + +### NewUpdateGovernanceConfigRequestWithDefaults + +`func NewUpdateGovernanceConfigRequestWithDefaults() *UpdateGovernanceConfigRequest` + +NewUpdateGovernanceConfigRequestWithDefaults instantiates a new UpdateGovernanceConfigRequest 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 + +### GetAiEnabled + +`func (o *UpdateGovernanceConfigRequest) GetAiEnabled() bool` + +GetAiEnabled returns the AiEnabled field if non-nil, zero value otherwise. + +### GetAiEnabledOk + +`func (o *UpdateGovernanceConfigRequest) GetAiEnabledOk() (*bool, bool)` + +GetAiEnabledOk returns a tuple with the AiEnabled field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAiEnabled + +`func (o *UpdateGovernanceConfigRequest) SetAiEnabled(v bool)` + +SetAiEnabled sets AiEnabled field to given value. + + +### GetModelPolicy + +`func (o *UpdateGovernanceConfigRequest) GetModelPolicy() string` + +GetModelPolicy returns the ModelPolicy field if non-nil, zero value otherwise. + +### GetModelPolicyOk + +`func (o *UpdateGovernanceConfigRequest) GetModelPolicyOk() (*string, bool)` + +GetModelPolicyOk returns a tuple with the ModelPolicy field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetModelPolicy + +`func (o *UpdateGovernanceConfigRequest) SetModelPolicy(v string)` + +SetModelPolicy sets ModelPolicy field to given value. + + +### GetModelList + +`func (o *UpdateGovernanceConfigRequest) GetModelList() []string` + +GetModelList returns the ModelList field if non-nil, zero value otherwise. + +### GetModelListOk + +`func (o *UpdateGovernanceConfigRequest) GetModelListOk() (*[]string, bool)` + +GetModelListOk returns a tuple with the ModelList field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetModelList + +`func (o *UpdateGovernanceConfigRequest) SetModelList(v []string)` + +SetModelList sets ModelList field to given value. + +### HasModelList + +`func (o *UpdateGovernanceConfigRequest) HasModelList() bool` + +HasModelList returns a boolean if a field has been set. + +### GetMandatoryGuardrailPreset + +`func (o *UpdateGovernanceConfigRequest) GetMandatoryGuardrailPreset() string` + +GetMandatoryGuardrailPreset returns the MandatoryGuardrailPreset field if non-nil, zero value otherwise. + +### GetMandatoryGuardrailPresetOk + +`func (o *UpdateGovernanceConfigRequest) GetMandatoryGuardrailPresetOk() (*string, bool)` + +GetMandatoryGuardrailPresetOk returns a tuple with the MandatoryGuardrailPreset field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMandatoryGuardrailPreset + +`func (o *UpdateGovernanceConfigRequest) SetMandatoryGuardrailPreset(v string)` + +SetMandatoryGuardrailPreset sets MandatoryGuardrailPreset field to given value. + +### HasMandatoryGuardrailPreset + +`func (o *UpdateGovernanceConfigRequest) HasMandatoryGuardrailPreset() bool` + +HasMandatoryGuardrailPreset returns a boolean if a field has been set. + +### SetMandatoryGuardrailPresetNil + +`func (o *UpdateGovernanceConfigRequest) SetMandatoryGuardrailPresetNil(b bool)` + + SetMandatoryGuardrailPresetNil sets the value for MandatoryGuardrailPreset to be an explicit nil + +### UnsetMandatoryGuardrailPreset +`func (o *UpdateGovernanceConfigRequest) UnsetMandatoryGuardrailPreset()` + +UnsetMandatoryGuardrailPreset ensures that no value is present for MandatoryGuardrailPreset, not even an explicit nil +### GetMandatoryFilterPolicies + +`func (o *UpdateGovernanceConfigRequest) GetMandatoryFilterPolicies() []string` + +GetMandatoryFilterPolicies returns the MandatoryFilterPolicies field if non-nil, zero value otherwise. + +### GetMandatoryFilterPoliciesOk + +`func (o *UpdateGovernanceConfigRequest) GetMandatoryFilterPoliciesOk() (*[]string, bool)` + +GetMandatoryFilterPoliciesOk returns a tuple with the MandatoryFilterPolicies field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMandatoryFilterPolicies + +`func (o *UpdateGovernanceConfigRequest) SetMandatoryFilterPolicies(v []string)` + +SetMandatoryFilterPolicies sets MandatoryFilterPolicies field to given value. + +### HasMandatoryFilterPolicies + +`func (o *UpdateGovernanceConfigRequest) HasMandatoryFilterPolicies() bool` + +HasMandatoryFilterPolicies returns a boolean if a field has been set. + +### GetSpendLimits + +`func (o *UpdateGovernanceConfigRequest) GetSpendLimits() map[string]interface{}` + +GetSpendLimits returns the SpendLimits field if non-nil, zero value otherwise. + +### GetSpendLimitsOk + +`func (o *UpdateGovernanceConfigRequest) GetSpendLimitsOk() (*map[string]interface{}, bool)` + +GetSpendLimitsOk returns a tuple with the SpendLimits field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSpendLimits + +`func (o *UpdateGovernanceConfigRequest) SetSpendLimits(v map[string]interface{})` + +SetSpendLimits sets SpendLimits field to given value. + +### HasSpendLimits + +`func (o *UpdateGovernanceConfigRequest) HasSpendLimits() bool` + +HasSpendLimits returns a boolean if a field has been set. + +### GetVersion + +`func (o *UpdateGovernanceConfigRequest) GetVersion() int32` + +GetVersion returns the Version field if non-nil, zero value otherwise. + +### GetVersionOk + +`func (o *UpdateGovernanceConfigRequest) GetVersionOk() (*int32, 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 *UpdateGovernanceConfigRequest) SetVersion(v int32)` + +SetVersion sets Version field to given value. + +### HasVersion + +`func (o *UpdateGovernanceConfigRequest) 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/UpdateSlackBotRequest.md b/docs/UpdateSlackBotRequest.md new file mode 100644 index 0000000..761b8ef --- /dev/null +++ b/docs/UpdateSlackBotRequest.md @@ -0,0 +1,212 @@ +# UpdateSlackBotRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**AgentId** | Pointer to **string** | Change the backing AI agent | [optional] +**Status** | Pointer to **string** | Enable or disable the bot | [optional] +**SessionTtlDays** | Pointer to **int32** | Session TTL in days | [optional] +**AllowedChannels** | Pointer to **[]string** | Slack channel IDs the bot may respond in | [optional] +**KeywordsEnabled** | Pointer to **bool** | Whether keyword triggers are enabled | [optional] +**Keywords** | Pointer to **[]string** | Keywords that trigger the bot | [optional] +**SlashCommands** | Pointer to **[]string** | Slash commands the bot responds to | [optional] + +## Methods + +### NewUpdateSlackBotRequest + +`func NewUpdateSlackBotRequest() *UpdateSlackBotRequest` + +NewUpdateSlackBotRequest instantiates a new UpdateSlackBotRequest 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 + +### NewUpdateSlackBotRequestWithDefaults + +`func NewUpdateSlackBotRequestWithDefaults() *UpdateSlackBotRequest` + +NewUpdateSlackBotRequestWithDefaults instantiates a new UpdateSlackBotRequest 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 + +### GetAgentId + +`func (o *UpdateSlackBotRequest) GetAgentId() string` + +GetAgentId returns the AgentId field if non-nil, zero value otherwise. + +### GetAgentIdOk + +`func (o *UpdateSlackBotRequest) GetAgentIdOk() (*string, bool)` + +GetAgentIdOk returns a tuple with the AgentId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAgentId + +`func (o *UpdateSlackBotRequest) SetAgentId(v string)` + +SetAgentId sets AgentId field to given value. + +### HasAgentId + +`func (o *UpdateSlackBotRequest) HasAgentId() bool` + +HasAgentId returns a boolean if a field has been set. + +### GetStatus + +`func (o *UpdateSlackBotRequest) GetStatus() string` + +GetStatus returns the Status field if non-nil, zero value otherwise. + +### GetStatusOk + +`func (o *UpdateSlackBotRequest) GetStatusOk() (*string, bool)` + +GetStatusOk returns a tuple with the Status field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetStatus + +`func (o *UpdateSlackBotRequest) SetStatus(v string)` + +SetStatus sets Status field to given value. + +### HasStatus + +`func (o *UpdateSlackBotRequest) HasStatus() bool` + +HasStatus returns a boolean if a field has been set. + +### GetSessionTtlDays + +`func (o *UpdateSlackBotRequest) GetSessionTtlDays() int32` + +GetSessionTtlDays returns the SessionTtlDays field if non-nil, zero value otherwise. + +### GetSessionTtlDaysOk + +`func (o *UpdateSlackBotRequest) GetSessionTtlDaysOk() (*int32, bool)` + +GetSessionTtlDaysOk returns a tuple with the SessionTtlDays field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSessionTtlDays + +`func (o *UpdateSlackBotRequest) SetSessionTtlDays(v int32)` + +SetSessionTtlDays sets SessionTtlDays field to given value. + +### HasSessionTtlDays + +`func (o *UpdateSlackBotRequest) HasSessionTtlDays() bool` + +HasSessionTtlDays returns a boolean if a field has been set. + +### GetAllowedChannels + +`func (o *UpdateSlackBotRequest) GetAllowedChannels() []string` + +GetAllowedChannels returns the AllowedChannels field if non-nil, zero value otherwise. + +### GetAllowedChannelsOk + +`func (o *UpdateSlackBotRequest) GetAllowedChannelsOk() (*[]string, bool)` + +GetAllowedChannelsOk returns a tuple with the AllowedChannels field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAllowedChannels + +`func (o *UpdateSlackBotRequest) SetAllowedChannels(v []string)` + +SetAllowedChannels sets AllowedChannels field to given value. + +### HasAllowedChannels + +`func (o *UpdateSlackBotRequest) HasAllowedChannels() bool` + +HasAllowedChannels returns a boolean if a field has been set. + +### GetKeywordsEnabled + +`func (o *UpdateSlackBotRequest) GetKeywordsEnabled() bool` + +GetKeywordsEnabled returns the KeywordsEnabled field if non-nil, zero value otherwise. + +### GetKeywordsEnabledOk + +`func (o *UpdateSlackBotRequest) GetKeywordsEnabledOk() (*bool, bool)` + +GetKeywordsEnabledOk returns a tuple with the KeywordsEnabled field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetKeywordsEnabled + +`func (o *UpdateSlackBotRequest) SetKeywordsEnabled(v bool)` + +SetKeywordsEnabled sets KeywordsEnabled field to given value. + +### HasKeywordsEnabled + +`func (o *UpdateSlackBotRequest) HasKeywordsEnabled() bool` + +HasKeywordsEnabled returns a boolean if a field has been set. + +### GetKeywords + +`func (o *UpdateSlackBotRequest) GetKeywords() []string` + +GetKeywords returns the Keywords field if non-nil, zero value otherwise. + +### GetKeywordsOk + +`func (o *UpdateSlackBotRequest) GetKeywordsOk() (*[]string, bool)` + +GetKeywordsOk returns a tuple with the Keywords field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetKeywords + +`func (o *UpdateSlackBotRequest) SetKeywords(v []string)` + +SetKeywords sets Keywords field to given value. + +### HasKeywords + +`func (o *UpdateSlackBotRequest) HasKeywords() bool` + +HasKeywords returns a boolean if a field has been set. + +### GetSlashCommands + +`func (o *UpdateSlackBotRequest) GetSlashCommands() []string` + +GetSlashCommands returns the SlashCommands field if non-nil, zero value otherwise. + +### GetSlashCommandsOk + +`func (o *UpdateSlackBotRequest) GetSlashCommandsOk() (*[]string, bool)` + +GetSlashCommandsOk returns a tuple with the SlashCommands field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSlashCommands + +`func (o *UpdateSlackBotRequest) SetSlashCommands(v []string)` + +SetSlashCommands sets SlashCommands field to given value. + +### HasSlashCommands + +`func (o *UpdateSlackBotRequest) HasSlashCommands() bool` + +HasSlashCommands 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/UpsertAgentOverlay200Response.md b/docs/UpsertAgentOverlay200Response.md new file mode 100644 index 0000000..bb4f97e --- /dev/null +++ b/docs/UpsertAgentOverlay200Response.md @@ -0,0 +1,56 @@ +# UpsertAgentOverlay200Response + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Overlay** | Pointer to **map[string]interface{}** | | [optional] + +## Methods + +### NewUpsertAgentOverlay200Response + +`func NewUpsertAgentOverlay200Response() *UpsertAgentOverlay200Response` + +NewUpsertAgentOverlay200Response instantiates a new UpsertAgentOverlay200Response 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 + +### NewUpsertAgentOverlay200ResponseWithDefaults + +`func NewUpsertAgentOverlay200ResponseWithDefaults() *UpsertAgentOverlay200Response` + +NewUpsertAgentOverlay200ResponseWithDefaults instantiates a new UpsertAgentOverlay200Response 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 + +### GetOverlay + +`func (o *UpsertAgentOverlay200Response) GetOverlay() map[string]interface{}` + +GetOverlay returns the Overlay field if non-nil, zero value otherwise. + +### GetOverlayOk + +`func (o *UpsertAgentOverlay200Response) GetOverlayOk() (*map[string]interface{}, bool)` + +GetOverlayOk returns a tuple with the Overlay field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetOverlay + +`func (o *UpsertAgentOverlay200Response) SetOverlay(v map[string]interface{})` + +SetOverlay sets Overlay field to given value. + +### HasOverlay + +`func (o *UpsertAgentOverlay200Response) HasOverlay() bool` + +HasOverlay 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/UpsertAgentOverlayRequest.md b/docs/UpsertAgentOverlayRequest.md new file mode 100644 index 0000000..524f751 --- /dev/null +++ b/docs/UpsertAgentOverlayRequest.md @@ -0,0 +1,316 @@ +# UpsertAgentOverlayRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**ModelId** | Pointer to **string** | Override the base agent's model | [optional] +**Temperature** | Pointer to **float32** | Override temperature | [optional] +**MaxTokens** | Pointer to **int32** | Override max tokens | [optional] +**DisabledSkills** | Pointer to **[]string** | Global skill IDs to exclude | [optional] +**AdditionalSkills** | Pointer to **[]string** | Org-owned skill IDs to add | [optional] +**AdditionalTools** | Pointer to **[]string** | Tool names to add | [optional] +**DisabledTools** | Pointer to **[]string** | Tool names to remove | [optional] +**SystemPromptAppend** | Pointer to **string** | Text appended to base system prompt | [optional] +**AllowedCollections** | Pointer to **[]string** | Vector DB collections | [optional] +**GuardrailPreset** | Pointer to **string** | Guardrail preset | [optional] +**Version** | Pointer to **int32** | Current version for optimistic concurrency | [optional] + +## Methods + +### NewUpsertAgentOverlayRequest + +`func NewUpsertAgentOverlayRequest() *UpsertAgentOverlayRequest` + +NewUpsertAgentOverlayRequest instantiates a new UpsertAgentOverlayRequest 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 + +### NewUpsertAgentOverlayRequestWithDefaults + +`func NewUpsertAgentOverlayRequestWithDefaults() *UpsertAgentOverlayRequest` + +NewUpsertAgentOverlayRequestWithDefaults instantiates a new UpsertAgentOverlayRequest 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 + +### GetModelId + +`func (o *UpsertAgentOverlayRequest) GetModelId() string` + +GetModelId returns the ModelId field if non-nil, zero value otherwise. + +### GetModelIdOk + +`func (o *UpsertAgentOverlayRequest) GetModelIdOk() (*string, bool)` + +GetModelIdOk returns a tuple with the ModelId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetModelId + +`func (o *UpsertAgentOverlayRequest) SetModelId(v string)` + +SetModelId sets ModelId field to given value. + +### HasModelId + +`func (o *UpsertAgentOverlayRequest) HasModelId() bool` + +HasModelId returns a boolean if a field has been set. + +### GetTemperature + +`func (o *UpsertAgentOverlayRequest) GetTemperature() float32` + +GetTemperature returns the Temperature field if non-nil, zero value otherwise. + +### GetTemperatureOk + +`func (o *UpsertAgentOverlayRequest) GetTemperatureOk() (*float32, bool)` + +GetTemperatureOk returns a tuple with the Temperature field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTemperature + +`func (o *UpsertAgentOverlayRequest) SetTemperature(v float32)` + +SetTemperature sets Temperature field to given value. + +### HasTemperature + +`func (o *UpsertAgentOverlayRequest) HasTemperature() bool` + +HasTemperature returns a boolean if a field has been set. + +### GetMaxTokens + +`func (o *UpsertAgentOverlayRequest) GetMaxTokens() int32` + +GetMaxTokens returns the MaxTokens field if non-nil, zero value otherwise. + +### GetMaxTokensOk + +`func (o *UpsertAgentOverlayRequest) GetMaxTokensOk() (*int32, bool)` + +GetMaxTokensOk returns a tuple with the MaxTokens field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMaxTokens + +`func (o *UpsertAgentOverlayRequest) SetMaxTokens(v int32)` + +SetMaxTokens sets MaxTokens field to given value. + +### HasMaxTokens + +`func (o *UpsertAgentOverlayRequest) HasMaxTokens() bool` + +HasMaxTokens returns a boolean if a field has been set. + +### GetDisabledSkills + +`func (o *UpsertAgentOverlayRequest) GetDisabledSkills() []string` + +GetDisabledSkills returns the DisabledSkills field if non-nil, zero value otherwise. + +### GetDisabledSkillsOk + +`func (o *UpsertAgentOverlayRequest) GetDisabledSkillsOk() (*[]string, bool)` + +GetDisabledSkillsOk returns a tuple with the DisabledSkills field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisabledSkills + +`func (o *UpsertAgentOverlayRequest) SetDisabledSkills(v []string)` + +SetDisabledSkills sets DisabledSkills field to given value. + +### HasDisabledSkills + +`func (o *UpsertAgentOverlayRequest) HasDisabledSkills() bool` + +HasDisabledSkills returns a boolean if a field has been set. + +### GetAdditionalSkills + +`func (o *UpsertAgentOverlayRequest) GetAdditionalSkills() []string` + +GetAdditionalSkills returns the AdditionalSkills field if non-nil, zero value otherwise. + +### GetAdditionalSkillsOk + +`func (o *UpsertAgentOverlayRequest) GetAdditionalSkillsOk() (*[]string, bool)` + +GetAdditionalSkillsOk returns a tuple with the AdditionalSkills field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAdditionalSkills + +`func (o *UpsertAgentOverlayRequest) SetAdditionalSkills(v []string)` + +SetAdditionalSkills sets AdditionalSkills field to given value. + +### HasAdditionalSkills + +`func (o *UpsertAgentOverlayRequest) HasAdditionalSkills() bool` + +HasAdditionalSkills returns a boolean if a field has been set. + +### GetAdditionalTools + +`func (o *UpsertAgentOverlayRequest) GetAdditionalTools() []string` + +GetAdditionalTools returns the AdditionalTools field if non-nil, zero value otherwise. + +### GetAdditionalToolsOk + +`func (o *UpsertAgentOverlayRequest) GetAdditionalToolsOk() (*[]string, bool)` + +GetAdditionalToolsOk returns a tuple with the AdditionalTools field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAdditionalTools + +`func (o *UpsertAgentOverlayRequest) SetAdditionalTools(v []string)` + +SetAdditionalTools sets AdditionalTools field to given value. + +### HasAdditionalTools + +`func (o *UpsertAgentOverlayRequest) HasAdditionalTools() bool` + +HasAdditionalTools returns a boolean if a field has been set. + +### GetDisabledTools + +`func (o *UpsertAgentOverlayRequest) GetDisabledTools() []string` + +GetDisabledTools returns the DisabledTools field if non-nil, zero value otherwise. + +### GetDisabledToolsOk + +`func (o *UpsertAgentOverlayRequest) GetDisabledToolsOk() (*[]string, bool)` + +GetDisabledToolsOk returns a tuple with the DisabledTools field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisabledTools + +`func (o *UpsertAgentOverlayRequest) SetDisabledTools(v []string)` + +SetDisabledTools sets DisabledTools field to given value. + +### HasDisabledTools + +`func (o *UpsertAgentOverlayRequest) HasDisabledTools() bool` + +HasDisabledTools returns a boolean if a field has been set. + +### GetSystemPromptAppend + +`func (o *UpsertAgentOverlayRequest) GetSystemPromptAppend() string` + +GetSystemPromptAppend returns the SystemPromptAppend field if non-nil, zero value otherwise. + +### GetSystemPromptAppendOk + +`func (o *UpsertAgentOverlayRequest) GetSystemPromptAppendOk() (*string, bool)` + +GetSystemPromptAppendOk returns a tuple with the SystemPromptAppend field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSystemPromptAppend + +`func (o *UpsertAgentOverlayRequest) SetSystemPromptAppend(v string)` + +SetSystemPromptAppend sets SystemPromptAppend field to given value. + +### HasSystemPromptAppend + +`func (o *UpsertAgentOverlayRequest) HasSystemPromptAppend() bool` + +HasSystemPromptAppend returns a boolean if a field has been set. + +### GetAllowedCollections + +`func (o *UpsertAgentOverlayRequest) GetAllowedCollections() []string` + +GetAllowedCollections returns the AllowedCollections field if non-nil, zero value otherwise. + +### GetAllowedCollectionsOk + +`func (o *UpsertAgentOverlayRequest) GetAllowedCollectionsOk() (*[]string, bool)` + +GetAllowedCollectionsOk returns a tuple with the AllowedCollections field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAllowedCollections + +`func (o *UpsertAgentOverlayRequest) SetAllowedCollections(v []string)` + +SetAllowedCollections sets AllowedCollections field to given value. + +### HasAllowedCollections + +`func (o *UpsertAgentOverlayRequest) HasAllowedCollections() bool` + +HasAllowedCollections returns a boolean if a field has been set. + +### GetGuardrailPreset + +`func (o *UpsertAgentOverlayRequest) GetGuardrailPreset() string` + +GetGuardrailPreset returns the GuardrailPreset field if non-nil, zero value otherwise. + +### GetGuardrailPresetOk + +`func (o *UpsertAgentOverlayRequest) GetGuardrailPresetOk() (*string, bool)` + +GetGuardrailPresetOk returns a tuple with the GuardrailPreset field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetGuardrailPreset + +`func (o *UpsertAgentOverlayRequest) SetGuardrailPreset(v string)` + +SetGuardrailPreset sets GuardrailPreset field to given value. + +### HasGuardrailPreset + +`func (o *UpsertAgentOverlayRequest) HasGuardrailPreset() bool` + +HasGuardrailPreset returns a boolean if a field has been set. + +### GetVersion + +`func (o *UpsertAgentOverlayRequest) GetVersion() int32` + +GetVersion returns the Version field if non-nil, zero value otherwise. + +### GetVersionOk + +`func (o *UpsertAgentOverlayRequest) GetVersionOk() (*int32, 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 *UpsertAgentOverlayRequest) SetVersion(v int32)` + +SetVersion sets Version field to given value. + +### HasVersion + +`func (o *UpsertAgentOverlayRequest) 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/V2Rule.md b/docs/V2Rule.md index cff308b..c47a6ff 100644 --- a/docs/V2Rule.md +++ b/docs/V2Rule.md @@ -18,6 +18,9 @@ Name | Type | Description | Notes **Ip** | Pointer to **string** | IP address | [optional] **IpIs** | Pointer to **[]string** | Allowed IP addresses | [optional] **IpIsNot** | Pointer to **[]string** | Excluded IP addresses | [optional] +**Asn** | Pointer to **string** | ASN filter type (asn_is, asn_is_not, any) | [optional] +**AsnIs** | Pointer to **[]string** | Allowed AS numbers | [optional] +**AsnIsNot** | Pointer to **[]string** | Excluded AS numbers | [optional] **Country** | Pointer to **string** | Country code | [optional] **CountryIs** | Pointer to **[]string** | Allowed countries | [optional] **CountryIsNot** | Pointer to **[]string** | Excluded countries | [optional] @@ -382,6 +385,81 @@ SetIpIsNot sets IpIsNot field to given value. HasIpIsNot returns a boolean if a field has been set. +### GetAsn + +`func (o *V2Rule) GetAsn() string` + +GetAsn returns the Asn field if non-nil, zero value otherwise. + +### GetAsnOk + +`func (o *V2Rule) GetAsnOk() (*string, bool)` + +GetAsnOk returns a tuple with the Asn field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAsn + +`func (o *V2Rule) SetAsn(v string)` + +SetAsn sets Asn field to given value. + +### HasAsn + +`func (o *V2Rule) HasAsn() bool` + +HasAsn returns a boolean if a field has been set. + +### GetAsnIs + +`func (o *V2Rule) GetAsnIs() []string` + +GetAsnIs returns the AsnIs field if non-nil, zero value otherwise. + +### GetAsnIsOk + +`func (o *V2Rule) GetAsnIsOk() (*[]string, bool)` + +GetAsnIsOk returns a tuple with the AsnIs field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAsnIs + +`func (o *V2Rule) SetAsnIs(v []string)` + +SetAsnIs sets AsnIs field to given value. + +### HasAsnIs + +`func (o *V2Rule) HasAsnIs() bool` + +HasAsnIs returns a boolean if a field has been set. + +### GetAsnIsNot + +`func (o *V2Rule) GetAsnIsNot() []string` + +GetAsnIsNot returns the AsnIsNot field if non-nil, zero value otherwise. + +### GetAsnIsNotOk + +`func (o *V2Rule) GetAsnIsNotOk() (*[]string, bool)` + +GetAsnIsNotOk returns a tuple with the AsnIsNot field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAsnIsNot + +`func (o *V2Rule) SetAsnIsNot(v []string)` + +SetAsnIsNot sets AsnIsNot field to given value. + +### HasAsnIsNot + +`func (o *V2Rule) HasAsnIsNot() bool` + +HasAsnIsNot returns a boolean if a field has been set. + ### GetCountry `func (o *V2Rule) GetCountry() string` diff --git a/docs/V2RuleAuth.md b/docs/V2RuleAuth.md index 105c7e1..9aa0588 100644 --- a/docs/V2RuleAuth.md +++ b/docs/V2RuleAuth.md @@ -18,6 +18,9 @@ Name | Type | Description | Notes **Ip** | Pointer to **string** | IP address | [optional] **IpIs** | Pointer to **[]string** | Allowed IP addresses | [optional] **IpIsNot** | Pointer to **[]string** | Excluded IP addresses | [optional] +**Asn** | Pointer to **string** | ASN filter type (asn_is, asn_is_not, any) | [optional] +**AsnIs** | Pointer to **[]string** | Allowed AS numbers | [optional] +**AsnIsNot** | Pointer to **[]string** | Excluded AS numbers | [optional] **Country** | Pointer to **string** | Country code | [optional] **CountryIs** | Pointer to **[]string** | Allowed countries | [optional] **CountryIsNot** | Pointer to **[]string** | Excluded countries | [optional] @@ -383,6 +386,81 @@ SetIpIsNot sets IpIsNot field to given value. HasIpIsNot returns a boolean if a field has been set. +### GetAsn + +`func (o *V2RuleAuth) GetAsn() string` + +GetAsn returns the Asn field if non-nil, zero value otherwise. + +### GetAsnOk + +`func (o *V2RuleAuth) GetAsnOk() (*string, bool)` + +GetAsnOk returns a tuple with the Asn field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAsn + +`func (o *V2RuleAuth) SetAsn(v string)` + +SetAsn sets Asn field to given value. + +### HasAsn + +`func (o *V2RuleAuth) HasAsn() bool` + +HasAsn returns a boolean if a field has been set. + +### GetAsnIs + +`func (o *V2RuleAuth) GetAsnIs() []string` + +GetAsnIs returns the AsnIs field if non-nil, zero value otherwise. + +### GetAsnIsOk + +`func (o *V2RuleAuth) GetAsnIsOk() (*[]string, bool)` + +GetAsnIsOk returns a tuple with the AsnIs field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAsnIs + +`func (o *V2RuleAuth) SetAsnIs(v []string)` + +SetAsnIs sets AsnIs field to given value. + +### HasAsnIs + +`func (o *V2RuleAuth) HasAsnIs() bool` + +HasAsnIs returns a boolean if a field has been set. + +### GetAsnIsNot + +`func (o *V2RuleAuth) GetAsnIsNot() []string` + +GetAsnIsNot returns the AsnIsNot field if non-nil, zero value otherwise. + +### GetAsnIsNotOk + +`func (o *V2RuleAuth) GetAsnIsNotOk() (*[]string, bool)` + +GetAsnIsNotOk returns a tuple with the AsnIsNot field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAsnIsNot + +`func (o *V2RuleAuth) SetAsnIsNot(v []string)` + +SetAsnIsNot sets AsnIsNot field to given value. + +### HasAsnIsNot + +`func (o *V2RuleAuth) HasAsnIsNot() bool` + +HasAsnIsNot returns a boolean if a field has been set. + ### GetCountry `func (o *V2RuleAuth) GetCountry() string` diff --git a/docs/V2RuleAuthRequest.md b/docs/V2RuleAuthRequest.md index 90ac9db..a98e4fd 100644 --- a/docs/V2RuleAuthRequest.md +++ b/docs/V2RuleAuthRequest.md @@ -19,6 +19,9 @@ Name | Type | Description | Notes **Ip** | Pointer to **string** | IP filter type (ip_is, ip_is_not, any) | [optional] **IpIs** | Pointer to **[]string** | Allowed IP addresses | [optional] **IpIsNot** | Pointer to **[]string** | Excluded IP addresses | [optional] +**Asn** | Pointer to **string** | ASN filter type (asn_is, asn_is_not, any) | [optional] +**AsnIs** | Pointer to **[]string** | Allowed AS numbers | [optional] +**AsnIsNot** | Pointer to **[]string** | Excluded AS numbers | [optional] **AuthUser** | **string** | Authentication username | **AuthPass** | **string** | Authentication password | @@ -406,6 +409,81 @@ SetIpIsNot sets IpIsNot field to given value. HasIpIsNot returns a boolean if a field has been set. +### GetAsn + +`func (o *V2RuleAuthRequest) GetAsn() string` + +GetAsn returns the Asn field if non-nil, zero value otherwise. + +### GetAsnOk + +`func (o *V2RuleAuthRequest) GetAsnOk() (*string, bool)` + +GetAsnOk returns a tuple with the Asn field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAsn + +`func (o *V2RuleAuthRequest) SetAsn(v string)` + +SetAsn sets Asn field to given value. + +### HasAsn + +`func (o *V2RuleAuthRequest) HasAsn() bool` + +HasAsn returns a boolean if a field has been set. + +### GetAsnIs + +`func (o *V2RuleAuthRequest) GetAsnIs() []string` + +GetAsnIs returns the AsnIs field if non-nil, zero value otherwise. + +### GetAsnIsOk + +`func (o *V2RuleAuthRequest) GetAsnIsOk() (*[]string, bool)` + +GetAsnIsOk returns a tuple with the AsnIs field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAsnIs + +`func (o *V2RuleAuthRequest) SetAsnIs(v []string)` + +SetAsnIs sets AsnIs field to given value. + +### HasAsnIs + +`func (o *V2RuleAuthRequest) HasAsnIs() bool` + +HasAsnIs returns a boolean if a field has been set. + +### GetAsnIsNot + +`func (o *V2RuleAuthRequest) GetAsnIsNot() []string` + +GetAsnIsNot returns the AsnIsNot field if non-nil, zero value otherwise. + +### GetAsnIsNotOk + +`func (o *V2RuleAuthRequest) GetAsnIsNotOk() (*[]string, bool)` + +GetAsnIsNotOk returns a tuple with the AsnIsNot field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAsnIsNot + +`func (o *V2RuleAuthRequest) SetAsnIsNot(v []string)` + +SetAsnIsNot sets AsnIsNot field to given value. + +### HasAsnIsNot + +`func (o *V2RuleAuthRequest) HasAsnIsNot() bool` + +HasAsnIsNot returns a boolean if a field has been set. + ### GetAuthUser `func (o *V2RuleAuthRequest) GetAuthUser() string` diff --git a/docs/V2RuleBotChallenge.md b/docs/V2RuleBotChallenge.md index 40c4cb2..2b58a4b 100644 --- a/docs/V2RuleBotChallenge.md +++ b/docs/V2RuleBotChallenge.md @@ -18,6 +18,9 @@ Name | Type | Description | Notes **Ip** | Pointer to **string** | IP address | [optional] **IpIs** | Pointer to **[]string** | Allowed IP addresses | [optional] **IpIsNot** | Pointer to **[]string** | Excluded IP addresses | [optional] +**Asn** | Pointer to **string** | ASN filter type (asn_is, asn_is_not, any) | [optional] +**AsnIs** | Pointer to **[]string** | Allowed AS numbers | [optional] +**AsnIsNot** | Pointer to **[]string** | Excluded AS numbers | [optional] **Country** | Pointer to **string** | Country code | [optional] **CountryIs** | Pointer to **[]string** | Allowed countries | [optional] **CountryIsNot** | Pointer to **[]string** | Excluded countries | [optional] @@ -383,6 +386,81 @@ SetIpIsNot sets IpIsNot field to given value. HasIpIsNot returns a boolean if a field has been set. +### GetAsn + +`func (o *V2RuleBotChallenge) GetAsn() string` + +GetAsn returns the Asn field if non-nil, zero value otherwise. + +### GetAsnOk + +`func (o *V2RuleBotChallenge) GetAsnOk() (*string, bool)` + +GetAsnOk returns a tuple with the Asn field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAsn + +`func (o *V2RuleBotChallenge) SetAsn(v string)` + +SetAsn sets Asn field to given value. + +### HasAsn + +`func (o *V2RuleBotChallenge) HasAsn() bool` + +HasAsn returns a boolean if a field has been set. + +### GetAsnIs + +`func (o *V2RuleBotChallenge) GetAsnIs() []string` + +GetAsnIs returns the AsnIs field if non-nil, zero value otherwise. + +### GetAsnIsOk + +`func (o *V2RuleBotChallenge) GetAsnIsOk() (*[]string, bool)` + +GetAsnIsOk returns a tuple with the AsnIs field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAsnIs + +`func (o *V2RuleBotChallenge) SetAsnIs(v []string)` + +SetAsnIs sets AsnIs field to given value. + +### HasAsnIs + +`func (o *V2RuleBotChallenge) HasAsnIs() bool` + +HasAsnIs returns a boolean if a field has been set. + +### GetAsnIsNot + +`func (o *V2RuleBotChallenge) GetAsnIsNot() []string` + +GetAsnIsNot returns the AsnIsNot field if non-nil, zero value otherwise. + +### GetAsnIsNotOk + +`func (o *V2RuleBotChallenge) GetAsnIsNotOk() (*[]string, bool)` + +GetAsnIsNotOk returns a tuple with the AsnIsNot field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAsnIsNot + +`func (o *V2RuleBotChallenge) SetAsnIsNot(v []string)` + +SetAsnIsNot sets AsnIsNot field to given value. + +### HasAsnIsNot + +`func (o *V2RuleBotChallenge) HasAsnIsNot() bool` + +HasAsnIsNot returns a boolean if a field has been set. + ### GetCountry `func (o *V2RuleBotChallenge) GetCountry() string` diff --git a/docs/V2RuleBotChallengeRequest.md b/docs/V2RuleBotChallengeRequest.md index 1b8b3bf..3b1dfcc 100644 --- a/docs/V2RuleBotChallengeRequest.md +++ b/docs/V2RuleBotChallengeRequest.md @@ -19,6 +19,9 @@ Name | Type | Description | Notes **Ip** | Pointer to **string** | IP filter type (ip_is, ip_is_not, any) | [optional] **IpIs** | Pointer to **[]string** | Allowed IP addresses | [optional] **IpIsNot** | Pointer to **[]string** | Excluded IP addresses | [optional] +**Asn** | Pointer to **string** | ASN filter type (asn_is, asn_is_not, any) | [optional] +**AsnIs** | Pointer to **[]string** | Allowed AS numbers | [optional] +**AsnIsNot** | Pointer to **[]string** | Excluded AS numbers | [optional] **RobotChallengeType** | **string** | Challenge type (invisible or checkbox) | **RobotChallengeVerificationTtl** | Pointer to **int32** | Verification TTL in seconds | [optional] [default to 10800] **RobotChallengeChallengeTtl** | Pointer to **int32** | Challenge TTL in seconds | [optional] [default to 30] @@ -407,6 +410,81 @@ SetIpIsNot sets IpIsNot field to given value. HasIpIsNot returns a boolean if a field has been set. +### GetAsn + +`func (o *V2RuleBotChallengeRequest) GetAsn() string` + +GetAsn returns the Asn field if non-nil, zero value otherwise. + +### GetAsnOk + +`func (o *V2RuleBotChallengeRequest) GetAsnOk() (*string, bool)` + +GetAsnOk returns a tuple with the Asn field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAsn + +`func (o *V2RuleBotChallengeRequest) SetAsn(v string)` + +SetAsn sets Asn field to given value. + +### HasAsn + +`func (o *V2RuleBotChallengeRequest) HasAsn() bool` + +HasAsn returns a boolean if a field has been set. + +### GetAsnIs + +`func (o *V2RuleBotChallengeRequest) GetAsnIs() []string` + +GetAsnIs returns the AsnIs field if non-nil, zero value otherwise. + +### GetAsnIsOk + +`func (o *V2RuleBotChallengeRequest) GetAsnIsOk() (*[]string, bool)` + +GetAsnIsOk returns a tuple with the AsnIs field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAsnIs + +`func (o *V2RuleBotChallengeRequest) SetAsnIs(v []string)` + +SetAsnIs sets AsnIs field to given value. + +### HasAsnIs + +`func (o *V2RuleBotChallengeRequest) HasAsnIs() bool` + +HasAsnIs returns a boolean if a field has been set. + +### GetAsnIsNot + +`func (o *V2RuleBotChallengeRequest) GetAsnIsNot() []string` + +GetAsnIsNot returns the AsnIsNot field if non-nil, zero value otherwise. + +### GetAsnIsNotOk + +`func (o *V2RuleBotChallengeRequest) GetAsnIsNotOk() (*[]string, bool)` + +GetAsnIsNotOk returns a tuple with the AsnIsNot field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAsnIsNot + +`func (o *V2RuleBotChallengeRequest) SetAsnIsNot(v []string)` + +SetAsnIsNot sets AsnIsNot field to given value. + +### HasAsnIsNot + +`func (o *V2RuleBotChallengeRequest) HasAsnIsNot() bool` + +HasAsnIsNot returns a boolean if a field has been set. + ### GetRobotChallengeType `func (o *V2RuleBotChallengeRequest) GetRobotChallengeType() string` diff --git a/docs/V2RuleContentFilter.md b/docs/V2RuleContentFilter.md index 3b1d0ba..8fb6846 100644 --- a/docs/V2RuleContentFilter.md +++ b/docs/V2RuleContentFilter.md @@ -18,6 +18,9 @@ Name | Type | Description | Notes **Ip** | Pointer to **string** | IP address | [optional] **IpIs** | Pointer to **[]string** | Allowed IP addresses | [optional] **IpIsNot** | Pointer to **[]string** | Excluded IP addresses | [optional] +**Asn** | Pointer to **string** | ASN filter type (asn_is, asn_is_not, any) | [optional] +**AsnIs** | Pointer to **[]string** | Allowed AS numbers | [optional] +**AsnIsNot** | Pointer to **[]string** | Excluded AS numbers | [optional] **Country** | Pointer to **string** | Country code | [optional] **CountryIs** | Pointer to **[]string** | Allowed countries | [optional] **CountryIsNot** | Pointer to **[]string** | Excluded countries | [optional] @@ -383,6 +386,81 @@ SetIpIsNot sets IpIsNot field to given value. HasIpIsNot returns a boolean if a field has been set. +### GetAsn + +`func (o *V2RuleContentFilter) GetAsn() string` + +GetAsn returns the Asn field if non-nil, zero value otherwise. + +### GetAsnOk + +`func (o *V2RuleContentFilter) GetAsnOk() (*string, bool)` + +GetAsnOk returns a tuple with the Asn field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAsn + +`func (o *V2RuleContentFilter) SetAsn(v string)` + +SetAsn sets Asn field to given value. + +### HasAsn + +`func (o *V2RuleContentFilter) HasAsn() bool` + +HasAsn returns a boolean if a field has been set. + +### GetAsnIs + +`func (o *V2RuleContentFilter) GetAsnIs() []string` + +GetAsnIs returns the AsnIs field if non-nil, zero value otherwise. + +### GetAsnIsOk + +`func (o *V2RuleContentFilter) GetAsnIsOk() (*[]string, bool)` + +GetAsnIsOk returns a tuple with the AsnIs field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAsnIs + +`func (o *V2RuleContentFilter) SetAsnIs(v []string)` + +SetAsnIs sets AsnIs field to given value. + +### HasAsnIs + +`func (o *V2RuleContentFilter) HasAsnIs() bool` + +HasAsnIs returns a boolean if a field has been set. + +### GetAsnIsNot + +`func (o *V2RuleContentFilter) GetAsnIsNot() []string` + +GetAsnIsNot returns the AsnIsNot field if non-nil, zero value otherwise. + +### GetAsnIsNotOk + +`func (o *V2RuleContentFilter) GetAsnIsNotOk() (*[]string, bool)` + +GetAsnIsNotOk returns a tuple with the AsnIsNot field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAsnIsNot + +`func (o *V2RuleContentFilter) SetAsnIsNot(v []string)` + +SetAsnIsNot sets AsnIsNot field to given value. + +### HasAsnIsNot + +`func (o *V2RuleContentFilter) HasAsnIsNot() bool` + +HasAsnIsNot returns a boolean if a field has been set. + ### GetCountry `func (o *V2RuleContentFilter) GetCountry() string` diff --git a/docs/V2RuleContentFilterRequest.md b/docs/V2RuleContentFilterRequest.md index 2355c3b..791500f 100644 --- a/docs/V2RuleContentFilterRequest.md +++ b/docs/V2RuleContentFilterRequest.md @@ -19,6 +19,9 @@ Name | Type | Description | Notes **Ip** | Pointer to **string** | IP filter type (ip_is, ip_is_not, any) | [optional] **IpIs** | Pointer to **[]string** | Allowed IP addresses | [optional] **IpIsNot** | Pointer to **[]string** | Excluded IP addresses | [optional] +**Asn** | Pointer to **string** | ASN filter type (asn_is, asn_is_not, any) | [optional] +**AsnIs** | Pointer to **[]string** | Allowed AS numbers | [optional] +**AsnIsNot** | Pointer to **[]string** | Excluded AS numbers | [optional] **FnUuid** | **string** | Function UUID | ## Methods @@ -405,6 +408,81 @@ SetIpIsNot sets IpIsNot field to given value. HasIpIsNot returns a boolean if a field has been set. +### GetAsn + +`func (o *V2RuleContentFilterRequest) GetAsn() string` + +GetAsn returns the Asn field if non-nil, zero value otherwise. + +### GetAsnOk + +`func (o *V2RuleContentFilterRequest) GetAsnOk() (*string, bool)` + +GetAsnOk returns a tuple with the Asn field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAsn + +`func (o *V2RuleContentFilterRequest) SetAsn(v string)` + +SetAsn sets Asn field to given value. + +### HasAsn + +`func (o *V2RuleContentFilterRequest) HasAsn() bool` + +HasAsn returns a boolean if a field has been set. + +### GetAsnIs + +`func (o *V2RuleContentFilterRequest) GetAsnIs() []string` + +GetAsnIs returns the AsnIs field if non-nil, zero value otherwise. + +### GetAsnIsOk + +`func (o *V2RuleContentFilterRequest) GetAsnIsOk() (*[]string, bool)` + +GetAsnIsOk returns a tuple with the AsnIs field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAsnIs + +`func (o *V2RuleContentFilterRequest) SetAsnIs(v []string)` + +SetAsnIs sets AsnIs field to given value. + +### HasAsnIs + +`func (o *V2RuleContentFilterRequest) HasAsnIs() bool` + +HasAsnIs returns a boolean if a field has been set. + +### GetAsnIsNot + +`func (o *V2RuleContentFilterRequest) GetAsnIsNot() []string` + +GetAsnIsNot returns the AsnIsNot field if non-nil, zero value otherwise. + +### GetAsnIsNotOk + +`func (o *V2RuleContentFilterRequest) GetAsnIsNotOk() (*[]string, bool)` + +GetAsnIsNotOk returns a tuple with the AsnIsNot field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAsnIsNot + +`func (o *V2RuleContentFilterRequest) SetAsnIsNot(v []string)` + +SetAsnIsNot sets AsnIsNot field to given value. + +### HasAsnIsNot + +`func (o *V2RuleContentFilterRequest) HasAsnIsNot() bool` + +HasAsnIsNot returns a boolean if a field has been set. + ### GetFnUuid `func (o *V2RuleContentFilterRequest) GetFnUuid() string` diff --git a/docs/V2RuleCustomResponse.md b/docs/V2RuleCustomResponse.md index 5911a0c..e3cff5b 100644 --- a/docs/V2RuleCustomResponse.md +++ b/docs/V2RuleCustomResponse.md @@ -18,6 +18,9 @@ Name | Type | Description | Notes **Ip** | Pointer to **string** | IP address | [optional] **IpIs** | Pointer to **[]string** | Allowed IP addresses | [optional] **IpIsNot** | Pointer to **[]string** | Excluded IP addresses | [optional] +**Asn** | Pointer to **string** | ASN filter type (asn_is, asn_is_not, any) | [optional] +**AsnIs** | Pointer to **[]string** | Allowed AS numbers | [optional] +**AsnIsNot** | Pointer to **[]string** | Excluded AS numbers | [optional] **Country** | Pointer to **string** | Country code | [optional] **CountryIs** | Pointer to **[]string** | Allowed countries | [optional] **CountryIsNot** | Pointer to **[]string** | Excluded countries | [optional] @@ -383,6 +386,81 @@ SetIpIsNot sets IpIsNot field to given value. HasIpIsNot returns a boolean if a field has been set. +### GetAsn + +`func (o *V2RuleCustomResponse) GetAsn() string` + +GetAsn returns the Asn field if non-nil, zero value otherwise. + +### GetAsnOk + +`func (o *V2RuleCustomResponse) GetAsnOk() (*string, bool)` + +GetAsnOk returns a tuple with the Asn field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAsn + +`func (o *V2RuleCustomResponse) SetAsn(v string)` + +SetAsn sets Asn field to given value. + +### HasAsn + +`func (o *V2RuleCustomResponse) HasAsn() bool` + +HasAsn returns a boolean if a field has been set. + +### GetAsnIs + +`func (o *V2RuleCustomResponse) GetAsnIs() []string` + +GetAsnIs returns the AsnIs field if non-nil, zero value otherwise. + +### GetAsnIsOk + +`func (o *V2RuleCustomResponse) GetAsnIsOk() (*[]string, bool)` + +GetAsnIsOk returns a tuple with the AsnIs field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAsnIs + +`func (o *V2RuleCustomResponse) SetAsnIs(v []string)` + +SetAsnIs sets AsnIs field to given value. + +### HasAsnIs + +`func (o *V2RuleCustomResponse) HasAsnIs() bool` + +HasAsnIs returns a boolean if a field has been set. + +### GetAsnIsNot + +`func (o *V2RuleCustomResponse) GetAsnIsNot() []string` + +GetAsnIsNot returns the AsnIsNot field if non-nil, zero value otherwise. + +### GetAsnIsNotOk + +`func (o *V2RuleCustomResponse) GetAsnIsNotOk() (*[]string, bool)` + +GetAsnIsNotOk returns a tuple with the AsnIsNot field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAsnIsNot + +`func (o *V2RuleCustomResponse) SetAsnIsNot(v []string)` + +SetAsnIsNot sets AsnIsNot field to given value. + +### HasAsnIsNot + +`func (o *V2RuleCustomResponse) HasAsnIsNot() bool` + +HasAsnIsNot returns a boolean if a field has been set. + ### GetCountry `func (o *V2RuleCustomResponse) GetCountry() string` diff --git a/docs/V2RuleCustomResponseRequest.md b/docs/V2RuleCustomResponseRequest.md index c507e72..496f9c8 100644 --- a/docs/V2RuleCustomResponseRequest.md +++ b/docs/V2RuleCustomResponseRequest.md @@ -19,6 +19,9 @@ Name | Type | Description | Notes **Ip** | Pointer to **string** | IP filter type (ip_is, ip_is_not, any) | [optional] **IpIs** | Pointer to **[]string** | Allowed IP addresses | [optional] **IpIsNot** | Pointer to **[]string** | Excluded IP addresses | [optional] +**Asn** | Pointer to **string** | ASN filter type (asn_is, asn_is_not, any) | [optional] +**AsnIs** | Pointer to **[]string** | Allowed AS numbers | [optional] +**AsnIsNot** | Pointer to **[]string** | Excluded AS numbers | [optional] **CustomResponseBody** | **string** | Custom response body content | **CustomResponseStatusCode** | Pointer to **int32** | HTTP status code for custom response | [optional] [default to 200] **StatusCode** | Pointer to **int32** | Legacy field for status code (deprecated) | [optional] @@ -408,6 +411,81 @@ SetIpIsNot sets IpIsNot field to given value. HasIpIsNot returns a boolean if a field has been set. +### GetAsn + +`func (o *V2RuleCustomResponseRequest) GetAsn() string` + +GetAsn returns the Asn field if non-nil, zero value otherwise. + +### GetAsnOk + +`func (o *V2RuleCustomResponseRequest) GetAsnOk() (*string, bool)` + +GetAsnOk returns a tuple with the Asn field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAsn + +`func (o *V2RuleCustomResponseRequest) SetAsn(v string)` + +SetAsn sets Asn field to given value. + +### HasAsn + +`func (o *V2RuleCustomResponseRequest) HasAsn() bool` + +HasAsn returns a boolean if a field has been set. + +### GetAsnIs + +`func (o *V2RuleCustomResponseRequest) GetAsnIs() []string` + +GetAsnIs returns the AsnIs field if non-nil, zero value otherwise. + +### GetAsnIsOk + +`func (o *V2RuleCustomResponseRequest) GetAsnIsOk() (*[]string, bool)` + +GetAsnIsOk returns a tuple with the AsnIs field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAsnIs + +`func (o *V2RuleCustomResponseRequest) SetAsnIs(v []string)` + +SetAsnIs sets AsnIs field to given value. + +### HasAsnIs + +`func (o *V2RuleCustomResponseRequest) HasAsnIs() bool` + +HasAsnIs returns a boolean if a field has been set. + +### GetAsnIsNot + +`func (o *V2RuleCustomResponseRequest) GetAsnIsNot() []string` + +GetAsnIsNot returns the AsnIsNot field if non-nil, zero value otherwise. + +### GetAsnIsNotOk + +`func (o *V2RuleCustomResponseRequest) GetAsnIsNotOk() (*[]string, bool)` + +GetAsnIsNotOk returns a tuple with the AsnIsNot field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAsnIsNot + +`func (o *V2RuleCustomResponseRequest) SetAsnIsNot(v []string)` + +SetAsnIsNot sets AsnIsNot field to given value. + +### HasAsnIsNot + +`func (o *V2RuleCustomResponseRequest) HasAsnIsNot() bool` + +HasAsnIsNot returns a boolean if a field has been set. + ### GetCustomResponseBody `func (o *V2RuleCustomResponseRequest) GetCustomResponseBody() string` diff --git a/docs/V2RuleFunction.md b/docs/V2RuleFunction.md index b09880b..ed7e1bf 100644 --- a/docs/V2RuleFunction.md +++ b/docs/V2RuleFunction.md @@ -18,6 +18,9 @@ Name | Type | Description | Notes **Ip** | Pointer to **string** | IP address | [optional] **IpIs** | Pointer to **[]string** | Allowed IP addresses | [optional] **IpIsNot** | Pointer to **[]string** | Excluded IP addresses | [optional] +**Asn** | Pointer to **string** | ASN filter type (asn_is, asn_is_not, any) | [optional] +**AsnIs** | Pointer to **[]string** | Allowed AS numbers | [optional] +**AsnIsNot** | Pointer to **[]string** | Excluded AS numbers | [optional] **Country** | Pointer to **string** | Country code | [optional] **CountryIs** | Pointer to **[]string** | Allowed countries | [optional] **CountryIsNot** | Pointer to **[]string** | Excluded countries | [optional] @@ -383,6 +386,81 @@ SetIpIsNot sets IpIsNot field to given value. HasIpIsNot returns a boolean if a field has been set. +### GetAsn + +`func (o *V2RuleFunction) GetAsn() string` + +GetAsn returns the Asn field if non-nil, zero value otherwise. + +### GetAsnOk + +`func (o *V2RuleFunction) GetAsnOk() (*string, bool)` + +GetAsnOk returns a tuple with the Asn field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAsn + +`func (o *V2RuleFunction) SetAsn(v string)` + +SetAsn sets Asn field to given value. + +### HasAsn + +`func (o *V2RuleFunction) HasAsn() bool` + +HasAsn returns a boolean if a field has been set. + +### GetAsnIs + +`func (o *V2RuleFunction) GetAsnIs() []string` + +GetAsnIs returns the AsnIs field if non-nil, zero value otherwise. + +### GetAsnIsOk + +`func (o *V2RuleFunction) GetAsnIsOk() (*[]string, bool)` + +GetAsnIsOk returns a tuple with the AsnIs field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAsnIs + +`func (o *V2RuleFunction) SetAsnIs(v []string)` + +SetAsnIs sets AsnIs field to given value. + +### HasAsnIs + +`func (o *V2RuleFunction) HasAsnIs() bool` + +HasAsnIs returns a boolean if a field has been set. + +### GetAsnIsNot + +`func (o *V2RuleFunction) GetAsnIsNot() []string` + +GetAsnIsNot returns the AsnIsNot field if non-nil, zero value otherwise. + +### GetAsnIsNotOk + +`func (o *V2RuleFunction) GetAsnIsNotOk() (*[]string, bool)` + +GetAsnIsNotOk returns a tuple with the AsnIsNot field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAsnIsNot + +`func (o *V2RuleFunction) SetAsnIsNot(v []string)` + +SetAsnIsNot sets AsnIsNot field to given value. + +### HasAsnIsNot + +`func (o *V2RuleFunction) HasAsnIsNot() bool` + +HasAsnIsNot returns a boolean if a field has been set. + ### GetCountry `func (o *V2RuleFunction) GetCountry() string` diff --git a/docs/V2RuleFunctionRequest.md b/docs/V2RuleFunctionRequest.md index 7045739..aab8eba 100644 --- a/docs/V2RuleFunctionRequest.md +++ b/docs/V2RuleFunctionRequest.md @@ -19,6 +19,9 @@ Name | Type | Description | Notes **Ip** | Pointer to **string** | IP filter type (ip_is, ip_is_not, any) | [optional] **IpIs** | Pointer to **[]string** | Allowed IP addresses | [optional] **IpIsNot** | Pointer to **[]string** | Excluded IP addresses | [optional] +**Asn** | Pointer to **string** | ASN filter type (asn_is, asn_is_not, any) | [optional] +**AsnIs** | Pointer to **[]string** | Allowed AS numbers | [optional] +**AsnIsNot** | Pointer to **[]string** | Excluded AS numbers | [optional] **FnUuid** | **string** | Function UUID | ## Methods @@ -405,6 +408,81 @@ SetIpIsNot sets IpIsNot field to given value. HasIpIsNot returns a boolean if a field has been set. +### GetAsn + +`func (o *V2RuleFunctionRequest) GetAsn() string` + +GetAsn returns the Asn field if non-nil, zero value otherwise. + +### GetAsnOk + +`func (o *V2RuleFunctionRequest) GetAsnOk() (*string, bool)` + +GetAsnOk returns a tuple with the Asn field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAsn + +`func (o *V2RuleFunctionRequest) SetAsn(v string)` + +SetAsn sets Asn field to given value. + +### HasAsn + +`func (o *V2RuleFunctionRequest) HasAsn() bool` + +HasAsn returns a boolean if a field has been set. + +### GetAsnIs + +`func (o *V2RuleFunctionRequest) GetAsnIs() []string` + +GetAsnIs returns the AsnIs field if non-nil, zero value otherwise. + +### GetAsnIsOk + +`func (o *V2RuleFunctionRequest) GetAsnIsOk() (*[]string, bool)` + +GetAsnIsOk returns a tuple with the AsnIs field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAsnIs + +`func (o *V2RuleFunctionRequest) SetAsnIs(v []string)` + +SetAsnIs sets AsnIs field to given value. + +### HasAsnIs + +`func (o *V2RuleFunctionRequest) HasAsnIs() bool` + +HasAsnIs returns a boolean if a field has been set. + +### GetAsnIsNot + +`func (o *V2RuleFunctionRequest) GetAsnIsNot() []string` + +GetAsnIsNot returns the AsnIsNot field if non-nil, zero value otherwise. + +### GetAsnIsNotOk + +`func (o *V2RuleFunctionRequest) GetAsnIsNotOk() (*[]string, bool)` + +GetAsnIsNotOk returns a tuple with the AsnIsNot field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAsnIsNot + +`func (o *V2RuleFunctionRequest) SetAsnIsNot(v []string)` + +SetAsnIsNot sets AsnIsNot field to given value. + +### HasAsnIsNot + +`func (o *V2RuleFunctionRequest) HasAsnIsNot() bool` + +HasAsnIsNot returns a boolean if a field has been set. + ### GetFnUuid `func (o *V2RuleFunctionRequest) GetFnUuid() string` diff --git a/docs/V2RuleHeader.md b/docs/V2RuleHeader.md index c5fb16a..54bda24 100644 --- a/docs/V2RuleHeader.md +++ b/docs/V2RuleHeader.md @@ -18,6 +18,9 @@ Name | Type | Description | Notes **Ip** | Pointer to **string** | IP address | [optional] **IpIs** | Pointer to **[]string** | Allowed IP addresses | [optional] **IpIsNot** | Pointer to **[]string** | Excluded IP addresses | [optional] +**Asn** | Pointer to **string** | ASN filter type (asn_is, asn_is_not, any) | [optional] +**AsnIs** | Pointer to **[]string** | Allowed AS numbers | [optional] +**AsnIsNot** | Pointer to **[]string** | Excluded AS numbers | [optional] **Country** | Pointer to **string** | Country code | [optional] **CountryIs** | Pointer to **[]string** | Allowed countries | [optional] **CountryIsNot** | Pointer to **[]string** | Excluded countries | [optional] @@ -383,6 +386,81 @@ SetIpIsNot sets IpIsNot field to given value. HasIpIsNot returns a boolean if a field has been set. +### GetAsn + +`func (o *V2RuleHeader) GetAsn() string` + +GetAsn returns the Asn field if non-nil, zero value otherwise. + +### GetAsnOk + +`func (o *V2RuleHeader) GetAsnOk() (*string, bool)` + +GetAsnOk returns a tuple with the Asn field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAsn + +`func (o *V2RuleHeader) SetAsn(v string)` + +SetAsn sets Asn field to given value. + +### HasAsn + +`func (o *V2RuleHeader) HasAsn() bool` + +HasAsn returns a boolean if a field has been set. + +### GetAsnIs + +`func (o *V2RuleHeader) GetAsnIs() []string` + +GetAsnIs returns the AsnIs field if non-nil, zero value otherwise. + +### GetAsnIsOk + +`func (o *V2RuleHeader) GetAsnIsOk() (*[]string, bool)` + +GetAsnIsOk returns a tuple with the AsnIs field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAsnIs + +`func (o *V2RuleHeader) SetAsnIs(v []string)` + +SetAsnIs sets AsnIs field to given value. + +### HasAsnIs + +`func (o *V2RuleHeader) HasAsnIs() bool` + +HasAsnIs returns a boolean if a field has been set. + +### GetAsnIsNot + +`func (o *V2RuleHeader) GetAsnIsNot() []string` + +GetAsnIsNot returns the AsnIsNot field if non-nil, zero value otherwise. + +### GetAsnIsNotOk + +`func (o *V2RuleHeader) GetAsnIsNotOk() (*[]string, bool)` + +GetAsnIsNotOk returns a tuple with the AsnIsNot field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAsnIsNot + +`func (o *V2RuleHeader) SetAsnIsNot(v []string)` + +SetAsnIsNot sets AsnIsNot field to given value. + +### HasAsnIsNot + +`func (o *V2RuleHeader) HasAsnIsNot() bool` + +HasAsnIsNot returns a boolean if a field has been set. + ### GetCountry `func (o *V2RuleHeader) GetCountry() string` diff --git a/docs/V2RuleHeaderRequest.md b/docs/V2RuleHeaderRequest.md index 504d004..4dbb1ff 100644 --- a/docs/V2RuleHeaderRequest.md +++ b/docs/V2RuleHeaderRequest.md @@ -19,6 +19,9 @@ Name | Type | Description | Notes **Ip** | Pointer to **string** | IP filter type (ip_is, ip_is_not, any) | [optional] **IpIs** | Pointer to **[]string** | Allowed IP addresses | [optional] **IpIsNot** | Pointer to **[]string** | Excluded IP addresses | [optional] +**Asn** | Pointer to **string** | ASN filter type (asn_is, asn_is_not, any) | [optional] +**AsnIs** | Pointer to **[]string** | Allowed AS numbers | [optional] +**AsnIsNot** | Pointer to **[]string** | Excluded AS numbers | [optional] **Headers** | **map[string]string** | Headers to set | ## Methods @@ -405,6 +408,81 @@ SetIpIsNot sets IpIsNot field to given value. HasIpIsNot returns a boolean if a field has been set. +### GetAsn + +`func (o *V2RuleHeaderRequest) GetAsn() string` + +GetAsn returns the Asn field if non-nil, zero value otherwise. + +### GetAsnOk + +`func (o *V2RuleHeaderRequest) GetAsnOk() (*string, bool)` + +GetAsnOk returns a tuple with the Asn field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAsn + +`func (o *V2RuleHeaderRequest) SetAsn(v string)` + +SetAsn sets Asn field to given value. + +### HasAsn + +`func (o *V2RuleHeaderRequest) HasAsn() bool` + +HasAsn returns a boolean if a field has been set. + +### GetAsnIs + +`func (o *V2RuleHeaderRequest) GetAsnIs() []string` + +GetAsnIs returns the AsnIs field if non-nil, zero value otherwise. + +### GetAsnIsOk + +`func (o *V2RuleHeaderRequest) GetAsnIsOk() (*[]string, bool)` + +GetAsnIsOk returns a tuple with the AsnIs field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAsnIs + +`func (o *V2RuleHeaderRequest) SetAsnIs(v []string)` + +SetAsnIs sets AsnIs field to given value. + +### HasAsnIs + +`func (o *V2RuleHeaderRequest) HasAsnIs() bool` + +HasAsnIs returns a boolean if a field has been set. + +### GetAsnIsNot + +`func (o *V2RuleHeaderRequest) GetAsnIsNot() []string` + +GetAsnIsNot returns the AsnIsNot field if non-nil, zero value otherwise. + +### GetAsnIsNotOk + +`func (o *V2RuleHeaderRequest) GetAsnIsNotOk() (*[]string, bool)` + +GetAsnIsNotOk returns a tuple with the AsnIsNot field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAsnIsNot + +`func (o *V2RuleHeaderRequest) SetAsnIsNot(v []string)` + +SetAsnIsNot sets AsnIsNot field to given value. + +### HasAsnIsNot + +`func (o *V2RuleHeaderRequest) HasAsnIsNot() bool` + +HasAsnIsNot returns a boolean if a field has been set. + ### GetHeaders `func (o *V2RuleHeaderRequest) GetHeaders() map[string]string` diff --git a/docs/V2RuleProxy.md b/docs/V2RuleProxy.md index 74bd1ac..8de99aa 100644 --- a/docs/V2RuleProxy.md +++ b/docs/V2RuleProxy.md @@ -18,6 +18,9 @@ Name | Type | Description | Notes **Ip** | Pointer to **string** | IP address | [optional] **IpIs** | Pointer to **[]string** | Allowed IP addresses | [optional] **IpIsNot** | Pointer to **[]string** | Excluded IP addresses | [optional] +**Asn** | Pointer to **string** | ASN filter type (asn_is, asn_is_not, any) | [optional] +**AsnIs** | Pointer to **[]string** | Allowed AS numbers | [optional] +**AsnIsNot** | Pointer to **[]string** | Excluded AS numbers | [optional] **Country** | Pointer to **string** | Country code | [optional] **CountryIs** | Pointer to **[]string** | Allowed countries | [optional] **CountryIsNot** | Pointer to **[]string** | Excluded countries | [optional] @@ -383,6 +386,81 @@ SetIpIsNot sets IpIsNot field to given value. HasIpIsNot returns a boolean if a field has been set. +### GetAsn + +`func (o *V2RuleProxy) GetAsn() string` + +GetAsn returns the Asn field if non-nil, zero value otherwise. + +### GetAsnOk + +`func (o *V2RuleProxy) GetAsnOk() (*string, bool)` + +GetAsnOk returns a tuple with the Asn field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAsn + +`func (o *V2RuleProxy) SetAsn(v string)` + +SetAsn sets Asn field to given value. + +### HasAsn + +`func (o *V2RuleProxy) HasAsn() bool` + +HasAsn returns a boolean if a field has been set. + +### GetAsnIs + +`func (o *V2RuleProxy) GetAsnIs() []string` + +GetAsnIs returns the AsnIs field if non-nil, zero value otherwise. + +### GetAsnIsOk + +`func (o *V2RuleProxy) GetAsnIsOk() (*[]string, bool)` + +GetAsnIsOk returns a tuple with the AsnIs field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAsnIs + +`func (o *V2RuleProxy) SetAsnIs(v []string)` + +SetAsnIs sets AsnIs field to given value. + +### HasAsnIs + +`func (o *V2RuleProxy) HasAsnIs() bool` + +HasAsnIs returns a boolean if a field has been set. + +### GetAsnIsNot + +`func (o *V2RuleProxy) GetAsnIsNot() []string` + +GetAsnIsNot returns the AsnIsNot field if non-nil, zero value otherwise. + +### GetAsnIsNotOk + +`func (o *V2RuleProxy) GetAsnIsNotOk() (*[]string, bool)` + +GetAsnIsNotOk returns a tuple with the AsnIsNot field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAsnIsNot + +`func (o *V2RuleProxy) SetAsnIsNot(v []string)` + +SetAsnIsNot sets AsnIsNot field to given value. + +### HasAsnIsNot + +`func (o *V2RuleProxy) HasAsnIsNot() bool` + +HasAsnIsNot returns a boolean if a field has been set. + ### GetCountry `func (o *V2RuleProxy) GetCountry() string` diff --git a/docs/V2RuleProxyRequest.md b/docs/V2RuleProxyRequest.md index a155eef..9d83149 100644 --- a/docs/V2RuleProxyRequest.md +++ b/docs/V2RuleProxyRequest.md @@ -19,6 +19,9 @@ Name | Type | Description | Notes **Ip** | Pointer to **string** | IP filter type (ip_is, ip_is_not, any) | [optional] **IpIs** | Pointer to **[]string** | Allowed IP addresses | [optional] **IpIsNot** | Pointer to **[]string** | Excluded IP addresses | [optional] +**Asn** | Pointer to **string** | ASN filter type (asn_is, asn_is_not, any) | [optional] +**AsnIs** | Pointer to **[]string** | Allowed AS numbers | [optional] +**AsnIsNot** | Pointer to **[]string** | Excluded AS numbers | [optional] **To** | **string** | Target URL to proxy to | **Host** | Pointer to **string** | Host header override | [optional] **AuthUser** | Pointer to **string** | Basic auth username | [optional] [default to ""] @@ -429,6 +432,81 @@ SetIpIsNot sets IpIsNot field to given value. HasIpIsNot returns a boolean if a field has been set. +### GetAsn + +`func (o *V2RuleProxyRequest) GetAsn() string` + +GetAsn returns the Asn field if non-nil, zero value otherwise. + +### GetAsnOk + +`func (o *V2RuleProxyRequest) GetAsnOk() (*string, bool)` + +GetAsnOk returns a tuple with the Asn field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAsn + +`func (o *V2RuleProxyRequest) SetAsn(v string)` + +SetAsn sets Asn field to given value. + +### HasAsn + +`func (o *V2RuleProxyRequest) HasAsn() bool` + +HasAsn returns a boolean if a field has been set. + +### GetAsnIs + +`func (o *V2RuleProxyRequest) GetAsnIs() []string` + +GetAsnIs returns the AsnIs field if non-nil, zero value otherwise. + +### GetAsnIsOk + +`func (o *V2RuleProxyRequest) GetAsnIsOk() (*[]string, bool)` + +GetAsnIsOk returns a tuple with the AsnIs field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAsnIs + +`func (o *V2RuleProxyRequest) SetAsnIs(v []string)` + +SetAsnIs sets AsnIs field to given value. + +### HasAsnIs + +`func (o *V2RuleProxyRequest) HasAsnIs() bool` + +HasAsnIs returns a boolean if a field has been set. + +### GetAsnIsNot + +`func (o *V2RuleProxyRequest) GetAsnIsNot() []string` + +GetAsnIsNot returns the AsnIsNot field if non-nil, zero value otherwise. + +### GetAsnIsNotOk + +`func (o *V2RuleProxyRequest) GetAsnIsNotOk() (*[]string, bool)` + +GetAsnIsNotOk returns a tuple with the AsnIsNot field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAsnIsNot + +`func (o *V2RuleProxyRequest) SetAsnIsNot(v []string)` + +SetAsnIsNot sets AsnIsNot field to given value. + +### HasAsnIsNot + +`func (o *V2RuleProxyRequest) HasAsnIsNot() bool` + +HasAsnIsNot returns a boolean if a field has been set. + ### GetTo `func (o *V2RuleProxyRequest) GetTo() string` diff --git a/docs/V2RuleRedirect.md b/docs/V2RuleRedirect.md index feeaf5c..1283f07 100644 --- a/docs/V2RuleRedirect.md +++ b/docs/V2RuleRedirect.md @@ -18,6 +18,9 @@ Name | Type | Description | Notes **Ip** | Pointer to **string** | IP address | [optional] **IpIs** | Pointer to **[]string** | Allowed IP addresses | [optional] **IpIsNot** | Pointer to **[]string** | Excluded IP addresses | [optional] +**Asn** | Pointer to **string** | ASN filter type (asn_is, asn_is_not, any) | [optional] +**AsnIs** | Pointer to **[]string** | Allowed AS numbers | [optional] +**AsnIsNot** | Pointer to **[]string** | Excluded AS numbers | [optional] **Country** | Pointer to **string** | Country code | [optional] **CountryIs** | Pointer to **[]string** | Allowed countries | [optional] **CountryIsNot** | Pointer to **[]string** | Excluded countries | [optional] @@ -383,6 +386,81 @@ SetIpIsNot sets IpIsNot field to given value. HasIpIsNot returns a boolean if a field has been set. +### GetAsn + +`func (o *V2RuleRedirect) GetAsn() string` + +GetAsn returns the Asn field if non-nil, zero value otherwise. + +### GetAsnOk + +`func (o *V2RuleRedirect) GetAsnOk() (*string, bool)` + +GetAsnOk returns a tuple with the Asn field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAsn + +`func (o *V2RuleRedirect) SetAsn(v string)` + +SetAsn sets Asn field to given value. + +### HasAsn + +`func (o *V2RuleRedirect) HasAsn() bool` + +HasAsn returns a boolean if a field has been set. + +### GetAsnIs + +`func (o *V2RuleRedirect) GetAsnIs() []string` + +GetAsnIs returns the AsnIs field if non-nil, zero value otherwise. + +### GetAsnIsOk + +`func (o *V2RuleRedirect) GetAsnIsOk() (*[]string, bool)` + +GetAsnIsOk returns a tuple with the AsnIs field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAsnIs + +`func (o *V2RuleRedirect) SetAsnIs(v []string)` + +SetAsnIs sets AsnIs field to given value. + +### HasAsnIs + +`func (o *V2RuleRedirect) HasAsnIs() bool` + +HasAsnIs returns a boolean if a field has been set. + +### GetAsnIsNot + +`func (o *V2RuleRedirect) GetAsnIsNot() []string` + +GetAsnIsNot returns the AsnIsNot field if non-nil, zero value otherwise. + +### GetAsnIsNotOk + +`func (o *V2RuleRedirect) GetAsnIsNotOk() (*[]string, bool)` + +GetAsnIsNotOk returns a tuple with the AsnIsNot field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAsnIsNot + +`func (o *V2RuleRedirect) SetAsnIsNot(v []string)` + +SetAsnIsNot sets AsnIsNot field to given value. + +### HasAsnIsNot + +`func (o *V2RuleRedirect) HasAsnIsNot() bool` + +HasAsnIsNot returns a boolean if a field has been set. + ### GetCountry `func (o *V2RuleRedirect) GetCountry() string` diff --git a/docs/V2RuleRedirectRequest.md b/docs/V2RuleRedirectRequest.md index 3a57674..10ee7c7 100644 --- a/docs/V2RuleRedirectRequest.md +++ b/docs/V2RuleRedirectRequest.md @@ -19,6 +19,9 @@ Name | Type | Description | Notes **Ip** | Pointer to **string** | IP filter type (ip_is, ip_is_not, any) | [optional] **IpIs** | Pointer to **[]string** | Allowed IP addresses | [optional] **IpIsNot** | Pointer to **[]string** | Excluded IP addresses | [optional] +**Asn** | Pointer to **string** | ASN filter type (asn_is, asn_is_not, any) | [optional] +**AsnIs** | Pointer to **[]string** | Allowed AS numbers | [optional] +**AsnIsNot** | Pointer to **[]string** | Excluded AS numbers | [optional] **RedirectTo** | **string** | Redirect destination URL | **RedirectCode** | Pointer to **string** | HTTP status code for redirect | [optional] [default to "301"] @@ -406,6 +409,81 @@ SetIpIsNot sets IpIsNot field to given value. HasIpIsNot returns a boolean if a field has been set. +### GetAsn + +`func (o *V2RuleRedirectRequest) GetAsn() string` + +GetAsn returns the Asn field if non-nil, zero value otherwise. + +### GetAsnOk + +`func (o *V2RuleRedirectRequest) GetAsnOk() (*string, bool)` + +GetAsnOk returns a tuple with the Asn field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAsn + +`func (o *V2RuleRedirectRequest) SetAsn(v string)` + +SetAsn sets Asn field to given value. + +### HasAsn + +`func (o *V2RuleRedirectRequest) HasAsn() bool` + +HasAsn returns a boolean if a field has been set. + +### GetAsnIs + +`func (o *V2RuleRedirectRequest) GetAsnIs() []string` + +GetAsnIs returns the AsnIs field if non-nil, zero value otherwise. + +### GetAsnIsOk + +`func (o *V2RuleRedirectRequest) GetAsnIsOk() (*[]string, bool)` + +GetAsnIsOk returns a tuple with the AsnIs field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAsnIs + +`func (o *V2RuleRedirectRequest) SetAsnIs(v []string)` + +SetAsnIs sets AsnIs field to given value. + +### HasAsnIs + +`func (o *V2RuleRedirectRequest) HasAsnIs() bool` + +HasAsnIs returns a boolean if a field has been set. + +### GetAsnIsNot + +`func (o *V2RuleRedirectRequest) GetAsnIsNot() []string` + +GetAsnIsNot returns the AsnIsNot field if non-nil, zero value otherwise. + +### GetAsnIsNotOk + +`func (o *V2RuleRedirectRequest) GetAsnIsNotOk() (*[]string, bool)` + +GetAsnIsNotOk returns a tuple with the AsnIsNot field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAsnIsNot + +`func (o *V2RuleRedirectRequest) SetAsnIsNot(v []string)` + +SetAsnIsNot sets AsnIsNot field to given value. + +### HasAsnIsNot + +`func (o *V2RuleRedirectRequest) HasAsnIsNot() bool` + +HasAsnIsNot returns a boolean if a field has been set. + ### GetRedirectTo `func (o *V2RuleRedirectRequest) GetRedirectTo() string` diff --git a/docs/V2RuleRequest.md b/docs/V2RuleRequest.md index 8132304..af75b7c 100644 --- a/docs/V2RuleRequest.md +++ b/docs/V2RuleRequest.md @@ -19,6 +19,9 @@ Name | Type | Description | Notes **Ip** | Pointer to **string** | IP filter type (ip_is, ip_is_not, any) | [optional] **IpIs** | Pointer to **[]string** | Allowed IP addresses | [optional] **IpIsNot** | Pointer to **[]string** | Excluded IP addresses | [optional] +**Asn** | Pointer to **string** | ASN filter type (asn_is, asn_is_not, any) | [optional] +**AsnIs** | Pointer to **[]string** | Allowed AS numbers | [optional] +**AsnIsNot** | Pointer to **[]string** | Excluded AS numbers | [optional] ## Methods @@ -404,6 +407,81 @@ SetIpIsNot sets IpIsNot field to given value. HasIpIsNot returns a boolean if a field has been set. +### GetAsn + +`func (o *V2RuleRequest) GetAsn() string` + +GetAsn returns the Asn field if non-nil, zero value otherwise. + +### GetAsnOk + +`func (o *V2RuleRequest) GetAsnOk() (*string, bool)` + +GetAsnOk returns a tuple with the Asn field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAsn + +`func (o *V2RuleRequest) SetAsn(v string)` + +SetAsn sets Asn field to given value. + +### HasAsn + +`func (o *V2RuleRequest) HasAsn() bool` + +HasAsn returns a boolean if a field has been set. + +### GetAsnIs + +`func (o *V2RuleRequest) GetAsnIs() []string` + +GetAsnIs returns the AsnIs field if non-nil, zero value otherwise. + +### GetAsnIsOk + +`func (o *V2RuleRequest) GetAsnIsOk() (*[]string, bool)` + +GetAsnIsOk returns a tuple with the AsnIs field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAsnIs + +`func (o *V2RuleRequest) SetAsnIs(v []string)` + +SetAsnIs sets AsnIs field to given value. + +### HasAsnIs + +`func (o *V2RuleRequest) HasAsnIs() bool` + +HasAsnIs returns a boolean if a field has been set. + +### GetAsnIsNot + +`func (o *V2RuleRequest) GetAsnIsNot() []string` + +GetAsnIsNot returns the AsnIsNot field if non-nil, zero value otherwise. + +### GetAsnIsNotOk + +`func (o *V2RuleRequest) GetAsnIsNotOk() (*[]string, bool)` + +GetAsnIsNotOk returns a tuple with the AsnIsNot field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAsnIsNot + +`func (o *V2RuleRequest) SetAsnIsNot(v []string)` + +SetAsnIsNot sets AsnIsNot field to given value. + +### HasAsnIsNot + +`func (o *V2RuleRequest) HasAsnIsNot() bool` + +HasAsnIsNot 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/V2RuleServeStatic.md b/docs/V2RuleServeStatic.md index 22175a0..c327319 100644 --- a/docs/V2RuleServeStatic.md +++ b/docs/V2RuleServeStatic.md @@ -18,6 +18,9 @@ Name | Type | Description | Notes **Ip** | Pointer to **string** | IP address | [optional] **IpIs** | Pointer to **[]string** | Allowed IP addresses | [optional] **IpIsNot** | Pointer to **[]string** | Excluded IP addresses | [optional] +**Asn** | Pointer to **string** | ASN filter type (asn_is, asn_is_not, any) | [optional] +**AsnIs** | Pointer to **[]string** | Allowed AS numbers | [optional] +**AsnIsNot** | Pointer to **[]string** | Excluded AS numbers | [optional] **Country** | Pointer to **string** | Country code | [optional] **CountryIs** | Pointer to **[]string** | Allowed countries | [optional] **CountryIsNot** | Pointer to **[]string** | Excluded countries | [optional] @@ -383,6 +386,81 @@ SetIpIsNot sets IpIsNot field to given value. HasIpIsNot returns a boolean if a field has been set. +### GetAsn + +`func (o *V2RuleServeStatic) GetAsn() string` + +GetAsn returns the Asn field if non-nil, zero value otherwise. + +### GetAsnOk + +`func (o *V2RuleServeStatic) GetAsnOk() (*string, bool)` + +GetAsnOk returns a tuple with the Asn field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAsn + +`func (o *V2RuleServeStatic) SetAsn(v string)` + +SetAsn sets Asn field to given value. + +### HasAsn + +`func (o *V2RuleServeStatic) HasAsn() bool` + +HasAsn returns a boolean if a field has been set. + +### GetAsnIs + +`func (o *V2RuleServeStatic) GetAsnIs() []string` + +GetAsnIs returns the AsnIs field if non-nil, zero value otherwise. + +### GetAsnIsOk + +`func (o *V2RuleServeStatic) GetAsnIsOk() (*[]string, bool)` + +GetAsnIsOk returns a tuple with the AsnIs field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAsnIs + +`func (o *V2RuleServeStatic) SetAsnIs(v []string)` + +SetAsnIs sets AsnIs field to given value. + +### HasAsnIs + +`func (o *V2RuleServeStatic) HasAsnIs() bool` + +HasAsnIs returns a boolean if a field has been set. + +### GetAsnIsNot + +`func (o *V2RuleServeStatic) GetAsnIsNot() []string` + +GetAsnIsNot returns the AsnIsNot field if non-nil, zero value otherwise. + +### GetAsnIsNotOk + +`func (o *V2RuleServeStatic) GetAsnIsNotOk() (*[]string, bool)` + +GetAsnIsNotOk returns a tuple with the AsnIsNot field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAsnIsNot + +`func (o *V2RuleServeStatic) SetAsnIsNot(v []string)` + +SetAsnIsNot sets AsnIsNot field to given value. + +### HasAsnIsNot + +`func (o *V2RuleServeStatic) HasAsnIsNot() bool` + +HasAsnIsNot returns a boolean if a field has been set. + ### GetCountry `func (o *V2RuleServeStatic) GetCountry() string` diff --git a/docs/V2RuleServeStaticRequest.md b/docs/V2RuleServeStaticRequest.md index 89c4631..1f6ed8e 100644 --- a/docs/V2RuleServeStaticRequest.md +++ b/docs/V2RuleServeStaticRequest.md @@ -19,6 +19,9 @@ Name | Type | Description | Notes **Ip** | Pointer to **string** | IP filter type (ip_is, ip_is_not, any) | [optional] **IpIs** | Pointer to **[]string** | Allowed IP addresses | [optional] **IpIsNot** | Pointer to **[]string** | Excluded IP addresses | [optional] +**Asn** | Pointer to **string** | ASN filter type (asn_is, asn_is_not, any) | [optional] +**AsnIs** | Pointer to **[]string** | Allowed AS numbers | [optional] +**AsnIsNot** | Pointer to **[]string** | Excluded AS numbers | [optional] **StaticFilePath** | **string** | Path to the static file to serve | ## Methods @@ -405,6 +408,81 @@ SetIpIsNot sets IpIsNot field to given value. HasIpIsNot returns a boolean if a field has been set. +### GetAsn + +`func (o *V2RuleServeStaticRequest) GetAsn() string` + +GetAsn returns the Asn field if non-nil, zero value otherwise. + +### GetAsnOk + +`func (o *V2RuleServeStaticRequest) GetAsnOk() (*string, bool)` + +GetAsnOk returns a tuple with the Asn field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAsn + +`func (o *V2RuleServeStaticRequest) SetAsn(v string)` + +SetAsn sets Asn field to given value. + +### HasAsn + +`func (o *V2RuleServeStaticRequest) HasAsn() bool` + +HasAsn returns a boolean if a field has been set. + +### GetAsnIs + +`func (o *V2RuleServeStaticRequest) GetAsnIs() []string` + +GetAsnIs returns the AsnIs field if non-nil, zero value otherwise. + +### GetAsnIsOk + +`func (o *V2RuleServeStaticRequest) GetAsnIsOk() (*[]string, bool)` + +GetAsnIsOk returns a tuple with the AsnIs field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAsnIs + +`func (o *V2RuleServeStaticRequest) SetAsnIs(v []string)` + +SetAsnIs sets AsnIs field to given value. + +### HasAsnIs + +`func (o *V2RuleServeStaticRequest) HasAsnIs() bool` + +HasAsnIs returns a boolean if a field has been set. + +### GetAsnIsNot + +`func (o *V2RuleServeStaticRequest) GetAsnIsNot() []string` + +GetAsnIsNot returns the AsnIsNot field if non-nil, zero value otherwise. + +### GetAsnIsNotOk + +`func (o *V2RuleServeStaticRequest) GetAsnIsNotOk() (*[]string, bool)` + +GetAsnIsNotOk returns a tuple with the AsnIsNot field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAsnIsNot + +`func (o *V2RuleServeStaticRequest) SetAsnIsNot(v []string)` + +SetAsnIsNot sets AsnIsNot field to given value. + +### HasAsnIsNot + +`func (o *V2RuleServeStaticRequest) HasAsnIsNot() bool` + +HasAsnIsNot returns a boolean if a field has been set. + ### GetStaticFilePath `func (o *V2RuleServeStaticRequest) GetStaticFilePath() string` diff --git a/model_application.go b/model_application.go index c2bdd3c..d2909c1 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.13.0 +API version: 4.14.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 5df4148..8dffaf4 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.13.0 +API version: 4.14.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 8a961ff..db72567 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.13.0 +API version: 4.14.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 9ca5ae8..200c7ae 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.13.0 +API version: 4.14.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 fe56508..1c751ec 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.13.0 +API version: 4.14.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 99e9676..b3764d6 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.13.0 +API version: 4.14.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 ac818c8..ffb6928 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.13.0 +API version: 4.14.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 121029e..62b0496 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.13.0 +API version: 4.14.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 5efa802..354f28d 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.13.0 +API version: 4.14.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 e2eb4c7..1584db7 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.13.0 +API version: 4.14.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 ad80713..f48e1f4 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.13.0 +API version: 4.14.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 02a874f..05e647d 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.13.0 +API version: 4.14.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 ab1d08f..b84e179 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.13.0 +API version: 4.14.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 c52a53d..4b1fd0d 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.13.0 +API version: 4.14.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 5e0a3d7..e4e8be6 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.13.0 +API version: 4.14.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 0274ad7..233d0c8 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.13.0 +API version: 4.14.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 33476b0..c9d84ca 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.13.0 +API version: 4.14.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_chat_inference_request_guardrails.go b/model_chat_inference_request_guardrails.go index ede8dae..3a4c461 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.13.0 +API version: 4.14.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 cc1dbc5..6bd482c 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.13.0 +API version: 4.14.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 f298b7e..af1a14e 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.13.0 +API version: 4.14.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 67c833d..6afef74 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.13.0 +API version: 4.14.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 311ddf8..7ecd39b 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.13.0 +API version: 4.14.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 c88fcaf..788df3e 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.13.0 +API version: 4.14.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 ae121e6..6e4cb54 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.13.0 +API version: 4.14.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 62190a8..187ade1 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.13.0 +API version: 4.14.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 d4b5996..ad6c522 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.13.0 +API version: 4.14.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 5216d06..8fd01d2 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.13.0 +API version: 4.14.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 095f986..997823f 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.13.0 +API version: 4.14.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 ae641f2..3eee20d 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.13.0 +API version: 4.14.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 7598e34..d107a84 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.13.0 +API version: 4.14.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 08eaf77..11bc0c4 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.13.0 +API version: 4.14.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 64f2518..6aa1482 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.13.0 +API version: 4.14.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 2163996..c0d4e72 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.13.0 +API version: 4.14.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 e6f5d6e..4573ce4 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.13.0 +API version: 4.14.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 6867bbd..728730c 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.13.0 +API version: 4.14.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 a5c52a6..f580caf 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.13.0 +API version: 4.14.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 fa6d00a..1aea76c 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.13.0 +API version: 4.14.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_chat_inference_stream_request_messages_inner.go b/model_chat_inference_stream_request_messages_inner.go index 8fea3ec..d34ff69 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.13.0 +API version: 4.14.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 e5c7e37..f1d432a 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.13.0 +API version: 4.14.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 aafb7b6..7aeeb14 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.13.0 +API version: 4.14.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 895c1e5..c0a5e1b 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.13.0 +API version: 4.14.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 cc764a3..c31b769 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.13.0 +API version: 4.14.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 812cb53..14365f8 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.13.0 +API version: 4.14.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 a102acc..ee95421 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.13.0 +API version: 4.14.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -32,6 +32,12 @@ type ChatWithAIAgentRequest struct { Async *bool `json:"async,omitempty"` // Optional additional system prompt (appended to agent's configured prompt) System *string `json:"system,omitempty"` + // Per-request override to force 1M context window routing + LongContext *bool `json:"longContext,omitempty"` + // Maximum tool auto-execution iterations for this request + MaxToolIterations *int32 `json:"maxToolIterations,omitempty"` + // Per-request override for vector DB collections the agent can query + AllowedCollections []string `json:"allowedCollections,omitempty"` AdditionalProperties map[string]interface{} } @@ -48,6 +54,8 @@ func NewChatWithAIAgentRequest(message string) *ChatWithAIAgentRequest { this.Stream = &stream var async bool = false this.Async = &async + var longContext bool = false + this.LongContext = &longContext return &this } @@ -60,6 +68,8 @@ func NewChatWithAIAgentRequestWithDefaults() *ChatWithAIAgentRequest { this.Stream = &stream var async bool = false this.Async = &async + var longContext bool = false + this.LongContext = &longContext return &this } @@ -247,6 +257,102 @@ func (o *ChatWithAIAgentRequest) SetSystem(v string) { o.System = &v } +// GetLongContext returns the LongContext field value if set, zero value otherwise. +func (o *ChatWithAIAgentRequest) 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 *ChatWithAIAgentRequest) 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 *ChatWithAIAgentRequest) 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 *ChatWithAIAgentRequest) SetLongContext(v bool) { + o.LongContext = &v +} + +// GetMaxToolIterations returns the MaxToolIterations field value if set, zero value otherwise. +func (o *ChatWithAIAgentRequest) GetMaxToolIterations() int32 { + if o == nil || IsNil(o.MaxToolIterations) { + var ret int32 + return ret + } + return *o.MaxToolIterations +} + +// GetMaxToolIterationsOk returns a tuple with the MaxToolIterations field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ChatWithAIAgentRequest) GetMaxToolIterationsOk() (*int32, bool) { + if o == nil || IsNil(o.MaxToolIterations) { + return nil, false + } + return o.MaxToolIterations, true +} + +// HasMaxToolIterations returns a boolean if a field has been set. +func (o *ChatWithAIAgentRequest) HasMaxToolIterations() bool { + if o != nil && !IsNil(o.MaxToolIterations) { + return true + } + + return false +} + +// SetMaxToolIterations gets a reference to the given int32 and assigns it to the MaxToolIterations field. +func (o *ChatWithAIAgentRequest) SetMaxToolIterations(v int32) { + o.MaxToolIterations = &v +} + +// GetAllowedCollections returns the AllowedCollections field value if set, zero value otherwise. +func (o *ChatWithAIAgentRequest) GetAllowedCollections() []string { + if o == nil || IsNil(o.AllowedCollections) { + var ret []string + return ret + } + return o.AllowedCollections +} + +// GetAllowedCollectionsOk returns a tuple with the AllowedCollections field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ChatWithAIAgentRequest) GetAllowedCollectionsOk() ([]string, bool) { + if o == nil || IsNil(o.AllowedCollections) { + return nil, false + } + return o.AllowedCollections, true +} + +// HasAllowedCollections returns a boolean if a field has been set. +func (o *ChatWithAIAgentRequest) HasAllowedCollections() bool { + if o != nil && !IsNil(o.AllowedCollections) { + return true + } + + return false +} + +// SetAllowedCollections gets a reference to the given []string and assigns it to the AllowedCollections field. +func (o *ChatWithAIAgentRequest) SetAllowedCollections(v []string) { + o.AllowedCollections = v +} + func (o ChatWithAIAgentRequest) MarshalJSON() ([]byte, error) { toSerialize,err := o.ToMap() if err != nil { @@ -273,6 +379,15 @@ func (o ChatWithAIAgentRequest) ToMap() (map[string]interface{}, error) { if !IsNil(o.System) { toSerialize["system"] = o.System } + if !IsNil(o.LongContext) { + toSerialize["longContext"] = o.LongContext + } + if !IsNil(o.MaxToolIterations) { + toSerialize["maxToolIterations"] = o.MaxToolIterations + } + if !IsNil(o.AllowedCollections) { + toSerialize["allowedCollections"] = o.AllowedCollections + } for key, value := range o.AdditionalProperties { toSerialize[key] = value @@ -322,6 +437,9 @@ func (o *ChatWithAIAgentRequest) UnmarshalJSON(data []byte) (err error) { delete(additionalProperties, "stream") delete(additionalProperties, "async") delete(additionalProperties, "system") + delete(additionalProperties, "longContext") + delete(additionalProperties, "maxToolIterations") + delete(additionalProperties, "allowedCollections") o.AdditionalProperties = additionalProperties } diff --git a/model_command.go b/model_command.go index e05b37f..87ef829 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.13.0 +API version: 4.14.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_compose.go b/model_compose.go index 27918f0..3d7e861 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.13.0 +API version: 4.14.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_container.go b/model_container.go index 212d174..da6ec55 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.13.0 +API version: 4.14.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 c75503c..d682df4 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.13.0 +API version: 4.14.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 bb6850d..d22109f 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.13.0 +API version: 4.14.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 178a7c7..1c3be66 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.13.0 +API version: 4.14.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 eb45e41..6f0c07a 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.13.0 +API version: 4.14.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 a652d2f..c2a1be2 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.13.0 +API version: 4.14.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 cbe8169..80e77a0 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.13.0 +API version: 4.14.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 48355b7..d94b1d7 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.13.0 +API version: 4.14.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 fd9f00d..790d2da 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.13.0 +API version: 4.14.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 c94cbe8..21e7610 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.13.0 +API version: 4.14.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 58bcc62..4716246 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.13.0 +API version: 4.14.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 2976e66..1c0e290 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.13.0 +API version: 4.14.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -29,8 +29,16 @@ type CreateAIAgentRequest struct { MaxTokens *int32 `json:"maxTokens,omitempty"` AllowedTools []string `json:"allowedTools,omitempty"` AllowedCollections []string `json:"allowedCollections,omitempty"` + // Skill IDs to assign to this agent + AssignedSkills []string `json:"assignedSkills,omitempty"` // User identifier who created the agent CreatedBy *string `json:"createdBy,omitempty"` + // Enable 1M context window support + LongContext *bool `json:"longContext,omitempty"` + // Guardrail preset name + GuardrailPreset *string `json:"guardrailPreset,omitempty"` + // Filter policy IDs to apply to this agent's inference requests + FilterPolicies []string `json:"filterPolicies,omitempty"` AdditionalProperties map[string]interface{} } @@ -313,6 +321,38 @@ func (o *CreateAIAgentRequest) SetAllowedCollections(v []string) { o.AllowedCollections = v } +// GetAssignedSkills returns the AssignedSkills field value if set, zero value otherwise. +func (o *CreateAIAgentRequest) GetAssignedSkills() []string { + if o == nil || IsNil(o.AssignedSkills) { + var ret []string + return ret + } + return o.AssignedSkills +} + +// GetAssignedSkillsOk returns a tuple with the AssignedSkills field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CreateAIAgentRequest) GetAssignedSkillsOk() ([]string, bool) { + if o == nil || IsNil(o.AssignedSkills) { + return nil, false + } + return o.AssignedSkills, true +} + +// HasAssignedSkills returns a boolean if a field has been set. +func (o *CreateAIAgentRequest) HasAssignedSkills() bool { + if o != nil && !IsNil(o.AssignedSkills) { + return true + } + + return false +} + +// SetAssignedSkills gets a reference to the given []string and assigns it to the AssignedSkills field. +func (o *CreateAIAgentRequest) SetAssignedSkills(v []string) { + o.AssignedSkills = v +} + // GetCreatedBy returns the CreatedBy field value if set, zero value otherwise. func (o *CreateAIAgentRequest) GetCreatedBy() string { if o == nil || IsNil(o.CreatedBy) { @@ -345,6 +385,102 @@ func (o *CreateAIAgentRequest) SetCreatedBy(v string) { o.CreatedBy = &v } +// GetLongContext returns the LongContext field value if set, zero value otherwise. +func (o *CreateAIAgentRequest) 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 *CreateAIAgentRequest) 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 *CreateAIAgentRequest) 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 *CreateAIAgentRequest) SetLongContext(v bool) { + o.LongContext = &v +} + +// GetGuardrailPreset returns the GuardrailPreset field value if set, zero value otherwise. +func (o *CreateAIAgentRequest) GetGuardrailPreset() string { + if o == nil || IsNil(o.GuardrailPreset) { + var ret string + return ret + } + return *o.GuardrailPreset +} + +// GetGuardrailPresetOk returns a tuple with the GuardrailPreset field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CreateAIAgentRequest) GetGuardrailPresetOk() (*string, bool) { + if o == nil || IsNil(o.GuardrailPreset) { + return nil, false + } + return o.GuardrailPreset, true +} + +// HasGuardrailPreset returns a boolean if a field has been set. +func (o *CreateAIAgentRequest) HasGuardrailPreset() bool { + if o != nil && !IsNil(o.GuardrailPreset) { + return true + } + + return false +} + +// SetGuardrailPreset gets a reference to the given string and assigns it to the GuardrailPreset field. +func (o *CreateAIAgentRequest) SetGuardrailPreset(v string) { + o.GuardrailPreset = &v +} + +// GetFilterPolicies returns the FilterPolicies field value if set, zero value otherwise. +func (o *CreateAIAgentRequest) GetFilterPolicies() []string { + if o == nil || IsNil(o.FilterPolicies) { + var ret []string + return ret + } + return o.FilterPolicies +} + +// GetFilterPoliciesOk returns a tuple with the FilterPolicies field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CreateAIAgentRequest) GetFilterPoliciesOk() ([]string, bool) { + if o == nil || IsNil(o.FilterPolicies) { + return nil, false + } + return o.FilterPolicies, true +} + +// HasFilterPolicies returns a boolean if a field has been set. +func (o *CreateAIAgentRequest) HasFilterPolicies() bool { + if o != nil && !IsNil(o.FilterPolicies) { + return true + } + + return false +} + +// SetFilterPolicies gets a reference to the given []string and assigns it to the FilterPolicies field. +func (o *CreateAIAgentRequest) SetFilterPolicies(v []string) { + o.FilterPolicies = v +} + func (o CreateAIAgentRequest) MarshalJSON() ([]byte, error) { toSerialize,err := o.ToMap() if err != nil { @@ -374,9 +510,21 @@ func (o CreateAIAgentRequest) ToMap() (map[string]interface{}, error) { if !IsNil(o.AllowedCollections) { toSerialize["allowedCollections"] = o.AllowedCollections } + if !IsNil(o.AssignedSkills) { + toSerialize["assignedSkills"] = o.AssignedSkills + } if !IsNil(o.CreatedBy) { toSerialize["createdBy"] = o.CreatedBy } + if !IsNil(o.LongContext) { + toSerialize["longContext"] = o.LongContext + } + if !IsNil(o.GuardrailPreset) { + toSerialize["guardrailPreset"] = o.GuardrailPreset + } + if !IsNil(o.FilterPolicies) { + toSerialize["filterPolicies"] = o.FilterPolicies + } for key, value := range o.AdditionalProperties { toSerialize[key] = value @@ -432,7 +580,11 @@ func (o *CreateAIAgentRequest) UnmarshalJSON(data []byte) (err error) { delete(additionalProperties, "maxTokens") delete(additionalProperties, "allowedTools") delete(additionalProperties, "allowedCollections") + delete(additionalProperties, "assignedSkills") delete(additionalProperties, "createdBy") + delete(additionalProperties, "longContext") + delete(additionalProperties, "guardrailPreset") + delete(additionalProperties, "filterPolicies") o.AdditionalProperties = additionalProperties } diff --git a/model_create_ai_session_201_response.go b/model_create_ai_session_201_response.go index 55e64d9..b1de37e 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.13.0 +API version: 4.14.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 993743a..ab10aa1 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.13.0 +API version: 4.14.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 7e8b62b..209a250 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.13.0 +API version: 4.14.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 ba25613..b46984e 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.13.0 +API version: 4.14.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 4d6967f..724c478 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.13.0 +API version: 4.14.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 9adc963..beb8a78 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.13.0 +API version: 4.14.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 014ca5c..549e7de 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.13.0 +API version: 4.14.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 7402a6a..6d967b9 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.13.0 +API version: 4.14.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 470c1f4..5931991 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.13.0 +API version: 4.14.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 0cb49de..878a509 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.13.0 +API version: 4.14.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 25e7659..467927d 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.13.0 +API version: 4.14.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 69f6ca0..bfd7a6c 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.13.0 +API version: 4.14.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 db7a0f2..e3a3dfe 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.13.0 +API version: 4.14.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 e2dd0c0..f5fc741 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.13.0 +API version: 4.14.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 448346b..c5a2cbd 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.13.0 +API version: 4.14.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 3fbe1e5..64637b7 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.13.0 +API version: 4.14.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 e6f4637..6e1803f 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.13.0 +API version: 4.14.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_create_filter_policy_request.go b/model_create_filter_policy_request.go new file mode 100644 index 0000000..4635dba --- /dev/null +++ b/model_create_filter_policy_request.go @@ -0,0 +1,281 @@ +/* +QuantCDN API + +Unified API for QuantCDN Admin and QuantCloud Platform services + +API version: 4.14.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package quantadmingo + +import ( + "encoding/json" + "fmt" +) + +// checks if the CreateFilterPolicyRequest type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &CreateFilterPolicyRequest{} + +// CreateFilterPolicyRequest struct for CreateFilterPolicyRequest +type CreateFilterPolicyRequest struct { + Name string `json:"name"` + Description NullableString `json:"description,omitempty"` + Enabled *bool `json:"enabled,omitempty"` + Rules []CreateFilterPolicyRequestRulesInner `json:"rules"` + AdditionalProperties map[string]interface{} +} + +type _CreateFilterPolicyRequest CreateFilterPolicyRequest + +// NewCreateFilterPolicyRequest instantiates a new CreateFilterPolicyRequest 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 NewCreateFilterPolicyRequest(name string, rules []CreateFilterPolicyRequestRulesInner) *CreateFilterPolicyRequest { + this := CreateFilterPolicyRequest{} + this.Name = name + this.Rules = rules + return &this +} + +// NewCreateFilterPolicyRequestWithDefaults instantiates a new CreateFilterPolicyRequest 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 NewCreateFilterPolicyRequestWithDefaults() *CreateFilterPolicyRequest { + this := CreateFilterPolicyRequest{} + return &this +} + +// GetName returns the Name field value +func (o *CreateFilterPolicyRequest) 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 *CreateFilterPolicyRequest) GetNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Name, true +} + +// SetName sets field value +func (o *CreateFilterPolicyRequest) SetName(v string) { + o.Name = v +} + +// GetDescription returns the Description field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *CreateFilterPolicyRequest) GetDescription() string { + if o == nil || IsNil(o.Description.Get()) { + var ret string + return ret + } + return *o.Description.Get() +} + +// GetDescriptionOk returns a tuple with the Description field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *CreateFilterPolicyRequest) GetDescriptionOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.Description.Get(), o.Description.IsSet() +} + +// HasDescription returns a boolean if a field has been set. +func (o *CreateFilterPolicyRequest) HasDescription() bool { + if o != nil && o.Description.IsSet() { + return true + } + + return false +} + +// SetDescription gets a reference to the given NullableString and assigns it to the Description field. +func (o *CreateFilterPolicyRequest) SetDescription(v string) { + o.Description.Set(&v) +} +// SetDescriptionNil sets the value for Description to be an explicit nil +func (o *CreateFilterPolicyRequest) SetDescriptionNil() { + o.Description.Set(nil) +} + +// UnsetDescription ensures that no value is present for Description, not even an explicit nil +func (o *CreateFilterPolicyRequest) UnsetDescription() { + o.Description.Unset() +} + +// GetEnabled returns the Enabled field value if set, zero value otherwise. +func (o *CreateFilterPolicyRequest) GetEnabled() bool { + if o == nil || IsNil(o.Enabled) { + var ret bool + return ret + } + return *o.Enabled +} + +// GetEnabledOk returns a tuple with the Enabled field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CreateFilterPolicyRequest) GetEnabledOk() (*bool, bool) { + if o == nil || IsNil(o.Enabled) { + return nil, false + } + return o.Enabled, true +} + +// HasEnabled returns a boolean if a field has been set. +func (o *CreateFilterPolicyRequest) HasEnabled() bool { + if o != nil && !IsNil(o.Enabled) { + return true + } + + return false +} + +// SetEnabled gets a reference to the given bool and assigns it to the Enabled field. +func (o *CreateFilterPolicyRequest) SetEnabled(v bool) { + o.Enabled = &v +} + +// GetRules returns the Rules field value +func (o *CreateFilterPolicyRequest) GetRules() []CreateFilterPolicyRequestRulesInner { + if o == nil { + var ret []CreateFilterPolicyRequestRulesInner + return ret + } + + return o.Rules +} + +// GetRulesOk returns a tuple with the Rules field value +// and a boolean to check if the value has been set. +func (o *CreateFilterPolicyRequest) GetRulesOk() ([]CreateFilterPolicyRequestRulesInner, bool) { + if o == nil { + return nil, false + } + return o.Rules, true +} + +// SetRules sets field value +func (o *CreateFilterPolicyRequest) SetRules(v []CreateFilterPolicyRequestRulesInner) { + o.Rules = v +} + +func (o CreateFilterPolicyRequest) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o CreateFilterPolicyRequest) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["name"] = o.Name + if o.Description.IsSet() { + toSerialize["description"] = o.Description.Get() + } + if !IsNil(o.Enabled) { + toSerialize["enabled"] = o.Enabled + } + toSerialize["rules"] = o.Rules + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *CreateFilterPolicyRequest) 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", + "rules", + } + + 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) + } + } + + varCreateFilterPolicyRequest := _CreateFilterPolicyRequest{} + + err = json.Unmarshal(data, &varCreateFilterPolicyRequest) + + if err != nil { + return err + } + + *o = CreateFilterPolicyRequest(varCreateFilterPolicyRequest) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "name") + delete(additionalProperties, "description") + delete(additionalProperties, "enabled") + delete(additionalProperties, "rules") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableCreateFilterPolicyRequest struct { + value *CreateFilterPolicyRequest + isSet bool +} + +func (v NullableCreateFilterPolicyRequest) Get() *CreateFilterPolicyRequest { + return v.value +} + +func (v *NullableCreateFilterPolicyRequest) Set(val *CreateFilterPolicyRequest) { + v.value = val + v.isSet = true +} + +func (v NullableCreateFilterPolicyRequest) IsSet() bool { + return v.isSet +} + +func (v *NullableCreateFilterPolicyRequest) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableCreateFilterPolicyRequest(val *CreateFilterPolicyRequest) *NullableCreateFilterPolicyRequest { + return &NullableCreateFilterPolicyRequest{value: val, isSet: true} +} + +func (v NullableCreateFilterPolicyRequest) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableCreateFilterPolicyRequest) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_create_filter_policy_request_rules_inner.go b/model_create_filter_policy_request_rules_inner.go new file mode 100644 index 0000000..35e538e --- /dev/null +++ b/model_create_filter_policy_request_rules_inner.go @@ -0,0 +1,266 @@ +/* +QuantCDN API + +Unified API for QuantCDN Admin and QuantCloud Platform services + +API version: 4.14.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package quantadmingo + +import ( + "encoding/json" +) + +// checks if the CreateFilterPolicyRequestRulesInner type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &CreateFilterPolicyRequestRulesInner{} + +// CreateFilterPolicyRequestRulesInner struct for CreateFilterPolicyRequestRulesInner +type CreateFilterPolicyRequestRulesInner struct { + Name *string `json:"name,omitempty"` + Match *CreateFilterPolicyRequestRulesInnerMatch `json:"match,omitempty"` + Action *string `json:"action,omitempty"` + ApplyTo *string `json:"applyTo,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _CreateFilterPolicyRequestRulesInner CreateFilterPolicyRequestRulesInner + +// NewCreateFilterPolicyRequestRulesInner instantiates a new CreateFilterPolicyRequestRulesInner 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 NewCreateFilterPolicyRequestRulesInner() *CreateFilterPolicyRequestRulesInner { + this := CreateFilterPolicyRequestRulesInner{} + return &this +} + +// NewCreateFilterPolicyRequestRulesInnerWithDefaults instantiates a new CreateFilterPolicyRequestRulesInner 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 NewCreateFilterPolicyRequestRulesInnerWithDefaults() *CreateFilterPolicyRequestRulesInner { + this := CreateFilterPolicyRequestRulesInner{} + return &this +} + +// GetName returns the Name field value if set, zero value otherwise. +func (o *CreateFilterPolicyRequestRulesInner) 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 *CreateFilterPolicyRequestRulesInner) 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 *CreateFilterPolicyRequestRulesInner) 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 *CreateFilterPolicyRequestRulesInner) SetName(v string) { + o.Name = &v +} + +// GetMatch returns the Match field value if set, zero value otherwise. +func (o *CreateFilterPolicyRequestRulesInner) GetMatch() CreateFilterPolicyRequestRulesInnerMatch { + if o == nil || IsNil(o.Match) { + var ret CreateFilterPolicyRequestRulesInnerMatch + return ret + } + return *o.Match +} + +// GetMatchOk returns a tuple with the Match field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CreateFilterPolicyRequestRulesInner) GetMatchOk() (*CreateFilterPolicyRequestRulesInnerMatch, bool) { + if o == nil || IsNil(o.Match) { + return nil, false + } + return o.Match, true +} + +// HasMatch returns a boolean if a field has been set. +func (o *CreateFilterPolicyRequestRulesInner) HasMatch() bool { + if o != nil && !IsNil(o.Match) { + return true + } + + return false +} + +// SetMatch gets a reference to the given CreateFilterPolicyRequestRulesInnerMatch and assigns it to the Match field. +func (o *CreateFilterPolicyRequestRulesInner) SetMatch(v CreateFilterPolicyRequestRulesInnerMatch) { + o.Match = &v +} + +// GetAction returns the Action field value if set, zero value otherwise. +func (o *CreateFilterPolicyRequestRulesInner) GetAction() string { + if o == nil || IsNil(o.Action) { + var ret string + return ret + } + return *o.Action +} + +// GetActionOk returns a tuple with the Action field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CreateFilterPolicyRequestRulesInner) GetActionOk() (*string, bool) { + if o == nil || IsNil(o.Action) { + return nil, false + } + return o.Action, true +} + +// HasAction returns a boolean if a field has been set. +func (o *CreateFilterPolicyRequestRulesInner) HasAction() bool { + if o != nil && !IsNil(o.Action) { + return true + } + + return false +} + +// SetAction gets a reference to the given string and assigns it to the Action field. +func (o *CreateFilterPolicyRequestRulesInner) SetAction(v string) { + o.Action = &v +} + +// GetApplyTo returns the ApplyTo field value if set, zero value otherwise. +func (o *CreateFilterPolicyRequestRulesInner) GetApplyTo() string { + if o == nil || IsNil(o.ApplyTo) { + var ret string + return ret + } + return *o.ApplyTo +} + +// GetApplyToOk returns a tuple with the ApplyTo field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CreateFilterPolicyRequestRulesInner) GetApplyToOk() (*string, bool) { + if o == nil || IsNil(o.ApplyTo) { + return nil, false + } + return o.ApplyTo, true +} + +// HasApplyTo returns a boolean if a field has been set. +func (o *CreateFilterPolicyRequestRulesInner) HasApplyTo() bool { + if o != nil && !IsNil(o.ApplyTo) { + return true + } + + return false +} + +// SetApplyTo gets a reference to the given string and assigns it to the ApplyTo field. +func (o *CreateFilterPolicyRequestRulesInner) SetApplyTo(v string) { + o.ApplyTo = &v +} + +func (o CreateFilterPolicyRequestRulesInner) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o CreateFilterPolicyRequestRulesInner) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Name) { + toSerialize["name"] = o.Name + } + if !IsNil(o.Match) { + toSerialize["match"] = o.Match + } + if !IsNil(o.Action) { + toSerialize["action"] = o.Action + } + if !IsNil(o.ApplyTo) { + toSerialize["applyTo"] = o.ApplyTo + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *CreateFilterPolicyRequestRulesInner) UnmarshalJSON(data []byte) (err error) { + varCreateFilterPolicyRequestRulesInner := _CreateFilterPolicyRequestRulesInner{} + + err = json.Unmarshal(data, &varCreateFilterPolicyRequestRulesInner) + + if err != nil { + return err + } + + *o = CreateFilterPolicyRequestRulesInner(varCreateFilterPolicyRequestRulesInner) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "name") + delete(additionalProperties, "match") + delete(additionalProperties, "action") + delete(additionalProperties, "applyTo") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableCreateFilterPolicyRequestRulesInner struct { + value *CreateFilterPolicyRequestRulesInner + isSet bool +} + +func (v NullableCreateFilterPolicyRequestRulesInner) Get() *CreateFilterPolicyRequestRulesInner { + return v.value +} + +func (v *NullableCreateFilterPolicyRequestRulesInner) Set(val *CreateFilterPolicyRequestRulesInner) { + v.value = val + v.isSet = true +} + +func (v NullableCreateFilterPolicyRequestRulesInner) IsSet() bool { + return v.isSet +} + +func (v *NullableCreateFilterPolicyRequestRulesInner) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableCreateFilterPolicyRequestRulesInner(val *CreateFilterPolicyRequestRulesInner) *NullableCreateFilterPolicyRequestRulesInner { + return &NullableCreateFilterPolicyRequestRulesInner{value: val, isSet: true} +} + +func (v NullableCreateFilterPolicyRequestRulesInner) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableCreateFilterPolicyRequestRulesInner) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_create_filter_policy_request_rules_inner_match.go b/model_create_filter_policy_request_rules_inner_match.go new file mode 100644 index 0000000..ffd659f --- /dev/null +++ b/model_create_filter_policy_request_rules_inner_match.go @@ -0,0 +1,231 @@ +/* +QuantCDN API + +Unified API for QuantCDN Admin and QuantCloud Platform services + +API version: 4.14.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package quantadmingo + +import ( + "encoding/json" +) + +// checks if the CreateFilterPolicyRequestRulesInnerMatch type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &CreateFilterPolicyRequestRulesInnerMatch{} + +// CreateFilterPolicyRequestRulesInnerMatch Match criteria +type CreateFilterPolicyRequestRulesInnerMatch struct { + Type *string `json:"type,omitempty"` + // Required when type=word + Values []string `json:"values,omitempty"` + // Required when type=regex + Pattern *string `json:"pattern,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _CreateFilterPolicyRequestRulesInnerMatch CreateFilterPolicyRequestRulesInnerMatch + +// NewCreateFilterPolicyRequestRulesInnerMatch instantiates a new CreateFilterPolicyRequestRulesInnerMatch 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 NewCreateFilterPolicyRequestRulesInnerMatch() *CreateFilterPolicyRequestRulesInnerMatch { + this := CreateFilterPolicyRequestRulesInnerMatch{} + return &this +} + +// NewCreateFilterPolicyRequestRulesInnerMatchWithDefaults instantiates a new CreateFilterPolicyRequestRulesInnerMatch 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 NewCreateFilterPolicyRequestRulesInnerMatchWithDefaults() *CreateFilterPolicyRequestRulesInnerMatch { + this := CreateFilterPolicyRequestRulesInnerMatch{} + return &this +} + +// GetType returns the Type field value if set, zero value otherwise. +func (o *CreateFilterPolicyRequestRulesInnerMatch) GetType() string { + if o == nil || IsNil(o.Type) { + var ret string + return ret + } + return *o.Type +} + +// GetTypeOk returns a tuple with the Type field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CreateFilterPolicyRequestRulesInnerMatch) GetTypeOk() (*string, bool) { + if o == nil || IsNil(o.Type) { + return nil, false + } + return o.Type, true +} + +// HasType returns a boolean if a field has been set. +func (o *CreateFilterPolicyRequestRulesInnerMatch) HasType() bool { + if o != nil && !IsNil(o.Type) { + return true + } + + return false +} + +// SetType gets a reference to the given string and assigns it to the Type field. +func (o *CreateFilterPolicyRequestRulesInnerMatch) SetType(v string) { + o.Type = &v +} + +// GetValues returns the Values field value if set, zero value otherwise. +func (o *CreateFilterPolicyRequestRulesInnerMatch) GetValues() []string { + if o == nil || IsNil(o.Values) { + var ret []string + return ret + } + return o.Values +} + +// GetValuesOk returns a tuple with the Values field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CreateFilterPolicyRequestRulesInnerMatch) GetValuesOk() ([]string, bool) { + if o == nil || IsNil(o.Values) { + return nil, false + } + return o.Values, true +} + +// HasValues returns a boolean if a field has been set. +func (o *CreateFilterPolicyRequestRulesInnerMatch) HasValues() bool { + if o != nil && !IsNil(o.Values) { + return true + } + + return false +} + +// SetValues gets a reference to the given []string and assigns it to the Values field. +func (o *CreateFilterPolicyRequestRulesInnerMatch) SetValues(v []string) { + o.Values = v +} + +// GetPattern returns the Pattern field value if set, zero value otherwise. +func (o *CreateFilterPolicyRequestRulesInnerMatch) GetPattern() string { + if o == nil || IsNil(o.Pattern) { + var ret string + return ret + } + return *o.Pattern +} + +// GetPatternOk returns a tuple with the Pattern field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CreateFilterPolicyRequestRulesInnerMatch) GetPatternOk() (*string, bool) { + if o == nil || IsNil(o.Pattern) { + return nil, false + } + return o.Pattern, true +} + +// HasPattern returns a boolean if a field has been set. +func (o *CreateFilterPolicyRequestRulesInnerMatch) HasPattern() bool { + if o != nil && !IsNil(o.Pattern) { + return true + } + + return false +} + +// SetPattern gets a reference to the given string and assigns it to the Pattern field. +func (o *CreateFilterPolicyRequestRulesInnerMatch) SetPattern(v string) { + o.Pattern = &v +} + +func (o CreateFilterPolicyRequestRulesInnerMatch) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o CreateFilterPolicyRequestRulesInnerMatch) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Type) { + toSerialize["type"] = o.Type + } + if !IsNil(o.Values) { + toSerialize["values"] = o.Values + } + if !IsNil(o.Pattern) { + toSerialize["pattern"] = o.Pattern + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *CreateFilterPolicyRequestRulesInnerMatch) UnmarshalJSON(data []byte) (err error) { + varCreateFilterPolicyRequestRulesInnerMatch := _CreateFilterPolicyRequestRulesInnerMatch{} + + err = json.Unmarshal(data, &varCreateFilterPolicyRequestRulesInnerMatch) + + if err != nil { + return err + } + + *o = CreateFilterPolicyRequestRulesInnerMatch(varCreateFilterPolicyRequestRulesInnerMatch) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "type") + delete(additionalProperties, "values") + delete(additionalProperties, "pattern") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableCreateFilterPolicyRequestRulesInnerMatch struct { + value *CreateFilterPolicyRequestRulesInnerMatch + isSet bool +} + +func (v NullableCreateFilterPolicyRequestRulesInnerMatch) Get() *CreateFilterPolicyRequestRulesInnerMatch { + return v.value +} + +func (v *NullableCreateFilterPolicyRequestRulesInnerMatch) Set(val *CreateFilterPolicyRequestRulesInnerMatch) { + v.value = val + v.isSet = true +} + +func (v NullableCreateFilterPolicyRequestRulesInnerMatch) IsSet() bool { + return v.isSet +} + +func (v *NullableCreateFilterPolicyRequestRulesInnerMatch) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableCreateFilterPolicyRequestRulesInnerMatch(val *CreateFilterPolicyRequestRulesInnerMatch) *NullableCreateFilterPolicyRequestRulesInnerMatch { + return &NullableCreateFilterPolicyRequestRulesInnerMatch{value: val, isSet: true} +} + +func (v NullableCreateFilterPolicyRequestRulesInnerMatch) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableCreateFilterPolicyRequestRulesInnerMatch) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_create_orchestration_request.go b/model_create_orchestration_request.go index adbb16b..1c14d18 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.13.0 +API version: 4.14.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_create_orchestration_request_input_source.go b/model_create_orchestration_request_input_source.go index 4a7b3a4..62c0c3b 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.13.0 +API version: 4.14.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 43e5212..c5ff014 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.13.0 +API version: 4.14.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_create_skill_201_response.go b/model_create_skill_201_response.go index fdf66ca..0419099 100644 --- a/model_create_skill_201_response.go +++ b/model_create_skill_201_response.go @@ -3,7 +3,7 @@ QuantCDN API Unified API for QuantCDN Admin and QuantCloud Platform services -API version: 4.13.0 +API version: 4.14.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_create_skill_request.go b/model_create_skill_request.go index 81afee9..1fc7b39 100644 --- a/model_create_skill_request.go +++ b/model_create_skill_request.go @@ -3,7 +3,7 @@ QuantCDN API Unified API for QuantCDN Admin and QuantCloud Platform services -API version: 4.13.0 +API version: 4.14.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_create_slack_bot_201_response.go b/model_create_slack_bot_201_response.go new file mode 100644 index 0000000..1b4d2b9 --- /dev/null +++ b/model_create_slack_bot_201_response.go @@ -0,0 +1,155 @@ +/* +QuantCDN API + +Unified API for QuantCDN Admin and QuantCloud Platform services + +API version: 4.14.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package quantadmingo + +import ( + "encoding/json" +) + +// checks if the CreateSlackBot201Response type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &CreateSlackBot201Response{} + +// CreateSlackBot201Response struct for CreateSlackBot201Response +type CreateSlackBot201Response struct { + Bot map[string]interface{} `json:"bot,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _CreateSlackBot201Response CreateSlackBot201Response + +// NewCreateSlackBot201Response instantiates a new CreateSlackBot201Response 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 NewCreateSlackBot201Response() *CreateSlackBot201Response { + this := CreateSlackBot201Response{} + return &this +} + +// NewCreateSlackBot201ResponseWithDefaults instantiates a new CreateSlackBot201Response 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 NewCreateSlackBot201ResponseWithDefaults() *CreateSlackBot201Response { + this := CreateSlackBot201Response{} + return &this +} + +// GetBot returns the Bot field value if set, zero value otherwise. +func (o *CreateSlackBot201Response) GetBot() map[string]interface{} { + if o == nil || IsNil(o.Bot) { + var ret map[string]interface{} + return ret + } + return o.Bot +} + +// GetBotOk returns a tuple with the Bot field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CreateSlackBot201Response) GetBotOk() (map[string]interface{}, bool) { + if o == nil || IsNil(o.Bot) { + return map[string]interface{}{}, false + } + return o.Bot, true +} + +// HasBot returns a boolean if a field has been set. +func (o *CreateSlackBot201Response) HasBot() bool { + if o != nil && !IsNil(o.Bot) { + return true + } + + return false +} + +// SetBot gets a reference to the given map[string]interface{} and assigns it to the Bot field. +func (o *CreateSlackBot201Response) SetBot(v map[string]interface{}) { + o.Bot = v +} + +func (o CreateSlackBot201Response) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o CreateSlackBot201Response) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Bot) { + toSerialize["bot"] = o.Bot + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *CreateSlackBot201Response) UnmarshalJSON(data []byte) (err error) { + varCreateSlackBot201Response := _CreateSlackBot201Response{} + + err = json.Unmarshal(data, &varCreateSlackBot201Response) + + if err != nil { + return err + } + + *o = CreateSlackBot201Response(varCreateSlackBot201Response) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "bot") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableCreateSlackBot201Response struct { + value *CreateSlackBot201Response + isSet bool +} + +func (v NullableCreateSlackBot201Response) Get() *CreateSlackBot201Response { + return v.value +} + +func (v *NullableCreateSlackBot201Response) Set(val *CreateSlackBot201Response) { + v.value = val + v.isSet = true +} + +func (v NullableCreateSlackBot201Response) IsSet() bool { + return v.isSet +} + +func (v *NullableCreateSlackBot201Response) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableCreateSlackBot201Response(val *CreateSlackBot201Response) *NullableCreateSlackBot201Response { + return &NullableCreateSlackBot201Response{value: val, isSet: true} +} + +func (v NullableCreateSlackBot201Response) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableCreateSlackBot201Response) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_create_slack_bot_request.go b/model_create_slack_bot_request.go new file mode 100644 index 0000000..31cedc0 --- /dev/null +++ b/model_create_slack_bot_request.go @@ -0,0 +1,389 @@ +/* +QuantCDN API + +Unified API for QuantCDN Admin and QuantCloud Platform services + +API version: 4.14.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package quantadmingo + +import ( + "encoding/json" + "fmt" +) + +// checks if the CreateSlackBotRequest type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &CreateSlackBotRequest{} + +// CreateSlackBotRequest struct for CreateSlackBotRequest +type CreateSlackBotRequest struct { + // The AI agent that powers this bot + AgentId string `json:"agentId"` + // Whether to use Quant-managed or customer-provided Slack app + SetupType string `json:"setupType"` + // Session TTL in days + SessionTtlDays *int32 `json:"sessionTtlDays,omitempty"` + // Slack channel IDs the bot may respond in + AllowedChannels []string `json:"allowedChannels,omitempty"` + // Whether keyword triggers are enabled + KeywordsEnabled *bool `json:"keywordsEnabled,omitempty"` + // Keywords that trigger the bot + Keywords []string `json:"keywords,omitempty"` + // Slash commands the bot responds to + SlashCommands []string `json:"slashCommands,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _CreateSlackBotRequest CreateSlackBotRequest + +// NewCreateSlackBotRequest instantiates a new CreateSlackBotRequest 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 NewCreateSlackBotRequest(agentId string, setupType string) *CreateSlackBotRequest { + this := CreateSlackBotRequest{} + this.AgentId = agentId + this.SetupType = setupType + return &this +} + +// NewCreateSlackBotRequestWithDefaults instantiates a new CreateSlackBotRequest 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 NewCreateSlackBotRequestWithDefaults() *CreateSlackBotRequest { + this := CreateSlackBotRequest{} + return &this +} + +// GetAgentId returns the AgentId field value +func (o *CreateSlackBotRequest) GetAgentId() string { + if o == nil { + var ret string + return ret + } + + return o.AgentId +} + +// GetAgentIdOk returns a tuple with the AgentId field value +// and a boolean to check if the value has been set. +func (o *CreateSlackBotRequest) GetAgentIdOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.AgentId, true +} + +// SetAgentId sets field value +func (o *CreateSlackBotRequest) SetAgentId(v string) { + o.AgentId = v +} + +// GetSetupType returns the SetupType field value +func (o *CreateSlackBotRequest) GetSetupType() string { + if o == nil { + var ret string + return ret + } + + return o.SetupType +} + +// GetSetupTypeOk returns a tuple with the SetupType field value +// and a boolean to check if the value has been set. +func (o *CreateSlackBotRequest) GetSetupTypeOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.SetupType, true +} + +// SetSetupType sets field value +func (o *CreateSlackBotRequest) SetSetupType(v string) { + o.SetupType = v +} + +// GetSessionTtlDays returns the SessionTtlDays field value if set, zero value otherwise. +func (o *CreateSlackBotRequest) GetSessionTtlDays() int32 { + if o == nil || IsNil(o.SessionTtlDays) { + var ret int32 + return ret + } + return *o.SessionTtlDays +} + +// GetSessionTtlDaysOk returns a tuple with the SessionTtlDays field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CreateSlackBotRequest) GetSessionTtlDaysOk() (*int32, bool) { + if o == nil || IsNil(o.SessionTtlDays) { + return nil, false + } + return o.SessionTtlDays, true +} + +// HasSessionTtlDays returns a boolean if a field has been set. +func (o *CreateSlackBotRequest) HasSessionTtlDays() bool { + if o != nil && !IsNil(o.SessionTtlDays) { + return true + } + + return false +} + +// SetSessionTtlDays gets a reference to the given int32 and assigns it to the SessionTtlDays field. +func (o *CreateSlackBotRequest) SetSessionTtlDays(v int32) { + o.SessionTtlDays = &v +} + +// GetAllowedChannels returns the AllowedChannels field value if set, zero value otherwise. +func (o *CreateSlackBotRequest) GetAllowedChannels() []string { + if o == nil || IsNil(o.AllowedChannels) { + var ret []string + return ret + } + return o.AllowedChannels +} + +// GetAllowedChannelsOk returns a tuple with the AllowedChannels field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CreateSlackBotRequest) GetAllowedChannelsOk() ([]string, bool) { + if o == nil || IsNil(o.AllowedChannels) { + return nil, false + } + return o.AllowedChannels, true +} + +// HasAllowedChannels returns a boolean if a field has been set. +func (o *CreateSlackBotRequest) HasAllowedChannels() bool { + if o != nil && !IsNil(o.AllowedChannels) { + return true + } + + return false +} + +// SetAllowedChannels gets a reference to the given []string and assigns it to the AllowedChannels field. +func (o *CreateSlackBotRequest) SetAllowedChannels(v []string) { + o.AllowedChannels = v +} + +// GetKeywordsEnabled returns the KeywordsEnabled field value if set, zero value otherwise. +func (o *CreateSlackBotRequest) GetKeywordsEnabled() bool { + if o == nil || IsNil(o.KeywordsEnabled) { + var ret bool + return ret + } + return *o.KeywordsEnabled +} + +// GetKeywordsEnabledOk returns a tuple with the KeywordsEnabled field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CreateSlackBotRequest) GetKeywordsEnabledOk() (*bool, bool) { + if o == nil || IsNil(o.KeywordsEnabled) { + return nil, false + } + return o.KeywordsEnabled, true +} + +// HasKeywordsEnabled returns a boolean if a field has been set. +func (o *CreateSlackBotRequest) HasKeywordsEnabled() bool { + if o != nil && !IsNil(o.KeywordsEnabled) { + return true + } + + return false +} + +// SetKeywordsEnabled gets a reference to the given bool and assigns it to the KeywordsEnabled field. +func (o *CreateSlackBotRequest) SetKeywordsEnabled(v bool) { + o.KeywordsEnabled = &v +} + +// GetKeywords returns the Keywords field value if set, zero value otherwise. +func (o *CreateSlackBotRequest) GetKeywords() []string { + if o == nil || IsNil(o.Keywords) { + var ret []string + return ret + } + return o.Keywords +} + +// GetKeywordsOk returns a tuple with the Keywords field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CreateSlackBotRequest) GetKeywordsOk() ([]string, bool) { + if o == nil || IsNil(o.Keywords) { + return nil, false + } + return o.Keywords, true +} + +// HasKeywords returns a boolean if a field has been set. +func (o *CreateSlackBotRequest) HasKeywords() bool { + if o != nil && !IsNil(o.Keywords) { + return true + } + + return false +} + +// SetKeywords gets a reference to the given []string and assigns it to the Keywords field. +func (o *CreateSlackBotRequest) SetKeywords(v []string) { + o.Keywords = v +} + +// GetSlashCommands returns the SlashCommands field value if set, zero value otherwise. +func (o *CreateSlackBotRequest) GetSlashCommands() []string { + if o == nil || IsNil(o.SlashCommands) { + var ret []string + return ret + } + return o.SlashCommands +} + +// GetSlashCommandsOk returns a tuple with the SlashCommands field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CreateSlackBotRequest) GetSlashCommandsOk() ([]string, bool) { + if o == nil || IsNil(o.SlashCommands) { + return nil, false + } + return o.SlashCommands, true +} + +// HasSlashCommands returns a boolean if a field has been set. +func (o *CreateSlackBotRequest) HasSlashCommands() bool { + if o != nil && !IsNil(o.SlashCommands) { + return true + } + + return false +} + +// SetSlashCommands gets a reference to the given []string and assigns it to the SlashCommands field. +func (o *CreateSlackBotRequest) SetSlashCommands(v []string) { + o.SlashCommands = v +} + +func (o CreateSlackBotRequest) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o CreateSlackBotRequest) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["agentId"] = o.AgentId + toSerialize["setupType"] = o.SetupType + if !IsNil(o.SessionTtlDays) { + toSerialize["sessionTtlDays"] = o.SessionTtlDays + } + if !IsNil(o.AllowedChannels) { + toSerialize["allowedChannels"] = o.AllowedChannels + } + if !IsNil(o.KeywordsEnabled) { + toSerialize["keywordsEnabled"] = o.KeywordsEnabled + } + if !IsNil(o.Keywords) { + toSerialize["keywords"] = o.Keywords + } + if !IsNil(o.SlashCommands) { + toSerialize["slashCommands"] = o.SlashCommands + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *CreateSlackBotRequest) 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{ + "agentId", + "setupType", + } + + 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) + } + } + + varCreateSlackBotRequest := _CreateSlackBotRequest{} + + err = json.Unmarshal(data, &varCreateSlackBotRequest) + + if err != nil { + return err + } + + *o = CreateSlackBotRequest(varCreateSlackBotRequest) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "agentId") + delete(additionalProperties, "setupType") + delete(additionalProperties, "sessionTtlDays") + delete(additionalProperties, "allowedChannels") + delete(additionalProperties, "keywordsEnabled") + delete(additionalProperties, "keywords") + delete(additionalProperties, "slashCommands") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableCreateSlackBotRequest struct { + value *CreateSlackBotRequest + isSet bool +} + +func (v NullableCreateSlackBotRequest) Get() *CreateSlackBotRequest { + return v.value +} + +func (v *NullableCreateSlackBotRequest) Set(val *CreateSlackBotRequest) { + v.value = val + v.isSet = true +} + +func (v NullableCreateSlackBotRequest) IsSet() bool { + return v.isSet +} + +func (v *NullableCreateSlackBotRequest) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableCreateSlackBotRequest(val *CreateSlackBotRequest) *NullableCreateSlackBotRequest { + return &NullableCreateSlackBotRequest{value: val, isSet: true} +} + +func (v NullableCreateSlackBotRequest) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableCreateSlackBotRequest) 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 2eca2fb..db4828a 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.13.0 +API version: 4.14.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 7de7a2d..032b69d 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.13.0 +API version: 4.14.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 1dfb4f0..27bc585 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.13.0 +API version: 4.14.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 4e3c65c..35452dc 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.13.0 +API version: 4.14.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 7df026b..dafb647 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.13.0 +API version: 4.14.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 16a0bf9..bddab09 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.13.0 +API version: 4.14.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_cron.go b/model_cron.go index b0d17dc..44dc3c1 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.13.0 +API version: 4.14.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 443e504..4b843b8 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.13.0 +API version: 4.14.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_delete_agent_overlay_200_response.go b/model_delete_agent_overlay_200_response.go new file mode 100644 index 0000000..ea6b20a --- /dev/null +++ b/model_delete_agent_overlay_200_response.go @@ -0,0 +1,192 @@ +/* +QuantCDN API + +Unified API for QuantCDN Admin and QuantCloud Platform services + +API version: 4.14.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package quantadmingo + +import ( + "encoding/json" +) + +// checks if the DeleteAgentOverlay200Response type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &DeleteAgentOverlay200Response{} + +// DeleteAgentOverlay200Response struct for DeleteAgentOverlay200Response +type DeleteAgentOverlay200Response struct { + Success *bool `json:"success,omitempty"` + Message *string `json:"message,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _DeleteAgentOverlay200Response DeleteAgentOverlay200Response + +// NewDeleteAgentOverlay200Response instantiates a new DeleteAgentOverlay200Response 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 NewDeleteAgentOverlay200Response() *DeleteAgentOverlay200Response { + this := DeleteAgentOverlay200Response{} + return &this +} + +// NewDeleteAgentOverlay200ResponseWithDefaults instantiates a new DeleteAgentOverlay200Response 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 NewDeleteAgentOverlay200ResponseWithDefaults() *DeleteAgentOverlay200Response { + this := DeleteAgentOverlay200Response{} + return &this +} + +// GetSuccess returns the Success field value if set, zero value otherwise. +func (o *DeleteAgentOverlay200Response) 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 *DeleteAgentOverlay200Response) 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 *DeleteAgentOverlay200Response) 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 *DeleteAgentOverlay200Response) SetSuccess(v bool) { + o.Success = &v +} + +// GetMessage returns the Message field value if set, zero value otherwise. +func (o *DeleteAgentOverlay200Response) 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 *DeleteAgentOverlay200Response) 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 *DeleteAgentOverlay200Response) 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 *DeleteAgentOverlay200Response) SetMessage(v string) { + o.Message = &v +} + +func (o DeleteAgentOverlay200Response) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o DeleteAgentOverlay200Response) 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 *DeleteAgentOverlay200Response) UnmarshalJSON(data []byte) (err error) { + varDeleteAgentOverlay200Response := _DeleteAgentOverlay200Response{} + + err = json.Unmarshal(data, &varDeleteAgentOverlay200Response) + + if err != nil { + return err + } + + *o = DeleteAgentOverlay200Response(varDeleteAgentOverlay200Response) + + 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 NullableDeleteAgentOverlay200Response struct { + value *DeleteAgentOverlay200Response + isSet bool +} + +func (v NullableDeleteAgentOverlay200Response) Get() *DeleteAgentOverlay200Response { + return v.value +} + +func (v *NullableDeleteAgentOverlay200Response) Set(val *DeleteAgentOverlay200Response) { + v.value = val + v.isSet = true +} + +func (v NullableDeleteAgentOverlay200Response) IsSet() bool { + return v.isSet +} + +func (v *NullableDeleteAgentOverlay200Response) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableDeleteAgentOverlay200Response(val *DeleteAgentOverlay200Response) *NullableDeleteAgentOverlay200Response { + return &NullableDeleteAgentOverlay200Response{value: val, isSet: true} +} + +func (v NullableDeleteAgentOverlay200Response) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableDeleteAgentOverlay200Response) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_delete_ai_agent_200_response.go b/model_delete_ai_agent_200_response.go index 86c2543..5102da8 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.13.0 +API version: 4.14.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 e7c1bfc..81c0f23 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.13.0 +API version: 4.14.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 21b5e85..ba03ff6 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.13.0 +API version: 4.14.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 fb3bb68..fdf20ae 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.13.0 +API version: 4.14.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 e7d6f50..5fb6828 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.13.0 +API version: 4.14.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_delete_skill_200_response.go b/model_delete_skill_200_response.go index 3507e52..91581f8 100644 --- a/model_delete_skill_200_response.go +++ b/model_delete_skill_200_response.go @@ -3,7 +3,7 @@ QuantCDN API Unified API for QuantCDN Admin and QuantCloud Platform services -API version: 4.13.0 +API version: 4.14.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_delete_skill_collection_200_response.go b/model_delete_skill_collection_200_response.go index d1b2c55..d2d91db 100644 --- a/model_delete_skill_collection_200_response.go +++ b/model_delete_skill_collection_200_response.go @@ -3,7 +3,7 @@ QuantCDN API Unified API for QuantCDN Admin and QuantCloud Platform services -API version: 4.13.0 +API version: 4.14.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_delete_slack_bot_200_response.go b/model_delete_slack_bot_200_response.go new file mode 100644 index 0000000..0aa5dd6 --- /dev/null +++ b/model_delete_slack_bot_200_response.go @@ -0,0 +1,192 @@ +/* +QuantCDN API + +Unified API for QuantCDN Admin and QuantCloud Platform services + +API version: 4.14.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package quantadmingo + +import ( + "encoding/json" +) + +// checks if the DeleteSlackBot200Response type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &DeleteSlackBot200Response{} + +// DeleteSlackBot200Response struct for DeleteSlackBot200Response +type DeleteSlackBot200Response struct { + Success *bool `json:"success,omitempty"` + Message *string `json:"message,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _DeleteSlackBot200Response DeleteSlackBot200Response + +// NewDeleteSlackBot200Response instantiates a new DeleteSlackBot200Response 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 NewDeleteSlackBot200Response() *DeleteSlackBot200Response { + this := DeleteSlackBot200Response{} + return &this +} + +// NewDeleteSlackBot200ResponseWithDefaults instantiates a new DeleteSlackBot200Response 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 NewDeleteSlackBot200ResponseWithDefaults() *DeleteSlackBot200Response { + this := DeleteSlackBot200Response{} + return &this +} + +// GetSuccess returns the Success field value if set, zero value otherwise. +func (o *DeleteSlackBot200Response) 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 *DeleteSlackBot200Response) 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 *DeleteSlackBot200Response) 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 *DeleteSlackBot200Response) SetSuccess(v bool) { + o.Success = &v +} + +// GetMessage returns the Message field value if set, zero value otherwise. +func (o *DeleteSlackBot200Response) 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 *DeleteSlackBot200Response) 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 *DeleteSlackBot200Response) 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 *DeleteSlackBot200Response) SetMessage(v string) { + o.Message = &v +} + +func (o DeleteSlackBot200Response) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o DeleteSlackBot200Response) 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 *DeleteSlackBot200Response) UnmarshalJSON(data []byte) (err error) { + varDeleteSlackBot200Response := _DeleteSlackBot200Response{} + + err = json.Unmarshal(data, &varDeleteSlackBot200Response) + + if err != nil { + return err + } + + *o = DeleteSlackBot200Response(varDeleteSlackBot200Response) + + 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 NullableDeleteSlackBot200Response struct { + value *DeleteSlackBot200Response + isSet bool +} + +func (v NullableDeleteSlackBot200Response) Get() *DeleteSlackBot200Response { + return v.value +} + +func (v *NullableDeleteSlackBot200Response) Set(val *DeleteSlackBot200Response) { + v.value = val + v.isSet = true +} + +func (v NullableDeleteSlackBot200Response) IsSet() bool { + return v.isSet +} + +func (v *NullableDeleteSlackBot200Response) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableDeleteSlackBot200Response(val *DeleteSlackBot200Response) *NullableDeleteSlackBot200Response { + return &NullableDeleteSlackBot200Response{value: val, isSet: true} +} + +func (v NullableDeleteSlackBot200Response) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableDeleteSlackBot200Response) 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 a1559a2..ddce02e 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.13.0 +API version: 4.14.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 a27df0b..ff27bc1 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.13.0 +API version: 4.14.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 efc9670..662aa9c 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.13.0 +API version: 4.14.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 7a368be..6ca21fe 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.13.0 +API version: 4.14.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 e7724b1..a1f702b 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.13.0 +API version: 4.14.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 37238c2..88ce2dd 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.13.0 +API version: 4.14.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 7823810..95091c7 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.13.0 +API version: 4.14.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 432a6cc..5069c43 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.13.0 +API version: 4.14.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 c23f8d6..f240bc8 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.13.0 +API version: 4.14.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 0fcb557..f350b86 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.13.0 +API version: 4.14.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 4c5fe58..46fcc69 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.13.0 +API version: 4.14.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_environment.go b/model_environment.go index fa4e482..d868b28 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.13.0 +API version: 4.14.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 91edca7..6afc37c 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.13.0 +API version: 4.14.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 66d2396..124f793 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.13.0 +API version: 4.14.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 fa1ecf3..0820a5e 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.13.0 +API version: 4.14.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 cd46e3b..5f8e539 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.13.0 +API version: 4.14.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_get_agent_overlay_200_response.go b/model_get_agent_overlay_200_response.go new file mode 100644 index 0000000..b64480d --- /dev/null +++ b/model_get_agent_overlay_200_response.go @@ -0,0 +1,202 @@ +/* +QuantCDN API + +Unified API for QuantCDN Admin and QuantCloud Platform services + +API version: 4.14.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package quantadmingo + +import ( + "encoding/json" +) + +// checks if the GetAgentOverlay200Response type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &GetAgentOverlay200Response{} + +// GetAgentOverlay200Response struct for GetAgentOverlay200Response +type GetAgentOverlay200Response struct { + Overlay NullableGetAgentOverlay200ResponseOverlay `json:"overlay,omitempty"` + Base *GetAgentOverlay200ResponseBase `json:"base,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _GetAgentOverlay200Response GetAgentOverlay200Response + +// NewGetAgentOverlay200Response instantiates a new GetAgentOverlay200Response 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 NewGetAgentOverlay200Response() *GetAgentOverlay200Response { + this := GetAgentOverlay200Response{} + return &this +} + +// NewGetAgentOverlay200ResponseWithDefaults instantiates a new GetAgentOverlay200Response 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 NewGetAgentOverlay200ResponseWithDefaults() *GetAgentOverlay200Response { + this := GetAgentOverlay200Response{} + return &this +} + +// GetOverlay returns the Overlay field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *GetAgentOverlay200Response) GetOverlay() GetAgentOverlay200ResponseOverlay { + if o == nil || IsNil(o.Overlay.Get()) { + var ret GetAgentOverlay200ResponseOverlay + return ret + } + return *o.Overlay.Get() +} + +// GetOverlayOk returns a tuple with the Overlay 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 *GetAgentOverlay200Response) GetOverlayOk() (*GetAgentOverlay200ResponseOverlay, bool) { + if o == nil { + return nil, false + } + return o.Overlay.Get(), o.Overlay.IsSet() +} + +// HasOverlay returns a boolean if a field has been set. +func (o *GetAgentOverlay200Response) HasOverlay() bool { + if o != nil && o.Overlay.IsSet() { + return true + } + + return false +} + +// SetOverlay gets a reference to the given NullableGetAgentOverlay200ResponseOverlay and assigns it to the Overlay field. +func (o *GetAgentOverlay200Response) SetOverlay(v GetAgentOverlay200ResponseOverlay) { + o.Overlay.Set(&v) +} +// SetOverlayNil sets the value for Overlay to be an explicit nil +func (o *GetAgentOverlay200Response) SetOverlayNil() { + o.Overlay.Set(nil) +} + +// UnsetOverlay ensures that no value is present for Overlay, not even an explicit nil +func (o *GetAgentOverlay200Response) UnsetOverlay() { + o.Overlay.Unset() +} + +// GetBase returns the Base field value if set, zero value otherwise. +func (o *GetAgentOverlay200Response) GetBase() GetAgentOverlay200ResponseBase { + if o == nil || IsNil(o.Base) { + var ret GetAgentOverlay200ResponseBase + return ret + } + return *o.Base +} + +// GetBaseOk returns a tuple with the Base field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GetAgentOverlay200Response) GetBaseOk() (*GetAgentOverlay200ResponseBase, bool) { + if o == nil || IsNil(o.Base) { + return nil, false + } + return o.Base, true +} + +// HasBase returns a boolean if a field has been set. +func (o *GetAgentOverlay200Response) HasBase() bool { + if o != nil && !IsNil(o.Base) { + return true + } + + return false +} + +// SetBase gets a reference to the given GetAgentOverlay200ResponseBase and assigns it to the Base field. +func (o *GetAgentOverlay200Response) SetBase(v GetAgentOverlay200ResponseBase) { + o.Base = &v +} + +func (o GetAgentOverlay200Response) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o GetAgentOverlay200Response) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if o.Overlay.IsSet() { + toSerialize["overlay"] = o.Overlay.Get() + } + if !IsNil(o.Base) { + toSerialize["base"] = o.Base + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *GetAgentOverlay200Response) UnmarshalJSON(data []byte) (err error) { + varGetAgentOverlay200Response := _GetAgentOverlay200Response{} + + err = json.Unmarshal(data, &varGetAgentOverlay200Response) + + if err != nil { + return err + } + + *o = GetAgentOverlay200Response(varGetAgentOverlay200Response) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "overlay") + delete(additionalProperties, "base") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableGetAgentOverlay200Response struct { + value *GetAgentOverlay200Response + isSet bool +} + +func (v NullableGetAgentOverlay200Response) Get() *GetAgentOverlay200Response { + return v.value +} + +func (v *NullableGetAgentOverlay200Response) Set(val *GetAgentOverlay200Response) { + v.value = val + v.isSet = true +} + +func (v NullableGetAgentOverlay200Response) IsSet() bool { + return v.isSet +} + +func (v *NullableGetAgentOverlay200Response) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableGetAgentOverlay200Response(val *GetAgentOverlay200Response) *NullableGetAgentOverlay200Response { + return &NullableGetAgentOverlay200Response{value: val, isSet: true} +} + +func (v NullableGetAgentOverlay200Response) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableGetAgentOverlay200Response) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_get_agent_overlay_200_response_base.go b/model_get_agent_overlay_200_response_base.go new file mode 100644 index 0000000..e1790e1 --- /dev/null +++ b/model_get_agent_overlay_200_response_base.go @@ -0,0 +1,303 @@ +/* +QuantCDN API + +Unified API for QuantCDN Admin and QuantCloud Platform services + +API version: 4.14.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package quantadmingo + +import ( + "encoding/json" +) + +// checks if the GetAgentOverlay200ResponseBase type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &GetAgentOverlay200ResponseBase{} + +// GetAgentOverlay200ResponseBase Base global agent metadata +type GetAgentOverlay200ResponseBase struct { + AgentId *string `json:"agentId,omitempty"` + Name *string `json:"name,omitempty"` + ModelId *string `json:"modelId,omitempty"` + AllowedTools []string `json:"allowedTools,omitempty"` + AssignedSkillIds []string `json:"assignedSkillIds,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _GetAgentOverlay200ResponseBase GetAgentOverlay200ResponseBase + +// NewGetAgentOverlay200ResponseBase instantiates a new GetAgentOverlay200ResponseBase 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 NewGetAgentOverlay200ResponseBase() *GetAgentOverlay200ResponseBase { + this := GetAgentOverlay200ResponseBase{} + return &this +} + +// NewGetAgentOverlay200ResponseBaseWithDefaults instantiates a new GetAgentOverlay200ResponseBase 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 NewGetAgentOverlay200ResponseBaseWithDefaults() *GetAgentOverlay200ResponseBase { + this := GetAgentOverlay200ResponseBase{} + return &this +} + +// GetAgentId returns the AgentId field value if set, zero value otherwise. +func (o *GetAgentOverlay200ResponseBase) GetAgentId() string { + if o == nil || IsNil(o.AgentId) { + var ret string + return ret + } + return *o.AgentId +} + +// GetAgentIdOk returns a tuple with the AgentId field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GetAgentOverlay200ResponseBase) GetAgentIdOk() (*string, bool) { + if o == nil || IsNil(o.AgentId) { + return nil, false + } + return o.AgentId, true +} + +// HasAgentId returns a boolean if a field has been set. +func (o *GetAgentOverlay200ResponseBase) HasAgentId() bool { + if o != nil && !IsNil(o.AgentId) { + return true + } + + return false +} + +// SetAgentId gets a reference to the given string and assigns it to the AgentId field. +func (o *GetAgentOverlay200ResponseBase) SetAgentId(v string) { + o.AgentId = &v +} + +// GetName returns the Name field value if set, zero value otherwise. +func (o *GetAgentOverlay200ResponseBase) 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 *GetAgentOverlay200ResponseBase) 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 *GetAgentOverlay200ResponseBase) 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 *GetAgentOverlay200ResponseBase) SetName(v string) { + o.Name = &v +} + +// GetModelId returns the ModelId field value if set, zero value otherwise. +func (o *GetAgentOverlay200ResponseBase) GetModelId() string { + if o == nil || IsNil(o.ModelId) { + var ret string + return ret + } + return *o.ModelId +} + +// GetModelIdOk returns a tuple with the ModelId field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GetAgentOverlay200ResponseBase) GetModelIdOk() (*string, bool) { + if o == nil || IsNil(o.ModelId) { + return nil, false + } + return o.ModelId, true +} + +// HasModelId returns a boolean if a field has been set. +func (o *GetAgentOverlay200ResponseBase) HasModelId() bool { + if o != nil && !IsNil(o.ModelId) { + return true + } + + return false +} + +// SetModelId gets a reference to the given string and assigns it to the ModelId field. +func (o *GetAgentOverlay200ResponseBase) SetModelId(v string) { + o.ModelId = &v +} + +// GetAllowedTools returns the AllowedTools field value if set, zero value otherwise. +func (o *GetAgentOverlay200ResponseBase) 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 *GetAgentOverlay200ResponseBase) 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 *GetAgentOverlay200ResponseBase) 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 *GetAgentOverlay200ResponseBase) SetAllowedTools(v []string) { + o.AllowedTools = v +} + +// GetAssignedSkillIds returns the AssignedSkillIds field value if set, zero value otherwise. +func (o *GetAgentOverlay200ResponseBase) GetAssignedSkillIds() []string { + if o == nil || IsNil(o.AssignedSkillIds) { + var ret []string + return ret + } + return o.AssignedSkillIds +} + +// GetAssignedSkillIdsOk returns a tuple with the AssignedSkillIds field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GetAgentOverlay200ResponseBase) GetAssignedSkillIdsOk() ([]string, bool) { + if o == nil || IsNil(o.AssignedSkillIds) { + return nil, false + } + return o.AssignedSkillIds, true +} + +// HasAssignedSkillIds returns a boolean if a field has been set. +func (o *GetAgentOverlay200ResponseBase) HasAssignedSkillIds() bool { + if o != nil && !IsNil(o.AssignedSkillIds) { + return true + } + + return false +} + +// SetAssignedSkillIds gets a reference to the given []string and assigns it to the AssignedSkillIds field. +func (o *GetAgentOverlay200ResponseBase) SetAssignedSkillIds(v []string) { + o.AssignedSkillIds = v +} + +func (o GetAgentOverlay200ResponseBase) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o GetAgentOverlay200ResponseBase) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.AgentId) { + toSerialize["agentId"] = o.AgentId + } + if !IsNil(o.Name) { + toSerialize["name"] = o.Name + } + if !IsNil(o.ModelId) { + toSerialize["modelId"] = o.ModelId + } + if !IsNil(o.AllowedTools) { + toSerialize["allowedTools"] = o.AllowedTools + } + if !IsNil(o.AssignedSkillIds) { + toSerialize["assignedSkillIds"] = o.AssignedSkillIds + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *GetAgentOverlay200ResponseBase) UnmarshalJSON(data []byte) (err error) { + varGetAgentOverlay200ResponseBase := _GetAgentOverlay200ResponseBase{} + + err = json.Unmarshal(data, &varGetAgentOverlay200ResponseBase) + + if err != nil { + return err + } + + *o = GetAgentOverlay200ResponseBase(varGetAgentOverlay200ResponseBase) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "agentId") + delete(additionalProperties, "name") + delete(additionalProperties, "modelId") + delete(additionalProperties, "allowedTools") + delete(additionalProperties, "assignedSkillIds") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableGetAgentOverlay200ResponseBase struct { + value *GetAgentOverlay200ResponseBase + isSet bool +} + +func (v NullableGetAgentOverlay200ResponseBase) Get() *GetAgentOverlay200ResponseBase { + return v.value +} + +func (v *NullableGetAgentOverlay200ResponseBase) Set(val *GetAgentOverlay200ResponseBase) { + v.value = val + v.isSet = true +} + +func (v NullableGetAgentOverlay200ResponseBase) IsSet() bool { + return v.isSet +} + +func (v *NullableGetAgentOverlay200ResponseBase) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableGetAgentOverlay200ResponseBase(val *GetAgentOverlay200ResponseBase) *NullableGetAgentOverlay200ResponseBase { + return &NullableGetAgentOverlay200ResponseBase{value: val, isSet: true} +} + +func (v NullableGetAgentOverlay200ResponseBase) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableGetAgentOverlay200ResponseBase) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_get_agent_overlay_200_response_overlay.go b/model_get_agent_overlay_200_response_overlay.go new file mode 100644 index 0000000..d526612 --- /dev/null +++ b/model_get_agent_overlay_200_response_overlay.go @@ -0,0 +1,525 @@ +/* +QuantCDN API + +Unified API for QuantCDN Admin and QuantCloud Platform services + +API version: 4.14.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package quantadmingo + +import ( + "encoding/json" +) + +// checks if the GetAgentOverlay200ResponseOverlay type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &GetAgentOverlay200ResponseOverlay{} + +// GetAgentOverlay200ResponseOverlay struct for GetAgentOverlay200ResponseOverlay +type GetAgentOverlay200ResponseOverlay struct { + ModelId *string `json:"modelId,omitempty"` + Temperature *float32 `json:"temperature,omitempty"` + MaxTokens *int32 `json:"maxTokens,omitempty"` + DisabledSkills []string `json:"disabledSkills,omitempty"` + AdditionalSkills []string `json:"additionalSkills,omitempty"` + AdditionalTools []string `json:"additionalTools,omitempty"` + DisabledTools []string `json:"disabledTools,omitempty"` + SystemPromptAppend *string `json:"systemPromptAppend,omitempty"` + AllowedCollections []string `json:"allowedCollections,omitempty"` + GuardrailPreset *string `json:"guardrailPreset,omitempty"` + Version *int32 `json:"version,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _GetAgentOverlay200ResponseOverlay GetAgentOverlay200ResponseOverlay + +// NewGetAgentOverlay200ResponseOverlay instantiates a new GetAgentOverlay200ResponseOverlay 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 NewGetAgentOverlay200ResponseOverlay() *GetAgentOverlay200ResponseOverlay { + this := GetAgentOverlay200ResponseOverlay{} + return &this +} + +// NewGetAgentOverlay200ResponseOverlayWithDefaults instantiates a new GetAgentOverlay200ResponseOverlay 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 NewGetAgentOverlay200ResponseOverlayWithDefaults() *GetAgentOverlay200ResponseOverlay { + this := GetAgentOverlay200ResponseOverlay{} + return &this +} + +// GetModelId returns the ModelId field value if set, zero value otherwise. +func (o *GetAgentOverlay200ResponseOverlay) GetModelId() string { + if o == nil || IsNil(o.ModelId) { + var ret string + return ret + } + return *o.ModelId +} + +// GetModelIdOk returns a tuple with the ModelId field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GetAgentOverlay200ResponseOverlay) GetModelIdOk() (*string, bool) { + if o == nil || IsNil(o.ModelId) { + return nil, false + } + return o.ModelId, true +} + +// HasModelId returns a boolean if a field has been set. +func (o *GetAgentOverlay200ResponseOverlay) HasModelId() bool { + if o != nil && !IsNil(o.ModelId) { + return true + } + + return false +} + +// SetModelId gets a reference to the given string and assigns it to the ModelId field. +func (o *GetAgentOverlay200ResponseOverlay) SetModelId(v string) { + o.ModelId = &v +} + +// GetTemperature returns the Temperature field value if set, zero value otherwise. +func (o *GetAgentOverlay200ResponseOverlay) GetTemperature() float32 { + if o == nil || IsNil(o.Temperature) { + var ret float32 + return ret + } + return *o.Temperature +} + +// GetTemperatureOk returns a tuple with the Temperature field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GetAgentOverlay200ResponseOverlay) GetTemperatureOk() (*float32, bool) { + if o == nil || IsNil(o.Temperature) { + return nil, false + } + return o.Temperature, true +} + +// HasTemperature returns a boolean if a field has been set. +func (o *GetAgentOverlay200ResponseOverlay) HasTemperature() bool { + if o != nil && !IsNil(o.Temperature) { + return true + } + + return false +} + +// SetTemperature gets a reference to the given float32 and assigns it to the Temperature field. +func (o *GetAgentOverlay200ResponseOverlay) SetTemperature(v float32) { + o.Temperature = &v +} + +// GetMaxTokens returns the MaxTokens field value if set, zero value otherwise. +func (o *GetAgentOverlay200ResponseOverlay) GetMaxTokens() int32 { + if o == nil || IsNil(o.MaxTokens) { + var ret int32 + return ret + } + return *o.MaxTokens +} + +// GetMaxTokensOk returns a tuple with the MaxTokens field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GetAgentOverlay200ResponseOverlay) GetMaxTokensOk() (*int32, bool) { + if o == nil || IsNil(o.MaxTokens) { + return nil, false + } + return o.MaxTokens, true +} + +// HasMaxTokens returns a boolean if a field has been set. +func (o *GetAgentOverlay200ResponseOverlay) HasMaxTokens() bool { + if o != nil && !IsNil(o.MaxTokens) { + return true + } + + return false +} + +// SetMaxTokens gets a reference to the given int32 and assigns it to the MaxTokens field. +func (o *GetAgentOverlay200ResponseOverlay) SetMaxTokens(v int32) { + o.MaxTokens = &v +} + +// GetDisabledSkills returns the DisabledSkills field value if set, zero value otherwise. +func (o *GetAgentOverlay200ResponseOverlay) GetDisabledSkills() []string { + if o == nil || IsNil(o.DisabledSkills) { + var ret []string + return ret + } + return o.DisabledSkills +} + +// GetDisabledSkillsOk returns a tuple with the DisabledSkills field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GetAgentOverlay200ResponseOverlay) GetDisabledSkillsOk() ([]string, bool) { + if o == nil || IsNil(o.DisabledSkills) { + return nil, false + } + return o.DisabledSkills, true +} + +// HasDisabledSkills returns a boolean if a field has been set. +func (o *GetAgentOverlay200ResponseOverlay) HasDisabledSkills() bool { + if o != nil && !IsNil(o.DisabledSkills) { + return true + } + + return false +} + +// SetDisabledSkills gets a reference to the given []string and assigns it to the DisabledSkills field. +func (o *GetAgentOverlay200ResponseOverlay) SetDisabledSkills(v []string) { + o.DisabledSkills = v +} + +// GetAdditionalSkills returns the AdditionalSkills field value if set, zero value otherwise. +func (o *GetAgentOverlay200ResponseOverlay) GetAdditionalSkills() []string { + if o == nil || IsNil(o.AdditionalSkills) { + var ret []string + return ret + } + return o.AdditionalSkills +} + +// GetAdditionalSkillsOk returns a tuple with the AdditionalSkills field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GetAgentOverlay200ResponseOverlay) GetAdditionalSkillsOk() ([]string, bool) { + if o == nil || IsNil(o.AdditionalSkills) { + return nil, false + } + return o.AdditionalSkills, true +} + +// HasAdditionalSkills returns a boolean if a field has been set. +func (o *GetAgentOverlay200ResponseOverlay) HasAdditionalSkills() bool { + if o != nil && !IsNil(o.AdditionalSkills) { + return true + } + + return false +} + +// SetAdditionalSkills gets a reference to the given []string and assigns it to the AdditionalSkills field. +func (o *GetAgentOverlay200ResponseOverlay) SetAdditionalSkills(v []string) { + o.AdditionalSkills = v +} + +// GetAdditionalTools returns the AdditionalTools field value if set, zero value otherwise. +func (o *GetAgentOverlay200ResponseOverlay) GetAdditionalTools() []string { + if o == nil || IsNil(o.AdditionalTools) { + var ret []string + return ret + } + return o.AdditionalTools +} + +// GetAdditionalToolsOk returns a tuple with the AdditionalTools field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GetAgentOverlay200ResponseOverlay) GetAdditionalToolsOk() ([]string, bool) { + if o == nil || IsNil(o.AdditionalTools) { + return nil, false + } + return o.AdditionalTools, true +} + +// HasAdditionalTools returns a boolean if a field has been set. +func (o *GetAgentOverlay200ResponseOverlay) HasAdditionalTools() bool { + if o != nil && !IsNil(o.AdditionalTools) { + return true + } + + return false +} + +// SetAdditionalTools gets a reference to the given []string and assigns it to the AdditionalTools field. +func (o *GetAgentOverlay200ResponseOverlay) SetAdditionalTools(v []string) { + o.AdditionalTools = v +} + +// GetDisabledTools returns the DisabledTools field value if set, zero value otherwise. +func (o *GetAgentOverlay200ResponseOverlay) GetDisabledTools() []string { + if o == nil || IsNil(o.DisabledTools) { + var ret []string + return ret + } + return o.DisabledTools +} + +// GetDisabledToolsOk returns a tuple with the DisabledTools field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GetAgentOverlay200ResponseOverlay) GetDisabledToolsOk() ([]string, bool) { + if o == nil || IsNil(o.DisabledTools) { + return nil, false + } + return o.DisabledTools, true +} + +// HasDisabledTools returns a boolean if a field has been set. +func (o *GetAgentOverlay200ResponseOverlay) HasDisabledTools() bool { + if o != nil && !IsNil(o.DisabledTools) { + return true + } + + return false +} + +// SetDisabledTools gets a reference to the given []string and assigns it to the DisabledTools field. +func (o *GetAgentOverlay200ResponseOverlay) SetDisabledTools(v []string) { + o.DisabledTools = v +} + +// GetSystemPromptAppend returns the SystemPromptAppend field value if set, zero value otherwise. +func (o *GetAgentOverlay200ResponseOverlay) GetSystemPromptAppend() string { + if o == nil || IsNil(o.SystemPromptAppend) { + var ret string + return ret + } + return *o.SystemPromptAppend +} + +// GetSystemPromptAppendOk returns a tuple with the SystemPromptAppend field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GetAgentOverlay200ResponseOverlay) GetSystemPromptAppendOk() (*string, bool) { + if o == nil || IsNil(o.SystemPromptAppend) { + return nil, false + } + return o.SystemPromptAppend, true +} + +// HasSystemPromptAppend returns a boolean if a field has been set. +func (o *GetAgentOverlay200ResponseOverlay) HasSystemPromptAppend() bool { + if o != nil && !IsNil(o.SystemPromptAppend) { + return true + } + + return false +} + +// SetSystemPromptAppend gets a reference to the given string and assigns it to the SystemPromptAppend field. +func (o *GetAgentOverlay200ResponseOverlay) SetSystemPromptAppend(v string) { + o.SystemPromptAppend = &v +} + +// GetAllowedCollections returns the AllowedCollections field value if set, zero value otherwise. +func (o *GetAgentOverlay200ResponseOverlay) GetAllowedCollections() []string { + if o == nil || IsNil(o.AllowedCollections) { + var ret []string + return ret + } + return o.AllowedCollections +} + +// GetAllowedCollectionsOk returns a tuple with the AllowedCollections field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GetAgentOverlay200ResponseOverlay) GetAllowedCollectionsOk() ([]string, bool) { + if o == nil || IsNil(o.AllowedCollections) { + return nil, false + } + return o.AllowedCollections, true +} + +// HasAllowedCollections returns a boolean if a field has been set. +func (o *GetAgentOverlay200ResponseOverlay) HasAllowedCollections() bool { + if o != nil && !IsNil(o.AllowedCollections) { + return true + } + + return false +} + +// SetAllowedCollections gets a reference to the given []string and assigns it to the AllowedCollections field. +func (o *GetAgentOverlay200ResponseOverlay) SetAllowedCollections(v []string) { + o.AllowedCollections = v +} + +// GetGuardrailPreset returns the GuardrailPreset field value if set, zero value otherwise. +func (o *GetAgentOverlay200ResponseOverlay) GetGuardrailPreset() string { + if o == nil || IsNil(o.GuardrailPreset) { + var ret string + return ret + } + return *o.GuardrailPreset +} + +// GetGuardrailPresetOk returns a tuple with the GuardrailPreset field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GetAgentOverlay200ResponseOverlay) GetGuardrailPresetOk() (*string, bool) { + if o == nil || IsNil(o.GuardrailPreset) { + return nil, false + } + return o.GuardrailPreset, true +} + +// HasGuardrailPreset returns a boolean if a field has been set. +func (o *GetAgentOverlay200ResponseOverlay) HasGuardrailPreset() bool { + if o != nil && !IsNil(o.GuardrailPreset) { + return true + } + + return false +} + +// SetGuardrailPreset gets a reference to the given string and assigns it to the GuardrailPreset field. +func (o *GetAgentOverlay200ResponseOverlay) SetGuardrailPreset(v string) { + o.GuardrailPreset = &v +} + +// GetVersion returns the Version field value if set, zero value otherwise. +func (o *GetAgentOverlay200ResponseOverlay) GetVersion() int32 { + if o == nil || IsNil(o.Version) { + var ret int32 + 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 *GetAgentOverlay200ResponseOverlay) GetVersionOk() (*int32, 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 *GetAgentOverlay200ResponseOverlay) HasVersion() bool { + if o != nil && !IsNil(o.Version) { + return true + } + + return false +} + +// SetVersion gets a reference to the given int32 and assigns it to the Version field. +func (o *GetAgentOverlay200ResponseOverlay) SetVersion(v int32) { + o.Version = &v +} + +func (o GetAgentOverlay200ResponseOverlay) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o GetAgentOverlay200ResponseOverlay) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.ModelId) { + toSerialize["modelId"] = o.ModelId + } + if !IsNil(o.Temperature) { + toSerialize["temperature"] = o.Temperature + } + if !IsNil(o.MaxTokens) { + toSerialize["maxTokens"] = o.MaxTokens + } + if !IsNil(o.DisabledSkills) { + toSerialize["disabledSkills"] = o.DisabledSkills + } + if !IsNil(o.AdditionalSkills) { + toSerialize["additionalSkills"] = o.AdditionalSkills + } + if !IsNil(o.AdditionalTools) { + toSerialize["additionalTools"] = o.AdditionalTools + } + if !IsNil(o.DisabledTools) { + toSerialize["disabledTools"] = o.DisabledTools + } + if !IsNil(o.SystemPromptAppend) { + toSerialize["systemPromptAppend"] = o.SystemPromptAppend + } + if !IsNil(o.AllowedCollections) { + toSerialize["allowedCollections"] = o.AllowedCollections + } + if !IsNil(o.GuardrailPreset) { + toSerialize["guardrailPreset"] = o.GuardrailPreset + } + if !IsNil(o.Version) { + toSerialize["version"] = o.Version + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *GetAgentOverlay200ResponseOverlay) UnmarshalJSON(data []byte) (err error) { + varGetAgentOverlay200ResponseOverlay := _GetAgentOverlay200ResponseOverlay{} + + err = json.Unmarshal(data, &varGetAgentOverlay200ResponseOverlay) + + if err != nil { + return err + } + + *o = GetAgentOverlay200ResponseOverlay(varGetAgentOverlay200ResponseOverlay) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "modelId") + delete(additionalProperties, "temperature") + delete(additionalProperties, "maxTokens") + delete(additionalProperties, "disabledSkills") + delete(additionalProperties, "additionalSkills") + delete(additionalProperties, "additionalTools") + delete(additionalProperties, "disabledTools") + delete(additionalProperties, "systemPromptAppend") + delete(additionalProperties, "allowedCollections") + delete(additionalProperties, "guardrailPreset") + delete(additionalProperties, "version") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableGetAgentOverlay200ResponseOverlay struct { + value *GetAgentOverlay200ResponseOverlay + isSet bool +} + +func (v NullableGetAgentOverlay200ResponseOverlay) Get() *GetAgentOverlay200ResponseOverlay { + return v.value +} + +func (v *NullableGetAgentOverlay200ResponseOverlay) Set(val *GetAgentOverlay200ResponseOverlay) { + v.value = val + v.isSet = true +} + +func (v NullableGetAgentOverlay200ResponseOverlay) IsSet() bool { + return v.isSet +} + +func (v *NullableGetAgentOverlay200ResponseOverlay) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableGetAgentOverlay200ResponseOverlay(val *GetAgentOverlay200ResponseOverlay) *NullableGetAgentOverlay200ResponseOverlay { + return &NullableGetAgentOverlay200ResponseOverlay{value: val, isSet: true} +} + +func (v NullableGetAgentOverlay200ResponseOverlay) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableGetAgentOverlay200ResponseOverlay) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_get_ai_agent_200_response.go b/model_get_ai_agent_200_response.go index 752f65c..e040ed3 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.13.0 +API version: 4.14.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 8a97122..ab4eabe 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.13.0 +API version: 4.14.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -30,6 +30,15 @@ type GetAIAgent200ResponseAgent struct { MaxTokens *int32 `json:"maxTokens,omitempty"` AllowedTools []string `json:"allowedTools,omitempty"` AllowedCollections []string `json:"allowedCollections,omitempty"` + AssignedSkills []string `json:"assignedSkills,omitempty"` + // Whether 1M context window is enabled + LongContext *bool `json:"longContext,omitempty"` + // Guardrail preset name + GuardrailPreset *string `json:"guardrailPreset,omitempty"` + // Whether this is a platform-managed global agent + IsGlobal *bool `json:"isGlobal,omitempty"` + // Whether the requesting org has a per-org overlay for this global agent + HasOverlay *bool `json:"hasOverlay,omitempty"` CreatedBy *string `json:"createdBy,omitempty"` CreatedAt *time.Time `json:"createdAt,omitempty"` UpdatedAt *time.Time `json:"updatedAt,omitempty"` @@ -375,6 +384,166 @@ func (o *GetAIAgent200ResponseAgent) SetAllowedCollections(v []string) { o.AllowedCollections = v } +// GetAssignedSkills returns the AssignedSkills field value if set, zero value otherwise. +func (o *GetAIAgent200ResponseAgent) GetAssignedSkills() []string { + if o == nil || IsNil(o.AssignedSkills) { + var ret []string + return ret + } + return o.AssignedSkills +} + +// GetAssignedSkillsOk returns a tuple with the AssignedSkills field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GetAIAgent200ResponseAgent) GetAssignedSkillsOk() ([]string, bool) { + if o == nil || IsNil(o.AssignedSkills) { + return nil, false + } + return o.AssignedSkills, true +} + +// HasAssignedSkills returns a boolean if a field has been set. +func (o *GetAIAgent200ResponseAgent) HasAssignedSkills() bool { + if o != nil && !IsNil(o.AssignedSkills) { + return true + } + + return false +} + +// SetAssignedSkills gets a reference to the given []string and assigns it to the AssignedSkills field. +func (o *GetAIAgent200ResponseAgent) SetAssignedSkills(v []string) { + o.AssignedSkills = v +} + +// GetLongContext returns the LongContext field value if set, zero value otherwise. +func (o *GetAIAgent200ResponseAgent) 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 *GetAIAgent200ResponseAgent) 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 *GetAIAgent200ResponseAgent) 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 *GetAIAgent200ResponseAgent) SetLongContext(v bool) { + o.LongContext = &v +} + +// GetGuardrailPreset returns the GuardrailPreset field value if set, zero value otherwise. +func (o *GetAIAgent200ResponseAgent) GetGuardrailPreset() string { + if o == nil || IsNil(o.GuardrailPreset) { + var ret string + return ret + } + return *o.GuardrailPreset +} + +// GetGuardrailPresetOk returns a tuple with the GuardrailPreset field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GetAIAgent200ResponseAgent) GetGuardrailPresetOk() (*string, bool) { + if o == nil || IsNil(o.GuardrailPreset) { + return nil, false + } + return o.GuardrailPreset, true +} + +// HasGuardrailPreset returns a boolean if a field has been set. +func (o *GetAIAgent200ResponseAgent) HasGuardrailPreset() bool { + if o != nil && !IsNil(o.GuardrailPreset) { + return true + } + + return false +} + +// SetGuardrailPreset gets a reference to the given string and assigns it to the GuardrailPreset field. +func (o *GetAIAgent200ResponseAgent) SetGuardrailPreset(v string) { + o.GuardrailPreset = &v +} + +// GetIsGlobal returns the IsGlobal field value if set, zero value otherwise. +func (o *GetAIAgent200ResponseAgent) GetIsGlobal() bool { + if o == nil || IsNil(o.IsGlobal) { + var ret bool + return ret + } + return *o.IsGlobal +} + +// GetIsGlobalOk returns a tuple with the IsGlobal field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GetAIAgent200ResponseAgent) GetIsGlobalOk() (*bool, bool) { + if o == nil || IsNil(o.IsGlobal) { + return nil, false + } + return o.IsGlobal, true +} + +// HasIsGlobal returns a boolean if a field has been set. +func (o *GetAIAgent200ResponseAgent) HasIsGlobal() bool { + if o != nil && !IsNil(o.IsGlobal) { + return true + } + + return false +} + +// SetIsGlobal gets a reference to the given bool and assigns it to the IsGlobal field. +func (o *GetAIAgent200ResponseAgent) SetIsGlobal(v bool) { + o.IsGlobal = &v +} + +// GetHasOverlay returns the HasOverlay field value if set, zero value otherwise. +func (o *GetAIAgent200ResponseAgent) GetHasOverlay() bool { + if o == nil || IsNil(o.HasOverlay) { + var ret bool + return ret + } + return *o.HasOverlay +} + +// GetHasOverlayOk returns a tuple with the HasOverlay field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GetAIAgent200ResponseAgent) GetHasOverlayOk() (*bool, bool) { + if o == nil || IsNil(o.HasOverlay) { + return nil, false + } + return o.HasOverlay, true +} + +// HasHasOverlay returns a boolean if a field has been set. +func (o *GetAIAgent200ResponseAgent) HasHasOverlay() bool { + if o != nil && !IsNil(o.HasOverlay) { + return true + } + + return false +} + +// SetHasOverlay gets a reference to the given bool and assigns it to the HasOverlay field. +func (o *GetAIAgent200ResponseAgent) SetHasOverlay(v bool) { + o.HasOverlay = &v +} + // GetCreatedBy returns the CreatedBy field value if set, zero value otherwise. func (o *GetAIAgent200ResponseAgent) GetCreatedBy() string { if o == nil || IsNil(o.CreatedBy) { @@ -511,6 +680,21 @@ func (o GetAIAgent200ResponseAgent) ToMap() (map[string]interface{}, error) { if !IsNil(o.AllowedCollections) { toSerialize["allowedCollections"] = o.AllowedCollections } + if !IsNil(o.AssignedSkills) { + toSerialize["assignedSkills"] = o.AssignedSkills + } + if !IsNil(o.LongContext) { + toSerialize["longContext"] = o.LongContext + } + if !IsNil(o.GuardrailPreset) { + toSerialize["guardrailPreset"] = o.GuardrailPreset + } + if !IsNil(o.IsGlobal) { + toSerialize["isGlobal"] = o.IsGlobal + } + if !IsNil(o.HasOverlay) { + toSerialize["hasOverlay"] = o.HasOverlay + } if !IsNil(o.CreatedBy) { toSerialize["createdBy"] = o.CreatedBy } @@ -552,6 +736,11 @@ func (o *GetAIAgent200ResponseAgent) UnmarshalJSON(data []byte) (err error) { delete(additionalProperties, "maxTokens") delete(additionalProperties, "allowedTools") delete(additionalProperties, "allowedCollections") + delete(additionalProperties, "assignedSkills") + delete(additionalProperties, "longContext") + delete(additionalProperties, "guardrailPreset") + delete(additionalProperties, "isGlobal") + delete(additionalProperties, "hasOverlay") delete(additionalProperties, "createdBy") delete(additionalProperties, "createdAt") delete(additionalProperties, "updatedAt") diff --git a/model_get_ai_model_200_response.go b/model_get_ai_model_200_response.go index 53c9262..c82975e 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.13.0 +API version: 4.14.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 810f280..d118753 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.13.0 +API version: 4.14.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 2717764..15e82d3 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.13.0 +API version: 4.14.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 cfea480..1e8ba1e 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.13.0 +API version: 4.14.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 d70e67c..d7a3083 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.13.0 +API version: 4.14.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 67ea305..a3af4f3 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.13.0 +API version: 4.14.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 0cb8e19..f734805 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.13.0 +API version: 4.14.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 a196fe7..f764054 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.13.0 +API version: 4.14.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 804f059..abb1d79 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.13.0 +API version: 4.14.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 6366058..533f2ad 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.13.0 +API version: 4.14.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 22dbd9b..01cc927 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.13.0 +API version: 4.14.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 4bc9de2..9ff670e 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.13.0 +API version: 4.14.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 e4aaeb5..0777dc3 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.13.0 +API version: 4.14.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 5d2cd20..b2fe86e 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.13.0 +API version: 4.14.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 7163689..f22faa1 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.13.0 +API version: 4.14.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 50dc62f..25f8095 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.13.0 +API version: 4.14.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 99fe4d5..5277af2 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.13.0 +API version: 4.14.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 3ec0ca0..abbc120 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.13.0 +API version: 4.14.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 f30d3e2..e9e3974 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.13.0 +API version: 4.14.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 0d85c2d..e6086ed 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.13.0 +API version: 4.14.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 4ced7cf..afae1ae 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.13.0 +API version: 4.14.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 3920ce1..422c498 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.13.0 +API version: 4.14.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 b278077..c1499b9 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.13.0 +API version: 4.14.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 46d3373..14fc4e3 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.13.0 +API version: 4.14.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_get_governance_config_200_response.go b/model_get_governance_config_200_response.go new file mode 100644 index 0000000..1963d69 --- /dev/null +++ b/model_get_governance_config_200_response.go @@ -0,0 +1,424 @@ +/* +QuantCDN API + +Unified API for QuantCDN Admin and QuantCloud Platform services + +API version: 4.14.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package quantadmingo + +import ( + "encoding/json" +) + +// checks if the GetGovernanceConfig200Response type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &GetGovernanceConfig200Response{} + +// GetGovernanceConfig200Response struct for GetGovernanceConfig200Response +type GetGovernanceConfig200Response struct { + OrgId *string `json:"orgId,omitempty"` + AiEnabled *bool `json:"aiEnabled,omitempty"` + ModelPolicy *string `json:"modelPolicy,omitempty"` + ModelList []string `json:"modelList,omitempty"` + MandatoryGuardrailPreset NullableString `json:"mandatoryGuardrailPreset,omitempty"` + MandatoryFilterPolicies []string `json:"mandatoryFilterPolicies,omitempty"` + SpendLimits *GetGovernanceConfig200ResponseSpendLimits `json:"spendLimits,omitempty"` + Version *int32 `json:"version,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _GetGovernanceConfig200Response GetGovernanceConfig200Response + +// NewGetGovernanceConfig200Response instantiates a new GetGovernanceConfig200Response 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 NewGetGovernanceConfig200Response() *GetGovernanceConfig200Response { + this := GetGovernanceConfig200Response{} + return &this +} + +// NewGetGovernanceConfig200ResponseWithDefaults instantiates a new GetGovernanceConfig200Response 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 NewGetGovernanceConfig200ResponseWithDefaults() *GetGovernanceConfig200Response { + this := GetGovernanceConfig200Response{} + return &this +} + +// GetOrgId returns the OrgId field value if set, zero value otherwise. +func (o *GetGovernanceConfig200Response) GetOrgId() string { + if o == nil || IsNil(o.OrgId) { + var ret string + return ret + } + return *o.OrgId +} + +// GetOrgIdOk returns a tuple with the OrgId field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GetGovernanceConfig200Response) GetOrgIdOk() (*string, bool) { + if o == nil || IsNil(o.OrgId) { + return nil, false + } + return o.OrgId, true +} + +// HasOrgId returns a boolean if a field has been set. +func (o *GetGovernanceConfig200Response) HasOrgId() bool { + if o != nil && !IsNil(o.OrgId) { + return true + } + + return false +} + +// SetOrgId gets a reference to the given string and assigns it to the OrgId field. +func (o *GetGovernanceConfig200Response) SetOrgId(v string) { + o.OrgId = &v +} + +// GetAiEnabled returns the AiEnabled field value if set, zero value otherwise. +func (o *GetGovernanceConfig200Response) GetAiEnabled() bool { + if o == nil || IsNil(o.AiEnabled) { + var ret bool + return ret + } + return *o.AiEnabled +} + +// GetAiEnabledOk returns a tuple with the AiEnabled field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GetGovernanceConfig200Response) GetAiEnabledOk() (*bool, bool) { + if o == nil || IsNil(o.AiEnabled) { + return nil, false + } + return o.AiEnabled, true +} + +// HasAiEnabled returns a boolean if a field has been set. +func (o *GetGovernanceConfig200Response) HasAiEnabled() bool { + if o != nil && !IsNil(o.AiEnabled) { + return true + } + + return false +} + +// SetAiEnabled gets a reference to the given bool and assigns it to the AiEnabled field. +func (o *GetGovernanceConfig200Response) SetAiEnabled(v bool) { + o.AiEnabled = &v +} + +// GetModelPolicy returns the ModelPolicy field value if set, zero value otherwise. +func (o *GetGovernanceConfig200Response) GetModelPolicy() string { + if o == nil || IsNil(o.ModelPolicy) { + var ret string + return ret + } + return *o.ModelPolicy +} + +// GetModelPolicyOk returns a tuple with the ModelPolicy field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GetGovernanceConfig200Response) GetModelPolicyOk() (*string, bool) { + if o == nil || IsNil(o.ModelPolicy) { + return nil, false + } + return o.ModelPolicy, true +} + +// HasModelPolicy returns a boolean if a field has been set. +func (o *GetGovernanceConfig200Response) HasModelPolicy() bool { + if o != nil && !IsNil(o.ModelPolicy) { + return true + } + + return false +} + +// SetModelPolicy gets a reference to the given string and assigns it to the ModelPolicy field. +func (o *GetGovernanceConfig200Response) SetModelPolicy(v string) { + o.ModelPolicy = &v +} + +// GetModelList returns the ModelList field value if set, zero value otherwise. +func (o *GetGovernanceConfig200Response) GetModelList() []string { + if o == nil || IsNil(o.ModelList) { + var ret []string + return ret + } + return o.ModelList +} + +// GetModelListOk returns a tuple with the ModelList field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GetGovernanceConfig200Response) GetModelListOk() ([]string, bool) { + if o == nil || IsNil(o.ModelList) { + return nil, false + } + return o.ModelList, true +} + +// HasModelList returns a boolean if a field has been set. +func (o *GetGovernanceConfig200Response) HasModelList() bool { + if o != nil && !IsNil(o.ModelList) { + return true + } + + return false +} + +// SetModelList gets a reference to the given []string and assigns it to the ModelList field. +func (o *GetGovernanceConfig200Response) SetModelList(v []string) { + o.ModelList = v +} + +// GetMandatoryGuardrailPreset returns the MandatoryGuardrailPreset field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *GetGovernanceConfig200Response) GetMandatoryGuardrailPreset() string { + if o == nil || IsNil(o.MandatoryGuardrailPreset.Get()) { + var ret string + return ret + } + return *o.MandatoryGuardrailPreset.Get() +} + +// GetMandatoryGuardrailPresetOk returns a tuple with the MandatoryGuardrailPreset 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 *GetGovernanceConfig200Response) GetMandatoryGuardrailPresetOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.MandatoryGuardrailPreset.Get(), o.MandatoryGuardrailPreset.IsSet() +} + +// HasMandatoryGuardrailPreset returns a boolean if a field has been set. +func (o *GetGovernanceConfig200Response) HasMandatoryGuardrailPreset() bool { + if o != nil && o.MandatoryGuardrailPreset.IsSet() { + return true + } + + return false +} + +// SetMandatoryGuardrailPreset gets a reference to the given NullableString and assigns it to the MandatoryGuardrailPreset field. +func (o *GetGovernanceConfig200Response) SetMandatoryGuardrailPreset(v string) { + o.MandatoryGuardrailPreset.Set(&v) +} +// SetMandatoryGuardrailPresetNil sets the value for MandatoryGuardrailPreset to be an explicit nil +func (o *GetGovernanceConfig200Response) SetMandatoryGuardrailPresetNil() { + o.MandatoryGuardrailPreset.Set(nil) +} + +// UnsetMandatoryGuardrailPreset ensures that no value is present for MandatoryGuardrailPreset, not even an explicit nil +func (o *GetGovernanceConfig200Response) UnsetMandatoryGuardrailPreset() { + o.MandatoryGuardrailPreset.Unset() +} + +// GetMandatoryFilterPolicies returns the MandatoryFilterPolicies field value if set, zero value otherwise. +func (o *GetGovernanceConfig200Response) GetMandatoryFilterPolicies() []string { + if o == nil || IsNil(o.MandatoryFilterPolicies) { + var ret []string + return ret + } + return o.MandatoryFilterPolicies +} + +// GetMandatoryFilterPoliciesOk returns a tuple with the MandatoryFilterPolicies field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GetGovernanceConfig200Response) GetMandatoryFilterPoliciesOk() ([]string, bool) { + if o == nil || IsNil(o.MandatoryFilterPolicies) { + return nil, false + } + return o.MandatoryFilterPolicies, true +} + +// HasMandatoryFilterPolicies returns a boolean if a field has been set. +func (o *GetGovernanceConfig200Response) HasMandatoryFilterPolicies() bool { + if o != nil && !IsNil(o.MandatoryFilterPolicies) { + return true + } + + return false +} + +// SetMandatoryFilterPolicies gets a reference to the given []string and assigns it to the MandatoryFilterPolicies field. +func (o *GetGovernanceConfig200Response) SetMandatoryFilterPolicies(v []string) { + o.MandatoryFilterPolicies = v +} + +// GetSpendLimits returns the SpendLimits field value if set, zero value otherwise. +func (o *GetGovernanceConfig200Response) GetSpendLimits() GetGovernanceConfig200ResponseSpendLimits { + if o == nil || IsNil(o.SpendLimits) { + var ret GetGovernanceConfig200ResponseSpendLimits + return ret + } + return *o.SpendLimits +} + +// GetSpendLimitsOk returns a tuple with the SpendLimits field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GetGovernanceConfig200Response) GetSpendLimitsOk() (*GetGovernanceConfig200ResponseSpendLimits, bool) { + if o == nil || IsNil(o.SpendLimits) { + return nil, false + } + return o.SpendLimits, true +} + +// HasSpendLimits returns a boolean if a field has been set. +func (o *GetGovernanceConfig200Response) HasSpendLimits() bool { + if o != nil && !IsNil(o.SpendLimits) { + return true + } + + return false +} + +// SetSpendLimits gets a reference to the given GetGovernanceConfig200ResponseSpendLimits and assigns it to the SpendLimits field. +func (o *GetGovernanceConfig200Response) SetSpendLimits(v GetGovernanceConfig200ResponseSpendLimits) { + o.SpendLimits = &v +} + +// GetVersion returns the Version field value if set, zero value otherwise. +func (o *GetGovernanceConfig200Response) GetVersion() int32 { + if o == nil || IsNil(o.Version) { + var ret int32 + 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 *GetGovernanceConfig200Response) GetVersionOk() (*int32, 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 *GetGovernanceConfig200Response) HasVersion() bool { + if o != nil && !IsNil(o.Version) { + return true + } + + return false +} + +// SetVersion gets a reference to the given int32 and assigns it to the Version field. +func (o *GetGovernanceConfig200Response) SetVersion(v int32) { + o.Version = &v +} + +func (o GetGovernanceConfig200Response) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o GetGovernanceConfig200Response) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.OrgId) { + toSerialize["orgId"] = o.OrgId + } + if !IsNil(o.AiEnabled) { + toSerialize["aiEnabled"] = o.AiEnabled + } + if !IsNil(o.ModelPolicy) { + toSerialize["modelPolicy"] = o.ModelPolicy + } + if !IsNil(o.ModelList) { + toSerialize["modelList"] = o.ModelList + } + if o.MandatoryGuardrailPreset.IsSet() { + toSerialize["mandatoryGuardrailPreset"] = o.MandatoryGuardrailPreset.Get() + } + if !IsNil(o.MandatoryFilterPolicies) { + toSerialize["mandatoryFilterPolicies"] = o.MandatoryFilterPolicies + } + if !IsNil(o.SpendLimits) { + toSerialize["spendLimits"] = o.SpendLimits + } + if !IsNil(o.Version) { + toSerialize["version"] = o.Version + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *GetGovernanceConfig200Response) UnmarshalJSON(data []byte) (err error) { + varGetGovernanceConfig200Response := _GetGovernanceConfig200Response{} + + err = json.Unmarshal(data, &varGetGovernanceConfig200Response) + + if err != nil { + return err + } + + *o = GetGovernanceConfig200Response(varGetGovernanceConfig200Response) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "orgId") + delete(additionalProperties, "aiEnabled") + delete(additionalProperties, "modelPolicy") + delete(additionalProperties, "modelList") + delete(additionalProperties, "mandatoryGuardrailPreset") + delete(additionalProperties, "mandatoryFilterPolicies") + delete(additionalProperties, "spendLimits") + delete(additionalProperties, "version") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableGetGovernanceConfig200Response struct { + value *GetGovernanceConfig200Response + isSet bool +} + +func (v NullableGetGovernanceConfig200Response) Get() *GetGovernanceConfig200Response { + return v.value +} + +func (v *NullableGetGovernanceConfig200Response) Set(val *GetGovernanceConfig200Response) { + v.value = val + v.isSet = true +} + +func (v NullableGetGovernanceConfig200Response) IsSet() bool { + return v.isSet +} + +func (v *NullableGetGovernanceConfig200Response) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableGetGovernanceConfig200Response(val *GetGovernanceConfig200Response) *NullableGetGovernanceConfig200Response { + return &NullableGetGovernanceConfig200Response{value: val, isSet: true} +} + +func (v NullableGetGovernanceConfig200Response) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableGetGovernanceConfig200Response) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_get_governance_config_200_response_spend_limits.go b/model_get_governance_config_200_response_spend_limits.go new file mode 100644 index 0000000..3b88912 --- /dev/null +++ b/model_get_governance_config_200_response_spend_limits.go @@ -0,0 +1,353 @@ +/* +QuantCDN API + +Unified API for QuantCDN Admin and QuantCloud Platform services + +API version: 4.14.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package quantadmingo + +import ( + "encoding/json" +) + +// checks if the GetGovernanceConfig200ResponseSpendLimits type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &GetGovernanceConfig200ResponseSpendLimits{} + +// GetGovernanceConfig200ResponseSpendLimits struct for GetGovernanceConfig200ResponseSpendLimits +type GetGovernanceConfig200ResponseSpendLimits struct { + MonthlyBudgetCents NullableInt32 `json:"monthlyBudgetCents,omitempty"` + DailyBudgetCents NullableInt32 `json:"dailyBudgetCents,omitempty"` + PerUserMonthlyBudgetCents NullableInt32 `json:"perUserMonthlyBudgetCents,omitempty"` + PerUserDailyBudgetCents NullableInt32 `json:"perUserDailyBudgetCents,omitempty"` + WarningThresholdPercent NullableInt32 `json:"warningThresholdPercent,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _GetGovernanceConfig200ResponseSpendLimits GetGovernanceConfig200ResponseSpendLimits + +// NewGetGovernanceConfig200ResponseSpendLimits instantiates a new GetGovernanceConfig200ResponseSpendLimits 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 NewGetGovernanceConfig200ResponseSpendLimits() *GetGovernanceConfig200ResponseSpendLimits { + this := GetGovernanceConfig200ResponseSpendLimits{} + return &this +} + +// NewGetGovernanceConfig200ResponseSpendLimitsWithDefaults instantiates a new GetGovernanceConfig200ResponseSpendLimits 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 NewGetGovernanceConfig200ResponseSpendLimitsWithDefaults() *GetGovernanceConfig200ResponseSpendLimits { + this := GetGovernanceConfig200ResponseSpendLimits{} + return &this +} + +// GetMonthlyBudgetCents returns the MonthlyBudgetCents field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *GetGovernanceConfig200ResponseSpendLimits) GetMonthlyBudgetCents() int32 { + if o == nil || IsNil(o.MonthlyBudgetCents.Get()) { + var ret int32 + return ret + } + return *o.MonthlyBudgetCents.Get() +} + +// GetMonthlyBudgetCentsOk returns a tuple with the MonthlyBudgetCents 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 *GetGovernanceConfig200ResponseSpendLimits) GetMonthlyBudgetCentsOk() (*int32, bool) { + if o == nil { + return nil, false + } + return o.MonthlyBudgetCents.Get(), o.MonthlyBudgetCents.IsSet() +} + +// HasMonthlyBudgetCents returns a boolean if a field has been set. +func (o *GetGovernanceConfig200ResponseSpendLimits) HasMonthlyBudgetCents() bool { + if o != nil && o.MonthlyBudgetCents.IsSet() { + return true + } + + return false +} + +// SetMonthlyBudgetCents gets a reference to the given NullableInt32 and assigns it to the MonthlyBudgetCents field. +func (o *GetGovernanceConfig200ResponseSpendLimits) SetMonthlyBudgetCents(v int32) { + o.MonthlyBudgetCents.Set(&v) +} +// SetMonthlyBudgetCentsNil sets the value for MonthlyBudgetCents to be an explicit nil +func (o *GetGovernanceConfig200ResponseSpendLimits) SetMonthlyBudgetCentsNil() { + o.MonthlyBudgetCents.Set(nil) +} + +// UnsetMonthlyBudgetCents ensures that no value is present for MonthlyBudgetCents, not even an explicit nil +func (o *GetGovernanceConfig200ResponseSpendLimits) UnsetMonthlyBudgetCents() { + o.MonthlyBudgetCents.Unset() +} + +// GetDailyBudgetCents returns the DailyBudgetCents field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *GetGovernanceConfig200ResponseSpendLimits) GetDailyBudgetCents() int32 { + if o == nil || IsNil(o.DailyBudgetCents.Get()) { + var ret int32 + return ret + } + return *o.DailyBudgetCents.Get() +} + +// GetDailyBudgetCentsOk returns a tuple with the DailyBudgetCents 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 *GetGovernanceConfig200ResponseSpendLimits) GetDailyBudgetCentsOk() (*int32, bool) { + if o == nil { + return nil, false + } + return o.DailyBudgetCents.Get(), o.DailyBudgetCents.IsSet() +} + +// HasDailyBudgetCents returns a boolean if a field has been set. +func (o *GetGovernanceConfig200ResponseSpendLimits) HasDailyBudgetCents() bool { + if o != nil && o.DailyBudgetCents.IsSet() { + return true + } + + return false +} + +// SetDailyBudgetCents gets a reference to the given NullableInt32 and assigns it to the DailyBudgetCents field. +func (o *GetGovernanceConfig200ResponseSpendLimits) SetDailyBudgetCents(v int32) { + o.DailyBudgetCents.Set(&v) +} +// SetDailyBudgetCentsNil sets the value for DailyBudgetCents to be an explicit nil +func (o *GetGovernanceConfig200ResponseSpendLimits) SetDailyBudgetCentsNil() { + o.DailyBudgetCents.Set(nil) +} + +// UnsetDailyBudgetCents ensures that no value is present for DailyBudgetCents, not even an explicit nil +func (o *GetGovernanceConfig200ResponseSpendLimits) UnsetDailyBudgetCents() { + o.DailyBudgetCents.Unset() +} + +// GetPerUserMonthlyBudgetCents returns the PerUserMonthlyBudgetCents field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *GetGovernanceConfig200ResponseSpendLimits) GetPerUserMonthlyBudgetCents() int32 { + if o == nil || IsNil(o.PerUserMonthlyBudgetCents.Get()) { + var ret int32 + return ret + } + return *o.PerUserMonthlyBudgetCents.Get() +} + +// GetPerUserMonthlyBudgetCentsOk returns a tuple with the PerUserMonthlyBudgetCents 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 *GetGovernanceConfig200ResponseSpendLimits) GetPerUserMonthlyBudgetCentsOk() (*int32, bool) { + if o == nil { + return nil, false + } + return o.PerUserMonthlyBudgetCents.Get(), o.PerUserMonthlyBudgetCents.IsSet() +} + +// HasPerUserMonthlyBudgetCents returns a boolean if a field has been set. +func (o *GetGovernanceConfig200ResponseSpendLimits) HasPerUserMonthlyBudgetCents() bool { + if o != nil && o.PerUserMonthlyBudgetCents.IsSet() { + return true + } + + return false +} + +// SetPerUserMonthlyBudgetCents gets a reference to the given NullableInt32 and assigns it to the PerUserMonthlyBudgetCents field. +func (o *GetGovernanceConfig200ResponseSpendLimits) SetPerUserMonthlyBudgetCents(v int32) { + o.PerUserMonthlyBudgetCents.Set(&v) +} +// SetPerUserMonthlyBudgetCentsNil sets the value for PerUserMonthlyBudgetCents to be an explicit nil +func (o *GetGovernanceConfig200ResponseSpendLimits) SetPerUserMonthlyBudgetCentsNil() { + o.PerUserMonthlyBudgetCents.Set(nil) +} + +// UnsetPerUserMonthlyBudgetCents ensures that no value is present for PerUserMonthlyBudgetCents, not even an explicit nil +func (o *GetGovernanceConfig200ResponseSpendLimits) UnsetPerUserMonthlyBudgetCents() { + o.PerUserMonthlyBudgetCents.Unset() +} + +// GetPerUserDailyBudgetCents returns the PerUserDailyBudgetCents field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *GetGovernanceConfig200ResponseSpendLimits) GetPerUserDailyBudgetCents() int32 { + if o == nil || IsNil(o.PerUserDailyBudgetCents.Get()) { + var ret int32 + return ret + } + return *o.PerUserDailyBudgetCents.Get() +} + +// GetPerUserDailyBudgetCentsOk returns a tuple with the PerUserDailyBudgetCents 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 *GetGovernanceConfig200ResponseSpendLimits) GetPerUserDailyBudgetCentsOk() (*int32, bool) { + if o == nil { + return nil, false + } + return o.PerUserDailyBudgetCents.Get(), o.PerUserDailyBudgetCents.IsSet() +} + +// HasPerUserDailyBudgetCents returns a boolean if a field has been set. +func (o *GetGovernanceConfig200ResponseSpendLimits) HasPerUserDailyBudgetCents() bool { + if o != nil && o.PerUserDailyBudgetCents.IsSet() { + return true + } + + return false +} + +// SetPerUserDailyBudgetCents gets a reference to the given NullableInt32 and assigns it to the PerUserDailyBudgetCents field. +func (o *GetGovernanceConfig200ResponseSpendLimits) SetPerUserDailyBudgetCents(v int32) { + o.PerUserDailyBudgetCents.Set(&v) +} +// SetPerUserDailyBudgetCentsNil sets the value for PerUserDailyBudgetCents to be an explicit nil +func (o *GetGovernanceConfig200ResponseSpendLimits) SetPerUserDailyBudgetCentsNil() { + o.PerUserDailyBudgetCents.Set(nil) +} + +// UnsetPerUserDailyBudgetCents ensures that no value is present for PerUserDailyBudgetCents, not even an explicit nil +func (o *GetGovernanceConfig200ResponseSpendLimits) UnsetPerUserDailyBudgetCents() { + o.PerUserDailyBudgetCents.Unset() +} + +// GetWarningThresholdPercent returns the WarningThresholdPercent field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *GetGovernanceConfig200ResponseSpendLimits) GetWarningThresholdPercent() int32 { + if o == nil || IsNil(o.WarningThresholdPercent.Get()) { + var ret int32 + return ret + } + return *o.WarningThresholdPercent.Get() +} + +// GetWarningThresholdPercentOk returns a tuple with the WarningThresholdPercent 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 *GetGovernanceConfig200ResponseSpendLimits) GetWarningThresholdPercentOk() (*int32, bool) { + if o == nil { + return nil, false + } + return o.WarningThresholdPercent.Get(), o.WarningThresholdPercent.IsSet() +} + +// HasWarningThresholdPercent returns a boolean if a field has been set. +func (o *GetGovernanceConfig200ResponseSpendLimits) HasWarningThresholdPercent() bool { + if o != nil && o.WarningThresholdPercent.IsSet() { + return true + } + + return false +} + +// SetWarningThresholdPercent gets a reference to the given NullableInt32 and assigns it to the WarningThresholdPercent field. +func (o *GetGovernanceConfig200ResponseSpendLimits) SetWarningThresholdPercent(v int32) { + o.WarningThresholdPercent.Set(&v) +} +// SetWarningThresholdPercentNil sets the value for WarningThresholdPercent to be an explicit nil +func (o *GetGovernanceConfig200ResponseSpendLimits) SetWarningThresholdPercentNil() { + o.WarningThresholdPercent.Set(nil) +} + +// UnsetWarningThresholdPercent ensures that no value is present for WarningThresholdPercent, not even an explicit nil +func (o *GetGovernanceConfig200ResponseSpendLimits) UnsetWarningThresholdPercent() { + o.WarningThresholdPercent.Unset() +} + +func (o GetGovernanceConfig200ResponseSpendLimits) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o GetGovernanceConfig200ResponseSpendLimits) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if o.MonthlyBudgetCents.IsSet() { + toSerialize["monthlyBudgetCents"] = o.MonthlyBudgetCents.Get() + } + if o.DailyBudgetCents.IsSet() { + toSerialize["dailyBudgetCents"] = o.DailyBudgetCents.Get() + } + if o.PerUserMonthlyBudgetCents.IsSet() { + toSerialize["perUserMonthlyBudgetCents"] = o.PerUserMonthlyBudgetCents.Get() + } + if o.PerUserDailyBudgetCents.IsSet() { + toSerialize["perUserDailyBudgetCents"] = o.PerUserDailyBudgetCents.Get() + } + if o.WarningThresholdPercent.IsSet() { + toSerialize["warningThresholdPercent"] = o.WarningThresholdPercent.Get() + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *GetGovernanceConfig200ResponseSpendLimits) UnmarshalJSON(data []byte) (err error) { + varGetGovernanceConfig200ResponseSpendLimits := _GetGovernanceConfig200ResponseSpendLimits{} + + err = json.Unmarshal(data, &varGetGovernanceConfig200ResponseSpendLimits) + + if err != nil { + return err + } + + *o = GetGovernanceConfig200ResponseSpendLimits(varGetGovernanceConfig200ResponseSpendLimits) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "monthlyBudgetCents") + delete(additionalProperties, "dailyBudgetCents") + delete(additionalProperties, "perUserMonthlyBudgetCents") + delete(additionalProperties, "perUserDailyBudgetCents") + delete(additionalProperties, "warningThresholdPercent") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableGetGovernanceConfig200ResponseSpendLimits struct { + value *GetGovernanceConfig200ResponseSpendLimits + isSet bool +} + +func (v NullableGetGovernanceConfig200ResponseSpendLimits) Get() *GetGovernanceConfig200ResponseSpendLimits { + return v.value +} + +func (v *NullableGetGovernanceConfig200ResponseSpendLimits) Set(val *GetGovernanceConfig200ResponseSpendLimits) { + v.value = val + v.isSet = true +} + +func (v NullableGetGovernanceConfig200ResponseSpendLimits) IsSet() bool { + return v.isSet +} + +func (v *NullableGetGovernanceConfig200ResponseSpendLimits) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableGetGovernanceConfig200ResponseSpendLimits(val *GetGovernanceConfig200ResponseSpendLimits) *NullableGetGovernanceConfig200ResponseSpendLimits { + return &NullableGetGovernanceConfig200ResponseSpendLimits{value: val, isSet: true} +} + +func (v NullableGetGovernanceConfig200ResponseSpendLimits) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableGetGovernanceConfig200ResponseSpendLimits) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_get_my_usage_200_response.go b/model_get_my_usage_200_response.go new file mode 100644 index 0000000..26aedd8 --- /dev/null +++ b/model_get_my_usage_200_response.go @@ -0,0 +1,304 @@ +/* +QuantCDN API + +Unified API for QuantCDN Admin and QuantCloud Platform services + +API version: 4.14.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package quantadmingo + +import ( + "encoding/json" +) + +// checks if the GetMyUsage200Response type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &GetMyUsage200Response{} + +// GetMyUsage200Response struct for GetMyUsage200Response +type GetMyUsage200Response struct { + UserId *string `json:"userId,omitempty"` + CurrentMonth *string `json:"currentMonth,omitempty"` + Monthly *GetMyUsage200ResponseMonthly `json:"monthly,omitempty"` + Daily *GetMyUsage200ResponseDaily `json:"daily,omitempty"` + Quota map[string]interface{} `json:"quota,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _GetMyUsage200Response GetMyUsage200Response + +// NewGetMyUsage200Response instantiates a new GetMyUsage200Response 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 NewGetMyUsage200Response() *GetMyUsage200Response { + this := GetMyUsage200Response{} + return &this +} + +// NewGetMyUsage200ResponseWithDefaults instantiates a new GetMyUsage200Response 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 NewGetMyUsage200ResponseWithDefaults() *GetMyUsage200Response { + this := GetMyUsage200Response{} + return &this +} + +// GetUserId returns the UserId field value if set, zero value otherwise. +func (o *GetMyUsage200Response) GetUserId() string { + if o == nil || IsNil(o.UserId) { + var ret string + return ret + } + return *o.UserId +} + +// GetUserIdOk returns a tuple with the UserId field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GetMyUsage200Response) GetUserIdOk() (*string, bool) { + if o == nil || IsNil(o.UserId) { + return nil, false + } + return o.UserId, true +} + +// HasUserId returns a boolean if a field has been set. +func (o *GetMyUsage200Response) HasUserId() bool { + if o != nil && !IsNil(o.UserId) { + return true + } + + return false +} + +// SetUserId gets a reference to the given string and assigns it to the UserId field. +func (o *GetMyUsage200Response) SetUserId(v string) { + o.UserId = &v +} + +// GetCurrentMonth returns the CurrentMonth field value if set, zero value otherwise. +func (o *GetMyUsage200Response) GetCurrentMonth() string { + if o == nil || IsNil(o.CurrentMonth) { + var ret string + return ret + } + return *o.CurrentMonth +} + +// GetCurrentMonthOk returns a tuple with the CurrentMonth field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GetMyUsage200Response) GetCurrentMonthOk() (*string, bool) { + if o == nil || IsNil(o.CurrentMonth) { + return nil, false + } + return o.CurrentMonth, true +} + +// HasCurrentMonth returns a boolean if a field has been set. +func (o *GetMyUsage200Response) HasCurrentMonth() bool { + if o != nil && !IsNil(o.CurrentMonth) { + return true + } + + return false +} + +// SetCurrentMonth gets a reference to the given string and assigns it to the CurrentMonth field. +func (o *GetMyUsage200Response) SetCurrentMonth(v string) { + o.CurrentMonth = &v +} + +// GetMonthly returns the Monthly field value if set, zero value otherwise. +func (o *GetMyUsage200Response) GetMonthly() GetMyUsage200ResponseMonthly { + if o == nil || IsNil(o.Monthly) { + var ret GetMyUsage200ResponseMonthly + return ret + } + return *o.Monthly +} + +// GetMonthlyOk returns a tuple with the Monthly field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GetMyUsage200Response) GetMonthlyOk() (*GetMyUsage200ResponseMonthly, bool) { + if o == nil || IsNil(o.Monthly) { + return nil, false + } + return o.Monthly, true +} + +// HasMonthly returns a boolean if a field has been set. +func (o *GetMyUsage200Response) HasMonthly() bool { + if o != nil && !IsNil(o.Monthly) { + return true + } + + return false +} + +// SetMonthly gets a reference to the given GetMyUsage200ResponseMonthly and assigns it to the Monthly field. +func (o *GetMyUsage200Response) SetMonthly(v GetMyUsage200ResponseMonthly) { + o.Monthly = &v +} + +// GetDaily returns the Daily field value if set, zero value otherwise. +func (o *GetMyUsage200Response) GetDaily() GetMyUsage200ResponseDaily { + if o == nil || IsNil(o.Daily) { + var ret GetMyUsage200ResponseDaily + return ret + } + return *o.Daily +} + +// GetDailyOk returns a tuple with the Daily field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GetMyUsage200Response) GetDailyOk() (*GetMyUsage200ResponseDaily, bool) { + if o == nil || IsNil(o.Daily) { + return nil, false + } + return o.Daily, true +} + +// HasDaily returns a boolean if a field has been set. +func (o *GetMyUsage200Response) HasDaily() bool { + if o != nil && !IsNil(o.Daily) { + return true + } + + return false +} + +// SetDaily gets a reference to the given GetMyUsage200ResponseDaily and assigns it to the Daily field. +func (o *GetMyUsage200Response) SetDaily(v GetMyUsage200ResponseDaily) { + o.Daily = &v +} + +// GetQuota returns the Quota field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *GetMyUsage200Response) GetQuota() map[string]interface{} { + if o == nil { + var ret map[string]interface{} + return ret + } + return o.Quota +} + +// GetQuotaOk returns a tuple with the Quota 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 *GetMyUsage200Response) GetQuotaOk() (map[string]interface{}, bool) { + if o == nil || IsNil(o.Quota) { + return map[string]interface{}{}, false + } + return o.Quota, true +} + +// HasQuota returns a boolean if a field has been set. +func (o *GetMyUsage200Response) HasQuota() bool { + if o != nil && !IsNil(o.Quota) { + return true + } + + return false +} + +// SetQuota gets a reference to the given map[string]interface{} and assigns it to the Quota field. +func (o *GetMyUsage200Response) SetQuota(v map[string]interface{}) { + o.Quota = v +} + +func (o GetMyUsage200Response) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o GetMyUsage200Response) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.UserId) { + toSerialize["userId"] = o.UserId + } + if !IsNil(o.CurrentMonth) { + toSerialize["currentMonth"] = o.CurrentMonth + } + if !IsNil(o.Monthly) { + toSerialize["monthly"] = o.Monthly + } + if !IsNil(o.Daily) { + toSerialize["daily"] = o.Daily + } + if o.Quota != nil { + toSerialize["quota"] = o.Quota + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *GetMyUsage200Response) UnmarshalJSON(data []byte) (err error) { + varGetMyUsage200Response := _GetMyUsage200Response{} + + err = json.Unmarshal(data, &varGetMyUsage200Response) + + if err != nil { + return err + } + + *o = GetMyUsage200Response(varGetMyUsage200Response) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "userId") + delete(additionalProperties, "currentMonth") + delete(additionalProperties, "monthly") + delete(additionalProperties, "daily") + delete(additionalProperties, "quota") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableGetMyUsage200Response struct { + value *GetMyUsage200Response + isSet bool +} + +func (v NullableGetMyUsage200Response) Get() *GetMyUsage200Response { + return v.value +} + +func (v *NullableGetMyUsage200Response) Set(val *GetMyUsage200Response) { + v.value = val + v.isSet = true +} + +func (v NullableGetMyUsage200Response) IsSet() bool { + return v.isSet +} + +func (v *NullableGetMyUsage200Response) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableGetMyUsage200Response(val *GetMyUsage200Response) *NullableGetMyUsage200Response { + return &NullableGetMyUsage200Response{value: val, isSet: true} +} + +func (v NullableGetMyUsage200Response) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableGetMyUsage200Response) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_get_my_usage_200_response_daily.go b/model_get_my_usage_200_response_daily.go new file mode 100644 index 0000000..37b54ee --- /dev/null +++ b/model_get_my_usage_200_response_daily.go @@ -0,0 +1,155 @@ +/* +QuantCDN API + +Unified API for QuantCDN Admin and QuantCloud Platform services + +API version: 4.14.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package quantadmingo + +import ( + "encoding/json" +) + +// checks if the GetMyUsage200ResponseDaily type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &GetMyUsage200ResponseDaily{} + +// GetMyUsage200ResponseDaily struct for GetMyUsage200ResponseDaily +type GetMyUsage200ResponseDaily struct { + SpendCents *int32 `json:"spendCents,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _GetMyUsage200ResponseDaily GetMyUsage200ResponseDaily + +// NewGetMyUsage200ResponseDaily instantiates a new GetMyUsage200ResponseDaily 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 NewGetMyUsage200ResponseDaily() *GetMyUsage200ResponseDaily { + this := GetMyUsage200ResponseDaily{} + return &this +} + +// NewGetMyUsage200ResponseDailyWithDefaults instantiates a new GetMyUsage200ResponseDaily 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 NewGetMyUsage200ResponseDailyWithDefaults() *GetMyUsage200ResponseDaily { + this := GetMyUsage200ResponseDaily{} + return &this +} + +// GetSpendCents returns the SpendCents field value if set, zero value otherwise. +func (o *GetMyUsage200ResponseDaily) GetSpendCents() int32 { + if o == nil || IsNil(o.SpendCents) { + var ret int32 + return ret + } + return *o.SpendCents +} + +// GetSpendCentsOk returns a tuple with the SpendCents field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GetMyUsage200ResponseDaily) GetSpendCentsOk() (*int32, bool) { + if o == nil || IsNil(o.SpendCents) { + return nil, false + } + return o.SpendCents, true +} + +// HasSpendCents returns a boolean if a field has been set. +func (o *GetMyUsage200ResponseDaily) HasSpendCents() bool { + if o != nil && !IsNil(o.SpendCents) { + return true + } + + return false +} + +// SetSpendCents gets a reference to the given int32 and assigns it to the SpendCents field. +func (o *GetMyUsage200ResponseDaily) SetSpendCents(v int32) { + o.SpendCents = &v +} + +func (o GetMyUsage200ResponseDaily) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o GetMyUsage200ResponseDaily) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.SpendCents) { + toSerialize["spendCents"] = o.SpendCents + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *GetMyUsage200ResponseDaily) UnmarshalJSON(data []byte) (err error) { + varGetMyUsage200ResponseDaily := _GetMyUsage200ResponseDaily{} + + err = json.Unmarshal(data, &varGetMyUsage200ResponseDaily) + + if err != nil { + return err + } + + *o = GetMyUsage200ResponseDaily(varGetMyUsage200ResponseDaily) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "spendCents") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableGetMyUsage200ResponseDaily struct { + value *GetMyUsage200ResponseDaily + isSet bool +} + +func (v NullableGetMyUsage200ResponseDaily) Get() *GetMyUsage200ResponseDaily { + return v.value +} + +func (v *NullableGetMyUsage200ResponseDaily) Set(val *GetMyUsage200ResponseDaily) { + v.value = val + v.isSet = true +} + +func (v NullableGetMyUsage200ResponseDaily) IsSet() bool { + return v.isSet +} + +func (v *NullableGetMyUsage200ResponseDaily) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableGetMyUsage200ResponseDaily(val *GetMyUsage200ResponseDaily) *NullableGetMyUsage200ResponseDaily { + return &NullableGetMyUsage200ResponseDaily{value: val, isSet: true} +} + +func (v NullableGetMyUsage200ResponseDaily) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableGetMyUsage200ResponseDaily) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_get_my_usage_200_response_monthly.go b/model_get_my_usage_200_response_monthly.go new file mode 100644 index 0000000..a898d75 --- /dev/null +++ b/model_get_my_usage_200_response_monthly.go @@ -0,0 +1,192 @@ +/* +QuantCDN API + +Unified API for QuantCDN Admin and QuantCloud Platform services + +API version: 4.14.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package quantadmingo + +import ( + "encoding/json" +) + +// checks if the GetMyUsage200ResponseMonthly type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &GetMyUsage200ResponseMonthly{} + +// GetMyUsage200ResponseMonthly struct for GetMyUsage200ResponseMonthly +type GetMyUsage200ResponseMonthly struct { + SpendCents *int32 `json:"spendCents,omitempty"` + RequestCount *int32 `json:"requestCount,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _GetMyUsage200ResponseMonthly GetMyUsage200ResponseMonthly + +// NewGetMyUsage200ResponseMonthly instantiates a new GetMyUsage200ResponseMonthly 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 NewGetMyUsage200ResponseMonthly() *GetMyUsage200ResponseMonthly { + this := GetMyUsage200ResponseMonthly{} + return &this +} + +// NewGetMyUsage200ResponseMonthlyWithDefaults instantiates a new GetMyUsage200ResponseMonthly 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 NewGetMyUsage200ResponseMonthlyWithDefaults() *GetMyUsage200ResponseMonthly { + this := GetMyUsage200ResponseMonthly{} + return &this +} + +// GetSpendCents returns the SpendCents field value if set, zero value otherwise. +func (o *GetMyUsage200ResponseMonthly) GetSpendCents() int32 { + if o == nil || IsNil(o.SpendCents) { + var ret int32 + return ret + } + return *o.SpendCents +} + +// GetSpendCentsOk returns a tuple with the SpendCents field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GetMyUsage200ResponseMonthly) GetSpendCentsOk() (*int32, bool) { + if o == nil || IsNil(o.SpendCents) { + return nil, false + } + return o.SpendCents, true +} + +// HasSpendCents returns a boolean if a field has been set. +func (o *GetMyUsage200ResponseMonthly) HasSpendCents() bool { + if o != nil && !IsNil(o.SpendCents) { + return true + } + + return false +} + +// SetSpendCents gets a reference to the given int32 and assigns it to the SpendCents field. +func (o *GetMyUsage200ResponseMonthly) SetSpendCents(v int32) { + o.SpendCents = &v +} + +// GetRequestCount returns the RequestCount field value if set, zero value otherwise. +func (o *GetMyUsage200ResponseMonthly) GetRequestCount() int32 { + if o == nil || IsNil(o.RequestCount) { + var ret int32 + return ret + } + return *o.RequestCount +} + +// GetRequestCountOk returns a tuple with the RequestCount field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GetMyUsage200ResponseMonthly) GetRequestCountOk() (*int32, bool) { + if o == nil || IsNil(o.RequestCount) { + return nil, false + } + return o.RequestCount, true +} + +// HasRequestCount returns a boolean if a field has been set. +func (o *GetMyUsage200ResponseMonthly) HasRequestCount() bool { + if o != nil && !IsNil(o.RequestCount) { + return true + } + + return false +} + +// SetRequestCount gets a reference to the given int32 and assigns it to the RequestCount field. +func (o *GetMyUsage200ResponseMonthly) SetRequestCount(v int32) { + o.RequestCount = &v +} + +func (o GetMyUsage200ResponseMonthly) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o GetMyUsage200ResponseMonthly) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.SpendCents) { + toSerialize["spendCents"] = o.SpendCents + } + if !IsNil(o.RequestCount) { + toSerialize["requestCount"] = o.RequestCount + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *GetMyUsage200ResponseMonthly) UnmarshalJSON(data []byte) (err error) { + varGetMyUsage200ResponseMonthly := _GetMyUsage200ResponseMonthly{} + + err = json.Unmarshal(data, &varGetMyUsage200ResponseMonthly) + + if err != nil { + return err + } + + *o = GetMyUsage200ResponseMonthly(varGetMyUsage200ResponseMonthly) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "spendCents") + delete(additionalProperties, "requestCount") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableGetMyUsage200ResponseMonthly struct { + value *GetMyUsage200ResponseMonthly + isSet bool +} + +func (v NullableGetMyUsage200ResponseMonthly) Get() *GetMyUsage200ResponseMonthly { + return v.value +} + +func (v *NullableGetMyUsage200ResponseMonthly) Set(val *GetMyUsage200ResponseMonthly) { + v.value = val + v.isSet = true +} + +func (v NullableGetMyUsage200ResponseMonthly) IsSet() bool { + return v.isSet +} + +func (v *NullableGetMyUsage200ResponseMonthly) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableGetMyUsage200ResponseMonthly(val *GetMyUsage200ResponseMonthly) *NullableGetMyUsage200ResponseMonthly { + return &NullableGetMyUsage200ResponseMonthly{value: val, isSet: true} +} + +func (v NullableGetMyUsage200ResponseMonthly) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableGetMyUsage200ResponseMonthly) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_get_skill_200_response.go b/model_get_skill_200_response.go index 3aa6f6e..1d27f34 100644 --- a/model_get_skill_200_response.go +++ b/model_get_skill_200_response.go @@ -3,7 +3,7 @@ QuantCDN API Unified API for QuantCDN Admin and QuantCloud Platform services -API version: 4.13.0 +API version: 4.14.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_get_skill_200_response_skill.go b/model_get_skill_200_response_skill.go index 18e3e1f..edff027 100644 --- a/model_get_skill_200_response_skill.go +++ b/model_get_skill_200_response_skill.go @@ -3,7 +3,7 @@ QuantCDN API Unified API for QuantCDN Admin and QuantCloud Platform services -API version: 4.13.0 +API version: 4.14.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_get_slack_bot_200_response.go b/model_get_slack_bot_200_response.go new file mode 100644 index 0000000..f66f5ce --- /dev/null +++ b/model_get_slack_bot_200_response.go @@ -0,0 +1,155 @@ +/* +QuantCDN API + +Unified API for QuantCDN Admin and QuantCloud Platform services + +API version: 4.14.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package quantadmingo + +import ( + "encoding/json" +) + +// checks if the GetSlackBot200Response type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &GetSlackBot200Response{} + +// GetSlackBot200Response struct for GetSlackBot200Response +type GetSlackBot200Response struct { + Bot *GetSlackBot200ResponseBot `json:"bot,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _GetSlackBot200Response GetSlackBot200Response + +// NewGetSlackBot200Response instantiates a new GetSlackBot200Response 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 NewGetSlackBot200Response() *GetSlackBot200Response { + this := GetSlackBot200Response{} + return &this +} + +// NewGetSlackBot200ResponseWithDefaults instantiates a new GetSlackBot200Response 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 NewGetSlackBot200ResponseWithDefaults() *GetSlackBot200Response { + this := GetSlackBot200Response{} + return &this +} + +// GetBot returns the Bot field value if set, zero value otherwise. +func (o *GetSlackBot200Response) GetBot() GetSlackBot200ResponseBot { + if o == nil || IsNil(o.Bot) { + var ret GetSlackBot200ResponseBot + return ret + } + return *o.Bot +} + +// GetBotOk returns a tuple with the Bot field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GetSlackBot200Response) GetBotOk() (*GetSlackBot200ResponseBot, bool) { + if o == nil || IsNil(o.Bot) { + return nil, false + } + return o.Bot, true +} + +// HasBot returns a boolean if a field has been set. +func (o *GetSlackBot200Response) HasBot() bool { + if o != nil && !IsNil(o.Bot) { + return true + } + + return false +} + +// SetBot gets a reference to the given GetSlackBot200ResponseBot and assigns it to the Bot field. +func (o *GetSlackBot200Response) SetBot(v GetSlackBot200ResponseBot) { + o.Bot = &v +} + +func (o GetSlackBot200Response) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o GetSlackBot200Response) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Bot) { + toSerialize["bot"] = o.Bot + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *GetSlackBot200Response) UnmarshalJSON(data []byte) (err error) { + varGetSlackBot200Response := _GetSlackBot200Response{} + + err = json.Unmarshal(data, &varGetSlackBot200Response) + + if err != nil { + return err + } + + *o = GetSlackBot200Response(varGetSlackBot200Response) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "bot") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableGetSlackBot200Response struct { + value *GetSlackBot200Response + isSet bool +} + +func (v NullableGetSlackBot200Response) Get() *GetSlackBot200Response { + return v.value +} + +func (v *NullableGetSlackBot200Response) Set(val *GetSlackBot200Response) { + v.value = val + v.isSet = true +} + +func (v NullableGetSlackBot200Response) IsSet() bool { + return v.isSet +} + +func (v *NullableGetSlackBot200Response) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableGetSlackBot200Response(val *GetSlackBot200Response) *NullableGetSlackBot200Response { + return &NullableGetSlackBot200Response{value: val, isSet: true} +} + +func (v NullableGetSlackBot200Response) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableGetSlackBot200Response) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_get_slack_bot_200_response_bot.go b/model_get_slack_bot_200_response_bot.go new file mode 100644 index 0000000..ff3cb88 --- /dev/null +++ b/model_get_slack_bot_200_response_bot.go @@ -0,0 +1,563 @@ +/* +QuantCDN API + +Unified API for QuantCDN Admin and QuantCloud Platform services + +API version: 4.14.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package quantadmingo + +import ( + "encoding/json" + "time" +) + +// checks if the GetSlackBot200ResponseBot type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &GetSlackBot200ResponseBot{} + +// GetSlackBot200ResponseBot struct for GetSlackBot200ResponseBot +type GetSlackBot200ResponseBot struct { + BotId *string `json:"botId,omitempty"` + AgentId *string `json:"agentId,omitempty"` + SetupType *string `json:"setupType,omitempty"` + Status *string `json:"status,omitempty"` + Connected *bool `json:"connected,omitempty"` + SessionTtlDays *int32 `json:"sessionTtlDays,omitempty"` + AllowedChannels []string `json:"allowedChannels,omitempty"` + KeywordsEnabled *bool `json:"keywordsEnabled,omitempty"` + Keywords []string `json:"keywords,omitempty"` + SlashCommands []string `json:"slashCommands,omitempty"` + CreatedAt *time.Time `json:"createdAt,omitempty"` + UpdatedAt *time.Time `json:"updatedAt,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _GetSlackBot200ResponseBot GetSlackBot200ResponseBot + +// NewGetSlackBot200ResponseBot instantiates a new GetSlackBot200ResponseBot 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 NewGetSlackBot200ResponseBot() *GetSlackBot200ResponseBot { + this := GetSlackBot200ResponseBot{} + return &this +} + +// NewGetSlackBot200ResponseBotWithDefaults instantiates a new GetSlackBot200ResponseBot 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 NewGetSlackBot200ResponseBotWithDefaults() *GetSlackBot200ResponseBot { + this := GetSlackBot200ResponseBot{} + return &this +} + +// GetBotId returns the BotId field value if set, zero value otherwise. +func (o *GetSlackBot200ResponseBot) GetBotId() string { + if o == nil || IsNil(o.BotId) { + var ret string + return ret + } + return *o.BotId +} + +// GetBotIdOk returns a tuple with the BotId field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GetSlackBot200ResponseBot) GetBotIdOk() (*string, bool) { + if o == nil || IsNil(o.BotId) { + return nil, false + } + return o.BotId, true +} + +// HasBotId returns a boolean if a field has been set. +func (o *GetSlackBot200ResponseBot) HasBotId() bool { + if o != nil && !IsNil(o.BotId) { + return true + } + + return false +} + +// SetBotId gets a reference to the given string and assigns it to the BotId field. +func (o *GetSlackBot200ResponseBot) SetBotId(v string) { + o.BotId = &v +} + +// GetAgentId returns the AgentId field value if set, zero value otherwise. +func (o *GetSlackBot200ResponseBot) GetAgentId() string { + if o == nil || IsNil(o.AgentId) { + var ret string + return ret + } + return *o.AgentId +} + +// GetAgentIdOk returns a tuple with the AgentId field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GetSlackBot200ResponseBot) GetAgentIdOk() (*string, bool) { + if o == nil || IsNil(o.AgentId) { + return nil, false + } + return o.AgentId, true +} + +// HasAgentId returns a boolean if a field has been set. +func (o *GetSlackBot200ResponseBot) HasAgentId() bool { + if o != nil && !IsNil(o.AgentId) { + return true + } + + return false +} + +// SetAgentId gets a reference to the given string and assigns it to the AgentId field. +func (o *GetSlackBot200ResponseBot) SetAgentId(v string) { + o.AgentId = &v +} + +// GetSetupType returns the SetupType field value if set, zero value otherwise. +func (o *GetSlackBot200ResponseBot) GetSetupType() string { + if o == nil || IsNil(o.SetupType) { + var ret string + return ret + } + return *o.SetupType +} + +// GetSetupTypeOk returns a tuple with the SetupType field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GetSlackBot200ResponseBot) GetSetupTypeOk() (*string, bool) { + if o == nil || IsNil(o.SetupType) { + return nil, false + } + return o.SetupType, true +} + +// HasSetupType returns a boolean if a field has been set. +func (o *GetSlackBot200ResponseBot) HasSetupType() bool { + if o != nil && !IsNil(o.SetupType) { + return true + } + + return false +} + +// SetSetupType gets a reference to the given string and assigns it to the SetupType field. +func (o *GetSlackBot200ResponseBot) SetSetupType(v string) { + o.SetupType = &v +} + +// GetStatus returns the Status field value if set, zero value otherwise. +func (o *GetSlackBot200ResponseBot) GetStatus() string { + if o == nil || IsNil(o.Status) { + var ret string + return ret + } + return *o.Status +} + +// GetStatusOk returns a tuple with the Status field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GetSlackBot200ResponseBot) GetStatusOk() (*string, bool) { + if o == nil || IsNil(o.Status) { + return nil, false + } + return o.Status, true +} + +// HasStatus returns a boolean if a field has been set. +func (o *GetSlackBot200ResponseBot) HasStatus() bool { + if o != nil && !IsNil(o.Status) { + return true + } + + return false +} + +// SetStatus gets a reference to the given string and assigns it to the Status field. +func (o *GetSlackBot200ResponseBot) SetStatus(v string) { + o.Status = &v +} + +// GetConnected returns the Connected field value if set, zero value otherwise. +func (o *GetSlackBot200ResponseBot) GetConnected() bool { + if o == nil || IsNil(o.Connected) { + var ret bool + return ret + } + return *o.Connected +} + +// GetConnectedOk returns a tuple with the Connected field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GetSlackBot200ResponseBot) GetConnectedOk() (*bool, bool) { + if o == nil || IsNil(o.Connected) { + return nil, false + } + return o.Connected, true +} + +// HasConnected returns a boolean if a field has been set. +func (o *GetSlackBot200ResponseBot) HasConnected() bool { + if o != nil && !IsNil(o.Connected) { + return true + } + + return false +} + +// SetConnected gets a reference to the given bool and assigns it to the Connected field. +func (o *GetSlackBot200ResponseBot) SetConnected(v bool) { + o.Connected = &v +} + +// GetSessionTtlDays returns the SessionTtlDays field value if set, zero value otherwise. +func (o *GetSlackBot200ResponseBot) GetSessionTtlDays() int32 { + if o == nil || IsNil(o.SessionTtlDays) { + var ret int32 + return ret + } + return *o.SessionTtlDays +} + +// GetSessionTtlDaysOk returns a tuple with the SessionTtlDays field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GetSlackBot200ResponseBot) GetSessionTtlDaysOk() (*int32, bool) { + if o == nil || IsNil(o.SessionTtlDays) { + return nil, false + } + return o.SessionTtlDays, true +} + +// HasSessionTtlDays returns a boolean if a field has been set. +func (o *GetSlackBot200ResponseBot) HasSessionTtlDays() bool { + if o != nil && !IsNil(o.SessionTtlDays) { + return true + } + + return false +} + +// SetSessionTtlDays gets a reference to the given int32 and assigns it to the SessionTtlDays field. +func (o *GetSlackBot200ResponseBot) SetSessionTtlDays(v int32) { + o.SessionTtlDays = &v +} + +// GetAllowedChannels returns the AllowedChannels field value if set, zero value otherwise. +func (o *GetSlackBot200ResponseBot) GetAllowedChannels() []string { + if o == nil || IsNil(o.AllowedChannels) { + var ret []string + return ret + } + return o.AllowedChannels +} + +// GetAllowedChannelsOk returns a tuple with the AllowedChannels field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GetSlackBot200ResponseBot) GetAllowedChannelsOk() ([]string, bool) { + if o == nil || IsNil(o.AllowedChannels) { + return nil, false + } + return o.AllowedChannels, true +} + +// HasAllowedChannels returns a boolean if a field has been set. +func (o *GetSlackBot200ResponseBot) HasAllowedChannels() bool { + if o != nil && !IsNil(o.AllowedChannels) { + return true + } + + return false +} + +// SetAllowedChannels gets a reference to the given []string and assigns it to the AllowedChannels field. +func (o *GetSlackBot200ResponseBot) SetAllowedChannels(v []string) { + o.AllowedChannels = v +} + +// GetKeywordsEnabled returns the KeywordsEnabled field value if set, zero value otherwise. +func (o *GetSlackBot200ResponseBot) GetKeywordsEnabled() bool { + if o == nil || IsNil(o.KeywordsEnabled) { + var ret bool + return ret + } + return *o.KeywordsEnabled +} + +// GetKeywordsEnabledOk returns a tuple with the KeywordsEnabled field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GetSlackBot200ResponseBot) GetKeywordsEnabledOk() (*bool, bool) { + if o == nil || IsNil(o.KeywordsEnabled) { + return nil, false + } + return o.KeywordsEnabled, true +} + +// HasKeywordsEnabled returns a boolean if a field has been set. +func (o *GetSlackBot200ResponseBot) HasKeywordsEnabled() bool { + if o != nil && !IsNil(o.KeywordsEnabled) { + return true + } + + return false +} + +// SetKeywordsEnabled gets a reference to the given bool and assigns it to the KeywordsEnabled field. +func (o *GetSlackBot200ResponseBot) SetKeywordsEnabled(v bool) { + o.KeywordsEnabled = &v +} + +// GetKeywords returns the Keywords field value if set, zero value otherwise. +func (o *GetSlackBot200ResponseBot) GetKeywords() []string { + if o == nil || IsNil(o.Keywords) { + var ret []string + return ret + } + return o.Keywords +} + +// GetKeywordsOk returns a tuple with the Keywords field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GetSlackBot200ResponseBot) GetKeywordsOk() ([]string, bool) { + if o == nil || IsNil(o.Keywords) { + return nil, false + } + return o.Keywords, true +} + +// HasKeywords returns a boolean if a field has been set. +func (o *GetSlackBot200ResponseBot) HasKeywords() bool { + if o != nil && !IsNil(o.Keywords) { + return true + } + + return false +} + +// SetKeywords gets a reference to the given []string and assigns it to the Keywords field. +func (o *GetSlackBot200ResponseBot) SetKeywords(v []string) { + o.Keywords = v +} + +// GetSlashCommands returns the SlashCommands field value if set, zero value otherwise. +func (o *GetSlackBot200ResponseBot) GetSlashCommands() []string { + if o == nil || IsNil(o.SlashCommands) { + var ret []string + return ret + } + return o.SlashCommands +} + +// GetSlashCommandsOk returns a tuple with the SlashCommands field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GetSlackBot200ResponseBot) GetSlashCommandsOk() ([]string, bool) { + if o == nil || IsNil(o.SlashCommands) { + return nil, false + } + return o.SlashCommands, true +} + +// HasSlashCommands returns a boolean if a field has been set. +func (o *GetSlackBot200ResponseBot) HasSlashCommands() bool { + if o != nil && !IsNil(o.SlashCommands) { + return true + } + + return false +} + +// SetSlashCommands gets a reference to the given []string and assigns it to the SlashCommands field. +func (o *GetSlackBot200ResponseBot) SetSlashCommands(v []string) { + o.SlashCommands = v +} + +// GetCreatedAt returns the CreatedAt field value if set, zero value otherwise. +func (o *GetSlackBot200ResponseBot) 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 *GetSlackBot200ResponseBot) 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 *GetSlackBot200ResponseBot) 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 *GetSlackBot200ResponseBot) SetCreatedAt(v time.Time) { + o.CreatedAt = &v +} + +// GetUpdatedAt returns the UpdatedAt field value if set, zero value otherwise. +func (o *GetSlackBot200ResponseBot) 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 *GetSlackBot200ResponseBot) 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 *GetSlackBot200ResponseBot) 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 *GetSlackBot200ResponseBot) SetUpdatedAt(v time.Time) { + o.UpdatedAt = &v +} + +func (o GetSlackBot200ResponseBot) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o GetSlackBot200ResponseBot) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.BotId) { + toSerialize["botId"] = o.BotId + } + if !IsNil(o.AgentId) { + toSerialize["agentId"] = o.AgentId + } + if !IsNil(o.SetupType) { + toSerialize["setupType"] = o.SetupType + } + if !IsNil(o.Status) { + toSerialize["status"] = o.Status + } + if !IsNil(o.Connected) { + toSerialize["connected"] = o.Connected + } + if !IsNil(o.SessionTtlDays) { + toSerialize["sessionTtlDays"] = o.SessionTtlDays + } + if !IsNil(o.AllowedChannels) { + toSerialize["allowedChannels"] = o.AllowedChannels + } + if !IsNil(o.KeywordsEnabled) { + toSerialize["keywordsEnabled"] = o.KeywordsEnabled + } + if !IsNil(o.Keywords) { + toSerialize["keywords"] = o.Keywords + } + if !IsNil(o.SlashCommands) { + toSerialize["slashCommands"] = o.SlashCommands + } + if !IsNil(o.CreatedAt) { + toSerialize["createdAt"] = o.CreatedAt + } + if !IsNil(o.UpdatedAt) { + toSerialize["updatedAt"] = o.UpdatedAt + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *GetSlackBot200ResponseBot) UnmarshalJSON(data []byte) (err error) { + varGetSlackBot200ResponseBot := _GetSlackBot200ResponseBot{} + + err = json.Unmarshal(data, &varGetSlackBot200ResponseBot) + + if err != nil { + return err + } + + *o = GetSlackBot200ResponseBot(varGetSlackBot200ResponseBot) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "botId") + delete(additionalProperties, "agentId") + delete(additionalProperties, "setupType") + delete(additionalProperties, "status") + delete(additionalProperties, "connected") + delete(additionalProperties, "sessionTtlDays") + delete(additionalProperties, "allowedChannels") + delete(additionalProperties, "keywordsEnabled") + delete(additionalProperties, "keywords") + delete(additionalProperties, "slashCommands") + delete(additionalProperties, "createdAt") + delete(additionalProperties, "updatedAt") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableGetSlackBot200ResponseBot struct { + value *GetSlackBot200ResponseBot + isSet bool +} + +func (v NullableGetSlackBot200ResponseBot) Get() *GetSlackBot200ResponseBot { + return v.value +} + +func (v *NullableGetSlackBot200ResponseBot) Set(val *GetSlackBot200ResponseBot) { + v.value = val + v.isSet = true +} + +func (v NullableGetSlackBot200ResponseBot) IsSet() bool { + return v.isSet +} + +func (v *NullableGetSlackBot200ResponseBot) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableGetSlackBot200ResponseBot(val *GetSlackBot200ResponseBot) *NullableGetSlackBot200ResponseBot { + return &NullableGetSlackBot200ResponseBot{value: val, isSet: true} +} + +func (v NullableGetSlackBot200ResponseBot) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableGetSlackBot200ResponseBot) 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 233b252..03bd59a 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.13.0 +API version: 4.14.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 6480a78..0acdc78 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.13.0 +API version: 4.14.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 614251d..ccfd820 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.13.0 +API version: 4.14.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 6983007..a52e55e 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.13.0 +API version: 4.14.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 1e6aa74..17becb3 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.13.0 +API version: 4.14.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 52931d2..79b69d5 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.13.0 +API version: 4.14.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 8ce6cda..e48c01a 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.13.0 +API version: 4.14.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 820e537..0d7c499 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.13.0 +API version: 4.14.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 01bf415..af10c6a 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.13.0 +API version: 4.14.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 a35319c..bde100f 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.13.0 +API version: 4.14.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 d1c0d28..cc064fc 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.13.0 +API version: 4.14.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 e2b4146..8a9bbf4 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.13.0 +API version: 4.14.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 1d91f9f..a6a55b8 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.13.0 +API version: 4.14.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 638157f..4c160c6 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.13.0 +API version: 4.14.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_import_skill_201_response.go b/model_import_skill_201_response.go index 7cfad68..5b67acd 100644 --- a/model_import_skill_201_response.go +++ b/model_import_skill_201_response.go @@ -3,7 +3,7 @@ QuantCDN API Unified API for QuantCDN Admin and QuantCloud Platform services -API version: 4.13.0 +API version: 4.14.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_import_skill_collection_201_response.go b/model_import_skill_collection_201_response.go index 54380fe..ace1375 100644 --- a/model_import_skill_collection_201_response.go +++ b/model_import_skill_collection_201_response.go @@ -3,7 +3,7 @@ QuantCDN API Unified API for QuantCDN Admin and QuantCloud Platform services -API version: 4.13.0 +API version: 4.14.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_import_skill_collection_request.go b/model_import_skill_collection_request.go index af8919a..4fa2462 100644 --- a/model_import_skill_collection_request.go +++ b/model_import_skill_collection_request.go @@ -3,7 +3,7 @@ QuantCDN API Unified API for QuantCDN Admin and QuantCloud Platform services -API version: 4.13.0 +API version: 4.14.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_import_skill_collection_request_source.go b/model_import_skill_collection_request_source.go index b0de82d..fbf7988 100644 --- a/model_import_skill_collection_request_source.go +++ b/model_import_skill_collection_request_source.go @@ -3,7 +3,7 @@ QuantCDN API Unified API for QuantCDN Admin and QuantCloud Platform services -API version: 4.13.0 +API version: 4.14.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_import_skill_request.go b/model_import_skill_request.go index bae2236..0b8dab0 100644 --- a/model_import_skill_request.go +++ b/model_import_skill_request.go @@ -3,7 +3,7 @@ QuantCDN API Unified API for QuantCDN Admin and QuantCloud Platform services -API version: 4.13.0 +API version: 4.14.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_import_skill_request_source.go b/model_import_skill_request_source.go index 4e15e9a..db80041 100644 --- a/model_import_skill_request_source.go +++ b/model_import_skill_request_source.go @@ -3,7 +3,7 @@ QuantCDN API Unified API for QuantCDN Admin and QuantCloud Platform services -API version: 4.13.0 +API version: 4.14.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_kv_items_create_200_response.go b/model_kv_items_create_200_response.go index d3df57c..faa4a6c 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.13.0 +API version: 4.14.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 ddbfccf..39d36ab 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.13.0 +API version: 4.14.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 6a6bcb8..e58c36f 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.13.0 +API version: 4.14.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 318cf34..aa0c977 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.13.0 +API version: 4.14.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 793fbd7..3fd742d 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.13.0 +API version: 4.14.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 240b3c5..92fcf7f 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.13.0 +API version: 4.14.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 f635330..6712ca7 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.13.0 +API version: 4.14.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 cb038dc..55540d0 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.13.0 +API version: 4.14.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -28,6 +28,11 @@ type ListAIAgents200ResponseAgentsInner struct { Temperature *float32 `json:"temperature,omitempty"` MaxTokens *int32 `json:"maxTokens,omitempty"` AllowedTools []string `json:"allowedTools,omitempty"` + AssignedSkills []string `json:"assignedSkills,omitempty"` + LongContext *bool `json:"longContext,omitempty"` + GuardrailPreset *string `json:"guardrailPreset,omitempty"` + IsGlobal *bool `json:"isGlobal,omitempty"` + HasOverlay *bool `json:"hasOverlay,omitempty"` CreatedAt *time.Time `json:"createdAt,omitempty"` UpdatedAt *time.Time `json:"updatedAt,omitempty"` AdditionalProperties map[string]interface{} @@ -308,6 +313,166 @@ func (o *ListAIAgents200ResponseAgentsInner) SetAllowedTools(v []string) { o.AllowedTools = v } +// GetAssignedSkills returns the AssignedSkills field value if set, zero value otherwise. +func (o *ListAIAgents200ResponseAgentsInner) GetAssignedSkills() []string { + if o == nil || IsNil(o.AssignedSkills) { + var ret []string + return ret + } + return o.AssignedSkills +} + +// GetAssignedSkillsOk returns a tuple with the AssignedSkills field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ListAIAgents200ResponseAgentsInner) GetAssignedSkillsOk() ([]string, bool) { + if o == nil || IsNil(o.AssignedSkills) { + return nil, false + } + return o.AssignedSkills, true +} + +// HasAssignedSkills returns a boolean if a field has been set. +func (o *ListAIAgents200ResponseAgentsInner) HasAssignedSkills() bool { + if o != nil && !IsNil(o.AssignedSkills) { + return true + } + + return false +} + +// SetAssignedSkills gets a reference to the given []string and assigns it to the AssignedSkills field. +func (o *ListAIAgents200ResponseAgentsInner) SetAssignedSkills(v []string) { + o.AssignedSkills = v +} + +// GetLongContext returns the LongContext field value if set, zero value otherwise. +func (o *ListAIAgents200ResponseAgentsInner) 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 *ListAIAgents200ResponseAgentsInner) 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 *ListAIAgents200ResponseAgentsInner) 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 *ListAIAgents200ResponseAgentsInner) SetLongContext(v bool) { + o.LongContext = &v +} + +// GetGuardrailPreset returns the GuardrailPreset field value if set, zero value otherwise. +func (o *ListAIAgents200ResponseAgentsInner) GetGuardrailPreset() string { + if o == nil || IsNil(o.GuardrailPreset) { + var ret string + return ret + } + return *o.GuardrailPreset +} + +// GetGuardrailPresetOk returns a tuple with the GuardrailPreset field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ListAIAgents200ResponseAgentsInner) GetGuardrailPresetOk() (*string, bool) { + if o == nil || IsNil(o.GuardrailPreset) { + return nil, false + } + return o.GuardrailPreset, true +} + +// HasGuardrailPreset returns a boolean if a field has been set. +func (o *ListAIAgents200ResponseAgentsInner) HasGuardrailPreset() bool { + if o != nil && !IsNil(o.GuardrailPreset) { + return true + } + + return false +} + +// SetGuardrailPreset gets a reference to the given string and assigns it to the GuardrailPreset field. +func (o *ListAIAgents200ResponseAgentsInner) SetGuardrailPreset(v string) { + o.GuardrailPreset = &v +} + +// GetIsGlobal returns the IsGlobal field value if set, zero value otherwise. +func (o *ListAIAgents200ResponseAgentsInner) GetIsGlobal() bool { + if o == nil || IsNil(o.IsGlobal) { + var ret bool + return ret + } + return *o.IsGlobal +} + +// GetIsGlobalOk returns a tuple with the IsGlobal field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ListAIAgents200ResponseAgentsInner) GetIsGlobalOk() (*bool, bool) { + if o == nil || IsNil(o.IsGlobal) { + return nil, false + } + return o.IsGlobal, true +} + +// HasIsGlobal returns a boolean if a field has been set. +func (o *ListAIAgents200ResponseAgentsInner) HasIsGlobal() bool { + if o != nil && !IsNil(o.IsGlobal) { + return true + } + + return false +} + +// SetIsGlobal gets a reference to the given bool and assigns it to the IsGlobal field. +func (o *ListAIAgents200ResponseAgentsInner) SetIsGlobal(v bool) { + o.IsGlobal = &v +} + +// GetHasOverlay returns the HasOverlay field value if set, zero value otherwise. +func (o *ListAIAgents200ResponseAgentsInner) GetHasOverlay() bool { + if o == nil || IsNil(o.HasOverlay) { + var ret bool + return ret + } + return *o.HasOverlay +} + +// GetHasOverlayOk returns a tuple with the HasOverlay field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ListAIAgents200ResponseAgentsInner) GetHasOverlayOk() (*bool, bool) { + if o == nil || IsNil(o.HasOverlay) { + return nil, false + } + return o.HasOverlay, true +} + +// HasHasOverlay returns a boolean if a field has been set. +func (o *ListAIAgents200ResponseAgentsInner) HasHasOverlay() bool { + if o != nil && !IsNil(o.HasOverlay) { + return true + } + + return false +} + +// SetHasOverlay gets a reference to the given bool and assigns it to the HasOverlay field. +func (o *ListAIAgents200ResponseAgentsInner) SetHasOverlay(v bool) { + o.HasOverlay = &v +} + // GetCreatedAt returns the CreatedAt field value if set, zero value otherwise. func (o *ListAIAgents200ResponseAgentsInner) GetCreatedAt() time.Time { if o == nil || IsNil(o.CreatedAt) { @@ -406,6 +571,21 @@ func (o ListAIAgents200ResponseAgentsInner) ToMap() (map[string]interface{}, err if !IsNil(o.AllowedTools) { toSerialize["allowedTools"] = o.AllowedTools } + if !IsNil(o.AssignedSkills) { + toSerialize["assignedSkills"] = o.AssignedSkills + } + if !IsNil(o.LongContext) { + toSerialize["longContext"] = o.LongContext + } + if !IsNil(o.GuardrailPreset) { + toSerialize["guardrailPreset"] = o.GuardrailPreset + } + if !IsNil(o.IsGlobal) { + toSerialize["isGlobal"] = o.IsGlobal + } + if !IsNil(o.HasOverlay) { + toSerialize["hasOverlay"] = o.HasOverlay + } if !IsNil(o.CreatedAt) { toSerialize["createdAt"] = o.CreatedAt } @@ -442,6 +622,11 @@ func (o *ListAIAgents200ResponseAgentsInner) UnmarshalJSON(data []byte) (err err delete(additionalProperties, "temperature") delete(additionalProperties, "maxTokens") delete(additionalProperties, "allowedTools") + delete(additionalProperties, "assignedSkills") + delete(additionalProperties, "longContext") + delete(additionalProperties, "guardrailPreset") + delete(additionalProperties, "isGlobal") + delete(additionalProperties, "hasOverlay") delete(additionalProperties, "createdAt") delete(additionalProperties, "updatedAt") o.AdditionalProperties = additionalProperties diff --git a/model_list_ai_models_200_response.go b/model_list_ai_models_200_response.go index 58126a4..3ceb100 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.13.0 +API version: 4.14.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 1723ef3..1365c71 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.13.0 +API version: 4.14.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 4e7986d..74d56c8 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.13.0 +API version: 4.14.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 07dabe2..a7dfd08 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.13.0 +API version: 4.14.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 1e99704..093eec4 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.13.0 +API version: 4.14.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 03a12e8..c9c290c 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.13.0 +API version: 4.14.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 c4be578..057cb9f 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.13.0 +API version: 4.14.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 1b4191b..f9e73ee 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.13.0 +API version: 4.14.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 20a3aa1..4cb0bdb 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.13.0 +API version: 4.14.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 a7780e5..c84bbd5 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.13.0 +API version: 4.14.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 3a70e6a..3e98a8f 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.13.0 +API version: 4.14.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 b2b49b6..c46e330 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.13.0 +API version: 4.14.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 7199701..440cda2 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.13.0 +API version: 4.14.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 e5e4a30..db4e1c2 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.13.0 +API version: 4.14.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 d256515..e839321 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.13.0 +API version: 4.14.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 047f008..7553a69 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.13.0 +API version: 4.14.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 2447943..759e04f 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.13.0 +API version: 4.14.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 7ac2b21..ece9868 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.13.0 +API version: 4.14.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 f52147d..d6e510e 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.13.0 +API version: 4.14.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 f9b846b..4c6f868 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.13.0 +API version: 4.14.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 c6716da..c37b012 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.13.0 +API version: 4.14.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_list_skill_collections_200_response.go b/model_list_skill_collections_200_response.go index c7df884..01cbdf4 100644 --- a/model_list_skill_collections_200_response.go +++ b/model_list_skill_collections_200_response.go @@ -3,7 +3,7 @@ QuantCDN API Unified API for QuantCDN Admin and QuantCloud Platform services -API version: 4.13.0 +API version: 4.14.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_list_skill_collections_200_response_collections_inner.go b/model_list_skill_collections_200_response_collections_inner.go index f3b9cfb..86e1442 100644 --- a/model_list_skill_collections_200_response_collections_inner.go +++ b/model_list_skill_collections_200_response_collections_inner.go @@ -3,7 +3,7 @@ QuantCDN API Unified API for QuantCDN Admin and QuantCloud Platform services -API version: 4.13.0 +API version: 4.14.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_list_skills_200_response.go b/model_list_skills_200_response.go index 4fa6210..1f7e34f 100644 --- a/model_list_skills_200_response.go +++ b/model_list_skills_200_response.go @@ -3,7 +3,7 @@ QuantCDN API Unified API for QuantCDN Admin and QuantCloud Platform services -API version: 4.13.0 +API version: 4.14.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_list_skills_200_response_skills_inner.go b/model_list_skills_200_response_skills_inner.go index 492f466..227763e 100644 --- a/model_list_skills_200_response_skills_inner.go +++ b/model_list_skills_200_response_skills_inner.go @@ -3,7 +3,7 @@ QuantCDN API Unified API for QuantCDN Admin and QuantCloud Platform services -API version: 4.13.0 +API version: 4.14.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_list_slack_bots_200_response.go b/model_list_slack_bots_200_response.go new file mode 100644 index 0000000..3fe50d0 --- /dev/null +++ b/model_list_slack_bots_200_response.go @@ -0,0 +1,155 @@ +/* +QuantCDN API + +Unified API for QuantCDN Admin and QuantCloud Platform services + +API version: 4.14.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package quantadmingo + +import ( + "encoding/json" +) + +// checks if the ListSlackBots200Response type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &ListSlackBots200Response{} + +// ListSlackBots200Response struct for ListSlackBots200Response +type ListSlackBots200Response struct { + Bots []ListSlackBots200ResponseBotsInner `json:"bots,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _ListSlackBots200Response ListSlackBots200Response + +// NewListSlackBots200Response instantiates a new ListSlackBots200Response 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 NewListSlackBots200Response() *ListSlackBots200Response { + this := ListSlackBots200Response{} + return &this +} + +// NewListSlackBots200ResponseWithDefaults instantiates a new ListSlackBots200Response 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 NewListSlackBots200ResponseWithDefaults() *ListSlackBots200Response { + this := ListSlackBots200Response{} + return &this +} + +// GetBots returns the Bots field value if set, zero value otherwise. +func (o *ListSlackBots200Response) GetBots() []ListSlackBots200ResponseBotsInner { + if o == nil || IsNil(o.Bots) { + var ret []ListSlackBots200ResponseBotsInner + return ret + } + return o.Bots +} + +// GetBotsOk returns a tuple with the Bots field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ListSlackBots200Response) GetBotsOk() ([]ListSlackBots200ResponseBotsInner, bool) { + if o == nil || IsNil(o.Bots) { + return nil, false + } + return o.Bots, true +} + +// HasBots returns a boolean if a field has been set. +func (o *ListSlackBots200Response) HasBots() bool { + if o != nil && !IsNil(o.Bots) { + return true + } + + return false +} + +// SetBots gets a reference to the given []ListSlackBots200ResponseBotsInner and assigns it to the Bots field. +func (o *ListSlackBots200Response) SetBots(v []ListSlackBots200ResponseBotsInner) { + o.Bots = v +} + +func (o ListSlackBots200Response) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o ListSlackBots200Response) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Bots) { + toSerialize["bots"] = o.Bots + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *ListSlackBots200Response) UnmarshalJSON(data []byte) (err error) { + varListSlackBots200Response := _ListSlackBots200Response{} + + err = json.Unmarshal(data, &varListSlackBots200Response) + + if err != nil { + return err + } + + *o = ListSlackBots200Response(varListSlackBots200Response) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "bots") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableListSlackBots200Response struct { + value *ListSlackBots200Response + isSet bool +} + +func (v NullableListSlackBots200Response) Get() *ListSlackBots200Response { + return v.value +} + +func (v *NullableListSlackBots200Response) Set(val *ListSlackBots200Response) { + v.value = val + v.isSet = true +} + +func (v NullableListSlackBots200Response) IsSet() bool { + return v.isSet +} + +func (v *NullableListSlackBots200Response) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableListSlackBots200Response(val *ListSlackBots200Response) *NullableListSlackBots200Response { + return &NullableListSlackBots200Response{value: val, isSet: true} +} + +func (v NullableListSlackBots200Response) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableListSlackBots200Response) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_list_slack_bots_200_response_bots_inner.go b/model_list_slack_bots_200_response_bots_inner.go new file mode 100644 index 0000000..460f299 --- /dev/null +++ b/model_list_slack_bots_200_response_bots_inner.go @@ -0,0 +1,415 @@ +/* +QuantCDN API + +Unified API for QuantCDN Admin and QuantCloud Platform services + +API version: 4.14.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package quantadmingo + +import ( + "encoding/json" + "time" +) + +// checks if the ListSlackBots200ResponseBotsInner type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &ListSlackBots200ResponseBotsInner{} + +// ListSlackBots200ResponseBotsInner struct for ListSlackBots200ResponseBotsInner +type ListSlackBots200ResponseBotsInner struct { + BotId *string `json:"botId,omitempty"` + AgentId *string `json:"agentId,omitempty"` + SetupType *string `json:"setupType,omitempty"` + Status *string `json:"status,omitempty"` + Connected *bool `json:"connected,omitempty"` + SessionTtlDays *int32 `json:"sessionTtlDays,omitempty"` + KeywordsEnabled *bool `json:"keywordsEnabled,omitempty"` + CreatedAt *time.Time `json:"createdAt,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _ListSlackBots200ResponseBotsInner ListSlackBots200ResponseBotsInner + +// NewListSlackBots200ResponseBotsInner instantiates a new ListSlackBots200ResponseBotsInner 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 NewListSlackBots200ResponseBotsInner() *ListSlackBots200ResponseBotsInner { + this := ListSlackBots200ResponseBotsInner{} + return &this +} + +// NewListSlackBots200ResponseBotsInnerWithDefaults instantiates a new ListSlackBots200ResponseBotsInner 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 NewListSlackBots200ResponseBotsInnerWithDefaults() *ListSlackBots200ResponseBotsInner { + this := ListSlackBots200ResponseBotsInner{} + return &this +} + +// GetBotId returns the BotId field value if set, zero value otherwise. +func (o *ListSlackBots200ResponseBotsInner) GetBotId() string { + if o == nil || IsNil(o.BotId) { + var ret string + return ret + } + return *o.BotId +} + +// GetBotIdOk returns a tuple with the BotId field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ListSlackBots200ResponseBotsInner) GetBotIdOk() (*string, bool) { + if o == nil || IsNil(o.BotId) { + return nil, false + } + return o.BotId, true +} + +// HasBotId returns a boolean if a field has been set. +func (o *ListSlackBots200ResponseBotsInner) HasBotId() bool { + if o != nil && !IsNil(o.BotId) { + return true + } + + return false +} + +// SetBotId gets a reference to the given string and assigns it to the BotId field. +func (o *ListSlackBots200ResponseBotsInner) SetBotId(v string) { + o.BotId = &v +} + +// GetAgentId returns the AgentId field value if set, zero value otherwise. +func (o *ListSlackBots200ResponseBotsInner) GetAgentId() string { + if o == nil || IsNil(o.AgentId) { + var ret string + return ret + } + return *o.AgentId +} + +// GetAgentIdOk returns a tuple with the AgentId field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ListSlackBots200ResponseBotsInner) GetAgentIdOk() (*string, bool) { + if o == nil || IsNil(o.AgentId) { + return nil, false + } + return o.AgentId, true +} + +// HasAgentId returns a boolean if a field has been set. +func (o *ListSlackBots200ResponseBotsInner) HasAgentId() bool { + if o != nil && !IsNil(o.AgentId) { + return true + } + + return false +} + +// SetAgentId gets a reference to the given string and assigns it to the AgentId field. +func (o *ListSlackBots200ResponseBotsInner) SetAgentId(v string) { + o.AgentId = &v +} + +// GetSetupType returns the SetupType field value if set, zero value otherwise. +func (o *ListSlackBots200ResponseBotsInner) GetSetupType() string { + if o == nil || IsNil(o.SetupType) { + var ret string + return ret + } + return *o.SetupType +} + +// GetSetupTypeOk returns a tuple with the SetupType field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ListSlackBots200ResponseBotsInner) GetSetupTypeOk() (*string, bool) { + if o == nil || IsNil(o.SetupType) { + return nil, false + } + return o.SetupType, true +} + +// HasSetupType returns a boolean if a field has been set. +func (o *ListSlackBots200ResponseBotsInner) HasSetupType() bool { + if o != nil && !IsNil(o.SetupType) { + return true + } + + return false +} + +// SetSetupType gets a reference to the given string and assigns it to the SetupType field. +func (o *ListSlackBots200ResponseBotsInner) SetSetupType(v string) { + o.SetupType = &v +} + +// GetStatus returns the Status field value if set, zero value otherwise. +func (o *ListSlackBots200ResponseBotsInner) GetStatus() string { + if o == nil || IsNil(o.Status) { + var ret string + return ret + } + return *o.Status +} + +// GetStatusOk returns a tuple with the Status field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ListSlackBots200ResponseBotsInner) GetStatusOk() (*string, bool) { + if o == nil || IsNil(o.Status) { + return nil, false + } + return o.Status, true +} + +// HasStatus returns a boolean if a field has been set. +func (o *ListSlackBots200ResponseBotsInner) HasStatus() bool { + if o != nil && !IsNil(o.Status) { + return true + } + + return false +} + +// SetStatus gets a reference to the given string and assigns it to the Status field. +func (o *ListSlackBots200ResponseBotsInner) SetStatus(v string) { + o.Status = &v +} + +// GetConnected returns the Connected field value if set, zero value otherwise. +func (o *ListSlackBots200ResponseBotsInner) GetConnected() bool { + if o == nil || IsNil(o.Connected) { + var ret bool + return ret + } + return *o.Connected +} + +// GetConnectedOk returns a tuple with the Connected field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ListSlackBots200ResponseBotsInner) GetConnectedOk() (*bool, bool) { + if o == nil || IsNil(o.Connected) { + return nil, false + } + return o.Connected, true +} + +// HasConnected returns a boolean if a field has been set. +func (o *ListSlackBots200ResponseBotsInner) HasConnected() bool { + if o != nil && !IsNil(o.Connected) { + return true + } + + return false +} + +// SetConnected gets a reference to the given bool and assigns it to the Connected field. +func (o *ListSlackBots200ResponseBotsInner) SetConnected(v bool) { + o.Connected = &v +} + +// GetSessionTtlDays returns the SessionTtlDays field value if set, zero value otherwise. +func (o *ListSlackBots200ResponseBotsInner) GetSessionTtlDays() int32 { + if o == nil || IsNil(o.SessionTtlDays) { + var ret int32 + return ret + } + return *o.SessionTtlDays +} + +// GetSessionTtlDaysOk returns a tuple with the SessionTtlDays field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ListSlackBots200ResponseBotsInner) GetSessionTtlDaysOk() (*int32, bool) { + if o == nil || IsNil(o.SessionTtlDays) { + return nil, false + } + return o.SessionTtlDays, true +} + +// HasSessionTtlDays returns a boolean if a field has been set. +func (o *ListSlackBots200ResponseBotsInner) HasSessionTtlDays() bool { + if o != nil && !IsNil(o.SessionTtlDays) { + return true + } + + return false +} + +// SetSessionTtlDays gets a reference to the given int32 and assigns it to the SessionTtlDays field. +func (o *ListSlackBots200ResponseBotsInner) SetSessionTtlDays(v int32) { + o.SessionTtlDays = &v +} + +// GetKeywordsEnabled returns the KeywordsEnabled field value if set, zero value otherwise. +func (o *ListSlackBots200ResponseBotsInner) GetKeywordsEnabled() bool { + if o == nil || IsNil(o.KeywordsEnabled) { + var ret bool + return ret + } + return *o.KeywordsEnabled +} + +// GetKeywordsEnabledOk returns a tuple with the KeywordsEnabled field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ListSlackBots200ResponseBotsInner) GetKeywordsEnabledOk() (*bool, bool) { + if o == nil || IsNil(o.KeywordsEnabled) { + return nil, false + } + return o.KeywordsEnabled, true +} + +// HasKeywordsEnabled returns a boolean if a field has been set. +func (o *ListSlackBots200ResponseBotsInner) HasKeywordsEnabled() bool { + if o != nil && !IsNil(o.KeywordsEnabled) { + return true + } + + return false +} + +// SetKeywordsEnabled gets a reference to the given bool and assigns it to the KeywordsEnabled field. +func (o *ListSlackBots200ResponseBotsInner) SetKeywordsEnabled(v bool) { + o.KeywordsEnabled = &v +} + +// GetCreatedAt returns the CreatedAt field value if set, zero value otherwise. +func (o *ListSlackBots200ResponseBotsInner) 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 *ListSlackBots200ResponseBotsInner) 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 *ListSlackBots200ResponseBotsInner) 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 *ListSlackBots200ResponseBotsInner) SetCreatedAt(v time.Time) { + o.CreatedAt = &v +} + +func (o ListSlackBots200ResponseBotsInner) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o ListSlackBots200ResponseBotsInner) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.BotId) { + toSerialize["botId"] = o.BotId + } + if !IsNil(o.AgentId) { + toSerialize["agentId"] = o.AgentId + } + if !IsNil(o.SetupType) { + toSerialize["setupType"] = o.SetupType + } + if !IsNil(o.Status) { + toSerialize["status"] = o.Status + } + if !IsNil(o.Connected) { + toSerialize["connected"] = o.Connected + } + if !IsNil(o.SessionTtlDays) { + toSerialize["sessionTtlDays"] = o.SessionTtlDays + } + if !IsNil(o.KeywordsEnabled) { + toSerialize["keywordsEnabled"] = o.KeywordsEnabled + } + if !IsNil(o.CreatedAt) { + toSerialize["createdAt"] = o.CreatedAt + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *ListSlackBots200ResponseBotsInner) UnmarshalJSON(data []byte) (err error) { + varListSlackBots200ResponseBotsInner := _ListSlackBots200ResponseBotsInner{} + + err = json.Unmarshal(data, &varListSlackBots200ResponseBotsInner) + + if err != nil { + return err + } + + *o = ListSlackBots200ResponseBotsInner(varListSlackBots200ResponseBotsInner) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "botId") + delete(additionalProperties, "agentId") + delete(additionalProperties, "setupType") + delete(additionalProperties, "status") + delete(additionalProperties, "connected") + delete(additionalProperties, "sessionTtlDays") + delete(additionalProperties, "keywordsEnabled") + delete(additionalProperties, "createdAt") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableListSlackBots200ResponseBotsInner struct { + value *ListSlackBots200ResponseBotsInner + isSet bool +} + +func (v NullableListSlackBots200ResponseBotsInner) Get() *ListSlackBots200ResponseBotsInner { + return v.value +} + +func (v *NullableListSlackBots200ResponseBotsInner) Set(val *ListSlackBots200ResponseBotsInner) { + v.value = val + v.isSet = true +} + +func (v NullableListSlackBots200ResponseBotsInner) IsSet() bool { + return v.isSet +} + +func (v *NullableListSlackBots200ResponseBotsInner) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableListSlackBots200ResponseBotsInner(val *ListSlackBots200ResponseBotsInner) *NullableListSlackBots200ResponseBotsInner { + return &NullableListSlackBots200ResponseBotsInner{value: val, isSet: true} +} + +func (v NullableListSlackBots200ResponseBotsInner) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableListSlackBots200ResponseBotsInner) 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 2ad8d39..89421d4 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.13.0 +API version: 4.14.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 549696b..c6682d3 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.13.0 +API version: 4.14.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 79b7f83..77bf892 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.13.0 +API version: 4.14.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 3af9038..3169856 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.13.0 +API version: 4.14.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 96328db..22a25f2 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.13.0 +API version: 4.14.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 4e8cd25..619ecd6 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.13.0 +API version: 4.14.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 fdc0262..37cd741 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.13.0 +API version: 4.14.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 267e1ca..49dae59 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.13.0 +API version: 4.14.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 e63f667..9dda516 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.13.0 +API version: 4.14.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 f269d5c..0669939 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.13.0 +API version: 4.14.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 f25eb70..a3c589c 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.13.0 +API version: 4.14.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 65c640e..617998c 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.13.0 +API version: 4.14.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 ef915e3..0413c23 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.13.0 +API version: 4.14.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 a73c3c3..7cef1b7 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.13.0 +API version: 4.14.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 c935917..ba06ea4 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.13.0 +API version: 4.14.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 c70aaa3..d54d795 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.13.0 +API version: 4.14.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 738d406..cbb2ed2 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.13.0 +API version: 4.14.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_search_slack_workspace_channels_200_response.go b/model_search_slack_workspace_channels_200_response.go new file mode 100644 index 0000000..f956572 --- /dev/null +++ b/model_search_slack_workspace_channels_200_response.go @@ -0,0 +1,155 @@ +/* +QuantCDN API + +Unified API for QuantCDN Admin and QuantCloud Platform services + +API version: 4.14.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package quantadmingo + +import ( + "encoding/json" +) + +// checks if the SearchSlackWorkspaceChannels200Response type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &SearchSlackWorkspaceChannels200Response{} + +// SearchSlackWorkspaceChannels200Response struct for SearchSlackWorkspaceChannels200Response +type SearchSlackWorkspaceChannels200Response struct { + Results []SearchSlackWorkspaceChannels200ResponseResultsInner `json:"results,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _SearchSlackWorkspaceChannels200Response SearchSlackWorkspaceChannels200Response + +// NewSearchSlackWorkspaceChannels200Response instantiates a new SearchSlackWorkspaceChannels200Response 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 NewSearchSlackWorkspaceChannels200Response() *SearchSlackWorkspaceChannels200Response { + this := SearchSlackWorkspaceChannels200Response{} + return &this +} + +// NewSearchSlackWorkspaceChannels200ResponseWithDefaults instantiates a new SearchSlackWorkspaceChannels200Response 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 NewSearchSlackWorkspaceChannels200ResponseWithDefaults() *SearchSlackWorkspaceChannels200Response { + this := SearchSlackWorkspaceChannels200Response{} + return &this +} + +// GetResults returns the Results field value if set, zero value otherwise. +func (o *SearchSlackWorkspaceChannels200Response) GetResults() []SearchSlackWorkspaceChannels200ResponseResultsInner { + if o == nil || IsNil(o.Results) { + var ret []SearchSlackWorkspaceChannels200ResponseResultsInner + return ret + } + return o.Results +} + +// GetResultsOk returns a tuple with the Results field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SearchSlackWorkspaceChannels200Response) GetResultsOk() ([]SearchSlackWorkspaceChannels200ResponseResultsInner, bool) { + if o == nil || IsNil(o.Results) { + return nil, false + } + return o.Results, true +} + +// HasResults returns a boolean if a field has been set. +func (o *SearchSlackWorkspaceChannels200Response) HasResults() bool { + if o != nil && !IsNil(o.Results) { + return true + } + + return false +} + +// SetResults gets a reference to the given []SearchSlackWorkspaceChannels200ResponseResultsInner and assigns it to the Results field. +func (o *SearchSlackWorkspaceChannels200Response) SetResults(v []SearchSlackWorkspaceChannels200ResponseResultsInner) { + o.Results = v +} + +func (o SearchSlackWorkspaceChannels200Response) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o SearchSlackWorkspaceChannels200Response) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Results) { + toSerialize["results"] = o.Results + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *SearchSlackWorkspaceChannels200Response) UnmarshalJSON(data []byte) (err error) { + varSearchSlackWorkspaceChannels200Response := _SearchSlackWorkspaceChannels200Response{} + + err = json.Unmarshal(data, &varSearchSlackWorkspaceChannels200Response) + + if err != nil { + return err + } + + *o = SearchSlackWorkspaceChannels200Response(varSearchSlackWorkspaceChannels200Response) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "results") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableSearchSlackWorkspaceChannels200Response struct { + value *SearchSlackWorkspaceChannels200Response + isSet bool +} + +func (v NullableSearchSlackWorkspaceChannels200Response) Get() *SearchSlackWorkspaceChannels200Response { + return v.value +} + +func (v *NullableSearchSlackWorkspaceChannels200Response) Set(val *SearchSlackWorkspaceChannels200Response) { + v.value = val + v.isSet = true +} + +func (v NullableSearchSlackWorkspaceChannels200Response) IsSet() bool { + return v.isSet +} + +func (v *NullableSearchSlackWorkspaceChannels200Response) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableSearchSlackWorkspaceChannels200Response(val *SearchSlackWorkspaceChannels200Response) *NullableSearchSlackWorkspaceChannels200Response { + return &NullableSearchSlackWorkspaceChannels200Response{value: val, isSet: true} +} + +func (v NullableSearchSlackWorkspaceChannels200Response) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableSearchSlackWorkspaceChannels200Response) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_search_slack_workspace_channels_200_response_results_inner.go b/model_search_slack_workspace_channels_200_response_results_inner.go new file mode 100644 index 0000000..3bc061b --- /dev/null +++ b/model_search_slack_workspace_channels_200_response_results_inner.go @@ -0,0 +1,192 @@ +/* +QuantCDN API + +Unified API for QuantCDN Admin and QuantCloud Platform services + +API version: 4.14.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package quantadmingo + +import ( + "encoding/json" +) + +// checks if the SearchSlackWorkspaceChannels200ResponseResultsInner type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &SearchSlackWorkspaceChannels200ResponseResultsInner{} + +// SearchSlackWorkspaceChannels200ResponseResultsInner struct for SearchSlackWorkspaceChannels200ResponseResultsInner +type SearchSlackWorkspaceChannels200ResponseResultsInner struct { + Id *string `json:"id,omitempty"` + Name *string `json:"name,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _SearchSlackWorkspaceChannels200ResponseResultsInner SearchSlackWorkspaceChannels200ResponseResultsInner + +// NewSearchSlackWorkspaceChannels200ResponseResultsInner instantiates a new SearchSlackWorkspaceChannels200ResponseResultsInner 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 NewSearchSlackWorkspaceChannels200ResponseResultsInner() *SearchSlackWorkspaceChannels200ResponseResultsInner { + this := SearchSlackWorkspaceChannels200ResponseResultsInner{} + return &this +} + +// NewSearchSlackWorkspaceChannels200ResponseResultsInnerWithDefaults instantiates a new SearchSlackWorkspaceChannels200ResponseResultsInner 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 NewSearchSlackWorkspaceChannels200ResponseResultsInnerWithDefaults() *SearchSlackWorkspaceChannels200ResponseResultsInner { + this := SearchSlackWorkspaceChannels200ResponseResultsInner{} + return &this +} + +// GetId returns the Id field value if set, zero value otherwise. +func (o *SearchSlackWorkspaceChannels200ResponseResultsInner) GetId() string { + if o == nil || IsNil(o.Id) { + var ret string + 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 *SearchSlackWorkspaceChannels200ResponseResultsInner) GetIdOk() (*string, 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 *SearchSlackWorkspaceChannels200ResponseResultsInner) HasId() bool { + if o != nil && !IsNil(o.Id) { + return true + } + + return false +} + +// SetId gets a reference to the given string and assigns it to the Id field. +func (o *SearchSlackWorkspaceChannels200ResponseResultsInner) SetId(v string) { + o.Id = &v +} + +// GetName returns the Name field value if set, zero value otherwise. +func (o *SearchSlackWorkspaceChannels200ResponseResultsInner) 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 *SearchSlackWorkspaceChannels200ResponseResultsInner) 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 *SearchSlackWorkspaceChannels200ResponseResultsInner) 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 *SearchSlackWorkspaceChannels200ResponseResultsInner) SetName(v string) { + o.Name = &v +} + +func (o SearchSlackWorkspaceChannels200ResponseResultsInner) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o SearchSlackWorkspaceChannels200ResponseResultsInner) 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 + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *SearchSlackWorkspaceChannels200ResponseResultsInner) UnmarshalJSON(data []byte) (err error) { + varSearchSlackWorkspaceChannels200ResponseResultsInner := _SearchSlackWorkspaceChannels200ResponseResultsInner{} + + err = json.Unmarshal(data, &varSearchSlackWorkspaceChannels200ResponseResultsInner) + + if err != nil { + return err + } + + *o = SearchSlackWorkspaceChannels200ResponseResultsInner(varSearchSlackWorkspaceChannels200ResponseResultsInner) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "id") + delete(additionalProperties, "name") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableSearchSlackWorkspaceChannels200ResponseResultsInner struct { + value *SearchSlackWorkspaceChannels200ResponseResultsInner + isSet bool +} + +func (v NullableSearchSlackWorkspaceChannels200ResponseResultsInner) Get() *SearchSlackWorkspaceChannels200ResponseResultsInner { + return v.value +} + +func (v *NullableSearchSlackWorkspaceChannels200ResponseResultsInner) Set(val *SearchSlackWorkspaceChannels200ResponseResultsInner) { + v.value = val + v.isSet = true +} + +func (v NullableSearchSlackWorkspaceChannels200ResponseResultsInner) IsSet() bool { + return v.isSet +} + +func (v *NullableSearchSlackWorkspaceChannels200ResponseResultsInner) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableSearchSlackWorkspaceChannels200ResponseResultsInner(val *SearchSlackWorkspaceChannels200ResponseResultsInner) *NullableSearchSlackWorkspaceChannels200ResponseResultsInner { + return &NullableSearchSlackWorkspaceChannels200ResponseResultsInner{value: val, isSet: true} +} + +func (v NullableSearchSlackWorkspaceChannels200ResponseResultsInner) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableSearchSlackWorkspaceChannels200ResponseResultsInner) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_search_slack_workspace_users_200_response.go b/model_search_slack_workspace_users_200_response.go new file mode 100644 index 0000000..96b635a --- /dev/null +++ b/model_search_slack_workspace_users_200_response.go @@ -0,0 +1,155 @@ +/* +QuantCDN API + +Unified API for QuantCDN Admin and QuantCloud Platform services + +API version: 4.14.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package quantadmingo + +import ( + "encoding/json" +) + +// checks if the SearchSlackWorkspaceUsers200Response type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &SearchSlackWorkspaceUsers200Response{} + +// SearchSlackWorkspaceUsers200Response struct for SearchSlackWorkspaceUsers200Response +type SearchSlackWorkspaceUsers200Response struct { + Results []SearchSlackWorkspaceUsers200ResponseResultsInner `json:"results,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _SearchSlackWorkspaceUsers200Response SearchSlackWorkspaceUsers200Response + +// NewSearchSlackWorkspaceUsers200Response instantiates a new SearchSlackWorkspaceUsers200Response 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 NewSearchSlackWorkspaceUsers200Response() *SearchSlackWorkspaceUsers200Response { + this := SearchSlackWorkspaceUsers200Response{} + return &this +} + +// NewSearchSlackWorkspaceUsers200ResponseWithDefaults instantiates a new SearchSlackWorkspaceUsers200Response 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 NewSearchSlackWorkspaceUsers200ResponseWithDefaults() *SearchSlackWorkspaceUsers200Response { + this := SearchSlackWorkspaceUsers200Response{} + return &this +} + +// GetResults returns the Results field value if set, zero value otherwise. +func (o *SearchSlackWorkspaceUsers200Response) GetResults() []SearchSlackWorkspaceUsers200ResponseResultsInner { + if o == nil || IsNil(o.Results) { + var ret []SearchSlackWorkspaceUsers200ResponseResultsInner + return ret + } + return o.Results +} + +// GetResultsOk returns a tuple with the Results field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SearchSlackWorkspaceUsers200Response) GetResultsOk() ([]SearchSlackWorkspaceUsers200ResponseResultsInner, bool) { + if o == nil || IsNil(o.Results) { + return nil, false + } + return o.Results, true +} + +// HasResults returns a boolean if a field has been set. +func (o *SearchSlackWorkspaceUsers200Response) HasResults() bool { + if o != nil && !IsNil(o.Results) { + return true + } + + return false +} + +// SetResults gets a reference to the given []SearchSlackWorkspaceUsers200ResponseResultsInner and assigns it to the Results field. +func (o *SearchSlackWorkspaceUsers200Response) SetResults(v []SearchSlackWorkspaceUsers200ResponseResultsInner) { + o.Results = v +} + +func (o SearchSlackWorkspaceUsers200Response) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o SearchSlackWorkspaceUsers200Response) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Results) { + toSerialize["results"] = o.Results + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *SearchSlackWorkspaceUsers200Response) UnmarshalJSON(data []byte) (err error) { + varSearchSlackWorkspaceUsers200Response := _SearchSlackWorkspaceUsers200Response{} + + err = json.Unmarshal(data, &varSearchSlackWorkspaceUsers200Response) + + if err != nil { + return err + } + + *o = SearchSlackWorkspaceUsers200Response(varSearchSlackWorkspaceUsers200Response) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "results") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableSearchSlackWorkspaceUsers200Response struct { + value *SearchSlackWorkspaceUsers200Response + isSet bool +} + +func (v NullableSearchSlackWorkspaceUsers200Response) Get() *SearchSlackWorkspaceUsers200Response { + return v.value +} + +func (v *NullableSearchSlackWorkspaceUsers200Response) Set(val *SearchSlackWorkspaceUsers200Response) { + v.value = val + v.isSet = true +} + +func (v NullableSearchSlackWorkspaceUsers200Response) IsSet() bool { + return v.isSet +} + +func (v *NullableSearchSlackWorkspaceUsers200Response) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableSearchSlackWorkspaceUsers200Response(val *SearchSlackWorkspaceUsers200Response) *NullableSearchSlackWorkspaceUsers200Response { + return &NullableSearchSlackWorkspaceUsers200Response{value: val, isSet: true} +} + +func (v NullableSearchSlackWorkspaceUsers200Response) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableSearchSlackWorkspaceUsers200Response) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_search_slack_workspace_users_200_response_results_inner.go b/model_search_slack_workspace_users_200_response_results_inner.go new file mode 100644 index 0000000..58f53bd --- /dev/null +++ b/model_search_slack_workspace_users_200_response_results_inner.go @@ -0,0 +1,229 @@ +/* +QuantCDN API + +Unified API for QuantCDN Admin and QuantCloud Platform services + +API version: 4.14.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package quantadmingo + +import ( + "encoding/json" +) + +// checks if the SearchSlackWorkspaceUsers200ResponseResultsInner type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &SearchSlackWorkspaceUsers200ResponseResultsInner{} + +// SearchSlackWorkspaceUsers200ResponseResultsInner struct for SearchSlackWorkspaceUsers200ResponseResultsInner +type SearchSlackWorkspaceUsers200ResponseResultsInner struct { + Id *string `json:"id,omitempty"` + Name *string `json:"name,omitempty"` + RealName *string `json:"real_name,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _SearchSlackWorkspaceUsers200ResponseResultsInner SearchSlackWorkspaceUsers200ResponseResultsInner + +// NewSearchSlackWorkspaceUsers200ResponseResultsInner instantiates a new SearchSlackWorkspaceUsers200ResponseResultsInner 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 NewSearchSlackWorkspaceUsers200ResponseResultsInner() *SearchSlackWorkspaceUsers200ResponseResultsInner { + this := SearchSlackWorkspaceUsers200ResponseResultsInner{} + return &this +} + +// NewSearchSlackWorkspaceUsers200ResponseResultsInnerWithDefaults instantiates a new SearchSlackWorkspaceUsers200ResponseResultsInner 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 NewSearchSlackWorkspaceUsers200ResponseResultsInnerWithDefaults() *SearchSlackWorkspaceUsers200ResponseResultsInner { + this := SearchSlackWorkspaceUsers200ResponseResultsInner{} + return &this +} + +// GetId returns the Id field value if set, zero value otherwise. +func (o *SearchSlackWorkspaceUsers200ResponseResultsInner) GetId() string { + if o == nil || IsNil(o.Id) { + var ret string + 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 *SearchSlackWorkspaceUsers200ResponseResultsInner) GetIdOk() (*string, 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 *SearchSlackWorkspaceUsers200ResponseResultsInner) HasId() bool { + if o != nil && !IsNil(o.Id) { + return true + } + + return false +} + +// SetId gets a reference to the given string and assigns it to the Id field. +func (o *SearchSlackWorkspaceUsers200ResponseResultsInner) SetId(v string) { + o.Id = &v +} + +// GetName returns the Name field value if set, zero value otherwise. +func (o *SearchSlackWorkspaceUsers200ResponseResultsInner) 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 *SearchSlackWorkspaceUsers200ResponseResultsInner) 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 *SearchSlackWorkspaceUsers200ResponseResultsInner) 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 *SearchSlackWorkspaceUsers200ResponseResultsInner) SetName(v string) { + o.Name = &v +} + +// GetRealName returns the RealName field value if set, zero value otherwise. +func (o *SearchSlackWorkspaceUsers200ResponseResultsInner) GetRealName() string { + if o == nil || IsNil(o.RealName) { + var ret string + return ret + } + return *o.RealName +} + +// GetRealNameOk returns a tuple with the RealName field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SearchSlackWorkspaceUsers200ResponseResultsInner) GetRealNameOk() (*string, bool) { + if o == nil || IsNil(o.RealName) { + return nil, false + } + return o.RealName, true +} + +// HasRealName returns a boolean if a field has been set. +func (o *SearchSlackWorkspaceUsers200ResponseResultsInner) HasRealName() bool { + if o != nil && !IsNil(o.RealName) { + return true + } + + return false +} + +// SetRealName gets a reference to the given string and assigns it to the RealName field. +func (o *SearchSlackWorkspaceUsers200ResponseResultsInner) SetRealName(v string) { + o.RealName = &v +} + +func (o SearchSlackWorkspaceUsers200ResponseResultsInner) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o SearchSlackWorkspaceUsers200ResponseResultsInner) 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 !IsNil(o.RealName) { + toSerialize["real_name"] = o.RealName + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *SearchSlackWorkspaceUsers200ResponseResultsInner) UnmarshalJSON(data []byte) (err error) { + varSearchSlackWorkspaceUsers200ResponseResultsInner := _SearchSlackWorkspaceUsers200ResponseResultsInner{} + + err = json.Unmarshal(data, &varSearchSlackWorkspaceUsers200ResponseResultsInner) + + if err != nil { + return err + } + + *o = SearchSlackWorkspaceUsers200ResponseResultsInner(varSearchSlackWorkspaceUsers200ResponseResultsInner) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "id") + delete(additionalProperties, "name") + delete(additionalProperties, "real_name") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableSearchSlackWorkspaceUsers200ResponseResultsInner struct { + value *SearchSlackWorkspaceUsers200ResponseResultsInner + isSet bool +} + +func (v NullableSearchSlackWorkspaceUsers200ResponseResultsInner) Get() *SearchSlackWorkspaceUsers200ResponseResultsInner { + return v.value +} + +func (v *NullableSearchSlackWorkspaceUsers200ResponseResultsInner) Set(val *SearchSlackWorkspaceUsers200ResponseResultsInner) { + v.value = val + v.isSet = true +} + +func (v NullableSearchSlackWorkspaceUsers200ResponseResultsInner) IsSet() bool { + return v.isSet +} + +func (v *NullableSearchSlackWorkspaceUsers200ResponseResultsInner) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableSearchSlackWorkspaceUsers200ResponseResultsInner(val *SearchSlackWorkspaceUsers200ResponseResultsInner) *NullableSearchSlackWorkspaceUsers200ResponseResultsInner { + return &NullableSearchSlackWorkspaceUsers200ResponseResultsInner{value: val, isSet: true} +} + +func (v NullableSearchSlackWorkspaceUsers200ResponseResultsInner) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableSearchSlackWorkspaceUsers200ResponseResultsInner) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_spot_configuration.go b/model_spot_configuration.go index 2440d17..cef9ef8 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.13.0 +API version: 4.14.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 2b5b0ad..c996fd3 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.13.0 +API version: 4.14.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 8bf2cb7..7b9d7a1 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.13.0 +API version: 4.14.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 8edde49..6aa1a52 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.13.0 +API version: 4.14.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 e2f4a78..d2f23c3 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.13.0 +API version: 4.14.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_sync_skill_collection_200_response.go b/model_sync_skill_collection_200_response.go index 59aece2..a08e55c 100644 --- a/model_sync_skill_collection_200_response.go +++ b/model_sync_skill_collection_200_response.go @@ -3,7 +3,7 @@ QuantCDN API Unified API for QuantCDN Admin and QuantCloud Platform services -API version: 4.13.0 +API version: 4.14.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_sync_to_environment_request.go b/model_sync_to_environment_request.go index d1a463e..3b0b945 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.13.0 +API version: 4.14.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_tokens_create_201_response.go b/model_tokens_create_201_response.go index 673aec4..14da99f 100644 --- a/model_tokens_create_201_response.go +++ b/model_tokens_create_201_response.go @@ -3,7 +3,7 @@ QuantCDN API Unified API for QuantCDN Admin and QuantCloud Platform services -API version: 4.13.0 +API version: 4.14.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_tokens_create_request.go b/model_tokens_create_request.go index ab17ff8..a711d8e 100644 --- a/model_tokens_create_request.go +++ b/model_tokens_create_request.go @@ -3,7 +3,7 @@ QuantCDN API Unified API for QuantCDN Admin and QuantCloud Platform services -API version: 4.13.0 +API version: 4.14.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_tokens_delete_200_response.go b/model_tokens_delete_200_response.go index 79f1d8b..b1f24d4 100644 --- a/model_tokens_delete_200_response.go +++ b/model_tokens_delete_200_response.go @@ -3,7 +3,7 @@ QuantCDN API Unified API for QuantCDN Admin and QuantCloud Platform services -API version: 4.13.0 +API version: 4.14.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_tokens_list_200_response_inner.go b/model_tokens_list_200_response_inner.go index c0f01b4..ee2324c 100644 --- a/model_tokens_list_200_response_inner.go +++ b/model_tokens_list_200_response_inner.go @@ -3,7 +3,7 @@ QuantCDN API Unified API for QuantCDN Admin and QuantCloud Platform services -API version: 4.13.0 +API version: 4.14.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_update_ai_agent_200_response.go b/model_update_ai_agent_200_response.go index e40a5cd..10d4a8b 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.13.0 +API version: 4.14.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 d16654e..9061c82 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.13.0 +API version: 4.14.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -28,6 +28,14 @@ type UpdateAIAgentRequest struct { MaxTokens *int32 `json:"maxTokens,omitempty"` AllowedTools []string `json:"allowedTools,omitempty"` AllowedCollections []string `json:"allowedCollections,omitempty"` + // Skill IDs to assign to this agent + AssignedSkills []string `json:"assignedSkills,omitempty"` + // Enable 1M context window support + LongContext *bool `json:"longContext,omitempty"` + // Guardrail preset name + GuardrailPreset *string `json:"guardrailPreset,omitempty"` + // Filter policy IDs to apply to this agent's inference requests + FilterPolicies []string `json:"filterPolicies,omitempty"` AdditionalProperties map[string]interface{} } @@ -338,6 +346,134 @@ func (o *UpdateAIAgentRequest) SetAllowedCollections(v []string) { o.AllowedCollections = v } +// GetAssignedSkills returns the AssignedSkills field value if set, zero value otherwise. +func (o *UpdateAIAgentRequest) GetAssignedSkills() []string { + if o == nil || IsNil(o.AssignedSkills) { + var ret []string + return ret + } + return o.AssignedSkills +} + +// GetAssignedSkillsOk returns a tuple with the AssignedSkills field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *UpdateAIAgentRequest) GetAssignedSkillsOk() ([]string, bool) { + if o == nil || IsNil(o.AssignedSkills) { + return nil, false + } + return o.AssignedSkills, true +} + +// HasAssignedSkills returns a boolean if a field has been set. +func (o *UpdateAIAgentRequest) HasAssignedSkills() bool { + if o != nil && !IsNil(o.AssignedSkills) { + return true + } + + return false +} + +// SetAssignedSkills gets a reference to the given []string and assigns it to the AssignedSkills field. +func (o *UpdateAIAgentRequest) SetAssignedSkills(v []string) { + o.AssignedSkills = v +} + +// GetLongContext returns the LongContext field value if set, zero value otherwise. +func (o *UpdateAIAgentRequest) 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 *UpdateAIAgentRequest) 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 *UpdateAIAgentRequest) 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 *UpdateAIAgentRequest) SetLongContext(v bool) { + o.LongContext = &v +} + +// GetGuardrailPreset returns the GuardrailPreset field value if set, zero value otherwise. +func (o *UpdateAIAgentRequest) GetGuardrailPreset() string { + if o == nil || IsNil(o.GuardrailPreset) { + var ret string + return ret + } + return *o.GuardrailPreset +} + +// GetGuardrailPresetOk returns a tuple with the GuardrailPreset field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *UpdateAIAgentRequest) GetGuardrailPresetOk() (*string, bool) { + if o == nil || IsNil(o.GuardrailPreset) { + return nil, false + } + return o.GuardrailPreset, true +} + +// HasGuardrailPreset returns a boolean if a field has been set. +func (o *UpdateAIAgentRequest) HasGuardrailPreset() bool { + if o != nil && !IsNil(o.GuardrailPreset) { + return true + } + + return false +} + +// SetGuardrailPreset gets a reference to the given string and assigns it to the GuardrailPreset field. +func (o *UpdateAIAgentRequest) SetGuardrailPreset(v string) { + o.GuardrailPreset = &v +} + +// GetFilterPolicies returns the FilterPolicies field value if set, zero value otherwise. +func (o *UpdateAIAgentRequest) GetFilterPolicies() []string { + if o == nil || IsNil(o.FilterPolicies) { + var ret []string + return ret + } + return o.FilterPolicies +} + +// GetFilterPoliciesOk returns a tuple with the FilterPolicies field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *UpdateAIAgentRequest) GetFilterPoliciesOk() ([]string, bool) { + if o == nil || IsNil(o.FilterPolicies) { + return nil, false + } + return o.FilterPolicies, true +} + +// HasFilterPolicies returns a boolean if a field has been set. +func (o *UpdateAIAgentRequest) HasFilterPolicies() bool { + if o != nil && !IsNil(o.FilterPolicies) { + return true + } + + return false +} + +// SetFilterPolicies gets a reference to the given []string and assigns it to the FilterPolicies field. +func (o *UpdateAIAgentRequest) SetFilterPolicies(v []string) { + o.FilterPolicies = v +} + func (o UpdateAIAgentRequest) MarshalJSON() ([]byte, error) { toSerialize,err := o.ToMap() if err != nil { @@ -375,6 +511,18 @@ func (o UpdateAIAgentRequest) ToMap() (map[string]interface{}, error) { if !IsNil(o.AllowedCollections) { toSerialize["allowedCollections"] = o.AllowedCollections } + if !IsNil(o.AssignedSkills) { + toSerialize["assignedSkills"] = o.AssignedSkills + } + if !IsNil(o.LongContext) { + toSerialize["longContext"] = o.LongContext + } + if !IsNil(o.GuardrailPreset) { + toSerialize["guardrailPreset"] = o.GuardrailPreset + } + if !IsNil(o.FilterPolicies) { + toSerialize["filterPolicies"] = o.FilterPolicies + } for key, value := range o.AdditionalProperties { toSerialize[key] = value @@ -406,6 +554,10 @@ func (o *UpdateAIAgentRequest) UnmarshalJSON(data []byte) (err error) { delete(additionalProperties, "maxTokens") delete(additionalProperties, "allowedTools") delete(additionalProperties, "allowedCollections") + delete(additionalProperties, "assignedSkills") + delete(additionalProperties, "longContext") + delete(additionalProperties, "guardrailPreset") + delete(additionalProperties, "filterPolicies") o.AdditionalProperties = additionalProperties } diff --git a/model_update_ai_session_200_response.go b/model_update_ai_session_200_response.go index 0ea30df..6a54a85 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.13.0 +API version: 4.14.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 b98b12b..4e8c0ee 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.13.0 +API version: 4.14.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 c8f1e3e..43454e9 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.13.0 +API version: 4.14.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 31f980f..1fcfedf 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.13.0 +API version: 4.14.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 abffbd4..f143a64 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.13.0 +API version: 4.14.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 caddde0..54eee69 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.13.0 +API version: 4.14.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 ce21704..acdd895 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.13.0 +API version: 4.14.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_update_filter_policy_request.go b/model_update_filter_policy_request.go new file mode 100644 index 0000000..3de95e4 --- /dev/null +++ b/model_update_filter_policy_request.go @@ -0,0 +1,276 @@ +/* +QuantCDN API + +Unified API for QuantCDN Admin and QuantCloud Platform services + +API version: 4.14.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package quantadmingo + +import ( + "encoding/json" +) + +// checks if the UpdateFilterPolicyRequest type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &UpdateFilterPolicyRequest{} + +// UpdateFilterPolicyRequest struct for UpdateFilterPolicyRequest +type UpdateFilterPolicyRequest struct { + Name *string `json:"name,omitempty"` + Description NullableString `json:"description,omitempty"` + Enabled *bool `json:"enabled,omitempty"` + Rules []CreateFilterPolicyRequestRulesInner `json:"rules,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _UpdateFilterPolicyRequest UpdateFilterPolicyRequest + +// NewUpdateFilterPolicyRequest instantiates a new UpdateFilterPolicyRequest 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 NewUpdateFilterPolicyRequest() *UpdateFilterPolicyRequest { + this := UpdateFilterPolicyRequest{} + return &this +} + +// NewUpdateFilterPolicyRequestWithDefaults instantiates a new UpdateFilterPolicyRequest 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 NewUpdateFilterPolicyRequestWithDefaults() *UpdateFilterPolicyRequest { + this := UpdateFilterPolicyRequest{} + return &this +} + +// GetName returns the Name field value if set, zero value otherwise. +func (o *UpdateFilterPolicyRequest) 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 *UpdateFilterPolicyRequest) 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 *UpdateFilterPolicyRequest) 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 *UpdateFilterPolicyRequest) SetName(v string) { + o.Name = &v +} + +// GetDescription returns the Description field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *UpdateFilterPolicyRequest) GetDescription() string { + if o == nil || IsNil(o.Description.Get()) { + var ret string + return ret + } + return *o.Description.Get() +} + +// GetDescriptionOk returns a tuple with the Description field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *UpdateFilterPolicyRequest) GetDescriptionOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.Description.Get(), o.Description.IsSet() +} + +// HasDescription returns a boolean if a field has been set. +func (o *UpdateFilterPolicyRequest) HasDescription() bool { + if o != nil && o.Description.IsSet() { + return true + } + + return false +} + +// SetDescription gets a reference to the given NullableString and assigns it to the Description field. +func (o *UpdateFilterPolicyRequest) SetDescription(v string) { + o.Description.Set(&v) +} +// SetDescriptionNil sets the value for Description to be an explicit nil +func (o *UpdateFilterPolicyRequest) SetDescriptionNil() { + o.Description.Set(nil) +} + +// UnsetDescription ensures that no value is present for Description, not even an explicit nil +func (o *UpdateFilterPolicyRequest) UnsetDescription() { + o.Description.Unset() +} + +// GetEnabled returns the Enabled field value if set, zero value otherwise. +func (o *UpdateFilterPolicyRequest) GetEnabled() bool { + if o == nil || IsNil(o.Enabled) { + var ret bool + return ret + } + return *o.Enabled +} + +// GetEnabledOk returns a tuple with the Enabled field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *UpdateFilterPolicyRequest) GetEnabledOk() (*bool, bool) { + if o == nil || IsNil(o.Enabled) { + return nil, false + } + return o.Enabled, true +} + +// HasEnabled returns a boolean if a field has been set. +func (o *UpdateFilterPolicyRequest) HasEnabled() bool { + if o != nil && !IsNil(o.Enabled) { + return true + } + + return false +} + +// SetEnabled gets a reference to the given bool and assigns it to the Enabled field. +func (o *UpdateFilterPolicyRequest) SetEnabled(v bool) { + o.Enabled = &v +} + +// GetRules returns the Rules field value if set, zero value otherwise. +func (o *UpdateFilterPolicyRequest) GetRules() []CreateFilterPolicyRequestRulesInner { + if o == nil || IsNil(o.Rules) { + var ret []CreateFilterPolicyRequestRulesInner + return ret + } + return o.Rules +} + +// GetRulesOk returns a tuple with the Rules field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *UpdateFilterPolicyRequest) GetRulesOk() ([]CreateFilterPolicyRequestRulesInner, bool) { + if o == nil || IsNil(o.Rules) { + return nil, false + } + return o.Rules, true +} + +// HasRules returns a boolean if a field has been set. +func (o *UpdateFilterPolicyRequest) HasRules() bool { + if o != nil && !IsNil(o.Rules) { + return true + } + + return false +} + +// SetRules gets a reference to the given []CreateFilterPolicyRequestRulesInner and assigns it to the Rules field. +func (o *UpdateFilterPolicyRequest) SetRules(v []CreateFilterPolicyRequestRulesInner) { + o.Rules = v +} + +func (o UpdateFilterPolicyRequest) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o UpdateFilterPolicyRequest) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Name) { + toSerialize["name"] = o.Name + } + if o.Description.IsSet() { + toSerialize["description"] = o.Description.Get() + } + if !IsNil(o.Enabled) { + toSerialize["enabled"] = o.Enabled + } + if !IsNil(o.Rules) { + toSerialize["rules"] = o.Rules + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *UpdateFilterPolicyRequest) UnmarshalJSON(data []byte) (err error) { + varUpdateFilterPolicyRequest := _UpdateFilterPolicyRequest{} + + err = json.Unmarshal(data, &varUpdateFilterPolicyRequest) + + if err != nil { + return err + } + + *o = UpdateFilterPolicyRequest(varUpdateFilterPolicyRequest) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "name") + delete(additionalProperties, "description") + delete(additionalProperties, "enabled") + delete(additionalProperties, "rules") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableUpdateFilterPolicyRequest struct { + value *UpdateFilterPolicyRequest + isSet bool +} + +func (v NullableUpdateFilterPolicyRequest) Get() *UpdateFilterPolicyRequest { + return v.value +} + +func (v *NullableUpdateFilterPolicyRequest) Set(val *UpdateFilterPolicyRequest) { + v.value = val + v.isSet = true +} + +func (v NullableUpdateFilterPolicyRequest) IsSet() bool { + return v.isSet +} + +func (v *NullableUpdateFilterPolicyRequest) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableUpdateFilterPolicyRequest(val *UpdateFilterPolicyRequest) *NullableUpdateFilterPolicyRequest { + return &NullableUpdateFilterPolicyRequest{value: val, isSet: true} +} + +func (v NullableUpdateFilterPolicyRequest) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableUpdateFilterPolicyRequest) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_update_governance_config_200_response.go b/model_update_governance_config_200_response.go new file mode 100644 index 0000000..d5a0aed --- /dev/null +++ b/model_update_governance_config_200_response.go @@ -0,0 +1,192 @@ +/* +QuantCDN API + +Unified API for QuantCDN Admin and QuantCloud Platform services + +API version: 4.14.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package quantadmingo + +import ( + "encoding/json" +) + +// checks if the UpdateGovernanceConfig200Response type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &UpdateGovernanceConfig200Response{} + +// UpdateGovernanceConfig200Response struct for UpdateGovernanceConfig200Response +type UpdateGovernanceConfig200Response struct { + Success *bool `json:"success,omitempty"` + Config map[string]interface{} `json:"config,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _UpdateGovernanceConfig200Response UpdateGovernanceConfig200Response + +// NewUpdateGovernanceConfig200Response instantiates a new UpdateGovernanceConfig200Response 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 NewUpdateGovernanceConfig200Response() *UpdateGovernanceConfig200Response { + this := UpdateGovernanceConfig200Response{} + return &this +} + +// NewUpdateGovernanceConfig200ResponseWithDefaults instantiates a new UpdateGovernanceConfig200Response 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 NewUpdateGovernanceConfig200ResponseWithDefaults() *UpdateGovernanceConfig200Response { + this := UpdateGovernanceConfig200Response{} + return &this +} + +// GetSuccess returns the Success field value if set, zero value otherwise. +func (o *UpdateGovernanceConfig200Response) 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 *UpdateGovernanceConfig200Response) 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 *UpdateGovernanceConfig200Response) 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 *UpdateGovernanceConfig200Response) SetSuccess(v bool) { + o.Success = &v +} + +// GetConfig returns the Config field value if set, zero value otherwise. +func (o *UpdateGovernanceConfig200Response) GetConfig() map[string]interface{} { + if o == nil || IsNil(o.Config) { + var ret map[string]interface{} + return ret + } + return o.Config +} + +// GetConfigOk returns a tuple with the Config field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *UpdateGovernanceConfig200Response) GetConfigOk() (map[string]interface{}, bool) { + if o == nil || IsNil(o.Config) { + return map[string]interface{}{}, false + } + return o.Config, true +} + +// HasConfig returns a boolean if a field has been set. +func (o *UpdateGovernanceConfig200Response) HasConfig() bool { + if o != nil && !IsNil(o.Config) { + return true + } + + return false +} + +// SetConfig gets a reference to the given map[string]interface{} and assigns it to the Config field. +func (o *UpdateGovernanceConfig200Response) SetConfig(v map[string]interface{}) { + o.Config = v +} + +func (o UpdateGovernanceConfig200Response) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o UpdateGovernanceConfig200Response) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Success) { + toSerialize["success"] = o.Success + } + if !IsNil(o.Config) { + toSerialize["config"] = o.Config + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *UpdateGovernanceConfig200Response) UnmarshalJSON(data []byte) (err error) { + varUpdateGovernanceConfig200Response := _UpdateGovernanceConfig200Response{} + + err = json.Unmarshal(data, &varUpdateGovernanceConfig200Response) + + if err != nil { + return err + } + + *o = UpdateGovernanceConfig200Response(varUpdateGovernanceConfig200Response) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "success") + delete(additionalProperties, "config") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableUpdateGovernanceConfig200Response struct { + value *UpdateGovernanceConfig200Response + isSet bool +} + +func (v NullableUpdateGovernanceConfig200Response) Get() *UpdateGovernanceConfig200Response { + return v.value +} + +func (v *NullableUpdateGovernanceConfig200Response) Set(val *UpdateGovernanceConfig200Response) { + v.value = val + v.isSet = true +} + +func (v NullableUpdateGovernanceConfig200Response) IsSet() bool { + return v.isSet +} + +func (v *NullableUpdateGovernanceConfig200Response) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableUpdateGovernanceConfig200Response(val *UpdateGovernanceConfig200Response) *NullableUpdateGovernanceConfig200Response { + return &NullableUpdateGovernanceConfig200Response{value: val, isSet: true} +} + +func (v NullableUpdateGovernanceConfig200Response) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableUpdateGovernanceConfig200Response) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_update_governance_config_request.go b/model_update_governance_config_request.go new file mode 100644 index 0000000..0690a4f --- /dev/null +++ b/model_update_governance_config_request.go @@ -0,0 +1,392 @@ +/* +QuantCDN API + +Unified API for QuantCDN Admin and QuantCloud Platform services + +API version: 4.14.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package quantadmingo + +import ( + "encoding/json" + "fmt" +) + +// checks if the UpdateGovernanceConfigRequest type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &UpdateGovernanceConfigRequest{} + +// UpdateGovernanceConfigRequest struct for UpdateGovernanceConfigRequest +type UpdateGovernanceConfigRequest struct { + AiEnabled bool `json:"aiEnabled"` + ModelPolicy string `json:"modelPolicy"` + ModelList []string `json:"modelList,omitempty"` + MandatoryGuardrailPreset NullableString `json:"mandatoryGuardrailPreset,omitempty"` + MandatoryFilterPolicies []string `json:"mandatoryFilterPolicies,omitempty"` + SpendLimits map[string]interface{} `json:"spendLimits,omitempty"` + Version *int32 `json:"version,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _UpdateGovernanceConfigRequest UpdateGovernanceConfigRequest + +// NewUpdateGovernanceConfigRequest instantiates a new UpdateGovernanceConfigRequest 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 NewUpdateGovernanceConfigRequest(aiEnabled bool, modelPolicy string) *UpdateGovernanceConfigRequest { + this := UpdateGovernanceConfigRequest{} + this.AiEnabled = aiEnabled + this.ModelPolicy = modelPolicy + return &this +} + +// NewUpdateGovernanceConfigRequestWithDefaults instantiates a new UpdateGovernanceConfigRequest 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 NewUpdateGovernanceConfigRequestWithDefaults() *UpdateGovernanceConfigRequest { + this := UpdateGovernanceConfigRequest{} + return &this +} + +// GetAiEnabled returns the AiEnabled field value +func (o *UpdateGovernanceConfigRequest) GetAiEnabled() bool { + if o == nil { + var ret bool + return ret + } + + return o.AiEnabled +} + +// GetAiEnabledOk returns a tuple with the AiEnabled field value +// and a boolean to check if the value has been set. +func (o *UpdateGovernanceConfigRequest) GetAiEnabledOk() (*bool, bool) { + if o == nil { + return nil, false + } + return &o.AiEnabled, true +} + +// SetAiEnabled sets field value +func (o *UpdateGovernanceConfigRequest) SetAiEnabled(v bool) { + o.AiEnabled = v +} + +// GetModelPolicy returns the ModelPolicy field value +func (o *UpdateGovernanceConfigRequest) GetModelPolicy() string { + if o == nil { + var ret string + return ret + } + + return o.ModelPolicy +} + +// GetModelPolicyOk returns a tuple with the ModelPolicy field value +// and a boolean to check if the value has been set. +func (o *UpdateGovernanceConfigRequest) GetModelPolicyOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.ModelPolicy, true +} + +// SetModelPolicy sets field value +func (o *UpdateGovernanceConfigRequest) SetModelPolicy(v string) { + o.ModelPolicy = v +} + +// GetModelList returns the ModelList field value if set, zero value otherwise. +func (o *UpdateGovernanceConfigRequest) GetModelList() []string { + if o == nil || IsNil(o.ModelList) { + var ret []string + return ret + } + return o.ModelList +} + +// GetModelListOk returns a tuple with the ModelList field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *UpdateGovernanceConfigRequest) GetModelListOk() ([]string, bool) { + if o == nil || IsNil(o.ModelList) { + return nil, false + } + return o.ModelList, true +} + +// HasModelList returns a boolean if a field has been set. +func (o *UpdateGovernanceConfigRequest) HasModelList() bool { + if o != nil && !IsNil(o.ModelList) { + return true + } + + return false +} + +// SetModelList gets a reference to the given []string and assigns it to the ModelList field. +func (o *UpdateGovernanceConfigRequest) SetModelList(v []string) { + o.ModelList = v +} + +// GetMandatoryGuardrailPreset returns the MandatoryGuardrailPreset field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *UpdateGovernanceConfigRequest) GetMandatoryGuardrailPreset() string { + if o == nil || IsNil(o.MandatoryGuardrailPreset.Get()) { + var ret string + return ret + } + return *o.MandatoryGuardrailPreset.Get() +} + +// GetMandatoryGuardrailPresetOk returns a tuple with the MandatoryGuardrailPreset 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 *UpdateGovernanceConfigRequest) GetMandatoryGuardrailPresetOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.MandatoryGuardrailPreset.Get(), o.MandatoryGuardrailPreset.IsSet() +} + +// HasMandatoryGuardrailPreset returns a boolean if a field has been set. +func (o *UpdateGovernanceConfigRequest) HasMandatoryGuardrailPreset() bool { + if o != nil && o.MandatoryGuardrailPreset.IsSet() { + return true + } + + return false +} + +// SetMandatoryGuardrailPreset gets a reference to the given NullableString and assigns it to the MandatoryGuardrailPreset field. +func (o *UpdateGovernanceConfigRequest) SetMandatoryGuardrailPreset(v string) { + o.MandatoryGuardrailPreset.Set(&v) +} +// SetMandatoryGuardrailPresetNil sets the value for MandatoryGuardrailPreset to be an explicit nil +func (o *UpdateGovernanceConfigRequest) SetMandatoryGuardrailPresetNil() { + o.MandatoryGuardrailPreset.Set(nil) +} + +// UnsetMandatoryGuardrailPreset ensures that no value is present for MandatoryGuardrailPreset, not even an explicit nil +func (o *UpdateGovernanceConfigRequest) UnsetMandatoryGuardrailPreset() { + o.MandatoryGuardrailPreset.Unset() +} + +// GetMandatoryFilterPolicies returns the MandatoryFilterPolicies field value if set, zero value otherwise. +func (o *UpdateGovernanceConfigRequest) GetMandatoryFilterPolicies() []string { + if o == nil || IsNil(o.MandatoryFilterPolicies) { + var ret []string + return ret + } + return o.MandatoryFilterPolicies +} + +// GetMandatoryFilterPoliciesOk returns a tuple with the MandatoryFilterPolicies field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *UpdateGovernanceConfigRequest) GetMandatoryFilterPoliciesOk() ([]string, bool) { + if o == nil || IsNil(o.MandatoryFilterPolicies) { + return nil, false + } + return o.MandatoryFilterPolicies, true +} + +// HasMandatoryFilterPolicies returns a boolean if a field has been set. +func (o *UpdateGovernanceConfigRequest) HasMandatoryFilterPolicies() bool { + if o != nil && !IsNil(o.MandatoryFilterPolicies) { + return true + } + + return false +} + +// SetMandatoryFilterPolicies gets a reference to the given []string and assigns it to the MandatoryFilterPolicies field. +func (o *UpdateGovernanceConfigRequest) SetMandatoryFilterPolicies(v []string) { + o.MandatoryFilterPolicies = v +} + +// GetSpendLimits returns the SpendLimits field value if set, zero value otherwise. +func (o *UpdateGovernanceConfigRequest) GetSpendLimits() map[string]interface{} { + if o == nil || IsNil(o.SpendLimits) { + var ret map[string]interface{} + return ret + } + return o.SpendLimits +} + +// GetSpendLimitsOk returns a tuple with the SpendLimits field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *UpdateGovernanceConfigRequest) GetSpendLimitsOk() (map[string]interface{}, bool) { + if o == nil || IsNil(o.SpendLimits) { + return map[string]interface{}{}, false + } + return o.SpendLimits, true +} + +// HasSpendLimits returns a boolean if a field has been set. +func (o *UpdateGovernanceConfigRequest) HasSpendLimits() bool { + if o != nil && !IsNil(o.SpendLimits) { + return true + } + + return false +} + +// SetSpendLimits gets a reference to the given map[string]interface{} and assigns it to the SpendLimits field. +func (o *UpdateGovernanceConfigRequest) SetSpendLimits(v map[string]interface{}) { + o.SpendLimits = v +} + +// GetVersion returns the Version field value if set, zero value otherwise. +func (o *UpdateGovernanceConfigRequest) GetVersion() int32 { + if o == nil || IsNil(o.Version) { + var ret int32 + 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 *UpdateGovernanceConfigRequest) GetVersionOk() (*int32, 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 *UpdateGovernanceConfigRequest) HasVersion() bool { + if o != nil && !IsNil(o.Version) { + return true + } + + return false +} + +// SetVersion gets a reference to the given int32 and assigns it to the Version field. +func (o *UpdateGovernanceConfigRequest) SetVersion(v int32) { + o.Version = &v +} + +func (o UpdateGovernanceConfigRequest) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o UpdateGovernanceConfigRequest) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["aiEnabled"] = o.AiEnabled + toSerialize["modelPolicy"] = o.ModelPolicy + if !IsNil(o.ModelList) { + toSerialize["modelList"] = o.ModelList + } + if o.MandatoryGuardrailPreset.IsSet() { + toSerialize["mandatoryGuardrailPreset"] = o.MandatoryGuardrailPreset.Get() + } + if !IsNil(o.MandatoryFilterPolicies) { + toSerialize["mandatoryFilterPolicies"] = o.MandatoryFilterPolicies + } + if !IsNil(o.SpendLimits) { + toSerialize["spendLimits"] = o.SpendLimits + } + if !IsNil(o.Version) { + toSerialize["version"] = o.Version + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *UpdateGovernanceConfigRequest) 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{ + "aiEnabled", + "modelPolicy", + } + + 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) + } + } + + varUpdateGovernanceConfigRequest := _UpdateGovernanceConfigRequest{} + + err = json.Unmarshal(data, &varUpdateGovernanceConfigRequest) + + if err != nil { + return err + } + + *o = UpdateGovernanceConfigRequest(varUpdateGovernanceConfigRequest) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "aiEnabled") + delete(additionalProperties, "modelPolicy") + delete(additionalProperties, "modelList") + delete(additionalProperties, "mandatoryGuardrailPreset") + delete(additionalProperties, "mandatoryFilterPolicies") + delete(additionalProperties, "spendLimits") + delete(additionalProperties, "version") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableUpdateGovernanceConfigRequest struct { + value *UpdateGovernanceConfigRequest + isSet bool +} + +func (v NullableUpdateGovernanceConfigRequest) Get() *UpdateGovernanceConfigRequest { + return v.value +} + +func (v *NullableUpdateGovernanceConfigRequest) Set(val *UpdateGovernanceConfigRequest) { + v.value = val + v.isSet = true +} + +func (v NullableUpdateGovernanceConfigRequest) IsSet() bool { + return v.isSet +} + +func (v *NullableUpdateGovernanceConfigRequest) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableUpdateGovernanceConfigRequest(val *UpdateGovernanceConfigRequest) *NullableUpdateGovernanceConfigRequest { + return &NullableUpdateGovernanceConfigRequest{value: val, isSet: true} +} + +func (v NullableUpdateGovernanceConfigRequest) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableUpdateGovernanceConfigRequest) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_update_skill_200_response.go b/model_update_skill_200_response.go index be4b2d8..ac18da1 100644 --- a/model_update_skill_200_response.go +++ b/model_update_skill_200_response.go @@ -3,7 +3,7 @@ QuantCDN API Unified API for QuantCDN Admin and QuantCloud Platform services -API version: 4.13.0 +API version: 4.14.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_update_skill_request.go b/model_update_skill_request.go index 40ee8d8..5912a98 100644 --- a/model_update_skill_request.go +++ b/model_update_skill_request.go @@ -3,7 +3,7 @@ QuantCDN API Unified API for QuantCDN Admin and QuantCloud Platform services -API version: 4.13.0 +API version: 4.14.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_update_slack_bot_request.go b/model_update_slack_bot_request.go new file mode 100644 index 0000000..5eff48c --- /dev/null +++ b/model_update_slack_bot_request.go @@ -0,0 +1,384 @@ +/* +QuantCDN API + +Unified API for QuantCDN Admin and QuantCloud Platform services + +API version: 4.14.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package quantadmingo + +import ( + "encoding/json" +) + +// checks if the UpdateSlackBotRequest type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &UpdateSlackBotRequest{} + +// UpdateSlackBotRequest struct for UpdateSlackBotRequest +type UpdateSlackBotRequest struct { + // Change the backing AI agent + AgentId *string `json:"agentId,omitempty"` + // Enable or disable the bot + Status *string `json:"status,omitempty"` + // Session TTL in days + SessionTtlDays *int32 `json:"sessionTtlDays,omitempty"` + // Slack channel IDs the bot may respond in + AllowedChannels []string `json:"allowedChannels,omitempty"` + // Whether keyword triggers are enabled + KeywordsEnabled *bool `json:"keywordsEnabled,omitempty"` + // Keywords that trigger the bot + Keywords []string `json:"keywords,omitempty"` + // Slash commands the bot responds to + SlashCommands []string `json:"slashCommands,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _UpdateSlackBotRequest UpdateSlackBotRequest + +// NewUpdateSlackBotRequest instantiates a new UpdateSlackBotRequest 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 NewUpdateSlackBotRequest() *UpdateSlackBotRequest { + this := UpdateSlackBotRequest{} + return &this +} + +// NewUpdateSlackBotRequestWithDefaults instantiates a new UpdateSlackBotRequest 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 NewUpdateSlackBotRequestWithDefaults() *UpdateSlackBotRequest { + this := UpdateSlackBotRequest{} + return &this +} + +// GetAgentId returns the AgentId field value if set, zero value otherwise. +func (o *UpdateSlackBotRequest) GetAgentId() string { + if o == nil || IsNil(o.AgentId) { + var ret string + return ret + } + return *o.AgentId +} + +// GetAgentIdOk returns a tuple with the AgentId field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *UpdateSlackBotRequest) GetAgentIdOk() (*string, bool) { + if o == nil || IsNil(o.AgentId) { + return nil, false + } + return o.AgentId, true +} + +// HasAgentId returns a boolean if a field has been set. +func (o *UpdateSlackBotRequest) HasAgentId() bool { + if o != nil && !IsNil(o.AgentId) { + return true + } + + return false +} + +// SetAgentId gets a reference to the given string and assigns it to the AgentId field. +func (o *UpdateSlackBotRequest) SetAgentId(v string) { + o.AgentId = &v +} + +// GetStatus returns the Status field value if set, zero value otherwise. +func (o *UpdateSlackBotRequest) GetStatus() string { + if o == nil || IsNil(o.Status) { + var ret string + return ret + } + return *o.Status +} + +// GetStatusOk returns a tuple with the Status field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *UpdateSlackBotRequest) GetStatusOk() (*string, bool) { + if o == nil || IsNil(o.Status) { + return nil, false + } + return o.Status, true +} + +// HasStatus returns a boolean if a field has been set. +func (o *UpdateSlackBotRequest) HasStatus() bool { + if o != nil && !IsNil(o.Status) { + return true + } + + return false +} + +// SetStatus gets a reference to the given string and assigns it to the Status field. +func (o *UpdateSlackBotRequest) SetStatus(v string) { + o.Status = &v +} + +// GetSessionTtlDays returns the SessionTtlDays field value if set, zero value otherwise. +func (o *UpdateSlackBotRequest) GetSessionTtlDays() int32 { + if o == nil || IsNil(o.SessionTtlDays) { + var ret int32 + return ret + } + return *o.SessionTtlDays +} + +// GetSessionTtlDaysOk returns a tuple with the SessionTtlDays field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *UpdateSlackBotRequest) GetSessionTtlDaysOk() (*int32, bool) { + if o == nil || IsNil(o.SessionTtlDays) { + return nil, false + } + return o.SessionTtlDays, true +} + +// HasSessionTtlDays returns a boolean if a field has been set. +func (o *UpdateSlackBotRequest) HasSessionTtlDays() bool { + if o != nil && !IsNil(o.SessionTtlDays) { + return true + } + + return false +} + +// SetSessionTtlDays gets a reference to the given int32 and assigns it to the SessionTtlDays field. +func (o *UpdateSlackBotRequest) SetSessionTtlDays(v int32) { + o.SessionTtlDays = &v +} + +// GetAllowedChannels returns the AllowedChannels field value if set, zero value otherwise. +func (o *UpdateSlackBotRequest) GetAllowedChannels() []string { + if o == nil || IsNil(o.AllowedChannels) { + var ret []string + return ret + } + return o.AllowedChannels +} + +// GetAllowedChannelsOk returns a tuple with the AllowedChannels field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *UpdateSlackBotRequest) GetAllowedChannelsOk() ([]string, bool) { + if o == nil || IsNil(o.AllowedChannels) { + return nil, false + } + return o.AllowedChannels, true +} + +// HasAllowedChannels returns a boolean if a field has been set. +func (o *UpdateSlackBotRequest) HasAllowedChannels() bool { + if o != nil && !IsNil(o.AllowedChannels) { + return true + } + + return false +} + +// SetAllowedChannels gets a reference to the given []string and assigns it to the AllowedChannels field. +func (o *UpdateSlackBotRequest) SetAllowedChannels(v []string) { + o.AllowedChannels = v +} + +// GetKeywordsEnabled returns the KeywordsEnabled field value if set, zero value otherwise. +func (o *UpdateSlackBotRequest) GetKeywordsEnabled() bool { + if o == nil || IsNil(o.KeywordsEnabled) { + var ret bool + return ret + } + return *o.KeywordsEnabled +} + +// GetKeywordsEnabledOk returns a tuple with the KeywordsEnabled field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *UpdateSlackBotRequest) GetKeywordsEnabledOk() (*bool, bool) { + if o == nil || IsNil(o.KeywordsEnabled) { + return nil, false + } + return o.KeywordsEnabled, true +} + +// HasKeywordsEnabled returns a boolean if a field has been set. +func (o *UpdateSlackBotRequest) HasKeywordsEnabled() bool { + if o != nil && !IsNil(o.KeywordsEnabled) { + return true + } + + return false +} + +// SetKeywordsEnabled gets a reference to the given bool and assigns it to the KeywordsEnabled field. +func (o *UpdateSlackBotRequest) SetKeywordsEnabled(v bool) { + o.KeywordsEnabled = &v +} + +// GetKeywords returns the Keywords field value if set, zero value otherwise. +func (o *UpdateSlackBotRequest) GetKeywords() []string { + if o == nil || IsNil(o.Keywords) { + var ret []string + return ret + } + return o.Keywords +} + +// GetKeywordsOk returns a tuple with the Keywords field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *UpdateSlackBotRequest) GetKeywordsOk() ([]string, bool) { + if o == nil || IsNil(o.Keywords) { + return nil, false + } + return o.Keywords, true +} + +// HasKeywords returns a boolean if a field has been set. +func (o *UpdateSlackBotRequest) HasKeywords() bool { + if o != nil && !IsNil(o.Keywords) { + return true + } + + return false +} + +// SetKeywords gets a reference to the given []string and assigns it to the Keywords field. +func (o *UpdateSlackBotRequest) SetKeywords(v []string) { + o.Keywords = v +} + +// GetSlashCommands returns the SlashCommands field value if set, zero value otherwise. +func (o *UpdateSlackBotRequest) GetSlashCommands() []string { + if o == nil || IsNil(o.SlashCommands) { + var ret []string + return ret + } + return o.SlashCommands +} + +// GetSlashCommandsOk returns a tuple with the SlashCommands field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *UpdateSlackBotRequest) GetSlashCommandsOk() ([]string, bool) { + if o == nil || IsNil(o.SlashCommands) { + return nil, false + } + return o.SlashCommands, true +} + +// HasSlashCommands returns a boolean if a field has been set. +func (o *UpdateSlackBotRequest) HasSlashCommands() bool { + if o != nil && !IsNil(o.SlashCommands) { + return true + } + + return false +} + +// SetSlashCommands gets a reference to the given []string and assigns it to the SlashCommands field. +func (o *UpdateSlackBotRequest) SetSlashCommands(v []string) { + o.SlashCommands = v +} + +func (o UpdateSlackBotRequest) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o UpdateSlackBotRequest) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.AgentId) { + toSerialize["agentId"] = o.AgentId + } + if !IsNil(o.Status) { + toSerialize["status"] = o.Status + } + if !IsNil(o.SessionTtlDays) { + toSerialize["sessionTtlDays"] = o.SessionTtlDays + } + if !IsNil(o.AllowedChannels) { + toSerialize["allowedChannels"] = o.AllowedChannels + } + if !IsNil(o.KeywordsEnabled) { + toSerialize["keywordsEnabled"] = o.KeywordsEnabled + } + if !IsNil(o.Keywords) { + toSerialize["keywords"] = o.Keywords + } + if !IsNil(o.SlashCommands) { + toSerialize["slashCommands"] = o.SlashCommands + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *UpdateSlackBotRequest) UnmarshalJSON(data []byte) (err error) { + varUpdateSlackBotRequest := _UpdateSlackBotRequest{} + + err = json.Unmarshal(data, &varUpdateSlackBotRequest) + + if err != nil { + return err + } + + *o = UpdateSlackBotRequest(varUpdateSlackBotRequest) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "agentId") + delete(additionalProperties, "status") + delete(additionalProperties, "sessionTtlDays") + delete(additionalProperties, "allowedChannels") + delete(additionalProperties, "keywordsEnabled") + delete(additionalProperties, "keywords") + delete(additionalProperties, "slashCommands") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableUpdateSlackBotRequest struct { + value *UpdateSlackBotRequest + isSet bool +} + +func (v NullableUpdateSlackBotRequest) Get() *UpdateSlackBotRequest { + return v.value +} + +func (v *NullableUpdateSlackBotRequest) Set(val *UpdateSlackBotRequest) { + v.value = val + v.isSet = true +} + +func (v NullableUpdateSlackBotRequest) IsSet() bool { + return v.isSet +} + +func (v *NullableUpdateSlackBotRequest) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableUpdateSlackBotRequest(val *UpdateSlackBotRequest) *NullableUpdateSlackBotRequest { + return &NullableUpdateSlackBotRequest{value: val, isSet: true} +} + +func (v NullableUpdateSlackBotRequest) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableUpdateSlackBotRequest) 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 bf0e554..6ea2a12 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.13.0 +API version: 4.14.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 4be3a38..5ce9386 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.13.0 +API version: 4.14.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 20dfece..fe8c433 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.13.0 +API version: 4.14.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 6a25df3..30e688f 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.13.0 +API version: 4.14.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 3377cec..d515e98 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.13.0 +API version: 4.14.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 f449351..2007d87 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.13.0 +API version: 4.14.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 33d4ac7..f72f570 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.13.0 +API version: 4.14.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 f7fe577..6741043 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.13.0 +API version: 4.14.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_upsert_agent_overlay_200_response.go b/model_upsert_agent_overlay_200_response.go new file mode 100644 index 0000000..ca4a716 --- /dev/null +++ b/model_upsert_agent_overlay_200_response.go @@ -0,0 +1,155 @@ +/* +QuantCDN API + +Unified API for QuantCDN Admin and QuantCloud Platform services + +API version: 4.14.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package quantadmingo + +import ( + "encoding/json" +) + +// checks if the UpsertAgentOverlay200Response type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &UpsertAgentOverlay200Response{} + +// UpsertAgentOverlay200Response struct for UpsertAgentOverlay200Response +type UpsertAgentOverlay200Response struct { + Overlay map[string]interface{} `json:"overlay,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _UpsertAgentOverlay200Response UpsertAgentOverlay200Response + +// NewUpsertAgentOverlay200Response instantiates a new UpsertAgentOverlay200Response 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 NewUpsertAgentOverlay200Response() *UpsertAgentOverlay200Response { + this := UpsertAgentOverlay200Response{} + return &this +} + +// NewUpsertAgentOverlay200ResponseWithDefaults instantiates a new UpsertAgentOverlay200Response 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 NewUpsertAgentOverlay200ResponseWithDefaults() *UpsertAgentOverlay200Response { + this := UpsertAgentOverlay200Response{} + return &this +} + +// GetOverlay returns the Overlay field value if set, zero value otherwise. +func (o *UpsertAgentOverlay200Response) GetOverlay() map[string]interface{} { + if o == nil || IsNil(o.Overlay) { + var ret map[string]interface{} + return ret + } + return o.Overlay +} + +// GetOverlayOk returns a tuple with the Overlay field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *UpsertAgentOverlay200Response) GetOverlayOk() (map[string]interface{}, bool) { + if o == nil || IsNil(o.Overlay) { + return map[string]interface{}{}, false + } + return o.Overlay, true +} + +// HasOverlay returns a boolean if a field has been set. +func (o *UpsertAgentOverlay200Response) HasOverlay() bool { + if o != nil && !IsNil(o.Overlay) { + return true + } + + return false +} + +// SetOverlay gets a reference to the given map[string]interface{} and assigns it to the Overlay field. +func (o *UpsertAgentOverlay200Response) SetOverlay(v map[string]interface{}) { + o.Overlay = v +} + +func (o UpsertAgentOverlay200Response) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o UpsertAgentOverlay200Response) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Overlay) { + toSerialize["overlay"] = o.Overlay + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *UpsertAgentOverlay200Response) UnmarshalJSON(data []byte) (err error) { + varUpsertAgentOverlay200Response := _UpsertAgentOverlay200Response{} + + err = json.Unmarshal(data, &varUpsertAgentOverlay200Response) + + if err != nil { + return err + } + + *o = UpsertAgentOverlay200Response(varUpsertAgentOverlay200Response) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "overlay") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableUpsertAgentOverlay200Response struct { + value *UpsertAgentOverlay200Response + isSet bool +} + +func (v NullableUpsertAgentOverlay200Response) Get() *UpsertAgentOverlay200Response { + return v.value +} + +func (v *NullableUpsertAgentOverlay200Response) Set(val *UpsertAgentOverlay200Response) { + v.value = val + v.isSet = true +} + +func (v NullableUpsertAgentOverlay200Response) IsSet() bool { + return v.isSet +} + +func (v *NullableUpsertAgentOverlay200Response) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableUpsertAgentOverlay200Response(val *UpsertAgentOverlay200Response) *NullableUpsertAgentOverlay200Response { + return &NullableUpsertAgentOverlay200Response{value: val, isSet: true} +} + +func (v NullableUpsertAgentOverlay200Response) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableUpsertAgentOverlay200Response) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_upsert_agent_overlay_request.go b/model_upsert_agent_overlay_request.go new file mode 100644 index 0000000..0fb76ba --- /dev/null +++ b/model_upsert_agent_overlay_request.go @@ -0,0 +1,536 @@ +/* +QuantCDN API + +Unified API for QuantCDN Admin and QuantCloud Platform services + +API version: 4.14.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package quantadmingo + +import ( + "encoding/json" +) + +// checks if the UpsertAgentOverlayRequest type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &UpsertAgentOverlayRequest{} + +// UpsertAgentOverlayRequest struct for UpsertAgentOverlayRequest +type UpsertAgentOverlayRequest struct { + // Override the base agent's model + ModelId *string `json:"modelId,omitempty"` + // Override temperature + Temperature *float32 `json:"temperature,omitempty"` + // Override max tokens + MaxTokens *int32 `json:"maxTokens,omitempty"` + // Global skill IDs to exclude + DisabledSkills []string `json:"disabledSkills,omitempty"` + // Org-owned skill IDs to add + AdditionalSkills []string `json:"additionalSkills,omitempty"` + // Tool names to add + AdditionalTools []string `json:"additionalTools,omitempty"` + // Tool names to remove + DisabledTools []string `json:"disabledTools,omitempty"` + // Text appended to base system prompt + SystemPromptAppend *string `json:"systemPromptAppend,omitempty"` + // Vector DB collections + AllowedCollections []string `json:"allowedCollections,omitempty"` + // Guardrail preset + GuardrailPreset *string `json:"guardrailPreset,omitempty"` + // Current version for optimistic concurrency + Version *int32 `json:"version,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _UpsertAgentOverlayRequest UpsertAgentOverlayRequest + +// NewUpsertAgentOverlayRequest instantiates a new UpsertAgentOverlayRequest 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 NewUpsertAgentOverlayRequest() *UpsertAgentOverlayRequest { + this := UpsertAgentOverlayRequest{} + return &this +} + +// NewUpsertAgentOverlayRequestWithDefaults instantiates a new UpsertAgentOverlayRequest 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 NewUpsertAgentOverlayRequestWithDefaults() *UpsertAgentOverlayRequest { + this := UpsertAgentOverlayRequest{} + return &this +} + +// GetModelId returns the ModelId field value if set, zero value otherwise. +func (o *UpsertAgentOverlayRequest) GetModelId() string { + if o == nil || IsNil(o.ModelId) { + var ret string + return ret + } + return *o.ModelId +} + +// GetModelIdOk returns a tuple with the ModelId field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *UpsertAgentOverlayRequest) GetModelIdOk() (*string, bool) { + if o == nil || IsNil(o.ModelId) { + return nil, false + } + return o.ModelId, true +} + +// HasModelId returns a boolean if a field has been set. +func (o *UpsertAgentOverlayRequest) HasModelId() bool { + if o != nil && !IsNil(o.ModelId) { + return true + } + + return false +} + +// SetModelId gets a reference to the given string and assigns it to the ModelId field. +func (o *UpsertAgentOverlayRequest) SetModelId(v string) { + o.ModelId = &v +} + +// GetTemperature returns the Temperature field value if set, zero value otherwise. +func (o *UpsertAgentOverlayRequest) GetTemperature() float32 { + if o == nil || IsNil(o.Temperature) { + var ret float32 + return ret + } + return *o.Temperature +} + +// GetTemperatureOk returns a tuple with the Temperature field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *UpsertAgentOverlayRequest) GetTemperatureOk() (*float32, bool) { + if o == nil || IsNil(o.Temperature) { + return nil, false + } + return o.Temperature, true +} + +// HasTemperature returns a boolean if a field has been set. +func (o *UpsertAgentOverlayRequest) HasTemperature() bool { + if o != nil && !IsNil(o.Temperature) { + return true + } + + return false +} + +// SetTemperature gets a reference to the given float32 and assigns it to the Temperature field. +func (o *UpsertAgentOverlayRequest) SetTemperature(v float32) { + o.Temperature = &v +} + +// GetMaxTokens returns the MaxTokens field value if set, zero value otherwise. +func (o *UpsertAgentOverlayRequest) GetMaxTokens() int32 { + if o == nil || IsNil(o.MaxTokens) { + var ret int32 + return ret + } + return *o.MaxTokens +} + +// GetMaxTokensOk returns a tuple with the MaxTokens field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *UpsertAgentOverlayRequest) GetMaxTokensOk() (*int32, bool) { + if o == nil || IsNil(o.MaxTokens) { + return nil, false + } + return o.MaxTokens, true +} + +// HasMaxTokens returns a boolean if a field has been set. +func (o *UpsertAgentOverlayRequest) HasMaxTokens() bool { + if o != nil && !IsNil(o.MaxTokens) { + return true + } + + return false +} + +// SetMaxTokens gets a reference to the given int32 and assigns it to the MaxTokens field. +func (o *UpsertAgentOverlayRequest) SetMaxTokens(v int32) { + o.MaxTokens = &v +} + +// GetDisabledSkills returns the DisabledSkills field value if set, zero value otherwise. +func (o *UpsertAgentOverlayRequest) GetDisabledSkills() []string { + if o == nil || IsNil(o.DisabledSkills) { + var ret []string + return ret + } + return o.DisabledSkills +} + +// GetDisabledSkillsOk returns a tuple with the DisabledSkills field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *UpsertAgentOverlayRequest) GetDisabledSkillsOk() ([]string, bool) { + if o == nil || IsNil(o.DisabledSkills) { + return nil, false + } + return o.DisabledSkills, true +} + +// HasDisabledSkills returns a boolean if a field has been set. +func (o *UpsertAgentOverlayRequest) HasDisabledSkills() bool { + if o != nil && !IsNil(o.DisabledSkills) { + return true + } + + return false +} + +// SetDisabledSkills gets a reference to the given []string and assigns it to the DisabledSkills field. +func (o *UpsertAgentOverlayRequest) SetDisabledSkills(v []string) { + o.DisabledSkills = v +} + +// GetAdditionalSkills returns the AdditionalSkills field value if set, zero value otherwise. +func (o *UpsertAgentOverlayRequest) GetAdditionalSkills() []string { + if o == nil || IsNil(o.AdditionalSkills) { + var ret []string + return ret + } + return o.AdditionalSkills +} + +// GetAdditionalSkillsOk returns a tuple with the AdditionalSkills field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *UpsertAgentOverlayRequest) GetAdditionalSkillsOk() ([]string, bool) { + if o == nil || IsNil(o.AdditionalSkills) { + return nil, false + } + return o.AdditionalSkills, true +} + +// HasAdditionalSkills returns a boolean if a field has been set. +func (o *UpsertAgentOverlayRequest) HasAdditionalSkills() bool { + if o != nil && !IsNil(o.AdditionalSkills) { + return true + } + + return false +} + +// SetAdditionalSkills gets a reference to the given []string and assigns it to the AdditionalSkills field. +func (o *UpsertAgentOverlayRequest) SetAdditionalSkills(v []string) { + o.AdditionalSkills = v +} + +// GetAdditionalTools returns the AdditionalTools field value if set, zero value otherwise. +func (o *UpsertAgentOverlayRequest) GetAdditionalTools() []string { + if o == nil || IsNil(o.AdditionalTools) { + var ret []string + return ret + } + return o.AdditionalTools +} + +// GetAdditionalToolsOk returns a tuple with the AdditionalTools field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *UpsertAgentOverlayRequest) GetAdditionalToolsOk() ([]string, bool) { + if o == nil || IsNil(o.AdditionalTools) { + return nil, false + } + return o.AdditionalTools, true +} + +// HasAdditionalTools returns a boolean if a field has been set. +func (o *UpsertAgentOverlayRequest) HasAdditionalTools() bool { + if o != nil && !IsNil(o.AdditionalTools) { + return true + } + + return false +} + +// SetAdditionalTools gets a reference to the given []string and assigns it to the AdditionalTools field. +func (o *UpsertAgentOverlayRequest) SetAdditionalTools(v []string) { + o.AdditionalTools = v +} + +// GetDisabledTools returns the DisabledTools field value if set, zero value otherwise. +func (o *UpsertAgentOverlayRequest) GetDisabledTools() []string { + if o == nil || IsNil(o.DisabledTools) { + var ret []string + return ret + } + return o.DisabledTools +} + +// GetDisabledToolsOk returns a tuple with the DisabledTools field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *UpsertAgentOverlayRequest) GetDisabledToolsOk() ([]string, bool) { + if o == nil || IsNil(o.DisabledTools) { + return nil, false + } + return o.DisabledTools, true +} + +// HasDisabledTools returns a boolean if a field has been set. +func (o *UpsertAgentOverlayRequest) HasDisabledTools() bool { + if o != nil && !IsNil(o.DisabledTools) { + return true + } + + return false +} + +// SetDisabledTools gets a reference to the given []string and assigns it to the DisabledTools field. +func (o *UpsertAgentOverlayRequest) SetDisabledTools(v []string) { + o.DisabledTools = v +} + +// GetSystemPromptAppend returns the SystemPromptAppend field value if set, zero value otherwise. +func (o *UpsertAgentOverlayRequest) GetSystemPromptAppend() string { + if o == nil || IsNil(o.SystemPromptAppend) { + var ret string + return ret + } + return *o.SystemPromptAppend +} + +// GetSystemPromptAppendOk returns a tuple with the SystemPromptAppend field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *UpsertAgentOverlayRequest) GetSystemPromptAppendOk() (*string, bool) { + if o == nil || IsNil(o.SystemPromptAppend) { + return nil, false + } + return o.SystemPromptAppend, true +} + +// HasSystemPromptAppend returns a boolean if a field has been set. +func (o *UpsertAgentOverlayRequest) HasSystemPromptAppend() bool { + if o != nil && !IsNil(o.SystemPromptAppend) { + return true + } + + return false +} + +// SetSystemPromptAppend gets a reference to the given string and assigns it to the SystemPromptAppend field. +func (o *UpsertAgentOverlayRequest) SetSystemPromptAppend(v string) { + o.SystemPromptAppend = &v +} + +// GetAllowedCollections returns the AllowedCollections field value if set, zero value otherwise. +func (o *UpsertAgentOverlayRequest) GetAllowedCollections() []string { + if o == nil || IsNil(o.AllowedCollections) { + var ret []string + return ret + } + return o.AllowedCollections +} + +// GetAllowedCollectionsOk returns a tuple with the AllowedCollections field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *UpsertAgentOverlayRequest) GetAllowedCollectionsOk() ([]string, bool) { + if o == nil || IsNil(o.AllowedCollections) { + return nil, false + } + return o.AllowedCollections, true +} + +// HasAllowedCollections returns a boolean if a field has been set. +func (o *UpsertAgentOverlayRequest) HasAllowedCollections() bool { + if o != nil && !IsNil(o.AllowedCollections) { + return true + } + + return false +} + +// SetAllowedCollections gets a reference to the given []string and assigns it to the AllowedCollections field. +func (o *UpsertAgentOverlayRequest) SetAllowedCollections(v []string) { + o.AllowedCollections = v +} + +// GetGuardrailPreset returns the GuardrailPreset field value if set, zero value otherwise. +func (o *UpsertAgentOverlayRequest) GetGuardrailPreset() string { + if o == nil || IsNil(o.GuardrailPreset) { + var ret string + return ret + } + return *o.GuardrailPreset +} + +// GetGuardrailPresetOk returns a tuple with the GuardrailPreset field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *UpsertAgentOverlayRequest) GetGuardrailPresetOk() (*string, bool) { + if o == nil || IsNil(o.GuardrailPreset) { + return nil, false + } + return o.GuardrailPreset, true +} + +// HasGuardrailPreset returns a boolean if a field has been set. +func (o *UpsertAgentOverlayRequest) HasGuardrailPreset() bool { + if o != nil && !IsNil(o.GuardrailPreset) { + return true + } + + return false +} + +// SetGuardrailPreset gets a reference to the given string and assigns it to the GuardrailPreset field. +func (o *UpsertAgentOverlayRequest) SetGuardrailPreset(v string) { + o.GuardrailPreset = &v +} + +// GetVersion returns the Version field value if set, zero value otherwise. +func (o *UpsertAgentOverlayRequest) GetVersion() int32 { + if o == nil || IsNil(o.Version) { + var ret int32 + 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 *UpsertAgentOverlayRequest) GetVersionOk() (*int32, 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 *UpsertAgentOverlayRequest) HasVersion() bool { + if o != nil && !IsNil(o.Version) { + return true + } + + return false +} + +// SetVersion gets a reference to the given int32 and assigns it to the Version field. +func (o *UpsertAgentOverlayRequest) SetVersion(v int32) { + o.Version = &v +} + +func (o UpsertAgentOverlayRequest) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o UpsertAgentOverlayRequest) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.ModelId) { + toSerialize["modelId"] = o.ModelId + } + if !IsNil(o.Temperature) { + toSerialize["temperature"] = o.Temperature + } + if !IsNil(o.MaxTokens) { + toSerialize["maxTokens"] = o.MaxTokens + } + if !IsNil(o.DisabledSkills) { + toSerialize["disabledSkills"] = o.DisabledSkills + } + if !IsNil(o.AdditionalSkills) { + toSerialize["additionalSkills"] = o.AdditionalSkills + } + if !IsNil(o.AdditionalTools) { + toSerialize["additionalTools"] = o.AdditionalTools + } + if !IsNil(o.DisabledTools) { + toSerialize["disabledTools"] = o.DisabledTools + } + if !IsNil(o.SystemPromptAppend) { + toSerialize["systemPromptAppend"] = o.SystemPromptAppend + } + if !IsNil(o.AllowedCollections) { + toSerialize["allowedCollections"] = o.AllowedCollections + } + if !IsNil(o.GuardrailPreset) { + toSerialize["guardrailPreset"] = o.GuardrailPreset + } + if !IsNil(o.Version) { + toSerialize["version"] = o.Version + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *UpsertAgentOverlayRequest) UnmarshalJSON(data []byte) (err error) { + varUpsertAgentOverlayRequest := _UpsertAgentOverlayRequest{} + + err = json.Unmarshal(data, &varUpsertAgentOverlayRequest) + + if err != nil { + return err + } + + *o = UpsertAgentOverlayRequest(varUpsertAgentOverlayRequest) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "modelId") + delete(additionalProperties, "temperature") + delete(additionalProperties, "maxTokens") + delete(additionalProperties, "disabledSkills") + delete(additionalProperties, "additionalSkills") + delete(additionalProperties, "additionalTools") + delete(additionalProperties, "disabledTools") + delete(additionalProperties, "systemPromptAppend") + delete(additionalProperties, "allowedCollections") + delete(additionalProperties, "guardrailPreset") + delete(additionalProperties, "version") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableUpsertAgentOverlayRequest struct { + value *UpsertAgentOverlayRequest + isSet bool +} + +func (v NullableUpsertAgentOverlayRequest) Get() *UpsertAgentOverlayRequest { + return v.value +} + +func (v *NullableUpsertAgentOverlayRequest) Set(val *UpsertAgentOverlayRequest) { + v.value = val + v.isSet = true +} + +func (v NullableUpsertAgentOverlayRequest) IsSet() bool { + return v.isSet +} + +func (v *NullableUpsertAgentOverlayRequest) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableUpsertAgentOverlayRequest(val *UpsertAgentOverlayRequest) *NullableUpsertAgentOverlayRequest { + return &NullableUpsertAgentOverlayRequest{value: val, isSet: true} +} + +func (v NullableUpsertAgentOverlayRequest) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableUpsertAgentOverlayRequest) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_v1_content_item.go b/model_v1_content_item.go index d641acf..4cfa44d 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.13.0 +API version: 4.14.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 9775370..7fdc373 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.13.0 +API version: 4.14.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 fe0007d..15f611f 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.13.0 +API version: 4.14.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 f816229..ef45790 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.13.0 +API version: 4.14.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 e22d413..ca532cd 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.13.0 +API version: 4.14.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 7d37421..e79f13e 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.13.0 +API version: 4.14.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 4517825..11c9537 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.13.0 +API version: 4.14.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 251442a..4dc6596 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.13.0 +API version: 4.14.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 1c988d3..ce7d5bd 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.13.0 +API version: 4.14.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 df1d4b2..9750042 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.13.0 +API version: 4.14.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 5eabc67..f4ac641 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.13.0 +API version: 4.14.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 9f72214..5db7bd9 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.13.0 +API version: 4.14.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 bf96e70..1424d97 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.13.0 +API version: 4.14.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 2c2f742..4e478ad 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.13.0 +API version: 4.14.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 7ff5445..e6d87ce 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.13.0 +API version: 4.14.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 b5bc825..3e7ea26 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.13.0 +API version: 4.14.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 ffe6da8..71775e9 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.13.0 +API version: 4.14.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 80f686d..490a3c5 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.13.0 +API version: 4.14.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 70bceef..817f46e 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.13.0 +API version: 4.14.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 798ab24..52636cd 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.13.0 +API version: 4.14.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 1d9e0c0..992c2b9 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.13.0 +API version: 4.14.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 424df09..2ea14b0 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.13.0 +API version: 4.14.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 9606e7d..f17f94d 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.13.0 +API version: 4.14.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 4a32041..54ee6eb 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.13.0 +API version: 4.14.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 ca82467..3e141f0 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.13.0 +API version: 4.14.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 8c05b9e..113a957 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.13.0 +API version: 4.14.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 bcba7bc..5dcc1e9 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.13.0 +API version: 4.14.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 e784c82..721b807 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.13.0 +API version: 4.14.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 f7fc082..cda1713 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.13.0 +API version: 4.14.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 28f73e8..184beae 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.13.0 +API version: 4.14.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 fb6f59c..7b0b17c 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.13.0 +API version: 4.14.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 186c7cc..f1938d3 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.13.0 +API version: 4.14.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 43920b1..5650ded 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.13.0 +API version: 4.14.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 d974b03..f873852 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.13.0 +API version: 4.14.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 fb78d59..6ab2413 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.13.0 +API version: 4.14.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 d0815fe..4960924 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.13.0 +API version: 4.14.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 e1ef273..1cbf245 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.13.0 +API version: 4.14.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 f168cd9..c756786 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.13.0 +API version: 4.14.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 a3a387b..e3c529f 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.13.0 +API version: 4.14.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 022837a..8faf6b1 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.13.0 +API version: 4.14.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 a82c7dd..a7c8521 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.13.0 +API version: 4.14.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 4c35d6e..1009743 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.13.0 +API version: 4.14.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 8d8b871..3ff1513 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.13.0 +API version: 4.14.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 76f43f1..43f3aca 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.13.0 +API version: 4.14.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 61eca29..56a9de4 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.13.0 +API version: 4.14.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 b336b3d..505c87e 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.13.0 +API version: 4.14.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 1d41cf5..bd1c3ff 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.13.0 +API version: 4.14.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 a11db57..805a8b4 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.13.0 +API version: 4.14.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 3e1c387..3b4676c 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.13.0 +API version: 4.14.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 c1f4b32..e4164dc 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.13.0 +API version: 4.14.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 bcf296a..a15c20c 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.13.0 +API version: 4.14.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 09d6fa8..0e31476 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.13.0 +API version: 4.14.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 d363e80..5735117 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.13.0 +API version: 4.14.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 43bc6cf..b9840c2 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.13.0 +API version: 4.14.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 c5b8cbf..dd066e1 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.13.0 +API version: 4.14.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 ae4f329..64ce793 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.13.0 +API version: 4.14.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 b9186fa..2c026fd 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.13.0 +API version: 4.14.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 73149b5..8bd28d1 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.13.0 +API version: 4.14.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 3411bd0..38f182e 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.13.0 +API version: 4.14.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 0a745d9..0f12bee 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.13.0 +API version: 4.14.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 504af28..dde1dc6 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.13.0 +API version: 4.14.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 c4e2c2d..84fe37d 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.13.0 +API version: 4.14.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 77f9eea..6513df1 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.13.0 +API version: 4.14.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 dd34bf6..c3a2fa6 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.13.0 +API version: 4.14.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 150cc29..ea5fee4 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.13.0 +API version: 4.14.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -48,6 +48,12 @@ type V2Rule struct { IpIs []string `json:"ip_is,omitempty"` // Excluded IP addresses IpIsNot []string `json:"ip_is_not,omitempty"` + // ASN filter type (asn_is, asn_is_not, any) + Asn *string `json:"asn,omitempty"` + // Allowed AS numbers + AsnIs []string `json:"asn_is,omitempty"` + // Excluded AS numbers + AsnIsNot []string `json:"asn_is_not,omitempty"` // Country code Country *string `json:"country,omitempty"` // Allowed countries @@ -519,6 +525,102 @@ func (o *V2Rule) SetIpIsNot(v []string) { o.IpIsNot = v } +// GetAsn returns the Asn field value if set, zero value otherwise. +func (o *V2Rule) GetAsn() string { + if o == nil || IsNil(o.Asn) { + var ret string + return ret + } + return *o.Asn +} + +// GetAsnOk returns a tuple with the Asn field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V2Rule) GetAsnOk() (*string, bool) { + if o == nil || IsNil(o.Asn) { + return nil, false + } + return o.Asn, true +} + +// HasAsn returns a boolean if a field has been set. +func (o *V2Rule) HasAsn() bool { + if o != nil && !IsNil(o.Asn) { + return true + } + + return false +} + +// SetAsn gets a reference to the given string and assigns it to the Asn field. +func (o *V2Rule) SetAsn(v string) { + o.Asn = &v +} + +// GetAsnIs returns the AsnIs field value if set, zero value otherwise. +func (o *V2Rule) GetAsnIs() []string { + if o == nil || IsNil(o.AsnIs) { + var ret []string + return ret + } + return o.AsnIs +} + +// GetAsnIsOk returns a tuple with the AsnIs field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V2Rule) GetAsnIsOk() ([]string, bool) { + if o == nil || IsNil(o.AsnIs) { + return nil, false + } + return o.AsnIs, true +} + +// HasAsnIs returns a boolean if a field has been set. +func (o *V2Rule) HasAsnIs() bool { + if o != nil && !IsNil(o.AsnIs) { + return true + } + + return false +} + +// SetAsnIs gets a reference to the given []string and assigns it to the AsnIs field. +func (o *V2Rule) SetAsnIs(v []string) { + o.AsnIs = v +} + +// GetAsnIsNot returns the AsnIsNot field value if set, zero value otherwise. +func (o *V2Rule) GetAsnIsNot() []string { + if o == nil || IsNil(o.AsnIsNot) { + var ret []string + return ret + } + return o.AsnIsNot +} + +// GetAsnIsNotOk returns a tuple with the AsnIsNot field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V2Rule) GetAsnIsNotOk() ([]string, bool) { + if o == nil || IsNil(o.AsnIsNot) { + return nil, false + } + return o.AsnIsNot, true +} + +// HasAsnIsNot returns a boolean if a field has been set. +func (o *V2Rule) HasAsnIsNot() bool { + if o != nil && !IsNil(o.AsnIsNot) { + return true + } + + return false +} + +// SetAsnIsNot gets a reference to the given []string and assigns it to the AsnIsNot field. +func (o *V2Rule) SetAsnIsNot(v []string) { + o.AsnIsNot = v +} + // GetCountry returns the Country field value if set, zero value otherwise. func (o *V2Rule) GetCountry() string { if o == nil || IsNil(o.Country) { @@ -687,6 +789,15 @@ func (o V2Rule) ToMap() (map[string]interface{}, error) { if !IsNil(o.IpIsNot) { toSerialize["ip_is_not"] = o.IpIsNot } + if !IsNil(o.Asn) { + toSerialize["asn"] = o.Asn + } + if !IsNil(o.AsnIs) { + toSerialize["asn_is"] = o.AsnIs + } + if !IsNil(o.AsnIsNot) { + toSerialize["asn_is_not"] = o.AsnIsNot + } if !IsNil(o.Country) { toSerialize["country"] = o.Country } @@ -756,6 +867,9 @@ func (o *V2Rule) UnmarshalJSON(data []byte) (err error) { delete(additionalProperties, "ip") delete(additionalProperties, "ip_is") delete(additionalProperties, "ip_is_not") + delete(additionalProperties, "asn") + delete(additionalProperties, "asn_is") + delete(additionalProperties, "asn_is_not") delete(additionalProperties, "country") delete(additionalProperties, "country_is") delete(additionalProperties, "country_is_not") diff --git a/model_v2_rule_auth.go b/model_v2_rule_auth.go index b466cf3..dddc5e4 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.13.0 +API version: 4.14.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -48,6 +48,12 @@ type V2RuleAuth struct { IpIs []string `json:"ip_is,omitempty"` // Excluded IP addresses IpIsNot []string `json:"ip_is_not,omitempty"` + // ASN filter type (asn_is, asn_is_not, any) + Asn *string `json:"asn,omitempty"` + // Allowed AS numbers + AsnIs []string `json:"asn_is,omitempty"` + // Excluded AS numbers + AsnIsNot []string `json:"asn_is_not,omitempty"` // Country code Country *string `json:"country,omitempty"` // Allowed countries @@ -521,6 +527,102 @@ func (o *V2RuleAuth) SetIpIsNot(v []string) { o.IpIsNot = v } +// GetAsn returns the Asn field value if set, zero value otherwise. +func (o *V2RuleAuth) GetAsn() string { + if o == nil || IsNil(o.Asn) { + var ret string + return ret + } + return *o.Asn +} + +// GetAsnOk returns a tuple with the Asn field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V2RuleAuth) GetAsnOk() (*string, bool) { + if o == nil || IsNil(o.Asn) { + return nil, false + } + return o.Asn, true +} + +// HasAsn returns a boolean if a field has been set. +func (o *V2RuleAuth) HasAsn() bool { + if o != nil && !IsNil(o.Asn) { + return true + } + + return false +} + +// SetAsn gets a reference to the given string and assigns it to the Asn field. +func (o *V2RuleAuth) SetAsn(v string) { + o.Asn = &v +} + +// GetAsnIs returns the AsnIs field value if set, zero value otherwise. +func (o *V2RuleAuth) GetAsnIs() []string { + if o == nil || IsNil(o.AsnIs) { + var ret []string + return ret + } + return o.AsnIs +} + +// GetAsnIsOk returns a tuple with the AsnIs field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V2RuleAuth) GetAsnIsOk() ([]string, bool) { + if o == nil || IsNil(o.AsnIs) { + return nil, false + } + return o.AsnIs, true +} + +// HasAsnIs returns a boolean if a field has been set. +func (o *V2RuleAuth) HasAsnIs() bool { + if o != nil && !IsNil(o.AsnIs) { + return true + } + + return false +} + +// SetAsnIs gets a reference to the given []string and assigns it to the AsnIs field. +func (o *V2RuleAuth) SetAsnIs(v []string) { + o.AsnIs = v +} + +// GetAsnIsNot returns the AsnIsNot field value if set, zero value otherwise. +func (o *V2RuleAuth) GetAsnIsNot() []string { + if o == nil || IsNil(o.AsnIsNot) { + var ret []string + return ret + } + return o.AsnIsNot +} + +// GetAsnIsNotOk returns a tuple with the AsnIsNot field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V2RuleAuth) GetAsnIsNotOk() ([]string, bool) { + if o == nil || IsNil(o.AsnIsNot) { + return nil, false + } + return o.AsnIsNot, true +} + +// HasAsnIsNot returns a boolean if a field has been set. +func (o *V2RuleAuth) HasAsnIsNot() bool { + if o != nil && !IsNil(o.AsnIsNot) { + return true + } + + return false +} + +// SetAsnIsNot gets a reference to the given []string and assigns it to the AsnIsNot field. +func (o *V2RuleAuth) SetAsnIsNot(v []string) { + o.AsnIsNot = v +} + // GetCountry returns the Country field value if set, zero value otherwise. func (o *V2RuleAuth) GetCountry() string { if o == nil || IsNil(o.Country) { @@ -713,6 +815,15 @@ func (o V2RuleAuth) ToMap() (map[string]interface{}, error) { if !IsNil(o.IpIsNot) { toSerialize["ip_is_not"] = o.IpIsNot } + if !IsNil(o.Asn) { + toSerialize["asn"] = o.Asn + } + if !IsNil(o.AsnIs) { + toSerialize["asn_is"] = o.AsnIs + } + if !IsNil(o.AsnIsNot) { + toSerialize["asn_is_not"] = o.AsnIsNot + } if !IsNil(o.Country) { toSerialize["country"] = o.Country } @@ -784,6 +895,9 @@ func (o *V2RuleAuth) UnmarshalJSON(data []byte) (err error) { delete(additionalProperties, "ip") delete(additionalProperties, "ip_is") delete(additionalProperties, "ip_is_not") + delete(additionalProperties, "asn") + delete(additionalProperties, "asn_is") + delete(additionalProperties, "asn_is_not") delete(additionalProperties, "country") delete(additionalProperties, "country_is") delete(additionalProperties, "country_is_not") diff --git a/model_v2_rule_auth_action.go b/model_v2_rule_auth_action.go index 520304a..65a74bf 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.13.0 +API version: 4.14.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 f63b524..f1d956a 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.13.0 +API version: 4.14.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -50,6 +50,12 @@ type V2RuleAuthRequest struct { IpIs []string `json:"ip_is,omitempty"` // Excluded IP addresses IpIsNot []string `json:"ip_is_not,omitempty"` + // ASN filter type (asn_is, asn_is_not, any) + Asn *string `json:"asn,omitempty"` + // Allowed AS numbers + AsnIs []string `json:"asn_is,omitempty"` + // Excluded AS numbers + AsnIsNot []string `json:"asn_is_not,omitempty"` // Authentication username AuthUser string `json:"auth_user"` // Authentication password @@ -552,6 +558,102 @@ func (o *V2RuleAuthRequest) SetIpIsNot(v []string) { o.IpIsNot = v } +// GetAsn returns the Asn field value if set, zero value otherwise. +func (o *V2RuleAuthRequest) GetAsn() string { + if o == nil || IsNil(o.Asn) { + var ret string + return ret + } + return *o.Asn +} + +// GetAsnOk returns a tuple with the Asn field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V2RuleAuthRequest) GetAsnOk() (*string, bool) { + if o == nil || IsNil(o.Asn) { + return nil, false + } + return o.Asn, true +} + +// HasAsn returns a boolean if a field has been set. +func (o *V2RuleAuthRequest) HasAsn() bool { + if o != nil && !IsNil(o.Asn) { + return true + } + + return false +} + +// SetAsn gets a reference to the given string and assigns it to the Asn field. +func (o *V2RuleAuthRequest) SetAsn(v string) { + o.Asn = &v +} + +// GetAsnIs returns the AsnIs field value if set, zero value otherwise. +func (o *V2RuleAuthRequest) GetAsnIs() []string { + if o == nil || IsNil(o.AsnIs) { + var ret []string + return ret + } + return o.AsnIs +} + +// GetAsnIsOk returns a tuple with the AsnIs field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V2RuleAuthRequest) GetAsnIsOk() ([]string, bool) { + if o == nil || IsNil(o.AsnIs) { + return nil, false + } + return o.AsnIs, true +} + +// HasAsnIs returns a boolean if a field has been set. +func (o *V2RuleAuthRequest) HasAsnIs() bool { + if o != nil && !IsNil(o.AsnIs) { + return true + } + + return false +} + +// SetAsnIs gets a reference to the given []string and assigns it to the AsnIs field. +func (o *V2RuleAuthRequest) SetAsnIs(v []string) { + o.AsnIs = v +} + +// GetAsnIsNot returns the AsnIsNot field value if set, zero value otherwise. +func (o *V2RuleAuthRequest) GetAsnIsNot() []string { + if o == nil || IsNil(o.AsnIsNot) { + var ret []string + return ret + } + return o.AsnIsNot +} + +// GetAsnIsNotOk returns a tuple with the AsnIsNot field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V2RuleAuthRequest) GetAsnIsNotOk() ([]string, bool) { + if o == nil || IsNil(o.AsnIsNot) { + return nil, false + } + return o.AsnIsNot, true +} + +// HasAsnIsNot returns a boolean if a field has been set. +func (o *V2RuleAuthRequest) HasAsnIsNot() bool { + if o != nil && !IsNil(o.AsnIsNot) { + return true + } + + return false +} + +// SetAsnIsNot gets a reference to the given []string and assigns it to the AsnIsNot field. +func (o *V2RuleAuthRequest) SetAsnIsNot(v []string) { + o.AsnIsNot = v +} + // GetAuthUser returns the AuthUser field value func (o *V2RuleAuthRequest) GetAuthUser() string { if o == nil { @@ -651,6 +753,15 @@ func (o V2RuleAuthRequest) ToMap() (map[string]interface{}, error) { if !IsNil(o.IpIsNot) { toSerialize["ip_is_not"] = o.IpIsNot } + if !IsNil(o.Asn) { + toSerialize["asn"] = o.Asn + } + if !IsNil(o.AsnIs) { + toSerialize["asn_is"] = o.AsnIs + } + if !IsNil(o.AsnIsNot) { + toSerialize["asn_is_not"] = o.AsnIsNot + } toSerialize["auth_user"] = o.AuthUser toSerialize["auth_pass"] = o.AuthPass @@ -714,6 +825,9 @@ func (o *V2RuleAuthRequest) UnmarshalJSON(data []byte) (err error) { delete(additionalProperties, "ip") delete(additionalProperties, "ip_is") delete(additionalProperties, "ip_is_not") + delete(additionalProperties, "asn") + delete(additionalProperties, "asn_is") + delete(additionalProperties, "asn_is_not") delete(additionalProperties, "auth_user") delete(additionalProperties, "auth_pass") o.AdditionalProperties = additionalProperties diff --git a/model_v2_rule_bot_challenge.go b/model_v2_rule_bot_challenge.go index 6dcc60a..d920834 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.13.0 +API version: 4.14.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -48,6 +48,12 @@ type V2RuleBotChallenge struct { IpIs []string `json:"ip_is,omitempty"` // Excluded IP addresses IpIsNot []string `json:"ip_is_not,omitempty"` + // ASN filter type (asn_is, asn_is_not, any) + Asn *string `json:"asn,omitempty"` + // Allowed AS numbers + AsnIs []string `json:"asn_is,omitempty"` + // Excluded AS numbers + AsnIsNot []string `json:"asn_is_not,omitempty"` // Country code Country *string `json:"country,omitempty"` // Allowed countries @@ -521,6 +527,102 @@ func (o *V2RuleBotChallenge) SetIpIsNot(v []string) { o.IpIsNot = v } +// GetAsn returns the Asn field value if set, zero value otherwise. +func (o *V2RuleBotChallenge) GetAsn() string { + if o == nil || IsNil(o.Asn) { + var ret string + return ret + } + return *o.Asn +} + +// GetAsnOk returns a tuple with the Asn field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V2RuleBotChallenge) GetAsnOk() (*string, bool) { + if o == nil || IsNil(o.Asn) { + return nil, false + } + return o.Asn, true +} + +// HasAsn returns a boolean if a field has been set. +func (o *V2RuleBotChallenge) HasAsn() bool { + if o != nil && !IsNil(o.Asn) { + return true + } + + return false +} + +// SetAsn gets a reference to the given string and assigns it to the Asn field. +func (o *V2RuleBotChallenge) SetAsn(v string) { + o.Asn = &v +} + +// GetAsnIs returns the AsnIs field value if set, zero value otherwise. +func (o *V2RuleBotChallenge) GetAsnIs() []string { + if o == nil || IsNil(o.AsnIs) { + var ret []string + return ret + } + return o.AsnIs +} + +// GetAsnIsOk returns a tuple with the AsnIs field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V2RuleBotChallenge) GetAsnIsOk() ([]string, bool) { + if o == nil || IsNil(o.AsnIs) { + return nil, false + } + return o.AsnIs, true +} + +// HasAsnIs returns a boolean if a field has been set. +func (o *V2RuleBotChallenge) HasAsnIs() bool { + if o != nil && !IsNil(o.AsnIs) { + return true + } + + return false +} + +// SetAsnIs gets a reference to the given []string and assigns it to the AsnIs field. +func (o *V2RuleBotChallenge) SetAsnIs(v []string) { + o.AsnIs = v +} + +// GetAsnIsNot returns the AsnIsNot field value if set, zero value otherwise. +func (o *V2RuleBotChallenge) GetAsnIsNot() []string { + if o == nil || IsNil(o.AsnIsNot) { + var ret []string + return ret + } + return o.AsnIsNot +} + +// GetAsnIsNotOk returns a tuple with the AsnIsNot field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V2RuleBotChallenge) GetAsnIsNotOk() ([]string, bool) { + if o == nil || IsNil(o.AsnIsNot) { + return nil, false + } + return o.AsnIsNot, true +} + +// HasAsnIsNot returns a boolean if a field has been set. +func (o *V2RuleBotChallenge) HasAsnIsNot() bool { + if o != nil && !IsNil(o.AsnIsNot) { + return true + } + + return false +} + +// SetAsnIsNot gets a reference to the given []string and assigns it to the AsnIsNot field. +func (o *V2RuleBotChallenge) SetAsnIsNot(v []string) { + o.AsnIsNot = v +} + // GetCountry returns the Country field value if set, zero value otherwise. func (o *V2RuleBotChallenge) GetCountry() string { if o == nil || IsNil(o.Country) { @@ -713,6 +815,15 @@ func (o V2RuleBotChallenge) ToMap() (map[string]interface{}, error) { if !IsNil(o.IpIsNot) { toSerialize["ip_is_not"] = o.IpIsNot } + if !IsNil(o.Asn) { + toSerialize["asn"] = o.Asn + } + if !IsNil(o.AsnIs) { + toSerialize["asn_is"] = o.AsnIs + } + if !IsNil(o.AsnIsNot) { + toSerialize["asn_is_not"] = o.AsnIsNot + } if !IsNil(o.Country) { toSerialize["country"] = o.Country } @@ -784,6 +895,9 @@ func (o *V2RuleBotChallenge) UnmarshalJSON(data []byte) (err error) { delete(additionalProperties, "ip") delete(additionalProperties, "ip_is") delete(additionalProperties, "ip_is_not") + delete(additionalProperties, "asn") + delete(additionalProperties, "asn_is") + delete(additionalProperties, "asn_is_not") delete(additionalProperties, "country") delete(additionalProperties, "country_is") delete(additionalProperties, "country_is_not") diff --git a/model_v2_rule_bot_challenge_action.go b/model_v2_rule_bot_challenge_action.go index 2480c10..81e8310 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.13.0 +API version: 4.14.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 b3792c0..52d5bc2 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.13.0 +API version: 4.14.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -50,6 +50,12 @@ type V2RuleBotChallengeRequest struct { IpIs []string `json:"ip_is,omitempty"` // Excluded IP addresses IpIsNot []string `json:"ip_is_not,omitempty"` + // ASN filter type (asn_is, asn_is_not, any) + Asn *string `json:"asn,omitempty"` + // Allowed AS numbers + AsnIs []string `json:"asn_is,omitempty"` + // Excluded AS numbers + AsnIsNot []string `json:"asn_is_not,omitempty"` // Challenge type (invisible or checkbox) RobotChallengeType string `json:"robot_challenge_type"` // Verification TTL in seconds @@ -561,6 +567,102 @@ func (o *V2RuleBotChallengeRequest) SetIpIsNot(v []string) { o.IpIsNot = v } +// GetAsn returns the Asn field value if set, zero value otherwise. +func (o *V2RuleBotChallengeRequest) GetAsn() string { + if o == nil || IsNil(o.Asn) { + var ret string + return ret + } + return *o.Asn +} + +// GetAsnOk returns a tuple with the Asn field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V2RuleBotChallengeRequest) GetAsnOk() (*string, bool) { + if o == nil || IsNil(o.Asn) { + return nil, false + } + return o.Asn, true +} + +// HasAsn returns a boolean if a field has been set. +func (o *V2RuleBotChallengeRequest) HasAsn() bool { + if o != nil && !IsNil(o.Asn) { + return true + } + + return false +} + +// SetAsn gets a reference to the given string and assigns it to the Asn field. +func (o *V2RuleBotChallengeRequest) SetAsn(v string) { + o.Asn = &v +} + +// GetAsnIs returns the AsnIs field value if set, zero value otherwise. +func (o *V2RuleBotChallengeRequest) GetAsnIs() []string { + if o == nil || IsNil(o.AsnIs) { + var ret []string + return ret + } + return o.AsnIs +} + +// GetAsnIsOk returns a tuple with the AsnIs field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V2RuleBotChallengeRequest) GetAsnIsOk() ([]string, bool) { + if o == nil || IsNil(o.AsnIs) { + return nil, false + } + return o.AsnIs, true +} + +// HasAsnIs returns a boolean if a field has been set. +func (o *V2RuleBotChallengeRequest) HasAsnIs() bool { + if o != nil && !IsNil(o.AsnIs) { + return true + } + + return false +} + +// SetAsnIs gets a reference to the given []string and assigns it to the AsnIs field. +func (o *V2RuleBotChallengeRequest) SetAsnIs(v []string) { + o.AsnIs = v +} + +// GetAsnIsNot returns the AsnIsNot field value if set, zero value otherwise. +func (o *V2RuleBotChallengeRequest) GetAsnIsNot() []string { + if o == nil || IsNil(o.AsnIsNot) { + var ret []string + return ret + } + return o.AsnIsNot +} + +// GetAsnIsNotOk returns a tuple with the AsnIsNot field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V2RuleBotChallengeRequest) GetAsnIsNotOk() ([]string, bool) { + if o == nil || IsNil(o.AsnIsNot) { + return nil, false + } + return o.AsnIsNot, true +} + +// HasAsnIsNot returns a boolean if a field has been set. +func (o *V2RuleBotChallengeRequest) HasAsnIsNot() bool { + if o != nil && !IsNil(o.AsnIsNot) { + return true + } + + return false +} + +// SetAsnIsNot gets a reference to the given []string and assigns it to the AsnIsNot field. +func (o *V2RuleBotChallengeRequest) SetAsnIsNot(v []string) { + o.AsnIsNot = v +} + // GetRobotChallengeType returns the RobotChallengeType field value func (o *V2RuleBotChallengeRequest) GetRobotChallengeType() string { if o == nil { @@ -700,6 +802,15 @@ func (o V2RuleBotChallengeRequest) ToMap() (map[string]interface{}, error) { if !IsNil(o.IpIsNot) { toSerialize["ip_is_not"] = o.IpIsNot } + if !IsNil(o.Asn) { + toSerialize["asn"] = o.Asn + } + if !IsNil(o.AsnIs) { + toSerialize["asn_is"] = o.AsnIs + } + if !IsNil(o.AsnIsNot) { + toSerialize["asn_is_not"] = o.AsnIsNot + } toSerialize["robot_challenge_type"] = o.RobotChallengeType if !IsNil(o.RobotChallengeVerificationTtl) { toSerialize["robot_challenge_verification_ttl"] = o.RobotChallengeVerificationTtl @@ -767,6 +878,9 @@ func (o *V2RuleBotChallengeRequest) UnmarshalJSON(data []byte) (err error) { delete(additionalProperties, "ip") delete(additionalProperties, "ip_is") delete(additionalProperties, "ip_is_not") + delete(additionalProperties, "asn") + delete(additionalProperties, "asn_is") + delete(additionalProperties, "asn_is_not") delete(additionalProperties, "robot_challenge_type") delete(additionalProperties, "robot_challenge_verification_ttl") delete(additionalProperties, "robot_challenge_challenge_ttl") diff --git a/model_v2_rule_content_filter.go b/model_v2_rule_content_filter.go index 0cf7f9a..1b9a838 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.13.0 +API version: 4.14.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -48,6 +48,12 @@ type V2RuleContentFilter struct { IpIs []string `json:"ip_is,omitempty"` // Excluded IP addresses IpIsNot []string `json:"ip_is_not,omitempty"` + // ASN filter type (asn_is, asn_is_not, any) + Asn *string `json:"asn,omitempty"` + // Allowed AS numbers + AsnIs []string `json:"asn_is,omitempty"` + // Excluded AS numbers + AsnIsNot []string `json:"asn_is_not,omitempty"` // Country code Country *string `json:"country,omitempty"` // Allowed countries @@ -521,6 +527,102 @@ func (o *V2RuleContentFilter) SetIpIsNot(v []string) { o.IpIsNot = v } +// GetAsn returns the Asn field value if set, zero value otherwise. +func (o *V2RuleContentFilter) GetAsn() string { + if o == nil || IsNil(o.Asn) { + var ret string + return ret + } + return *o.Asn +} + +// GetAsnOk returns a tuple with the Asn field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V2RuleContentFilter) GetAsnOk() (*string, bool) { + if o == nil || IsNil(o.Asn) { + return nil, false + } + return o.Asn, true +} + +// HasAsn returns a boolean if a field has been set. +func (o *V2RuleContentFilter) HasAsn() bool { + if o != nil && !IsNil(o.Asn) { + return true + } + + return false +} + +// SetAsn gets a reference to the given string and assigns it to the Asn field. +func (o *V2RuleContentFilter) SetAsn(v string) { + o.Asn = &v +} + +// GetAsnIs returns the AsnIs field value if set, zero value otherwise. +func (o *V2RuleContentFilter) GetAsnIs() []string { + if o == nil || IsNil(o.AsnIs) { + var ret []string + return ret + } + return o.AsnIs +} + +// GetAsnIsOk returns a tuple with the AsnIs field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V2RuleContentFilter) GetAsnIsOk() ([]string, bool) { + if o == nil || IsNil(o.AsnIs) { + return nil, false + } + return o.AsnIs, true +} + +// HasAsnIs returns a boolean if a field has been set. +func (o *V2RuleContentFilter) HasAsnIs() bool { + if o != nil && !IsNil(o.AsnIs) { + return true + } + + return false +} + +// SetAsnIs gets a reference to the given []string and assigns it to the AsnIs field. +func (o *V2RuleContentFilter) SetAsnIs(v []string) { + o.AsnIs = v +} + +// GetAsnIsNot returns the AsnIsNot field value if set, zero value otherwise. +func (o *V2RuleContentFilter) GetAsnIsNot() []string { + if o == nil || IsNil(o.AsnIsNot) { + var ret []string + return ret + } + return o.AsnIsNot +} + +// GetAsnIsNotOk returns a tuple with the AsnIsNot field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V2RuleContentFilter) GetAsnIsNotOk() ([]string, bool) { + if o == nil || IsNil(o.AsnIsNot) { + return nil, false + } + return o.AsnIsNot, true +} + +// HasAsnIsNot returns a boolean if a field has been set. +func (o *V2RuleContentFilter) HasAsnIsNot() bool { + if o != nil && !IsNil(o.AsnIsNot) { + return true + } + + return false +} + +// SetAsnIsNot gets a reference to the given []string and assigns it to the AsnIsNot field. +func (o *V2RuleContentFilter) SetAsnIsNot(v []string) { + o.AsnIsNot = v +} + // GetCountry returns the Country field value if set, zero value otherwise. func (o *V2RuleContentFilter) GetCountry() string { if o == nil || IsNil(o.Country) { @@ -713,6 +815,15 @@ func (o V2RuleContentFilter) ToMap() (map[string]interface{}, error) { if !IsNil(o.IpIsNot) { toSerialize["ip_is_not"] = o.IpIsNot } + if !IsNil(o.Asn) { + toSerialize["asn"] = o.Asn + } + if !IsNil(o.AsnIs) { + toSerialize["asn_is"] = o.AsnIs + } + if !IsNil(o.AsnIsNot) { + toSerialize["asn_is_not"] = o.AsnIsNot + } if !IsNil(o.Country) { toSerialize["country"] = o.Country } @@ -784,6 +895,9 @@ func (o *V2RuleContentFilter) UnmarshalJSON(data []byte) (err error) { delete(additionalProperties, "ip") delete(additionalProperties, "ip_is") delete(additionalProperties, "ip_is_not") + delete(additionalProperties, "asn") + delete(additionalProperties, "asn_is") + delete(additionalProperties, "asn_is_not") delete(additionalProperties, "country") delete(additionalProperties, "country_is") delete(additionalProperties, "country_is_not") diff --git a/model_v2_rule_content_filter_action.go b/model_v2_rule_content_filter_action.go index a3a43e0..a536af3 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.13.0 +API version: 4.14.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 19093e4..5e8ac50 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.13.0 +API version: 4.14.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -50,6 +50,12 @@ type V2RuleContentFilterRequest struct { IpIs []string `json:"ip_is,omitempty"` // Excluded IP addresses IpIsNot []string `json:"ip_is_not,omitempty"` + // ASN filter type (asn_is, asn_is_not, any) + Asn *string `json:"asn,omitempty"` + // Allowed AS numbers + AsnIs []string `json:"asn_is,omitempty"` + // Excluded AS numbers + AsnIsNot []string `json:"asn_is_not,omitempty"` // Function UUID FnUuid string `json:"fn_uuid"` AdditionalProperties map[string]interface{} @@ -549,6 +555,102 @@ func (o *V2RuleContentFilterRequest) SetIpIsNot(v []string) { o.IpIsNot = v } +// GetAsn returns the Asn field value if set, zero value otherwise. +func (o *V2RuleContentFilterRequest) GetAsn() string { + if o == nil || IsNil(o.Asn) { + var ret string + return ret + } + return *o.Asn +} + +// GetAsnOk returns a tuple with the Asn field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V2RuleContentFilterRequest) GetAsnOk() (*string, bool) { + if o == nil || IsNil(o.Asn) { + return nil, false + } + return o.Asn, true +} + +// HasAsn returns a boolean if a field has been set. +func (o *V2RuleContentFilterRequest) HasAsn() bool { + if o != nil && !IsNil(o.Asn) { + return true + } + + return false +} + +// SetAsn gets a reference to the given string and assigns it to the Asn field. +func (o *V2RuleContentFilterRequest) SetAsn(v string) { + o.Asn = &v +} + +// GetAsnIs returns the AsnIs field value if set, zero value otherwise. +func (o *V2RuleContentFilterRequest) GetAsnIs() []string { + if o == nil || IsNil(o.AsnIs) { + var ret []string + return ret + } + return o.AsnIs +} + +// GetAsnIsOk returns a tuple with the AsnIs field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V2RuleContentFilterRequest) GetAsnIsOk() ([]string, bool) { + if o == nil || IsNil(o.AsnIs) { + return nil, false + } + return o.AsnIs, true +} + +// HasAsnIs returns a boolean if a field has been set. +func (o *V2RuleContentFilterRequest) HasAsnIs() bool { + if o != nil && !IsNil(o.AsnIs) { + return true + } + + return false +} + +// SetAsnIs gets a reference to the given []string and assigns it to the AsnIs field. +func (o *V2RuleContentFilterRequest) SetAsnIs(v []string) { + o.AsnIs = v +} + +// GetAsnIsNot returns the AsnIsNot field value if set, zero value otherwise. +func (o *V2RuleContentFilterRequest) GetAsnIsNot() []string { + if o == nil || IsNil(o.AsnIsNot) { + var ret []string + return ret + } + return o.AsnIsNot +} + +// GetAsnIsNotOk returns a tuple with the AsnIsNot field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V2RuleContentFilterRequest) GetAsnIsNotOk() ([]string, bool) { + if o == nil || IsNil(o.AsnIsNot) { + return nil, false + } + return o.AsnIsNot, true +} + +// HasAsnIsNot returns a boolean if a field has been set. +func (o *V2RuleContentFilterRequest) HasAsnIsNot() bool { + if o != nil && !IsNil(o.AsnIsNot) { + return true + } + + return false +} + +// SetAsnIsNot gets a reference to the given []string and assigns it to the AsnIsNot field. +func (o *V2RuleContentFilterRequest) SetAsnIsNot(v []string) { + o.AsnIsNot = v +} + // GetFnUuid returns the FnUuid field value func (o *V2RuleContentFilterRequest) GetFnUuid() string { if o == nil { @@ -624,6 +726,15 @@ func (o V2RuleContentFilterRequest) ToMap() (map[string]interface{}, error) { if !IsNil(o.IpIsNot) { toSerialize["ip_is_not"] = o.IpIsNot } + if !IsNil(o.Asn) { + toSerialize["asn"] = o.Asn + } + if !IsNil(o.AsnIs) { + toSerialize["asn_is"] = o.AsnIs + } + if !IsNil(o.AsnIsNot) { + toSerialize["asn_is_not"] = o.AsnIsNot + } toSerialize["fn_uuid"] = o.FnUuid for key, value := range o.AdditionalProperties { @@ -685,6 +796,9 @@ func (o *V2RuleContentFilterRequest) UnmarshalJSON(data []byte) (err error) { delete(additionalProperties, "ip") delete(additionalProperties, "ip_is") delete(additionalProperties, "ip_is_not") + delete(additionalProperties, "asn") + delete(additionalProperties, "asn_is") + delete(additionalProperties, "asn_is_not") delete(additionalProperties, "fn_uuid") o.AdditionalProperties = additionalProperties } diff --git a/model_v2_rule_custom_response.go b/model_v2_rule_custom_response.go index e9ae32d..36105e6 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.13.0 +API version: 4.14.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -48,6 +48,12 @@ type V2RuleCustomResponse struct { IpIs []string `json:"ip_is,omitempty"` // Excluded IP addresses IpIsNot []string `json:"ip_is_not,omitempty"` + // ASN filter type (asn_is, asn_is_not, any) + Asn *string `json:"asn,omitempty"` + // Allowed AS numbers + AsnIs []string `json:"asn_is,omitempty"` + // Excluded AS numbers + AsnIsNot []string `json:"asn_is_not,omitempty"` // Country code Country *string `json:"country,omitempty"` // Allowed countries @@ -520,6 +526,102 @@ func (o *V2RuleCustomResponse) SetIpIsNot(v []string) { o.IpIsNot = v } +// GetAsn returns the Asn field value if set, zero value otherwise. +func (o *V2RuleCustomResponse) GetAsn() string { + if o == nil || IsNil(o.Asn) { + var ret string + return ret + } + return *o.Asn +} + +// GetAsnOk returns a tuple with the Asn field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V2RuleCustomResponse) GetAsnOk() (*string, bool) { + if o == nil || IsNil(o.Asn) { + return nil, false + } + return o.Asn, true +} + +// HasAsn returns a boolean if a field has been set. +func (o *V2RuleCustomResponse) HasAsn() bool { + if o != nil && !IsNil(o.Asn) { + return true + } + + return false +} + +// SetAsn gets a reference to the given string and assigns it to the Asn field. +func (o *V2RuleCustomResponse) SetAsn(v string) { + o.Asn = &v +} + +// GetAsnIs returns the AsnIs field value if set, zero value otherwise. +func (o *V2RuleCustomResponse) GetAsnIs() []string { + if o == nil || IsNil(o.AsnIs) { + var ret []string + return ret + } + return o.AsnIs +} + +// GetAsnIsOk returns a tuple with the AsnIs field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V2RuleCustomResponse) GetAsnIsOk() ([]string, bool) { + if o == nil || IsNil(o.AsnIs) { + return nil, false + } + return o.AsnIs, true +} + +// HasAsnIs returns a boolean if a field has been set. +func (o *V2RuleCustomResponse) HasAsnIs() bool { + if o != nil && !IsNil(o.AsnIs) { + return true + } + + return false +} + +// SetAsnIs gets a reference to the given []string and assigns it to the AsnIs field. +func (o *V2RuleCustomResponse) SetAsnIs(v []string) { + o.AsnIs = v +} + +// GetAsnIsNot returns the AsnIsNot field value if set, zero value otherwise. +func (o *V2RuleCustomResponse) GetAsnIsNot() []string { + if o == nil || IsNil(o.AsnIsNot) { + var ret []string + return ret + } + return o.AsnIsNot +} + +// GetAsnIsNotOk returns a tuple with the AsnIsNot field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V2RuleCustomResponse) GetAsnIsNotOk() ([]string, bool) { + if o == nil || IsNil(o.AsnIsNot) { + return nil, false + } + return o.AsnIsNot, true +} + +// HasAsnIsNot returns a boolean if a field has been set. +func (o *V2RuleCustomResponse) HasAsnIsNot() bool { + if o != nil && !IsNil(o.AsnIsNot) { + return true + } + + return false +} + +// SetAsnIsNot gets a reference to the given []string and assigns it to the AsnIsNot field. +func (o *V2RuleCustomResponse) SetAsnIsNot(v []string) { + o.AsnIsNot = v +} + // GetCountry returns the Country field value if set, zero value otherwise. func (o *V2RuleCustomResponse) GetCountry() string { if o == nil || IsNil(o.Country) { @@ -720,6 +822,15 @@ func (o V2RuleCustomResponse) ToMap() (map[string]interface{}, error) { if !IsNil(o.IpIsNot) { toSerialize["ip_is_not"] = o.IpIsNot } + if !IsNil(o.Asn) { + toSerialize["asn"] = o.Asn + } + if !IsNil(o.AsnIs) { + toSerialize["asn_is"] = o.AsnIs + } + if !IsNil(o.AsnIsNot) { + toSerialize["asn_is_not"] = o.AsnIsNot + } if !IsNil(o.Country) { toSerialize["country"] = o.Country } @@ -792,6 +903,9 @@ func (o *V2RuleCustomResponse) UnmarshalJSON(data []byte) (err error) { delete(additionalProperties, "ip") delete(additionalProperties, "ip_is") delete(additionalProperties, "ip_is_not") + delete(additionalProperties, "asn") + delete(additionalProperties, "asn_is") + delete(additionalProperties, "asn_is_not") delete(additionalProperties, "country") delete(additionalProperties, "country_is") delete(additionalProperties, "country_is_not") diff --git a/model_v2_rule_custom_response_action.go b/model_v2_rule_custom_response_action.go index 71147ce..c791463 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.13.0 +API version: 4.14.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 2869954..a836f30 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.13.0 +API version: 4.14.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -50,6 +50,12 @@ type V2RuleCustomResponseRequest struct { IpIs []string `json:"ip_is,omitempty"` // Excluded IP addresses IpIsNot []string `json:"ip_is_not,omitempty"` + // ASN filter type (asn_is, asn_is_not, any) + Asn *string `json:"asn,omitempty"` + // Allowed AS numbers + AsnIs []string `json:"asn_is,omitempty"` + // Excluded AS numbers + AsnIsNot []string `json:"asn_is_not,omitempty"` // Custom response body content CustomResponseBody string `json:"custom_response_body"` // HTTP status code for custom response @@ -559,6 +565,102 @@ func (o *V2RuleCustomResponseRequest) SetIpIsNot(v []string) { o.IpIsNot = v } +// GetAsn returns the Asn field value if set, zero value otherwise. +func (o *V2RuleCustomResponseRequest) GetAsn() string { + if o == nil || IsNil(o.Asn) { + var ret string + return ret + } + return *o.Asn +} + +// GetAsnOk returns a tuple with the Asn field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V2RuleCustomResponseRequest) GetAsnOk() (*string, bool) { + if o == nil || IsNil(o.Asn) { + return nil, false + } + return o.Asn, true +} + +// HasAsn returns a boolean if a field has been set. +func (o *V2RuleCustomResponseRequest) HasAsn() bool { + if o != nil && !IsNil(o.Asn) { + return true + } + + return false +} + +// SetAsn gets a reference to the given string and assigns it to the Asn field. +func (o *V2RuleCustomResponseRequest) SetAsn(v string) { + o.Asn = &v +} + +// GetAsnIs returns the AsnIs field value if set, zero value otherwise. +func (o *V2RuleCustomResponseRequest) GetAsnIs() []string { + if o == nil || IsNil(o.AsnIs) { + var ret []string + return ret + } + return o.AsnIs +} + +// GetAsnIsOk returns a tuple with the AsnIs field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V2RuleCustomResponseRequest) GetAsnIsOk() ([]string, bool) { + if o == nil || IsNil(o.AsnIs) { + return nil, false + } + return o.AsnIs, true +} + +// HasAsnIs returns a boolean if a field has been set. +func (o *V2RuleCustomResponseRequest) HasAsnIs() bool { + if o != nil && !IsNil(o.AsnIs) { + return true + } + + return false +} + +// SetAsnIs gets a reference to the given []string and assigns it to the AsnIs field. +func (o *V2RuleCustomResponseRequest) SetAsnIs(v []string) { + o.AsnIs = v +} + +// GetAsnIsNot returns the AsnIsNot field value if set, zero value otherwise. +func (o *V2RuleCustomResponseRequest) GetAsnIsNot() []string { + if o == nil || IsNil(o.AsnIsNot) { + var ret []string + return ret + } + return o.AsnIsNot +} + +// GetAsnIsNotOk returns a tuple with the AsnIsNot field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V2RuleCustomResponseRequest) GetAsnIsNotOk() ([]string, bool) { + if o == nil || IsNil(o.AsnIsNot) { + return nil, false + } + return o.AsnIsNot, true +} + +// HasAsnIsNot returns a boolean if a field has been set. +func (o *V2RuleCustomResponseRequest) HasAsnIsNot() bool { + if o != nil && !IsNil(o.AsnIsNot) { + return true + } + + return false +} + +// SetAsnIsNot gets a reference to the given []string and assigns it to the AsnIsNot field. +func (o *V2RuleCustomResponseRequest) SetAsnIsNot(v []string) { + o.AsnIsNot = v +} + // GetCustomResponseBody returns the CustomResponseBody field value func (o *V2RuleCustomResponseRequest) GetCustomResponseBody() string { if o == nil { @@ -730,6 +832,15 @@ func (o V2RuleCustomResponseRequest) ToMap() (map[string]interface{}, error) { if !IsNil(o.IpIsNot) { toSerialize["ip_is_not"] = o.IpIsNot } + if !IsNil(o.Asn) { + toSerialize["asn"] = o.Asn + } + if !IsNil(o.AsnIs) { + toSerialize["asn_is"] = o.AsnIs + } + if !IsNil(o.AsnIsNot) { + toSerialize["asn_is_not"] = o.AsnIsNot + } toSerialize["custom_response_body"] = o.CustomResponseBody if !IsNil(o.CustomResponseStatusCode) { toSerialize["custom_response_status_code"] = o.CustomResponseStatusCode @@ -800,6 +911,9 @@ func (o *V2RuleCustomResponseRequest) UnmarshalJSON(data []byte) (err error) { delete(additionalProperties, "ip") delete(additionalProperties, "ip_is") delete(additionalProperties, "ip_is_not") + delete(additionalProperties, "asn") + delete(additionalProperties, "asn_is") + delete(additionalProperties, "asn_is_not") delete(additionalProperties, "custom_response_body") delete(additionalProperties, "custom_response_status_code") delete(additionalProperties, "status_code") diff --git a/model_v2_rule_function.go b/model_v2_rule_function.go index 8baceaa..a9bd1fd 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.13.0 +API version: 4.14.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -48,6 +48,12 @@ type V2RuleFunction struct { IpIs []string `json:"ip_is,omitempty"` // Excluded IP addresses IpIsNot []string `json:"ip_is_not,omitempty"` + // ASN filter type (asn_is, asn_is_not, any) + Asn *string `json:"asn,omitempty"` + // Allowed AS numbers + AsnIs []string `json:"asn_is,omitempty"` + // Excluded AS numbers + AsnIsNot []string `json:"asn_is_not,omitempty"` // Country code Country *string `json:"country,omitempty"` // Allowed countries @@ -521,6 +527,102 @@ func (o *V2RuleFunction) SetIpIsNot(v []string) { o.IpIsNot = v } +// GetAsn returns the Asn field value if set, zero value otherwise. +func (o *V2RuleFunction) GetAsn() string { + if o == nil || IsNil(o.Asn) { + var ret string + return ret + } + return *o.Asn +} + +// GetAsnOk returns a tuple with the Asn field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V2RuleFunction) GetAsnOk() (*string, bool) { + if o == nil || IsNil(o.Asn) { + return nil, false + } + return o.Asn, true +} + +// HasAsn returns a boolean if a field has been set. +func (o *V2RuleFunction) HasAsn() bool { + if o != nil && !IsNil(o.Asn) { + return true + } + + return false +} + +// SetAsn gets a reference to the given string and assigns it to the Asn field. +func (o *V2RuleFunction) SetAsn(v string) { + o.Asn = &v +} + +// GetAsnIs returns the AsnIs field value if set, zero value otherwise. +func (o *V2RuleFunction) GetAsnIs() []string { + if o == nil || IsNil(o.AsnIs) { + var ret []string + return ret + } + return o.AsnIs +} + +// GetAsnIsOk returns a tuple with the AsnIs field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V2RuleFunction) GetAsnIsOk() ([]string, bool) { + if o == nil || IsNil(o.AsnIs) { + return nil, false + } + return o.AsnIs, true +} + +// HasAsnIs returns a boolean if a field has been set. +func (o *V2RuleFunction) HasAsnIs() bool { + if o != nil && !IsNil(o.AsnIs) { + return true + } + + return false +} + +// SetAsnIs gets a reference to the given []string and assigns it to the AsnIs field. +func (o *V2RuleFunction) SetAsnIs(v []string) { + o.AsnIs = v +} + +// GetAsnIsNot returns the AsnIsNot field value if set, zero value otherwise. +func (o *V2RuleFunction) GetAsnIsNot() []string { + if o == nil || IsNil(o.AsnIsNot) { + var ret []string + return ret + } + return o.AsnIsNot +} + +// GetAsnIsNotOk returns a tuple with the AsnIsNot field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V2RuleFunction) GetAsnIsNotOk() ([]string, bool) { + if o == nil || IsNil(o.AsnIsNot) { + return nil, false + } + return o.AsnIsNot, true +} + +// HasAsnIsNot returns a boolean if a field has been set. +func (o *V2RuleFunction) HasAsnIsNot() bool { + if o != nil && !IsNil(o.AsnIsNot) { + return true + } + + return false +} + +// SetAsnIsNot gets a reference to the given []string and assigns it to the AsnIsNot field. +func (o *V2RuleFunction) SetAsnIsNot(v []string) { + o.AsnIsNot = v +} + // GetCountry returns the Country field value if set, zero value otherwise. func (o *V2RuleFunction) GetCountry() string { if o == nil || IsNil(o.Country) { @@ -713,6 +815,15 @@ func (o V2RuleFunction) ToMap() (map[string]interface{}, error) { if !IsNil(o.IpIsNot) { toSerialize["ip_is_not"] = o.IpIsNot } + if !IsNil(o.Asn) { + toSerialize["asn"] = o.Asn + } + if !IsNil(o.AsnIs) { + toSerialize["asn_is"] = o.AsnIs + } + if !IsNil(o.AsnIsNot) { + toSerialize["asn_is_not"] = o.AsnIsNot + } if !IsNil(o.Country) { toSerialize["country"] = o.Country } @@ -784,6 +895,9 @@ func (o *V2RuleFunction) UnmarshalJSON(data []byte) (err error) { delete(additionalProperties, "ip") delete(additionalProperties, "ip_is") delete(additionalProperties, "ip_is_not") + delete(additionalProperties, "asn") + delete(additionalProperties, "asn_is") + delete(additionalProperties, "asn_is_not") delete(additionalProperties, "country") delete(additionalProperties, "country_is") delete(additionalProperties, "country_is_not") diff --git a/model_v2_rule_function_action.go b/model_v2_rule_function_action.go index 16d2302..0fa8070 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.13.0 +API version: 4.14.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 033622c..5c4b7c5 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.13.0 +API version: 4.14.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -50,6 +50,12 @@ type V2RuleFunctionRequest struct { IpIs []string `json:"ip_is,omitempty"` // Excluded IP addresses IpIsNot []string `json:"ip_is_not,omitempty"` + // ASN filter type (asn_is, asn_is_not, any) + Asn *string `json:"asn,omitempty"` + // Allowed AS numbers + AsnIs []string `json:"asn_is,omitempty"` + // Excluded AS numbers + AsnIsNot []string `json:"asn_is_not,omitempty"` // Function UUID FnUuid string `json:"fn_uuid"` AdditionalProperties map[string]interface{} @@ -549,6 +555,102 @@ func (o *V2RuleFunctionRequest) SetIpIsNot(v []string) { o.IpIsNot = v } +// GetAsn returns the Asn field value if set, zero value otherwise. +func (o *V2RuleFunctionRequest) GetAsn() string { + if o == nil || IsNil(o.Asn) { + var ret string + return ret + } + return *o.Asn +} + +// GetAsnOk returns a tuple with the Asn field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V2RuleFunctionRequest) GetAsnOk() (*string, bool) { + if o == nil || IsNil(o.Asn) { + return nil, false + } + return o.Asn, true +} + +// HasAsn returns a boolean if a field has been set. +func (o *V2RuleFunctionRequest) HasAsn() bool { + if o != nil && !IsNil(o.Asn) { + return true + } + + return false +} + +// SetAsn gets a reference to the given string and assigns it to the Asn field. +func (o *V2RuleFunctionRequest) SetAsn(v string) { + o.Asn = &v +} + +// GetAsnIs returns the AsnIs field value if set, zero value otherwise. +func (o *V2RuleFunctionRequest) GetAsnIs() []string { + if o == nil || IsNil(o.AsnIs) { + var ret []string + return ret + } + return o.AsnIs +} + +// GetAsnIsOk returns a tuple with the AsnIs field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V2RuleFunctionRequest) GetAsnIsOk() ([]string, bool) { + if o == nil || IsNil(o.AsnIs) { + return nil, false + } + return o.AsnIs, true +} + +// HasAsnIs returns a boolean if a field has been set. +func (o *V2RuleFunctionRequest) HasAsnIs() bool { + if o != nil && !IsNil(o.AsnIs) { + return true + } + + return false +} + +// SetAsnIs gets a reference to the given []string and assigns it to the AsnIs field. +func (o *V2RuleFunctionRequest) SetAsnIs(v []string) { + o.AsnIs = v +} + +// GetAsnIsNot returns the AsnIsNot field value if set, zero value otherwise. +func (o *V2RuleFunctionRequest) GetAsnIsNot() []string { + if o == nil || IsNil(o.AsnIsNot) { + var ret []string + return ret + } + return o.AsnIsNot +} + +// GetAsnIsNotOk returns a tuple with the AsnIsNot field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V2RuleFunctionRequest) GetAsnIsNotOk() ([]string, bool) { + if o == nil || IsNil(o.AsnIsNot) { + return nil, false + } + return o.AsnIsNot, true +} + +// HasAsnIsNot returns a boolean if a field has been set. +func (o *V2RuleFunctionRequest) HasAsnIsNot() bool { + if o != nil && !IsNil(o.AsnIsNot) { + return true + } + + return false +} + +// SetAsnIsNot gets a reference to the given []string and assigns it to the AsnIsNot field. +func (o *V2RuleFunctionRequest) SetAsnIsNot(v []string) { + o.AsnIsNot = v +} + // GetFnUuid returns the FnUuid field value func (o *V2RuleFunctionRequest) GetFnUuid() string { if o == nil { @@ -624,6 +726,15 @@ func (o V2RuleFunctionRequest) ToMap() (map[string]interface{}, error) { if !IsNil(o.IpIsNot) { toSerialize["ip_is_not"] = o.IpIsNot } + if !IsNil(o.Asn) { + toSerialize["asn"] = o.Asn + } + if !IsNil(o.AsnIs) { + toSerialize["asn_is"] = o.AsnIs + } + if !IsNil(o.AsnIsNot) { + toSerialize["asn_is_not"] = o.AsnIsNot + } toSerialize["fn_uuid"] = o.FnUuid for key, value := range o.AdditionalProperties { @@ -685,6 +796,9 @@ func (o *V2RuleFunctionRequest) UnmarshalJSON(data []byte) (err error) { delete(additionalProperties, "ip") delete(additionalProperties, "ip_is") delete(additionalProperties, "ip_is_not") + delete(additionalProperties, "asn") + delete(additionalProperties, "asn_is") + delete(additionalProperties, "asn_is_not") delete(additionalProperties, "fn_uuid") o.AdditionalProperties = additionalProperties } diff --git a/model_v2_rule_header.go b/model_v2_rule_header.go index 8dec21c..485b772 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.13.0 +API version: 4.14.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -48,6 +48,12 @@ type V2RuleHeader struct { IpIs []string `json:"ip_is,omitempty"` // Excluded IP addresses IpIsNot []string `json:"ip_is_not,omitempty"` + // ASN filter type (asn_is, asn_is_not, any) + Asn *string `json:"asn,omitempty"` + // Allowed AS numbers + AsnIs []string `json:"asn_is,omitempty"` + // Excluded AS numbers + AsnIsNot []string `json:"asn_is_not,omitempty"` // Country code Country *string `json:"country,omitempty"` // Allowed countries @@ -521,6 +527,102 @@ func (o *V2RuleHeader) SetIpIsNot(v []string) { o.IpIsNot = v } +// GetAsn returns the Asn field value if set, zero value otherwise. +func (o *V2RuleHeader) GetAsn() string { + if o == nil || IsNil(o.Asn) { + var ret string + return ret + } + return *o.Asn +} + +// GetAsnOk returns a tuple with the Asn field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V2RuleHeader) GetAsnOk() (*string, bool) { + if o == nil || IsNil(o.Asn) { + return nil, false + } + return o.Asn, true +} + +// HasAsn returns a boolean if a field has been set. +func (o *V2RuleHeader) HasAsn() bool { + if o != nil && !IsNil(o.Asn) { + return true + } + + return false +} + +// SetAsn gets a reference to the given string and assigns it to the Asn field. +func (o *V2RuleHeader) SetAsn(v string) { + o.Asn = &v +} + +// GetAsnIs returns the AsnIs field value if set, zero value otherwise. +func (o *V2RuleHeader) GetAsnIs() []string { + if o == nil || IsNil(o.AsnIs) { + var ret []string + return ret + } + return o.AsnIs +} + +// GetAsnIsOk returns a tuple with the AsnIs field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V2RuleHeader) GetAsnIsOk() ([]string, bool) { + if o == nil || IsNil(o.AsnIs) { + return nil, false + } + return o.AsnIs, true +} + +// HasAsnIs returns a boolean if a field has been set. +func (o *V2RuleHeader) HasAsnIs() bool { + if o != nil && !IsNil(o.AsnIs) { + return true + } + + return false +} + +// SetAsnIs gets a reference to the given []string and assigns it to the AsnIs field. +func (o *V2RuleHeader) SetAsnIs(v []string) { + o.AsnIs = v +} + +// GetAsnIsNot returns the AsnIsNot field value if set, zero value otherwise. +func (o *V2RuleHeader) GetAsnIsNot() []string { + if o == nil || IsNil(o.AsnIsNot) { + var ret []string + return ret + } + return o.AsnIsNot +} + +// GetAsnIsNotOk returns a tuple with the AsnIsNot field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V2RuleHeader) GetAsnIsNotOk() ([]string, bool) { + if o == nil || IsNil(o.AsnIsNot) { + return nil, false + } + return o.AsnIsNot, true +} + +// HasAsnIsNot returns a boolean if a field has been set. +func (o *V2RuleHeader) HasAsnIsNot() bool { + if o != nil && !IsNil(o.AsnIsNot) { + return true + } + + return false +} + +// SetAsnIsNot gets a reference to the given []string and assigns it to the AsnIsNot field. +func (o *V2RuleHeader) SetAsnIsNot(v []string) { + o.AsnIsNot = v +} + // GetCountry returns the Country field value if set, zero value otherwise. func (o *V2RuleHeader) GetCountry() string { if o == nil || IsNil(o.Country) { @@ -713,6 +815,15 @@ func (o V2RuleHeader) ToMap() (map[string]interface{}, error) { if !IsNil(o.IpIsNot) { toSerialize["ip_is_not"] = o.IpIsNot } + if !IsNil(o.Asn) { + toSerialize["asn"] = o.Asn + } + if !IsNil(o.AsnIs) { + toSerialize["asn_is"] = o.AsnIs + } + if !IsNil(o.AsnIsNot) { + toSerialize["asn_is_not"] = o.AsnIsNot + } if !IsNil(o.Country) { toSerialize["country"] = o.Country } @@ -784,6 +895,9 @@ func (o *V2RuleHeader) UnmarshalJSON(data []byte) (err error) { delete(additionalProperties, "ip") delete(additionalProperties, "ip_is") delete(additionalProperties, "ip_is_not") + delete(additionalProperties, "asn") + delete(additionalProperties, "asn_is") + delete(additionalProperties, "asn_is_not") delete(additionalProperties, "country") delete(additionalProperties, "country_is") delete(additionalProperties, "country_is_not") diff --git a/model_v2_rule_header_action.go b/model_v2_rule_header_action.go index 8e0f1cf..7b834a6 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.13.0 +API version: 4.14.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 83935a4..173bd40 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.13.0 +API version: 4.14.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -50,6 +50,12 @@ type V2RuleHeaderRequest struct { IpIs []string `json:"ip_is,omitempty"` // Excluded IP addresses IpIsNot []string `json:"ip_is_not,omitempty"` + // ASN filter type (asn_is, asn_is_not, any) + Asn *string `json:"asn,omitempty"` + // Allowed AS numbers + AsnIs []string `json:"asn_is,omitempty"` + // Excluded AS numbers + AsnIsNot []string `json:"asn_is_not,omitempty"` // Headers to set Headers map[string]string `json:"headers"` AdditionalProperties map[string]interface{} @@ -549,6 +555,102 @@ func (o *V2RuleHeaderRequest) SetIpIsNot(v []string) { o.IpIsNot = v } +// GetAsn returns the Asn field value if set, zero value otherwise. +func (o *V2RuleHeaderRequest) GetAsn() string { + if o == nil || IsNil(o.Asn) { + var ret string + return ret + } + return *o.Asn +} + +// GetAsnOk returns a tuple with the Asn field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V2RuleHeaderRequest) GetAsnOk() (*string, bool) { + if o == nil || IsNil(o.Asn) { + return nil, false + } + return o.Asn, true +} + +// HasAsn returns a boolean if a field has been set. +func (o *V2RuleHeaderRequest) HasAsn() bool { + if o != nil && !IsNil(o.Asn) { + return true + } + + return false +} + +// SetAsn gets a reference to the given string and assigns it to the Asn field. +func (o *V2RuleHeaderRequest) SetAsn(v string) { + o.Asn = &v +} + +// GetAsnIs returns the AsnIs field value if set, zero value otherwise. +func (o *V2RuleHeaderRequest) GetAsnIs() []string { + if o == nil || IsNil(o.AsnIs) { + var ret []string + return ret + } + return o.AsnIs +} + +// GetAsnIsOk returns a tuple with the AsnIs field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V2RuleHeaderRequest) GetAsnIsOk() ([]string, bool) { + if o == nil || IsNil(o.AsnIs) { + return nil, false + } + return o.AsnIs, true +} + +// HasAsnIs returns a boolean if a field has been set. +func (o *V2RuleHeaderRequest) HasAsnIs() bool { + if o != nil && !IsNil(o.AsnIs) { + return true + } + + return false +} + +// SetAsnIs gets a reference to the given []string and assigns it to the AsnIs field. +func (o *V2RuleHeaderRequest) SetAsnIs(v []string) { + o.AsnIs = v +} + +// GetAsnIsNot returns the AsnIsNot field value if set, zero value otherwise. +func (o *V2RuleHeaderRequest) GetAsnIsNot() []string { + if o == nil || IsNil(o.AsnIsNot) { + var ret []string + return ret + } + return o.AsnIsNot +} + +// GetAsnIsNotOk returns a tuple with the AsnIsNot field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V2RuleHeaderRequest) GetAsnIsNotOk() ([]string, bool) { + if o == nil || IsNil(o.AsnIsNot) { + return nil, false + } + return o.AsnIsNot, true +} + +// HasAsnIsNot returns a boolean if a field has been set. +func (o *V2RuleHeaderRequest) HasAsnIsNot() bool { + if o != nil && !IsNil(o.AsnIsNot) { + return true + } + + return false +} + +// SetAsnIsNot gets a reference to the given []string and assigns it to the AsnIsNot field. +func (o *V2RuleHeaderRequest) SetAsnIsNot(v []string) { + o.AsnIsNot = v +} + // GetHeaders returns the Headers field value func (o *V2RuleHeaderRequest) GetHeaders() map[string]string { if o == nil { @@ -624,6 +726,15 @@ func (o V2RuleHeaderRequest) ToMap() (map[string]interface{}, error) { if !IsNil(o.IpIsNot) { toSerialize["ip_is_not"] = o.IpIsNot } + if !IsNil(o.Asn) { + toSerialize["asn"] = o.Asn + } + if !IsNil(o.AsnIs) { + toSerialize["asn_is"] = o.AsnIs + } + if !IsNil(o.AsnIsNot) { + toSerialize["asn_is_not"] = o.AsnIsNot + } toSerialize["headers"] = o.Headers for key, value := range o.AdditionalProperties { @@ -685,6 +796,9 @@ func (o *V2RuleHeaderRequest) UnmarshalJSON(data []byte) (err error) { delete(additionalProperties, "ip") delete(additionalProperties, "ip_is") delete(additionalProperties, "ip_is_not") + delete(additionalProperties, "asn") + delete(additionalProperties, "asn_is") + delete(additionalProperties, "asn_is_not") delete(additionalProperties, "headers") o.AdditionalProperties = additionalProperties } diff --git a/model_v2_rule_proxy.go b/model_v2_rule_proxy.go index 4af1050..d3711d2 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.13.0 +API version: 4.14.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -48,6 +48,12 @@ type V2RuleProxy struct { IpIs []string `json:"ip_is,omitempty"` // Excluded IP addresses IpIsNot []string `json:"ip_is_not,omitempty"` + // ASN filter type (asn_is, asn_is_not, any) + Asn *string `json:"asn,omitempty"` + // Allowed AS numbers + AsnIs []string `json:"asn_is,omitempty"` + // Excluded AS numbers + AsnIsNot []string `json:"asn_is_not,omitempty"` // Country code Country *string `json:"country,omitempty"` // Allowed countries @@ -521,6 +527,102 @@ func (o *V2RuleProxy) SetIpIsNot(v []string) { o.IpIsNot = v } +// GetAsn returns the Asn field value if set, zero value otherwise. +func (o *V2RuleProxy) GetAsn() string { + if o == nil || IsNil(o.Asn) { + var ret string + return ret + } + return *o.Asn +} + +// GetAsnOk returns a tuple with the Asn field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V2RuleProxy) GetAsnOk() (*string, bool) { + if o == nil || IsNil(o.Asn) { + return nil, false + } + return o.Asn, true +} + +// HasAsn returns a boolean if a field has been set. +func (o *V2RuleProxy) HasAsn() bool { + if o != nil && !IsNil(o.Asn) { + return true + } + + return false +} + +// SetAsn gets a reference to the given string and assigns it to the Asn field. +func (o *V2RuleProxy) SetAsn(v string) { + o.Asn = &v +} + +// GetAsnIs returns the AsnIs field value if set, zero value otherwise. +func (o *V2RuleProxy) GetAsnIs() []string { + if o == nil || IsNil(o.AsnIs) { + var ret []string + return ret + } + return o.AsnIs +} + +// GetAsnIsOk returns a tuple with the AsnIs field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V2RuleProxy) GetAsnIsOk() ([]string, bool) { + if o == nil || IsNil(o.AsnIs) { + return nil, false + } + return o.AsnIs, true +} + +// HasAsnIs returns a boolean if a field has been set. +func (o *V2RuleProxy) HasAsnIs() bool { + if o != nil && !IsNil(o.AsnIs) { + return true + } + + return false +} + +// SetAsnIs gets a reference to the given []string and assigns it to the AsnIs field. +func (o *V2RuleProxy) SetAsnIs(v []string) { + o.AsnIs = v +} + +// GetAsnIsNot returns the AsnIsNot field value if set, zero value otherwise. +func (o *V2RuleProxy) GetAsnIsNot() []string { + if o == nil || IsNil(o.AsnIsNot) { + var ret []string + return ret + } + return o.AsnIsNot +} + +// GetAsnIsNotOk returns a tuple with the AsnIsNot field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V2RuleProxy) GetAsnIsNotOk() ([]string, bool) { + if o == nil || IsNil(o.AsnIsNot) { + return nil, false + } + return o.AsnIsNot, true +} + +// HasAsnIsNot returns a boolean if a field has been set. +func (o *V2RuleProxy) HasAsnIsNot() bool { + if o != nil && !IsNil(o.AsnIsNot) { + return true + } + + return false +} + +// SetAsnIsNot gets a reference to the given []string and assigns it to the AsnIsNot field. +func (o *V2RuleProxy) SetAsnIsNot(v []string) { + o.AsnIsNot = v +} + // GetCountry returns the Country field value if set, zero value otherwise. func (o *V2RuleProxy) GetCountry() string { if o == nil || IsNil(o.Country) { @@ -713,6 +815,15 @@ func (o V2RuleProxy) ToMap() (map[string]interface{}, error) { if !IsNil(o.IpIsNot) { toSerialize["ip_is_not"] = o.IpIsNot } + if !IsNil(o.Asn) { + toSerialize["asn"] = o.Asn + } + if !IsNil(o.AsnIs) { + toSerialize["asn_is"] = o.AsnIs + } + if !IsNil(o.AsnIsNot) { + toSerialize["asn_is_not"] = o.AsnIsNot + } if !IsNil(o.Country) { toSerialize["country"] = o.Country } @@ -784,6 +895,9 @@ func (o *V2RuleProxy) UnmarshalJSON(data []byte) (err error) { delete(additionalProperties, "ip") delete(additionalProperties, "ip_is") delete(additionalProperties, "ip_is_not") + delete(additionalProperties, "asn") + delete(additionalProperties, "asn_is") + delete(additionalProperties, "asn_is_not") delete(additionalProperties, "country") delete(additionalProperties, "country_is") delete(additionalProperties, "country_is_not") diff --git a/model_v2_rule_proxy_action.go b/model_v2_rule_proxy_action.go index 5242498..80bb415 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.13.0 +API version: 4.14.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 8e8435e..9a4e4d3 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.13.0 +API version: 4.14.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 dca795d..0ed427a 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.13.0 +API version: 4.14.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 641c5ab..0e42ea3 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.13.0 +API version: 4.14.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -50,6 +50,12 @@ type V2RuleProxyRequest struct { IpIs []string `json:"ip_is,omitempty"` // Excluded IP addresses IpIsNot []string `json:"ip_is_not,omitempty"` + // ASN filter type (asn_is, asn_is_not, any) + Asn *string `json:"asn,omitempty"` + // Allowed AS numbers + AsnIs []string `json:"asn_is,omitempty"` + // Excluded AS numbers + AsnIsNot []string `json:"asn_is_not,omitempty"` // Target URL to proxy to To string `json:"to"` // Host header override @@ -636,6 +642,102 @@ func (o *V2RuleProxyRequest) SetIpIsNot(v []string) { o.IpIsNot = v } +// GetAsn returns the Asn field value if set, zero value otherwise. +func (o *V2RuleProxyRequest) GetAsn() string { + if o == nil || IsNil(o.Asn) { + var ret string + return ret + } + return *o.Asn +} + +// GetAsnOk returns a tuple with the Asn field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V2RuleProxyRequest) GetAsnOk() (*string, bool) { + if o == nil || IsNil(o.Asn) { + return nil, false + } + return o.Asn, true +} + +// HasAsn returns a boolean if a field has been set. +func (o *V2RuleProxyRequest) HasAsn() bool { + if o != nil && !IsNil(o.Asn) { + return true + } + + return false +} + +// SetAsn gets a reference to the given string and assigns it to the Asn field. +func (o *V2RuleProxyRequest) SetAsn(v string) { + o.Asn = &v +} + +// GetAsnIs returns the AsnIs field value if set, zero value otherwise. +func (o *V2RuleProxyRequest) GetAsnIs() []string { + if o == nil || IsNil(o.AsnIs) { + var ret []string + return ret + } + return o.AsnIs +} + +// GetAsnIsOk returns a tuple with the AsnIs field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V2RuleProxyRequest) GetAsnIsOk() ([]string, bool) { + if o == nil || IsNil(o.AsnIs) { + return nil, false + } + return o.AsnIs, true +} + +// HasAsnIs returns a boolean if a field has been set. +func (o *V2RuleProxyRequest) HasAsnIs() bool { + if o != nil && !IsNil(o.AsnIs) { + return true + } + + return false +} + +// SetAsnIs gets a reference to the given []string and assigns it to the AsnIs field. +func (o *V2RuleProxyRequest) SetAsnIs(v []string) { + o.AsnIs = v +} + +// GetAsnIsNot returns the AsnIsNot field value if set, zero value otherwise. +func (o *V2RuleProxyRequest) GetAsnIsNot() []string { + if o == nil || IsNil(o.AsnIsNot) { + var ret []string + return ret + } + return o.AsnIsNot +} + +// GetAsnIsNotOk returns a tuple with the AsnIsNot field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V2RuleProxyRequest) GetAsnIsNotOk() ([]string, bool) { + if o == nil || IsNil(o.AsnIsNot) { + return nil, false + } + return o.AsnIsNot, true +} + +// HasAsnIsNot returns a boolean if a field has been set. +func (o *V2RuleProxyRequest) HasAsnIsNot() bool { + if o != nil && !IsNil(o.AsnIsNot) { + return true + } + + return false +} + +// SetAsnIsNot gets a reference to the given []string and assigns it to the AsnIsNot field. +func (o *V2RuleProxyRequest) SetAsnIsNot(v []string) { + o.AsnIsNot = v +} + // GetTo returns the To field value func (o *V2RuleProxyRequest) GetTo() string { if o == nil { @@ -1510,6 +1612,15 @@ func (o V2RuleProxyRequest) ToMap() (map[string]interface{}, error) { if !IsNil(o.IpIsNot) { toSerialize["ip_is_not"] = o.IpIsNot } + if !IsNil(o.Asn) { + toSerialize["asn"] = o.Asn + } + if !IsNil(o.AsnIs) { + toSerialize["asn_is"] = o.AsnIs + } + if !IsNil(o.AsnIsNot) { + toSerialize["asn_is_not"] = o.AsnIsNot + } toSerialize["to"] = o.To if !IsNil(o.Host) { toSerialize["host"] = o.Host @@ -1643,6 +1754,9 @@ func (o *V2RuleProxyRequest) UnmarshalJSON(data []byte) (err error) { delete(additionalProperties, "ip") delete(additionalProperties, "ip_is") delete(additionalProperties, "ip_is_not") + delete(additionalProperties, "asn") + delete(additionalProperties, "asn_is") + delete(additionalProperties, "asn_is_not") delete(additionalProperties, "to") delete(additionalProperties, "host") delete(additionalProperties, "auth_user") diff --git a/model_v2_rule_redirect.go b/model_v2_rule_redirect.go index 7b6cdba..4031d20 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.13.0 +API version: 4.14.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -48,6 +48,12 @@ type V2RuleRedirect struct { IpIs []string `json:"ip_is,omitempty"` // Excluded IP addresses IpIsNot []string `json:"ip_is_not,omitempty"` + // ASN filter type (asn_is, asn_is_not, any) + Asn *string `json:"asn,omitempty"` + // Allowed AS numbers + AsnIs []string `json:"asn_is,omitempty"` + // Excluded AS numbers + AsnIsNot []string `json:"asn_is_not,omitempty"` // Country code Country *string `json:"country,omitempty"` // Allowed countries @@ -520,6 +526,102 @@ func (o *V2RuleRedirect) SetIpIsNot(v []string) { o.IpIsNot = v } +// GetAsn returns the Asn field value if set, zero value otherwise. +func (o *V2RuleRedirect) GetAsn() string { + if o == nil || IsNil(o.Asn) { + var ret string + return ret + } + return *o.Asn +} + +// GetAsnOk returns a tuple with the Asn field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V2RuleRedirect) GetAsnOk() (*string, bool) { + if o == nil || IsNil(o.Asn) { + return nil, false + } + return o.Asn, true +} + +// HasAsn returns a boolean if a field has been set. +func (o *V2RuleRedirect) HasAsn() bool { + if o != nil && !IsNil(o.Asn) { + return true + } + + return false +} + +// SetAsn gets a reference to the given string and assigns it to the Asn field. +func (o *V2RuleRedirect) SetAsn(v string) { + o.Asn = &v +} + +// GetAsnIs returns the AsnIs field value if set, zero value otherwise. +func (o *V2RuleRedirect) GetAsnIs() []string { + if o == nil || IsNil(o.AsnIs) { + var ret []string + return ret + } + return o.AsnIs +} + +// GetAsnIsOk returns a tuple with the AsnIs field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V2RuleRedirect) GetAsnIsOk() ([]string, bool) { + if o == nil || IsNil(o.AsnIs) { + return nil, false + } + return o.AsnIs, true +} + +// HasAsnIs returns a boolean if a field has been set. +func (o *V2RuleRedirect) HasAsnIs() bool { + if o != nil && !IsNil(o.AsnIs) { + return true + } + + return false +} + +// SetAsnIs gets a reference to the given []string and assigns it to the AsnIs field. +func (o *V2RuleRedirect) SetAsnIs(v []string) { + o.AsnIs = v +} + +// GetAsnIsNot returns the AsnIsNot field value if set, zero value otherwise. +func (o *V2RuleRedirect) GetAsnIsNot() []string { + if o == nil || IsNil(o.AsnIsNot) { + var ret []string + return ret + } + return o.AsnIsNot +} + +// GetAsnIsNotOk returns a tuple with the AsnIsNot field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V2RuleRedirect) GetAsnIsNotOk() ([]string, bool) { + if o == nil || IsNil(o.AsnIsNot) { + return nil, false + } + return o.AsnIsNot, true +} + +// HasAsnIsNot returns a boolean if a field has been set. +func (o *V2RuleRedirect) HasAsnIsNot() bool { + if o != nil && !IsNil(o.AsnIsNot) { + return true + } + + return false +} + +// SetAsnIsNot gets a reference to the given []string and assigns it to the AsnIsNot field. +func (o *V2RuleRedirect) SetAsnIsNot(v []string) { + o.AsnIsNot = v +} + // GetCountry returns the Country field value if set, zero value otherwise. func (o *V2RuleRedirect) GetCountry() string { if o == nil || IsNil(o.Country) { @@ -720,6 +822,15 @@ func (o V2RuleRedirect) ToMap() (map[string]interface{}, error) { if !IsNil(o.IpIsNot) { toSerialize["ip_is_not"] = o.IpIsNot } + if !IsNil(o.Asn) { + toSerialize["asn"] = o.Asn + } + if !IsNil(o.AsnIs) { + toSerialize["asn_is"] = o.AsnIs + } + if !IsNil(o.AsnIsNot) { + toSerialize["asn_is_not"] = o.AsnIsNot + } if !IsNil(o.Country) { toSerialize["country"] = o.Country } @@ -792,6 +903,9 @@ func (o *V2RuleRedirect) UnmarshalJSON(data []byte) (err error) { delete(additionalProperties, "ip") delete(additionalProperties, "ip_is") delete(additionalProperties, "ip_is_not") + delete(additionalProperties, "asn") + delete(additionalProperties, "asn_is") + delete(additionalProperties, "asn_is_not") delete(additionalProperties, "country") delete(additionalProperties, "country_is") delete(additionalProperties, "country_is_not") diff --git a/model_v2_rule_redirect_action.go b/model_v2_rule_redirect_action.go index 02c7f88..004886f 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.13.0 +API version: 4.14.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 a157a4e..6fa9f1a 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.13.0 +API version: 4.14.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -50,6 +50,12 @@ type V2RuleRedirectRequest struct { IpIs []string `json:"ip_is,omitempty"` // Excluded IP addresses IpIsNot []string `json:"ip_is_not,omitempty"` + // ASN filter type (asn_is, asn_is_not, any) + Asn *string `json:"asn,omitempty"` + // Allowed AS numbers + AsnIs []string `json:"asn_is,omitempty"` + // Excluded AS numbers + AsnIsNot []string `json:"asn_is_not,omitempty"` // Redirect destination URL RedirectTo string `json:"redirect_to"` // HTTP status code for redirect @@ -555,6 +561,102 @@ func (o *V2RuleRedirectRequest) SetIpIsNot(v []string) { o.IpIsNot = v } +// GetAsn returns the Asn field value if set, zero value otherwise. +func (o *V2RuleRedirectRequest) GetAsn() string { + if o == nil || IsNil(o.Asn) { + var ret string + return ret + } + return *o.Asn +} + +// GetAsnOk returns a tuple with the Asn field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V2RuleRedirectRequest) GetAsnOk() (*string, bool) { + if o == nil || IsNil(o.Asn) { + return nil, false + } + return o.Asn, true +} + +// HasAsn returns a boolean if a field has been set. +func (o *V2RuleRedirectRequest) HasAsn() bool { + if o != nil && !IsNil(o.Asn) { + return true + } + + return false +} + +// SetAsn gets a reference to the given string and assigns it to the Asn field. +func (o *V2RuleRedirectRequest) SetAsn(v string) { + o.Asn = &v +} + +// GetAsnIs returns the AsnIs field value if set, zero value otherwise. +func (o *V2RuleRedirectRequest) GetAsnIs() []string { + if o == nil || IsNil(o.AsnIs) { + var ret []string + return ret + } + return o.AsnIs +} + +// GetAsnIsOk returns a tuple with the AsnIs field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V2RuleRedirectRequest) GetAsnIsOk() ([]string, bool) { + if o == nil || IsNil(o.AsnIs) { + return nil, false + } + return o.AsnIs, true +} + +// HasAsnIs returns a boolean if a field has been set. +func (o *V2RuleRedirectRequest) HasAsnIs() bool { + if o != nil && !IsNil(o.AsnIs) { + return true + } + + return false +} + +// SetAsnIs gets a reference to the given []string and assigns it to the AsnIs field. +func (o *V2RuleRedirectRequest) SetAsnIs(v []string) { + o.AsnIs = v +} + +// GetAsnIsNot returns the AsnIsNot field value if set, zero value otherwise. +func (o *V2RuleRedirectRequest) GetAsnIsNot() []string { + if o == nil || IsNil(o.AsnIsNot) { + var ret []string + return ret + } + return o.AsnIsNot +} + +// GetAsnIsNotOk returns a tuple with the AsnIsNot field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V2RuleRedirectRequest) GetAsnIsNotOk() ([]string, bool) { + if o == nil || IsNil(o.AsnIsNot) { + return nil, false + } + return o.AsnIsNot, true +} + +// HasAsnIsNot returns a boolean if a field has been set. +func (o *V2RuleRedirectRequest) HasAsnIsNot() bool { + if o != nil && !IsNil(o.AsnIsNot) { + return true + } + + return false +} + +// SetAsnIsNot gets a reference to the given []string and assigns it to the AsnIsNot field. +func (o *V2RuleRedirectRequest) SetAsnIsNot(v []string) { + o.AsnIsNot = v +} + // GetRedirectTo returns the RedirectTo field value func (o *V2RuleRedirectRequest) GetRedirectTo() string { if o == nil { @@ -662,6 +764,15 @@ func (o V2RuleRedirectRequest) ToMap() (map[string]interface{}, error) { if !IsNil(o.IpIsNot) { toSerialize["ip_is_not"] = o.IpIsNot } + if !IsNil(o.Asn) { + toSerialize["asn"] = o.Asn + } + if !IsNil(o.AsnIs) { + toSerialize["asn_is"] = o.AsnIs + } + if !IsNil(o.AsnIsNot) { + toSerialize["asn_is_not"] = o.AsnIsNot + } toSerialize["redirect_to"] = o.RedirectTo if !IsNil(o.RedirectCode) { toSerialize["redirect_code"] = o.RedirectCode @@ -726,6 +837,9 @@ func (o *V2RuleRedirectRequest) UnmarshalJSON(data []byte) (err error) { delete(additionalProperties, "ip") delete(additionalProperties, "ip_is") delete(additionalProperties, "ip_is_not") + delete(additionalProperties, "asn") + delete(additionalProperties, "asn_is") + delete(additionalProperties, "asn_is_not") delete(additionalProperties, "redirect_to") delete(additionalProperties, "redirect_code") o.AdditionalProperties = additionalProperties diff --git a/model_v2_rule_request.go b/model_v2_rule_request.go index 1b6a85d..3c920c5 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.13.0 +API version: 4.14.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -50,6 +50,12 @@ type V2RuleRequest struct { IpIs []string `json:"ip_is,omitempty"` // Excluded IP addresses IpIsNot []string `json:"ip_is_not,omitempty"` + // ASN filter type (asn_is, asn_is_not, any) + Asn *string `json:"asn,omitempty"` + // Allowed AS numbers + AsnIs []string `json:"asn_is,omitempty"` + // Excluded AS numbers + AsnIsNot []string `json:"asn_is_not,omitempty"` AdditionalProperties map[string]interface{} } @@ -546,6 +552,102 @@ func (o *V2RuleRequest) SetIpIsNot(v []string) { o.IpIsNot = v } +// GetAsn returns the Asn field value if set, zero value otherwise. +func (o *V2RuleRequest) GetAsn() string { + if o == nil || IsNil(o.Asn) { + var ret string + return ret + } + return *o.Asn +} + +// GetAsnOk returns a tuple with the Asn field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V2RuleRequest) GetAsnOk() (*string, bool) { + if o == nil || IsNil(o.Asn) { + return nil, false + } + return o.Asn, true +} + +// HasAsn returns a boolean if a field has been set. +func (o *V2RuleRequest) HasAsn() bool { + if o != nil && !IsNil(o.Asn) { + return true + } + + return false +} + +// SetAsn gets a reference to the given string and assigns it to the Asn field. +func (o *V2RuleRequest) SetAsn(v string) { + o.Asn = &v +} + +// GetAsnIs returns the AsnIs field value if set, zero value otherwise. +func (o *V2RuleRequest) GetAsnIs() []string { + if o == nil || IsNil(o.AsnIs) { + var ret []string + return ret + } + return o.AsnIs +} + +// GetAsnIsOk returns a tuple with the AsnIs field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V2RuleRequest) GetAsnIsOk() ([]string, bool) { + if o == nil || IsNil(o.AsnIs) { + return nil, false + } + return o.AsnIs, true +} + +// HasAsnIs returns a boolean if a field has been set. +func (o *V2RuleRequest) HasAsnIs() bool { + if o != nil && !IsNil(o.AsnIs) { + return true + } + + return false +} + +// SetAsnIs gets a reference to the given []string and assigns it to the AsnIs field. +func (o *V2RuleRequest) SetAsnIs(v []string) { + o.AsnIs = v +} + +// GetAsnIsNot returns the AsnIsNot field value if set, zero value otherwise. +func (o *V2RuleRequest) GetAsnIsNot() []string { + if o == nil || IsNil(o.AsnIsNot) { + var ret []string + return ret + } + return o.AsnIsNot +} + +// GetAsnIsNotOk returns a tuple with the AsnIsNot field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V2RuleRequest) GetAsnIsNotOk() ([]string, bool) { + if o == nil || IsNil(o.AsnIsNot) { + return nil, false + } + return o.AsnIsNot, true +} + +// HasAsnIsNot returns a boolean if a field has been set. +func (o *V2RuleRequest) HasAsnIsNot() bool { + if o != nil && !IsNil(o.AsnIsNot) { + return true + } + + return false +} + +// SetAsnIsNot gets a reference to the given []string and assigns it to the AsnIsNot field. +func (o *V2RuleRequest) SetAsnIsNot(v []string) { + o.AsnIsNot = v +} + func (o V2RuleRequest) MarshalJSON() ([]byte, error) { toSerialize,err := o.ToMap() if err != nil { @@ -597,6 +699,15 @@ func (o V2RuleRequest) ToMap() (map[string]interface{}, error) { if !IsNil(o.IpIsNot) { toSerialize["ip_is_not"] = o.IpIsNot } + if !IsNil(o.Asn) { + toSerialize["asn"] = o.Asn + } + if !IsNil(o.AsnIs) { + toSerialize["asn_is"] = o.AsnIs + } + if !IsNil(o.AsnIsNot) { + toSerialize["asn_is_not"] = o.AsnIsNot + } for key, value := range o.AdditionalProperties { toSerialize[key] = value @@ -656,6 +767,9 @@ func (o *V2RuleRequest) UnmarshalJSON(data []byte) (err error) { delete(additionalProperties, "ip") delete(additionalProperties, "ip_is") delete(additionalProperties, "ip_is_not") + delete(additionalProperties, "asn") + delete(additionalProperties, "asn_is") + delete(additionalProperties, "asn_is_not") o.AdditionalProperties = additionalProperties } diff --git a/model_v2_rule_serve_static.go b/model_v2_rule_serve_static.go index 508cd57..63bfc62 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.13.0 +API version: 4.14.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -48,6 +48,12 @@ type V2RuleServeStatic struct { IpIs []string `json:"ip_is,omitempty"` // Excluded IP addresses IpIsNot []string `json:"ip_is_not,omitempty"` + // ASN filter type (asn_is, asn_is_not, any) + Asn *string `json:"asn,omitempty"` + // Allowed AS numbers + AsnIs []string `json:"asn_is,omitempty"` + // Excluded AS numbers + AsnIsNot []string `json:"asn_is_not,omitempty"` // Country code Country *string `json:"country,omitempty"` // Allowed countries @@ -521,6 +527,102 @@ func (o *V2RuleServeStatic) SetIpIsNot(v []string) { o.IpIsNot = v } +// GetAsn returns the Asn field value if set, zero value otherwise. +func (o *V2RuleServeStatic) GetAsn() string { + if o == nil || IsNil(o.Asn) { + var ret string + return ret + } + return *o.Asn +} + +// GetAsnOk returns a tuple with the Asn field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V2RuleServeStatic) GetAsnOk() (*string, bool) { + if o == nil || IsNil(o.Asn) { + return nil, false + } + return o.Asn, true +} + +// HasAsn returns a boolean if a field has been set. +func (o *V2RuleServeStatic) HasAsn() bool { + if o != nil && !IsNil(o.Asn) { + return true + } + + return false +} + +// SetAsn gets a reference to the given string and assigns it to the Asn field. +func (o *V2RuleServeStatic) SetAsn(v string) { + o.Asn = &v +} + +// GetAsnIs returns the AsnIs field value if set, zero value otherwise. +func (o *V2RuleServeStatic) GetAsnIs() []string { + if o == nil || IsNil(o.AsnIs) { + var ret []string + return ret + } + return o.AsnIs +} + +// GetAsnIsOk returns a tuple with the AsnIs field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V2RuleServeStatic) GetAsnIsOk() ([]string, bool) { + if o == nil || IsNil(o.AsnIs) { + return nil, false + } + return o.AsnIs, true +} + +// HasAsnIs returns a boolean if a field has been set. +func (o *V2RuleServeStatic) HasAsnIs() bool { + if o != nil && !IsNil(o.AsnIs) { + return true + } + + return false +} + +// SetAsnIs gets a reference to the given []string and assigns it to the AsnIs field. +func (o *V2RuleServeStatic) SetAsnIs(v []string) { + o.AsnIs = v +} + +// GetAsnIsNot returns the AsnIsNot field value if set, zero value otherwise. +func (o *V2RuleServeStatic) GetAsnIsNot() []string { + if o == nil || IsNil(o.AsnIsNot) { + var ret []string + return ret + } + return o.AsnIsNot +} + +// GetAsnIsNotOk returns a tuple with the AsnIsNot field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V2RuleServeStatic) GetAsnIsNotOk() ([]string, bool) { + if o == nil || IsNil(o.AsnIsNot) { + return nil, false + } + return o.AsnIsNot, true +} + +// HasAsnIsNot returns a boolean if a field has been set. +func (o *V2RuleServeStatic) HasAsnIsNot() bool { + if o != nil && !IsNil(o.AsnIsNot) { + return true + } + + return false +} + +// SetAsnIsNot gets a reference to the given []string and assigns it to the AsnIsNot field. +func (o *V2RuleServeStatic) SetAsnIsNot(v []string) { + o.AsnIsNot = v +} + // GetCountry returns the Country field value if set, zero value otherwise. func (o *V2RuleServeStatic) GetCountry() string { if o == nil || IsNil(o.Country) { @@ -713,6 +815,15 @@ func (o V2RuleServeStatic) ToMap() (map[string]interface{}, error) { if !IsNil(o.IpIsNot) { toSerialize["ip_is_not"] = o.IpIsNot } + if !IsNil(o.Asn) { + toSerialize["asn"] = o.Asn + } + if !IsNil(o.AsnIs) { + toSerialize["asn_is"] = o.AsnIs + } + if !IsNil(o.AsnIsNot) { + toSerialize["asn_is_not"] = o.AsnIsNot + } if !IsNil(o.Country) { toSerialize["country"] = o.Country } @@ -784,6 +895,9 @@ func (o *V2RuleServeStatic) UnmarshalJSON(data []byte) (err error) { delete(additionalProperties, "ip") delete(additionalProperties, "ip_is") delete(additionalProperties, "ip_is_not") + delete(additionalProperties, "asn") + delete(additionalProperties, "asn_is") + delete(additionalProperties, "asn_is_not") delete(additionalProperties, "country") delete(additionalProperties, "country_is") delete(additionalProperties, "country_is_not") diff --git a/model_v2_rule_serve_static_action.go b/model_v2_rule_serve_static_action.go index 65e6357..681a06c 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.13.0 +API version: 4.14.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 93fe823..d2318cb 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.13.0 +API version: 4.14.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -50,6 +50,12 @@ type V2RuleServeStaticRequest struct { IpIs []string `json:"ip_is,omitempty"` // Excluded IP addresses IpIsNot []string `json:"ip_is_not,omitempty"` + // ASN filter type (asn_is, asn_is_not, any) + Asn *string `json:"asn,omitempty"` + // Allowed AS numbers + AsnIs []string `json:"asn_is,omitempty"` + // Excluded AS numbers + AsnIsNot []string `json:"asn_is_not,omitempty"` // Path to the static file to serve StaticFilePath string `json:"static_file_path"` AdditionalProperties map[string]interface{} @@ -549,6 +555,102 @@ func (o *V2RuleServeStaticRequest) SetIpIsNot(v []string) { o.IpIsNot = v } +// GetAsn returns the Asn field value if set, zero value otherwise. +func (o *V2RuleServeStaticRequest) GetAsn() string { + if o == nil || IsNil(o.Asn) { + var ret string + return ret + } + return *o.Asn +} + +// GetAsnOk returns a tuple with the Asn field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V2RuleServeStaticRequest) GetAsnOk() (*string, bool) { + if o == nil || IsNil(o.Asn) { + return nil, false + } + return o.Asn, true +} + +// HasAsn returns a boolean if a field has been set. +func (o *V2RuleServeStaticRequest) HasAsn() bool { + if o != nil && !IsNil(o.Asn) { + return true + } + + return false +} + +// SetAsn gets a reference to the given string and assigns it to the Asn field. +func (o *V2RuleServeStaticRequest) SetAsn(v string) { + o.Asn = &v +} + +// GetAsnIs returns the AsnIs field value if set, zero value otherwise. +func (o *V2RuleServeStaticRequest) GetAsnIs() []string { + if o == nil || IsNil(o.AsnIs) { + var ret []string + return ret + } + return o.AsnIs +} + +// GetAsnIsOk returns a tuple with the AsnIs field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V2RuleServeStaticRequest) GetAsnIsOk() ([]string, bool) { + if o == nil || IsNil(o.AsnIs) { + return nil, false + } + return o.AsnIs, true +} + +// HasAsnIs returns a boolean if a field has been set. +func (o *V2RuleServeStaticRequest) HasAsnIs() bool { + if o != nil && !IsNil(o.AsnIs) { + return true + } + + return false +} + +// SetAsnIs gets a reference to the given []string and assigns it to the AsnIs field. +func (o *V2RuleServeStaticRequest) SetAsnIs(v []string) { + o.AsnIs = v +} + +// GetAsnIsNot returns the AsnIsNot field value if set, zero value otherwise. +func (o *V2RuleServeStaticRequest) GetAsnIsNot() []string { + if o == nil || IsNil(o.AsnIsNot) { + var ret []string + return ret + } + return o.AsnIsNot +} + +// GetAsnIsNotOk returns a tuple with the AsnIsNot field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V2RuleServeStaticRequest) GetAsnIsNotOk() ([]string, bool) { + if o == nil || IsNil(o.AsnIsNot) { + return nil, false + } + return o.AsnIsNot, true +} + +// HasAsnIsNot returns a boolean if a field has been set. +func (o *V2RuleServeStaticRequest) HasAsnIsNot() bool { + if o != nil && !IsNil(o.AsnIsNot) { + return true + } + + return false +} + +// SetAsnIsNot gets a reference to the given []string and assigns it to the AsnIsNot field. +func (o *V2RuleServeStaticRequest) SetAsnIsNot(v []string) { + o.AsnIsNot = v +} + // GetStaticFilePath returns the StaticFilePath field value func (o *V2RuleServeStaticRequest) GetStaticFilePath() string { if o == nil { @@ -624,6 +726,15 @@ func (o V2RuleServeStaticRequest) ToMap() (map[string]interface{}, error) { if !IsNil(o.IpIsNot) { toSerialize["ip_is_not"] = o.IpIsNot } + if !IsNil(o.Asn) { + toSerialize["asn"] = o.Asn + } + if !IsNil(o.AsnIs) { + toSerialize["asn_is"] = o.AsnIs + } + if !IsNil(o.AsnIsNot) { + toSerialize["asn_is_not"] = o.AsnIsNot + } toSerialize["static_file_path"] = o.StaticFilePath for key, value := range o.AdditionalProperties { @@ -685,6 +796,9 @@ func (o *V2RuleServeStaticRequest) UnmarshalJSON(data []byte) (err error) { delete(additionalProperties, "ip") delete(additionalProperties, "ip_is") delete(additionalProperties, "ip_is_not") + delete(additionalProperties, "asn") + delete(additionalProperties, "asn_is") + delete(additionalProperties, "asn_is_not") delete(additionalProperties, "static_file_path") o.AdditionalProperties = additionalProperties } diff --git a/model_v2_secret_store.go b/model_v2_secret_store.go index 5cc0d2a..e86d14a 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.13.0 +API version: 4.14.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 ded3641..b700c3d 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.13.0 +API version: 4.14.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 23d476c..3b28574 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.13.0 +API version: 4.14.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 ee7266f..a252f4c 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.13.0 +API version: 4.14.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 e8dc1cc..d9add61 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.13.0 +API version: 4.14.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 a453265..e0253d9 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.13.0 +API version: 4.14.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 647ca65..0f99bec 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.13.0 +API version: 4.14.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 8bb9f49..8053bc0 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.13.0 +API version: 4.14.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 fe796a8..ceb96f7 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.13.0 +API version: 4.14.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 77969d2..fd2efaf 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.13.0 +API version: 4.14.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 7c8b22c..3ebd190 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.13.0 +API version: 4.14.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_variable.go b/model_variable.go index f3a33a6..df84d47 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.13.0 +API version: 4.14.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_volume.go b/model_volume.go index 1cefb7e..8068999 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.13.0 +API version: 4.14.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 aec04ac..dc5d0bd 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.13.0 +API version: 4.14.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 e2af7a3..1b09c05 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.13.0 +API version: 4.14.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 ca00ad2..0ad4571 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.13.0 +API version: 4.14.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 154ade6..db774ee 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.13.0 +API version: 4.14.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/response.go b/response.go index 4e7e44c..b2fccec 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.13.0 +API version: 4.14.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/test/api_ai_agents_test.go b/test/api_ai_agents_test.go index 850a184..1cdd6d7 100644 --- a/test/api_ai_agents_test.go +++ b/test/api_ai_agents_test.go @@ -66,6 +66,21 @@ func Test_quantadmingo_AIAgentsAPIService(t *testing.T) { }) + t.Run("Test AIAgentsAPIService DeleteAgentOverlay", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var organisation string + var agentId string + + resp, httpRes, err := apiClient.AIAgentsAPI.DeleteAgentOverlay(context.Background(), organisation, agentId).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + t.Run("Test AIAgentsAPIService GetAIAgent", func(t *testing.T) { t.Skip("skip test") // remove to run test @@ -81,6 +96,21 @@ func Test_quantadmingo_AIAgentsAPIService(t *testing.T) { }) + t.Run("Test AIAgentsAPIService GetAgentOverlay", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var organisation string + var agentId string + + resp, httpRes, err := apiClient.AIAgentsAPI.GetAgentOverlay(context.Background(), organisation, agentId).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + t.Run("Test AIAgentsAPIService ListAIAgents", func(t *testing.T) { t.Skip("skip test") // remove to run test @@ -110,4 +140,19 @@ func Test_quantadmingo_AIAgentsAPIService(t *testing.T) { }) + t.Run("Test AIAgentsAPIService UpsertAgentOverlay", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var organisation string + var agentId string + + resp, httpRes, err := apiClient.AIAgentsAPI.UpsertAgentOverlay(context.Background(), organisation, agentId).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + } diff --git a/test/api_ai_filter_policies_test.go b/test/api_ai_filter_policies_test.go new file mode 100644 index 0000000..b375b6d --- /dev/null +++ b/test/api_ai_filter_policies_test.go @@ -0,0 +1,128 @@ +/* +QuantCDN API + +Testing AIFilterPoliciesAPIService + +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); + +package quantadmingo + +import ( + "context" + "github.com/stretchr/testify/assert" + "github.com/stretchr/testify/require" + "testing" + openapiclient "github.com/quantcdn/quant-admin-go/v4" +) + +func Test_quantadmingo_AIFilterPoliciesAPIService(t *testing.T) { + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + + t.Run("Test AIFilterPoliciesAPIService CreateFilterPolicy", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var organisation string + + resp, httpRes, err := apiClient.AIFilterPoliciesAPI.CreateFilterPolicy(context.Background(), organisation).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test AIFilterPoliciesAPIService DeleteFilterPolicy", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var organisation string + var policyId string + + resp, httpRes, err := apiClient.AIFilterPoliciesAPI.DeleteFilterPolicy(context.Background(), organisation, policyId).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test AIFilterPoliciesAPIService DisableFilterPolicy", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var organisation string + var policyId string + + resp, httpRes, err := apiClient.AIFilterPoliciesAPI.DisableFilterPolicy(context.Background(), organisation, policyId).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test AIFilterPoliciesAPIService EnableFilterPolicy", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var organisation string + var policyId string + + resp, httpRes, err := apiClient.AIFilterPoliciesAPI.EnableFilterPolicy(context.Background(), organisation, policyId).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test AIFilterPoliciesAPIService GetFilterPolicy", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var organisation string + var policyId string + + resp, httpRes, err := apiClient.AIFilterPoliciesAPI.GetFilterPolicy(context.Background(), organisation, policyId).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test AIFilterPoliciesAPIService ListFilterPolicies", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var organisation string + + resp, httpRes, err := apiClient.AIFilterPoliciesAPI.ListFilterPolicies(context.Background(), organisation).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test AIFilterPoliciesAPIService UpdateFilterPolicy", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var organisation string + var policyId string + + resp, httpRes, err := apiClient.AIFilterPoliciesAPI.UpdateFilterPolicy(context.Background(), organisation, policyId).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + +} diff --git a/test/api_ai_governance_test.go b/test/api_ai_governance_test.go new file mode 100644 index 0000000..69b8df5 --- /dev/null +++ b/test/api_ai_governance_test.go @@ -0,0 +1,67 @@ +/* +QuantCDN API + +Testing AIGovernanceAPIService + +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); + +package quantadmingo + +import ( + "context" + "github.com/stretchr/testify/assert" + "github.com/stretchr/testify/require" + "testing" + openapiclient "github.com/quantcdn/quant-admin-go/v4" +) + +func Test_quantadmingo_AIGovernanceAPIService(t *testing.T) { + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + + t.Run("Test AIGovernanceAPIService GetGovernanceConfig", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var organisation string + + resp, httpRes, err := apiClient.AIGovernanceAPI.GetGovernanceConfig(context.Background(), organisation).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test AIGovernanceAPIService GetGovernanceSpend", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var organisation string + + resp, httpRes, err := apiClient.AIGovernanceAPI.GetGovernanceSpend(context.Background(), organisation).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test AIGovernanceAPIService UpdateGovernanceConfig", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var organisation string + + resp, httpRes, err := apiClient.AIGovernanceAPI.UpdateGovernanceConfig(context.Background(), organisation).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + +} diff --git a/test/api_ai_slack_bots_test.go b/test/api_ai_slack_bots_test.go new file mode 100644 index 0000000..47cfd27 --- /dev/null +++ b/test/api_ai_slack_bots_test.go @@ -0,0 +1,128 @@ +/* +QuantCDN API + +Testing AISlackBotsAPIService + +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); + +package quantadmingo + +import ( + "context" + "github.com/stretchr/testify/assert" + "github.com/stretchr/testify/require" + "testing" + openapiclient "github.com/quantcdn/quant-admin-go/v4" +) + +func Test_quantadmingo_AISlackBotsAPIService(t *testing.T) { + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + + t.Run("Test AISlackBotsAPIService CreateSlackBot", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var organisation string + + resp, httpRes, err := apiClient.AISlackBotsAPI.CreateSlackBot(context.Background(), organisation).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test AISlackBotsAPIService DeleteSlackBot", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var organisation string + var botId string + + resp, httpRes, err := apiClient.AISlackBotsAPI.DeleteSlackBot(context.Background(), organisation, botId).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test AISlackBotsAPIService GetSlackBot", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var organisation string + var botId string + + resp, httpRes, err := apiClient.AISlackBotsAPI.GetSlackBot(context.Background(), organisation, botId).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test AISlackBotsAPIService ListSlackBots", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var organisation string + + resp, httpRes, err := apiClient.AISlackBotsAPI.ListSlackBots(context.Background(), organisation).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test AISlackBotsAPIService SearchSlackWorkspaceChannels", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var organisation string + var botId string + + resp, httpRes, err := apiClient.AISlackBotsAPI.SearchSlackWorkspaceChannels(context.Background(), organisation, botId).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test AISlackBotsAPIService SearchSlackWorkspaceUsers", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var organisation string + var botId string + + resp, httpRes, err := apiClient.AISlackBotsAPI.SearchSlackWorkspaceUsers(context.Background(), organisation, botId).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test AISlackBotsAPIService UpdateSlackBot", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var organisation string + var botId string + + resp, httpRes, err := apiClient.AISlackBotsAPI.UpdateSlackBot(context.Background(), organisation, botId).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + +} diff --git a/test/api_ai_usage_test.go b/test/api_ai_usage_test.go new file mode 100644 index 0000000..973d742 --- /dev/null +++ b/test/api_ai_usage_test.go @@ -0,0 +1,39 @@ +/* +QuantCDN API + +Testing AIUsageAPIService + +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); + +package quantadmingo + +import ( + "context" + "github.com/stretchr/testify/assert" + "github.com/stretchr/testify/require" + "testing" + openapiclient "github.com/quantcdn/quant-admin-go/v4" +) + +func Test_quantadmingo_AIUsageAPIService(t *testing.T) { + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + + t.Run("Test AIUsageAPIService GetMyUsage", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var organisation string + + resp, httpRes, err := apiClient.AIUsageAPI.GetMyUsage(context.Background(), organisation).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + +} diff --git a/utils.go b/utils.go index a79f1f2..94bc3c3 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.13.0 +API version: 4.14.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/version.go b/version.go index 67be01d..371a464 100644 --- a/version.go +++ b/version.go @@ -1,4 +1,4 @@ package quantadmingo // Version of the SDK -const Version = "4.13.0" +const Version = "4.14.0"