diff --git a/.openapi-generator/FILES b/.openapi-generator/FILES index 57fb1bd..3259074 100644 --- a/.openapi-generator/FILES +++ b/.openapi-generator/FILES @@ -9,7 +9,9 @@ docs/AIFileStorageApi.md docs/AIInferenceApi.md docs/AIModelsApi.md docs/AIMonitoringApi.md +docs/AIOrchestrationsApi.md docs/AISessionsApi.md +docs/AISkillsApi.md docs/AITaskManagementApi.md docs/AIToolsApi.md docs/AIVectorDatabaseApi.md @@ -23,6 +25,7 @@ docs/ApplicationsApi.md docs/BackupManagementApi.md docs/BulkSetEnvironmentVariablesRequest.md docs/BulkSetEnvironmentVariablesRequestEnvironmentInner.md +docs/CDNMetricsApi.md docs/ChatInference200Response.md docs/ChatInference200ResponseResponse.md docs/ChatInference200ResponseResponseToolUse.md @@ -32,6 +35,7 @@ docs/ChatInference200ResponseResponseToolUseOneOfResult.md docs/ChatInference200ResponseUsage.md docs/ChatInference202Response.md docs/ChatInferenceRequest.md +docs/ChatInferenceRequestGuardrails.md docs/ChatInferenceRequestMessagesInner.md docs/ChatInferenceRequestMessagesInnerContent.md docs/ChatInferenceRequestMessagesInnerContentOneOfInner.md @@ -94,6 +98,11 @@ docs/CreateCustomToolRequest.md docs/CreateEnvironment403Response.md docs/CreateEnvironmentRequest.md docs/CreateEnvironmentRequestEnvironmentInner.md +docs/CreateOrchestrationRequest.md +docs/CreateOrchestrationRequestInputSource.md +docs/CreateOrchestrationRequestStopCondition.md +docs/CreateSkill201Response.md +docs/CreateSkillRequest.md docs/CreateTask201Response.md docs/CreateTaskRequest.md docs/CreateVectorCollection201Response.md @@ -108,9 +117,13 @@ docs/DeleteAISession200Response.md docs/DeleteBackup200Response.md docs/DeleteCustomTool200Response.md docs/DeleteFile200Response.md +docs/DeleteSkill200Response.md +docs/DeleteSkillCollection200Response.md docs/DeleteTask200Response.md docs/DeleteTask409Response.md -docs/DeleteVectorCollection200Response.md +docs/DeleteVectorDocuments200Response.md +docs/DeleteVectorDocumentsRequest.md +docs/DeleteVectorDocumentsRequestMetadata.md docs/DomainsApi.md docs/DownloadBackup200Response.md docs/Embeddings200Response.md @@ -150,6 +163,8 @@ docs/GetEcrLoginCredentials200Response.md docs/GetEnvironmentLogs200Response.md docs/GetEnvironmentLogs200ResponseLogEventsInner.md docs/GetFile200Response.md +docs/GetSkill200Response.md +docs/GetSkill200ResponseSkill.md docs/GetSshAccessCredentials200Response.md docs/GetSshAccessCredentials200ResponseCredentials.md docs/GetTask200Response.md @@ -165,11 +180,19 @@ docs/ImageGenerationRequestImageVariationParams.md docs/ImageGenerationRequestInPaintingParams.md docs/ImageGenerationRequestOutPaintingParams.md docs/ImageGenerationRequestTextToImageParams.md +docs/ImportSkill201Response.md +docs/ImportSkillCollection201Response.md +docs/ImportSkillCollectionRequest.md +docs/ImportSkillCollectionRequestSource.md +docs/ImportSkillRequest.md +docs/ImportSkillRequestSource.md docs/KVApi.md docs/KVItemsCreate200Response.md docs/KVItemsDelete200Response.md docs/KVItemsShow200Response.md docs/KVItemsShow200ResponseValue.md +docs/KVLinkToProject200Response.md +docs/KVLinkToProjectRequest.md docs/ListAIAgents200Response.md docs/ListAIAgents200ResponseAgentsInner.md docs/ListAIModels200Response.md @@ -190,11 +213,17 @@ docs/ListCustomTools200Response.md docs/ListCustomTools200ResponseToolsInner.md docs/ListFiles200Response.md docs/ListFiles200ResponseFilesInner.md +docs/ListOrchestrationBatches200Response.md +docs/ListOrchestrationBatches200ResponseBatchesInner.md +docs/ListOrchestrations200Response.md +docs/ListSkillCollections200Response.md +docs/ListSkillCollections200ResponseCollectionsInner.md +docs/ListSkills200Response.md +docs/ListSkills200ResponseSkillsInner.md docs/ListTasks200Response.md docs/ListTasks200ResponseTasksInner.md docs/ListVectorCollections200Response.md docs/ListVectorCollections200ResponseCollectionsInner.md -docs/OrchestrationApi.md docs/OrganizationsApi.md docs/OrganizationsList200ResponseInner.md docs/PatchEnvironmentCompose202Response.md @@ -219,7 +248,13 @@ docs/SubmitToolCallback200Response.md docs/SubmitToolCallbackRequest.md docs/SubmitToolCallbackRequestToolResultsInner.md docs/SyncOperation.md +docs/SyncSkillCollection200Response.md docs/SyncToEnvironmentRequest.md +docs/TokensApi.md +docs/TokensCreate201Response.md +docs/TokensCreateRequest.md +docs/TokensDelete200Response.md +docs/TokensList200ResponseInner.md docs/UpdateAIAgent200Response.md docs/UpdateAIAgentRequest.md docs/UpdateAISession200Response.md @@ -229,6 +264,8 @@ docs/UpdateCronJobRequest.md docs/UpdateEnvironmentRequest.md docs/UpdateEnvironmentStateRequest.md docs/UpdateEnvironmentVariableRequest.md +docs/UpdateSkill200Response.md +docs/UpdateSkillRequest.md docs/UpdateTask200Response.md docs/UpdateTaskRequest.md docs/UploadFile201Response.md @@ -292,6 +329,11 @@ docs/V2DomainDnsGoLiveRecordsInner.md docs/V2DomainDnsValidationRecordsInner.md docs/V2DomainRequest.md docs/V2Error.md +docs/V2MetricData.md +docs/V2MetricDataPoint.md +docs/V2MetricDataPointTimestamp.md +docs/V2MetricsMeta.md +docs/V2MetricsResponse.md docs/V2Organization.md docs/V2OrganizationRequest.md docs/V2Project.md @@ -356,12 +398,15 @@ quantcdn/api/ai_file_storage_api.py quantcdn/api/ai_inference_api.py quantcdn/api/ai_models_api.py quantcdn/api/ai_monitoring_api.py +quantcdn/api/ai_orchestrations_api.py quantcdn/api/ai_sessions_api.py +quantcdn/api/ai_skills_api.py quantcdn/api/ai_task_management_api.py quantcdn/api/ai_tools_api.py quantcdn/api/ai_vector_database_api.py quantcdn/api/applications_api.py quantcdn/api/backup_management_api.py +quantcdn/api/cdn_metrics_api.py quantcdn/api/commands_api.py quantcdn/api/compose_api.py quantcdn/api/containers_api.py @@ -372,13 +417,13 @@ quantcdn/api/domains_api.py quantcdn/api/environments_api.py quantcdn/api/headers_api.py quantcdn/api/kv_api.py -quantcdn/api/orchestration_api.py quantcdn/api/organizations_api.py quantcdn/api/projects_api.py quantcdn/api/purge_api.py quantcdn/api/rules_api.py quantcdn/api/scaling_policy_api.py quantcdn/api/ssh_access_api.py +quantcdn/api/tokens_api.py quantcdn/api/variables_api.py quantcdn/api/volumes_api.py quantcdn/api_client.py @@ -403,6 +448,7 @@ quantcdn/models/chat_inference200_response_response_tool_use_one_of_result.py quantcdn/models/chat_inference200_response_usage.py quantcdn/models/chat_inference202_response.py quantcdn/models/chat_inference_request.py +quantcdn/models/chat_inference_request_guardrails.py quantcdn/models/chat_inference_request_messages_inner.py quantcdn/models/chat_inference_request_messages_inner_content.py quantcdn/models/chat_inference_request_messages_inner_content_one_of_inner.py @@ -460,6 +506,11 @@ quantcdn/models/create_custom_tool_request.py quantcdn/models/create_environment403_response.py quantcdn/models/create_environment_request.py quantcdn/models/create_environment_request_environment_inner.py +quantcdn/models/create_orchestration_request.py +quantcdn/models/create_orchestration_request_input_source.py +quantcdn/models/create_orchestration_request_stop_condition.py +quantcdn/models/create_skill201_response.py +quantcdn/models/create_skill_request.py quantcdn/models/create_task201_response.py quantcdn/models/create_task_request.py quantcdn/models/create_vector_collection201_response.py @@ -473,9 +524,13 @@ quantcdn/models/delete_ai_session200_response.py quantcdn/models/delete_backup200_response.py quantcdn/models/delete_custom_tool200_response.py quantcdn/models/delete_file200_response.py +quantcdn/models/delete_skill200_response.py +quantcdn/models/delete_skill_collection200_response.py quantcdn/models/delete_task200_response.py quantcdn/models/delete_task409_response.py -quantcdn/models/delete_vector_collection200_response.py +quantcdn/models/delete_vector_documents200_response.py +quantcdn/models/delete_vector_documents_request.py +quantcdn/models/delete_vector_documents_request_metadata.py quantcdn/models/download_backup200_response.py quantcdn/models/embeddings200_response.py quantcdn/models/embeddings200_response_embeddings.py @@ -513,6 +568,8 @@ quantcdn/models/get_ecr_login_credentials200_response.py quantcdn/models/get_environment_logs200_response.py quantcdn/models/get_environment_logs200_response_log_events_inner.py quantcdn/models/get_file200_response.py +quantcdn/models/get_skill200_response.py +quantcdn/models/get_skill200_response_skill.py quantcdn/models/get_ssh_access_credentials200_response.py quantcdn/models/get_ssh_access_credentials200_response_credentials.py quantcdn/models/get_task200_response.py @@ -527,10 +584,18 @@ quantcdn/models/image_generation_request_image_variation_params.py quantcdn/models/image_generation_request_in_painting_params.py quantcdn/models/image_generation_request_out_painting_params.py quantcdn/models/image_generation_request_text_to_image_params.py +quantcdn/models/import_skill201_response.py +quantcdn/models/import_skill_collection201_response.py +quantcdn/models/import_skill_collection_request.py +quantcdn/models/import_skill_collection_request_source.py +quantcdn/models/import_skill_request.py +quantcdn/models/import_skill_request_source.py quantcdn/models/kv_items_create200_response.py quantcdn/models/kv_items_delete200_response.py quantcdn/models/kv_items_show200_response.py quantcdn/models/kv_items_show200_response_value.py +quantcdn/models/kv_link_to_project200_response.py +quantcdn/models/kv_link_to_project_request.py quantcdn/models/list_ai_agents200_response.py quantcdn/models/list_ai_agents200_response_agents_inner.py quantcdn/models/list_ai_models200_response.py @@ -551,6 +616,13 @@ quantcdn/models/list_custom_tools200_response.py quantcdn/models/list_custom_tools200_response_tools_inner.py quantcdn/models/list_files200_response.py quantcdn/models/list_files200_response_files_inner.py +quantcdn/models/list_orchestration_batches200_response.py +quantcdn/models/list_orchestration_batches200_response_batches_inner.py +quantcdn/models/list_orchestrations200_response.py +quantcdn/models/list_skill_collections200_response.py +quantcdn/models/list_skill_collections200_response_collections_inner.py +quantcdn/models/list_skills200_response.py +quantcdn/models/list_skills200_response_skills_inner.py quantcdn/models/list_tasks200_response.py quantcdn/models/list_tasks200_response_tasks_inner.py quantcdn/models/list_vector_collections200_response.py @@ -573,7 +645,12 @@ quantcdn/models/submit_tool_callback200_response.py quantcdn/models/submit_tool_callback_request.py quantcdn/models/submit_tool_callback_request_tool_results_inner.py quantcdn/models/sync_operation.py +quantcdn/models/sync_skill_collection200_response.py quantcdn/models/sync_to_environment_request.py +quantcdn/models/tokens_create201_response.py +quantcdn/models/tokens_create_request.py +quantcdn/models/tokens_delete200_response.py +quantcdn/models/tokens_list200_response_inner.py quantcdn/models/update_ai_agent200_response.py quantcdn/models/update_ai_agent_request.py quantcdn/models/update_ai_session200_response.py @@ -583,6 +660,8 @@ quantcdn/models/update_cron_job_request.py quantcdn/models/update_environment_request.py quantcdn/models/update_environment_state_request.py quantcdn/models/update_environment_variable_request.py +quantcdn/models/update_skill200_response.py +quantcdn/models/update_skill_request.py quantcdn/models/update_task200_response.py quantcdn/models/update_task_request.py quantcdn/models/upload_file201_response.py @@ -646,6 +725,11 @@ quantcdn/models/v2_domain_dns_go_live_records_inner.py quantcdn/models/v2_domain_dns_validation_records_inner.py quantcdn/models/v2_domain_request.py quantcdn/models/v2_error.py +quantcdn/models/v2_metric_data.py +quantcdn/models/v2_metric_data_point.py +quantcdn/models/v2_metric_data_point_timestamp.py +quantcdn/models/v2_metrics_meta.py +quantcdn/models/v2_metrics_response.py quantcdn/models/v2_organization.py quantcdn/models/v2_organization_request.py quantcdn/models/v2_project.py @@ -711,7 +795,9 @@ test/test_ai_file_storage_api.py test/test_ai_inference_api.py test/test_ai_models_api.py test/test_ai_monitoring_api.py +test/test_ai_orchestrations_api.py test/test_ai_sessions_api.py +test/test_ai_skills_api.py test/test_ai_task_management_api.py test/test_ai_tools_api.py test/test_ai_vector_database_api.py @@ -725,6 +811,7 @@ test/test_applications_api.py test/test_backup_management_api.py test/test_bulk_set_environment_variables_request.py test/test_bulk_set_environment_variables_request_environment_inner.py +test/test_cdn_metrics_api.py test/test_chat_inference200_response.py test/test_chat_inference200_response_response.py test/test_chat_inference200_response_response_tool_use.py @@ -734,6 +821,7 @@ test/test_chat_inference200_response_response_tool_use_one_of_result.py test/test_chat_inference200_response_usage.py test/test_chat_inference202_response.py test/test_chat_inference_request.py +test/test_chat_inference_request_guardrails.py test/test_chat_inference_request_messages_inner.py test/test_chat_inference_request_messages_inner_content.py test/test_chat_inference_request_messages_inner_content_one_of_inner.py @@ -796,6 +884,11 @@ test/test_create_custom_tool_request.py test/test_create_environment403_response.py test/test_create_environment_request.py test/test_create_environment_request_environment_inner.py +test/test_create_orchestration_request.py +test/test_create_orchestration_request_input_source.py +test/test_create_orchestration_request_stop_condition.py +test/test_create_skill201_response.py +test/test_create_skill_request.py test/test_create_task201_response.py test/test_create_task_request.py test/test_create_vector_collection201_response.py @@ -810,9 +903,13 @@ test/test_delete_ai_session200_response.py test/test_delete_backup200_response.py test/test_delete_custom_tool200_response.py test/test_delete_file200_response.py +test/test_delete_skill200_response.py +test/test_delete_skill_collection200_response.py test/test_delete_task200_response.py test/test_delete_task409_response.py -test/test_delete_vector_collection200_response.py +test/test_delete_vector_documents200_response.py +test/test_delete_vector_documents_request.py +test/test_delete_vector_documents_request_metadata.py test/test_domains_api.py test/test_download_backup200_response.py test/test_embeddings200_response.py @@ -852,6 +949,8 @@ test/test_get_ecr_login_credentials200_response.py test/test_get_environment_logs200_response.py test/test_get_environment_logs200_response_log_events_inner.py test/test_get_file200_response.py +test/test_get_skill200_response.py +test/test_get_skill200_response_skill.py test/test_get_ssh_access_credentials200_response.py test/test_get_ssh_access_credentials200_response_credentials.py test/test_get_task200_response.py @@ -867,11 +966,19 @@ test/test_image_generation_request_image_variation_params.py test/test_image_generation_request_in_painting_params.py test/test_image_generation_request_out_painting_params.py test/test_image_generation_request_text_to_image_params.py +test/test_import_skill201_response.py +test/test_import_skill_collection201_response.py +test/test_import_skill_collection_request.py +test/test_import_skill_collection_request_source.py +test/test_import_skill_request.py +test/test_import_skill_request_source.py test/test_kv_api.py test/test_kv_items_create200_response.py test/test_kv_items_delete200_response.py test/test_kv_items_show200_response.py test/test_kv_items_show200_response_value.py +test/test_kv_link_to_project200_response.py +test/test_kv_link_to_project_request.py test/test_list_ai_agents200_response.py test/test_list_ai_agents200_response_agents_inner.py test/test_list_ai_models200_response.py @@ -892,11 +999,17 @@ test/test_list_custom_tools200_response.py test/test_list_custom_tools200_response_tools_inner.py test/test_list_files200_response.py test/test_list_files200_response_files_inner.py +test/test_list_orchestration_batches200_response.py +test/test_list_orchestration_batches200_response_batches_inner.py +test/test_list_orchestrations200_response.py +test/test_list_skill_collections200_response.py +test/test_list_skill_collections200_response_collections_inner.py +test/test_list_skills200_response.py +test/test_list_skills200_response_skills_inner.py test/test_list_tasks200_response.py test/test_list_tasks200_response_tasks_inner.py test/test_list_vector_collections200_response.py test/test_list_vector_collections200_response_collections_inner.py -test/test_orchestration_api.py test/test_organizations_api.py test/test_organizations_list200_response_inner.py test/test_patch_environment_compose202_response.py @@ -921,7 +1034,13 @@ test/test_submit_tool_callback200_response.py test/test_submit_tool_callback_request.py test/test_submit_tool_callback_request_tool_results_inner.py test/test_sync_operation.py +test/test_sync_skill_collection200_response.py test/test_sync_to_environment_request.py +test/test_tokens_api.py +test/test_tokens_create201_response.py +test/test_tokens_create_request.py +test/test_tokens_delete200_response.py +test/test_tokens_list200_response_inner.py test/test_update_ai_agent200_response.py test/test_update_ai_agent_request.py test/test_update_ai_session200_response.py @@ -931,6 +1050,8 @@ test/test_update_cron_job_request.py test/test_update_environment_request.py test/test_update_environment_state_request.py test/test_update_environment_variable_request.py +test/test_update_skill200_response.py +test/test_update_skill_request.py test/test_update_task200_response.py test/test_update_task_request.py test/test_upload_file201_response.py @@ -994,6 +1115,11 @@ test/test_v2_domain_dns_go_live_records_inner.py test/test_v2_domain_dns_validation_records_inner.py test/test_v2_domain_request.py test/test_v2_error.py +test/test_v2_metric_data.py +test/test_v2_metric_data_point.py +test/test_v2_metric_data_point_timestamp.py +test/test_v2_metrics_meta.py +test/test_v2_metrics_response.py test/test_v2_organization.py test/test_v2_organization_request.py test/test_v2_project.py diff --git a/README.md b/README.md index 13b3f72..995d443 100644 --- a/README.md +++ b/README.md @@ -3,7 +3,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services This Python package is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project: -- API version: 4.9.0 +- API version: 4.12.0 - Package version: 1.0.0 - Generator version: 7.13.0 - Build package: org.openapitools.codegen.languages.PythonClientCodegen @@ -118,25 +118,46 @@ Class | Method | HTTP request | Description *AIModelsApi* | [**get_ai_model**](docs/AIModelsApi.md#get_ai_model) | **GET** /api/v3/organizations/{organisation}/ai/models/{modelId} | Get AI Model Details *AIModelsApi* | [**list_ai_models**](docs/AIModelsApi.md#list_ai_models) | **GET** /api/v3/organizations/{organisation}/ai/models | List available AI models for an organization *AIMonitoringApi* | [**get_ai_usage_stats**](docs/AIMonitoringApi.md#get_ai_usage_stats) | **GET** /api/v3/organizations/{organisation}/ai/usage | Get AI usage statistics +*AIOrchestrationsApi* | [**cancel_orchestration**](docs/AIOrchestrationsApi.md#cancel_orchestration) | **POST** /api/v3/organizations/{organisation}/ai/orchestrations/{orchestrationId}/cancel | Cancel Durable Orchestration +*AIOrchestrationsApi* | [**create_orchestration**](docs/AIOrchestrationsApi.md#create_orchestration) | **POST** /api/v3/organizations/{organisation}/ai/orchestrations | Create Durable Orchestration +*AIOrchestrationsApi* | [**delete_orchestration**](docs/AIOrchestrationsApi.md#delete_orchestration) | **DELETE** /api/v3/organizations/{organisation}/ai/orchestrations/{orchestrationId} | Delete Durable Orchestration +*AIOrchestrationsApi* | [**get_orchestration**](docs/AIOrchestrationsApi.md#get_orchestration) | **GET** /api/v3/organizations/{organisation}/ai/orchestrations/{orchestrationId} | Get Durable Orchestration +*AIOrchestrationsApi* | [**list_orchestration_batches**](docs/AIOrchestrationsApi.md#list_orchestration_batches) | **GET** /api/v3/organizations/{organisation}/ai/orchestrations/{orchestrationId}/batches | List Orchestration Batches +*AIOrchestrationsApi* | [**list_orchestrations**](docs/AIOrchestrationsApi.md#list_orchestrations) | **GET** /api/v3/organizations/{organisation}/ai/orchestrations | List Durable Orchestrations +*AIOrchestrationsApi* | [**pause_orchestration**](docs/AIOrchestrationsApi.md#pause_orchestration) | **POST** /api/v3/organizations/{organisation}/ai/orchestrations/{orchestrationId}/pause | Pause Durable Orchestration +*AIOrchestrationsApi* | [**resume_orchestration**](docs/AIOrchestrationsApi.md#resume_orchestration) | **POST** /api/v3/organizations/{organisation}/ai/orchestrations/{orchestrationId}/resume | Resume Durable Orchestration +*AIOrchestrationsApi* | [**start_orchestration**](docs/AIOrchestrationsApi.md#start_orchestration) | **POST** /api/v3/organizations/{organisation}/ai/orchestrations/{orchestrationId}/start | Start Durable Orchestration *AISessionsApi* | [**create_ai_session**](docs/AISessionsApi.md#create_ai_session) | **POST** /api/v3/organizations/{organisation}/ai/sessions | Create a new chat session with multi-tenant isolation *AISessionsApi* | [**delete_ai_session**](docs/AISessionsApi.md#delete_ai_session) | **DELETE** /api/v3/organizations/{organisation}/ai/sessions/{sessionId} | Delete a chat session *AISessionsApi* | [**extend_ai_session**](docs/AISessionsApi.md#extend_ai_session) | **PUT** /api/v3/organizations/{organisation}/ai/sessions/{sessionId}/extend | Extend Session Expiration *AISessionsApi* | [**get_ai_session**](docs/AISessionsApi.md#get_ai_session) | **GET** /api/v3/organizations/{organisation}/ai/sessions/{sessionId} | Get a specific chat session *AISessionsApi* | [**list_ai_sessions**](docs/AISessionsApi.md#list_ai_sessions) | **GET** /api/v3/organizations/{organisation}/ai/sessions | List chat sessions with multi-tenant filtering *AISessionsApi* | [**update_ai_session**](docs/AISessionsApi.md#update_ai_session) | **PUT** /api/v3/organizations/{organisation}/ai/sessions/{sessionId} | Update Session +*AISkillsApi* | [**create_skill**](docs/AISkillsApi.md#create_skill) | **POST** /api/v3/organizations/{organisation}/ai/skills | Create Inline Skill +*AISkillsApi* | [**delete_skill**](docs/AISkillsApi.md#delete_skill) | **DELETE** /api/v3/organizations/{organisation}/ai/skills/{skillId} | Delete Skill +*AISkillsApi* | [**delete_skill_collection**](docs/AISkillsApi.md#delete_skill_collection) | **DELETE** /api/v3/organizations/{organisation}/ai/skills/collections/{namespace} | Delete Skill Collection +*AISkillsApi* | [**get_skill**](docs/AISkillsApi.md#get_skill) | **GET** /api/v3/organizations/{organisation}/ai/skills/{skillId} | Get Skill Details +*AISkillsApi* | [**import_skill**](docs/AISkillsApi.md#import_skill) | **POST** /api/v3/organizations/{organisation}/ai/skills/import | Import Skill from External Source +*AISkillsApi* | [**import_skill_collection**](docs/AISkillsApi.md#import_skill_collection) | **POST** /api/v3/organizations/{organisation}/ai/skills/import-collection | Import Skill Collection from GitHub +*AISkillsApi* | [**list_skill_collections**](docs/AISkillsApi.md#list_skill_collections) | **GET** /api/v3/organizations/{organisation}/ai/skills/collections | List Skill Collections +*AISkillsApi* | [**list_skills**](docs/AISkillsApi.md#list_skills) | **GET** /api/v3/organizations/{organisation}/ai/skills | List Organization's Skills +*AISkillsApi* | [**sync_skill**](docs/AISkillsApi.md#sync_skill) | **POST** /api/v3/organizations/{organisation}/ai/skills/{skillId}/sync | Sync Skill from Source +*AISkillsApi* | [**sync_skill_collection**](docs/AISkillsApi.md#sync_skill_collection) | **POST** /api/v3/organizations/{organisation}/ai/skills/collections/{namespace}/sync | Sync Skill Collection +*AISkillsApi* | [**update_skill**](docs/AISkillsApi.md#update_skill) | **PUT** /api/v3/organizations/{organisation}/ai/skills/{skillId} | Update Skill *AITaskManagementApi* | [**create_task**](docs/AITaskManagementApi.md#create_task) | **POST** /api/v3/organizations/{organisation}/ai/tasks | Create a new task *AITaskManagementApi* | [**delete_task**](docs/AITaskManagementApi.md#delete_task) | **DELETE** /api/v3/organizations/{organisation}/ai/tasks/{taskId} | Delete a task *AITaskManagementApi* | [**get_dependency_graph**](docs/AITaskManagementApi.md#get_dependency_graph) | **GET** /api/v3/organizations/{organisation}/ai/tasks/{taskListId}/dependency-graph | Get dependency graph for a task list *AITaskManagementApi* | [**get_task**](docs/AITaskManagementApi.md#get_task) | **GET** /api/v3/organizations/{organisation}/ai/tasks/{taskId} | Get task details *AITaskManagementApi* | [**list_tasks**](docs/AITaskManagementApi.md#list_tasks) | **GET** /api/v3/organizations/{organisation}/ai/tasks | List tasks with optional filtering *AITaskManagementApi* | [**update_task**](docs/AITaskManagementApi.md#update_task) | **PUT** /api/v3/organizations/{organisation}/ai/tasks/{taskId} | Update a task -*AIToolsApi* | [**get_ai_orchestration_status**](docs/AIToolsApi.md#get_ai_orchestration_status) | **GET** /api/v3/organizations/{organisation}/ai/tools/orchestrations/{orchestrationId} | Get Orchestration Status +*AIToolsApi* | [**get_ai_orchestration_status**](docs/AIToolsApi.md#get_ai_orchestration_status) | **GET** /api/v3/organizations/{organisation}/ai/tools/orchestrations/{orchestrationId} | Get Tool Orchestration Status (Async Tool Polling) *AIToolsApi* | [**get_ai_tool_execution_status**](docs/AIToolsApi.md#get_ai_tool_execution_status) | **GET** /api/v3/organizations/{organisation}/ai/tools/executions/{executionId} | Get async tool execution status and result *AIToolsApi* | [**list_ai_tool_executions**](docs/AIToolsApi.md#list_ai_tool_executions) | **GET** /api/v3/organizations/{organisation}/ai/tools/executions | List tool executions for monitoring and debugging *AIToolsApi* | [**list_ai_tool_names**](docs/AIToolsApi.md#list_ai_tool_names) | **GET** /api/v3/organizations/{organisation}/ai/tools/names | List tool names only (lightweight response) *AIToolsApi* | [**list_ai_tools**](docs/AIToolsApi.md#list_ai_tools) | **GET** /api/v3/organizations/{organisation}/ai/tools | List available built-in tools for function calling *AIVectorDatabaseApi* | [**create_vector_collection**](docs/AIVectorDatabaseApi.md#create_vector_collection) | **POST** /api/v3/organizations/{organisation}/ai/vector-db/collections | Create Vector Database Collection *AIVectorDatabaseApi* | [**delete_vector_collection**](docs/AIVectorDatabaseApi.md#delete_vector_collection) | **DELETE** /api/v3/organizations/{organisation}/ai/vector-db/collections/{collectionId} | Delete Collection +*AIVectorDatabaseApi* | [**delete_vector_documents**](docs/AIVectorDatabaseApi.md#delete_vector_documents) | **DELETE** /api/v3/organizations/{organisation}/ai/vector-db/collections/{collectionId}/documents | Delete Documents from Collection *AIVectorDatabaseApi* | [**get_vector_collection**](docs/AIVectorDatabaseApi.md#get_vector_collection) | **GET** /api/v3/organizations/{organisation}/ai/vector-db/collections/{collectionId} | Get Collection Details *AIVectorDatabaseApi* | [**list_vector_collections**](docs/AIVectorDatabaseApi.md#list_vector_collections) | **GET** /api/v3/organizations/{organisation}/ai/vector-db/collections | List Vector Database Collections *AIVectorDatabaseApi* | [**query_vector_collection**](docs/AIVectorDatabaseApi.md#query_vector_collection) | **POST** /api/v3/organizations/{organisation}/ai/vector-db/collections/{collectionId}/query | Semantic Search Query @@ -150,6 +171,9 @@ Class | Method | HTTP request | Description *BackupManagementApi* | [**delete_backup**](docs/BackupManagementApi.md#delete_backup) | **DELETE** /api/v3/organizations/{organisation}/applications/{application}/environments/{environment}/backups/{type}/{backupId} | Delete a backup *BackupManagementApi* | [**download_backup**](docs/BackupManagementApi.md#download_backup) | **GET** /api/v3/organizations/{organisation}/applications/{application}/environments/{environment}/backups/{type}/{backupId}/download | Generate a download URL for a backup *BackupManagementApi* | [**list_backups**](docs/BackupManagementApi.md#list_backups) | **GET** /api/v3/organizations/{organisation}/applications/{application}/environments/{environment}/backups/{type} | List backups for an environment +*CDNMetricsApi* | [**get_daily_metrics**](docs/CDNMetricsApi.md#get_daily_metrics) | **GET** /v2/organizations/{organization}/projects/{project}/metrics/daily | Get daily metrics +*CDNMetricsApi* | [**get_hourly_metrics**](docs/CDNMetricsApi.md#get_hourly_metrics) | **GET** /v2/organizations/{organization}/projects/{project}/metrics/hourly | Get hourly metrics +*CDNMetricsApi* | [**get_monthly_metrics**](docs/CDNMetricsApi.md#get_monthly_metrics) | **GET** /v2/organizations/{organization}/projects/{project}/metrics/monthly | Get monthly metrics *CommandsApi* | [**create_command**](docs/CommandsApi.md#create_command) | **POST** /api/v3/organizations/{organisation}/environments/{environment}/commands | Create a command for an environment *CommandsApi* | [**get_command**](docs/CommandsApi.md#get_command) | **GET** /api/v3/organizations/{organisation}/environments/{environment}/commands/{command} | Get a command *CommandsApi* | [**list_commands**](docs/CommandsApi.md#list_commands) | **GET** /api/v3/organizations/{organisation}/environments/{environment}/commands | Get all commands for an environment @@ -203,9 +227,10 @@ Class | Method | HTTP request | Description *KVApi* | [**k_v_items_list**](docs/KVApi.md#k_v_items_list) | **GET** /api/v2/organizations/{organization}/projects/{project}/kv/{store_id}/items | List items in a kv store *KVApi* | [**k_v_items_show**](docs/KVApi.md#k_v_items_show) | **GET** /api/v2/organizations/{organization}/projects/{project}/kv/{store_id}/items/{key} | Get an item from a kv store *KVApi* | [**k_v_items_update**](docs/KVApi.md#k_v_items_update) | **PUT** /api/v2/organizations/{organization}/projects/{project}/kv/{store_id}/items/{key} | Update an item in a kv store +*KVApi* | [**k_v_link_to_project**](docs/KVApi.md#k_v_link_to_project) | **POST** /api/v2/organizations/{organization}/projects/{project}/kv/{store_id}/link | Link a KV store to another project *KVApi* | [**k_v_list**](docs/KVApi.md#k_v_list) | **GET** /api/v2/organizations/{organization}/projects/{project}/kv | List key-value stores *KVApi* | [**k_v_show**](docs/KVApi.md#k_v_show) | **GET** /api/v2/organizations/{organization}/projects/{project}/kv/{store_id} | Get a kv store -*OrchestrationApi* | [**get_ai_orchestration_status**](docs/OrchestrationApi.md#get_ai_orchestration_status) | **GET** /api/v3/organizations/{organisation}/ai/tools/orchestrations/{orchestrationId} | Get Orchestration Status +*KVApi* | [**k_v_unlink_from_project**](docs/KVApi.md#k_v_unlink_from_project) | **DELETE** /api/v2/organizations/{organization}/projects/{project}/kv/{store_id}/link | Unlink a KV store from this project *OrganizationsApi* | [**organizations_list**](docs/OrganizationsApi.md#organizations_list) | **GET** /api/v2/organizations | Retrieve all organizations *OrganizationsApi* | [**organizations_read**](docs/OrganizationsApi.md#organizations_read) | **GET** /api/v2/organizations/{organization} | Get details of a single organization *ProjectsApi* | [**projects_create**](docs/ProjectsApi.md#projects_create) | **POST** /api/v2/organizations/{organization}/projects | Create a new project @@ -263,6 +288,9 @@ Class | Method | HTTP request | Description *ScalingPolicyApi* | [**delete_scaling_policy**](docs/ScalingPolicyApi.md#delete_scaling_policy) | **DELETE** /api/v3/organizations/{organisation}/applications/{application}/environments/{environment}/scaling-policies/{policyName} | Delete the scaling policy for an environment *ScalingPolicyApi* | [**get_scaling_policies**](docs/ScalingPolicyApi.md#get_scaling_policies) | **GET** /api/v3/organizations/{organisation}/applications/{application}/environments/{environment}/scaling-policies | Get the scaling policies for an environment *ScalingPolicyApi* | [**update_scaling_policy**](docs/ScalingPolicyApi.md#update_scaling_policy) | **PUT** /api/v3/organizations/{organisation}/applications/{application}/environments/{environment}/scaling-policies | Update the scaling policy for an environment +*TokensApi* | [**tokens_create**](docs/TokensApi.md#tokens_create) | **POST** /api/v2/organizations/{organization}/tokens | Create a new API token scoped to this organization +*TokensApi* | [**tokens_delete**](docs/TokensApi.md#tokens_delete) | **DELETE** /api/v2/organizations/{organization}/tokens/{token_id} | Revoke an API token +*TokensApi* | [**tokens_list**](docs/TokensApi.md#tokens_list) | **GET** /api/v2/organizations/{organization}/tokens | List API tokens scoped to this organization *VariablesApi* | [**bulk_set_environment_variables**](docs/VariablesApi.md#bulk_set_environment_variables) | **PUT** /api/v3/organizations/{api_organisation}/applications/{api_application}/environments/{api_environment}/variables | Bulk set/replace environment variables *VariablesApi* | [**delete_environment_variable**](docs/VariablesApi.md#delete_environment_variable) | **DELETE** /api/v3/organizations/{api_organisation}/applications/{api_application}/environments/{api_environment}/variables/{api_variable} | Delete a variable *VariablesApi* | [**list_environment_variables**](docs/VariablesApi.md#list_environment_variables) | **GET** /api/v3/organizations/{api_organisation}/applications/{api_application}/environments/{api_environment}/variables | Get all variables for an environment @@ -292,6 +320,7 @@ Class | Method | HTTP request | Description - [ChatInference200ResponseUsage](docs/ChatInference200ResponseUsage.md) - [ChatInference202Response](docs/ChatInference202Response.md) - [ChatInferenceRequest](docs/ChatInferenceRequest.md) + - [ChatInferenceRequestGuardrails](docs/ChatInferenceRequestGuardrails.md) - [ChatInferenceRequestMessagesInner](docs/ChatInferenceRequestMessagesInner.md) - [ChatInferenceRequestMessagesInnerContent](docs/ChatInferenceRequestMessagesInnerContent.md) - [ChatInferenceRequestMessagesInnerContentOneOfInner](docs/ChatInferenceRequestMessagesInnerContentOneOfInner.md) @@ -349,6 +378,11 @@ Class | Method | HTTP request | Description - [CreateEnvironment403Response](docs/CreateEnvironment403Response.md) - [CreateEnvironmentRequest](docs/CreateEnvironmentRequest.md) - [CreateEnvironmentRequestEnvironmentInner](docs/CreateEnvironmentRequestEnvironmentInner.md) + - [CreateOrchestrationRequest](docs/CreateOrchestrationRequest.md) + - [CreateOrchestrationRequestInputSource](docs/CreateOrchestrationRequestInputSource.md) + - [CreateOrchestrationRequestStopCondition](docs/CreateOrchestrationRequestStopCondition.md) + - [CreateSkill201Response](docs/CreateSkill201Response.md) + - [CreateSkillRequest](docs/CreateSkillRequest.md) - [CreateTask201Response](docs/CreateTask201Response.md) - [CreateTaskRequest](docs/CreateTaskRequest.md) - [CreateVectorCollection201Response](docs/CreateVectorCollection201Response.md) @@ -362,9 +396,13 @@ Class | Method | HTTP request | Description - [DeleteBackup200Response](docs/DeleteBackup200Response.md) - [DeleteCustomTool200Response](docs/DeleteCustomTool200Response.md) - [DeleteFile200Response](docs/DeleteFile200Response.md) + - [DeleteSkill200Response](docs/DeleteSkill200Response.md) + - [DeleteSkillCollection200Response](docs/DeleteSkillCollection200Response.md) - [DeleteTask200Response](docs/DeleteTask200Response.md) - [DeleteTask409Response](docs/DeleteTask409Response.md) - - [DeleteVectorCollection200Response](docs/DeleteVectorCollection200Response.md) + - [DeleteVectorDocuments200Response](docs/DeleteVectorDocuments200Response.md) + - [DeleteVectorDocumentsRequest](docs/DeleteVectorDocumentsRequest.md) + - [DeleteVectorDocumentsRequestMetadata](docs/DeleteVectorDocumentsRequestMetadata.md) - [DownloadBackup200Response](docs/DownloadBackup200Response.md) - [Embeddings200Response](docs/Embeddings200Response.md) - [Embeddings200ResponseEmbeddings](docs/Embeddings200ResponseEmbeddings.md) @@ -402,6 +440,8 @@ Class | Method | HTTP request | Description - [GetEnvironmentLogs200Response](docs/GetEnvironmentLogs200Response.md) - [GetEnvironmentLogs200ResponseLogEventsInner](docs/GetEnvironmentLogs200ResponseLogEventsInner.md) - [GetFile200Response](docs/GetFile200Response.md) + - [GetSkill200Response](docs/GetSkill200Response.md) + - [GetSkill200ResponseSkill](docs/GetSkill200ResponseSkill.md) - [GetSshAccessCredentials200Response](docs/GetSshAccessCredentials200Response.md) - [GetSshAccessCredentials200ResponseCredentials](docs/GetSshAccessCredentials200ResponseCredentials.md) - [GetTask200Response](docs/GetTask200Response.md) @@ -416,10 +456,18 @@ Class | Method | HTTP request | Description - [ImageGenerationRequestInPaintingParams](docs/ImageGenerationRequestInPaintingParams.md) - [ImageGenerationRequestOutPaintingParams](docs/ImageGenerationRequestOutPaintingParams.md) - [ImageGenerationRequestTextToImageParams](docs/ImageGenerationRequestTextToImageParams.md) + - [ImportSkill201Response](docs/ImportSkill201Response.md) + - [ImportSkillCollection201Response](docs/ImportSkillCollection201Response.md) + - [ImportSkillCollectionRequest](docs/ImportSkillCollectionRequest.md) + - [ImportSkillCollectionRequestSource](docs/ImportSkillCollectionRequestSource.md) + - [ImportSkillRequest](docs/ImportSkillRequest.md) + - [ImportSkillRequestSource](docs/ImportSkillRequestSource.md) - [KVItemsCreate200Response](docs/KVItemsCreate200Response.md) - [KVItemsDelete200Response](docs/KVItemsDelete200Response.md) - [KVItemsShow200Response](docs/KVItemsShow200Response.md) - [KVItemsShow200ResponseValue](docs/KVItemsShow200ResponseValue.md) + - [KVLinkToProject200Response](docs/KVLinkToProject200Response.md) + - [KVLinkToProjectRequest](docs/KVLinkToProjectRequest.md) - [ListAIAgents200Response](docs/ListAIAgents200Response.md) - [ListAIAgents200ResponseAgentsInner](docs/ListAIAgents200ResponseAgentsInner.md) - [ListAIModels200Response](docs/ListAIModels200Response.md) @@ -440,6 +488,13 @@ Class | Method | HTTP request | Description - [ListCustomTools200ResponseToolsInner](docs/ListCustomTools200ResponseToolsInner.md) - [ListFiles200Response](docs/ListFiles200Response.md) - [ListFiles200ResponseFilesInner](docs/ListFiles200ResponseFilesInner.md) + - [ListOrchestrationBatches200Response](docs/ListOrchestrationBatches200Response.md) + - [ListOrchestrationBatches200ResponseBatchesInner](docs/ListOrchestrationBatches200ResponseBatchesInner.md) + - [ListOrchestrations200Response](docs/ListOrchestrations200Response.md) + - [ListSkillCollections200Response](docs/ListSkillCollections200Response.md) + - [ListSkillCollections200ResponseCollectionsInner](docs/ListSkillCollections200ResponseCollectionsInner.md) + - [ListSkills200Response](docs/ListSkills200Response.md) + - [ListSkills200ResponseSkillsInner](docs/ListSkills200ResponseSkillsInner.md) - [ListTasks200Response](docs/ListTasks200Response.md) - [ListTasks200ResponseTasksInner](docs/ListTasks200ResponseTasksInner.md) - [ListVectorCollections200Response](docs/ListVectorCollections200Response.md) @@ -462,7 +517,12 @@ Class | Method | HTTP request | Description - [SubmitToolCallbackRequest](docs/SubmitToolCallbackRequest.md) - [SubmitToolCallbackRequestToolResultsInner](docs/SubmitToolCallbackRequestToolResultsInner.md) - [SyncOperation](docs/SyncOperation.md) + - [SyncSkillCollection200Response](docs/SyncSkillCollection200Response.md) - [SyncToEnvironmentRequest](docs/SyncToEnvironmentRequest.md) + - [TokensCreate201Response](docs/TokensCreate201Response.md) + - [TokensCreateRequest](docs/TokensCreateRequest.md) + - [TokensDelete200Response](docs/TokensDelete200Response.md) + - [TokensList200ResponseInner](docs/TokensList200ResponseInner.md) - [UpdateAIAgent200Response](docs/UpdateAIAgent200Response.md) - [UpdateAIAgentRequest](docs/UpdateAIAgentRequest.md) - [UpdateAISession200Response](docs/UpdateAISession200Response.md) @@ -472,6 +532,8 @@ Class | Method | HTTP request | Description - [UpdateEnvironmentRequest](docs/UpdateEnvironmentRequest.md) - [UpdateEnvironmentStateRequest](docs/UpdateEnvironmentStateRequest.md) - [UpdateEnvironmentVariableRequest](docs/UpdateEnvironmentVariableRequest.md) + - [UpdateSkill200Response](docs/UpdateSkill200Response.md) + - [UpdateSkillRequest](docs/UpdateSkillRequest.md) - [UpdateTask200Response](docs/UpdateTask200Response.md) - [UpdateTaskRequest](docs/UpdateTaskRequest.md) - [UploadFile201Response](docs/UploadFile201Response.md) @@ -535,6 +597,11 @@ Class | Method | HTTP request | Description - [V2DomainDnsValidationRecordsInner](docs/V2DomainDnsValidationRecordsInner.md) - [V2DomainRequest](docs/V2DomainRequest.md) - [V2Error](docs/V2Error.md) + - [V2MetricData](docs/V2MetricData.md) + - [V2MetricDataPoint](docs/V2MetricDataPoint.md) + - [V2MetricDataPointTimestamp](docs/V2MetricDataPointTimestamp.md) + - [V2MetricsMeta](docs/V2MetricsMeta.md) + - [V2MetricsResponse](docs/V2MetricsResponse.md) - [V2Organization](docs/V2Organization.md) - [V2OrganizationRequest](docs/V2OrganizationRequest.md) - [V2Project](docs/V2Project.md) diff --git a/docs/AIOrchestrationsApi.md b/docs/AIOrchestrationsApi.md new file mode 100644 index 0000000..a19cd7f --- /dev/null +++ b/docs/AIOrchestrationsApi.md @@ -0,0 +1,796 @@ +# quantcdn.AIOrchestrationsApi + +All URIs are relative to *https://dashboard.quantcdn.io* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**cancel_orchestration**](AIOrchestrationsApi.md#cancel_orchestration) | **POST** /api/v3/organizations/{organisation}/ai/orchestrations/{orchestrationId}/cancel | Cancel Durable Orchestration +[**create_orchestration**](AIOrchestrationsApi.md#create_orchestration) | **POST** /api/v3/organizations/{organisation}/ai/orchestrations | Create Durable Orchestration +[**delete_orchestration**](AIOrchestrationsApi.md#delete_orchestration) | **DELETE** /api/v3/organizations/{organisation}/ai/orchestrations/{orchestrationId} | Delete Durable Orchestration +[**get_orchestration**](AIOrchestrationsApi.md#get_orchestration) | **GET** /api/v3/organizations/{organisation}/ai/orchestrations/{orchestrationId} | Get Durable Orchestration +[**list_orchestration_batches**](AIOrchestrationsApi.md#list_orchestration_batches) | **GET** /api/v3/organizations/{organisation}/ai/orchestrations/{orchestrationId}/batches | List Orchestration Batches +[**list_orchestrations**](AIOrchestrationsApi.md#list_orchestrations) | **GET** /api/v3/organizations/{organisation}/ai/orchestrations | List Durable Orchestrations +[**pause_orchestration**](AIOrchestrationsApi.md#pause_orchestration) | **POST** /api/v3/organizations/{organisation}/ai/orchestrations/{orchestrationId}/pause | Pause Durable Orchestration +[**resume_orchestration**](AIOrchestrationsApi.md#resume_orchestration) | **POST** /api/v3/organizations/{organisation}/ai/orchestrations/{orchestrationId}/resume | Resume Durable Orchestration +[**start_orchestration**](AIOrchestrationsApi.md#start_orchestration) | **POST** /api/v3/organizations/{organisation}/ai/orchestrations/{orchestrationId}/start | Start Durable Orchestration + + +# **cancel_orchestration** +> object cancel_orchestration(organisation, orchestration_id) + +Cancel Durable Orchestration + +Cancel an orchestration permanently. Cannot be resumed. Any in-progress items will complete, but no new processing starts. + +### Example + +* Bearer (JWT) Authentication (BearerAuth): + +```python +import quantcdn +from quantcdn.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to https://dashboard.quantcdn.io +# See configuration.py for a list of all supported configuration parameters. +configuration = quantcdn.Configuration( + host = "https://dashboard.quantcdn.io" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure Bearer authorization (JWT): BearerAuth +configuration = quantcdn.Configuration( + access_token = os.environ["BEARER_TOKEN"] +) + +# Enter a context with an instance of the API client +with quantcdn.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = quantcdn.AIOrchestrationsApi(api_client) + organisation = 'organisation_example' # str | The organisation machine name + orchestration_id = 'orchestration_id_example' # str | Orchestration identifier + + try: + # Cancel Durable Orchestration + api_response = api_instance.cancel_orchestration(organisation, orchestration_id) + print("The response of AIOrchestrationsApi->cancel_orchestration:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling AIOrchestrationsApi->cancel_orchestration: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **organisation** | **str**| The organisation machine name | + **orchestration_id** | **str**| Orchestration identifier | + +### Return type + +**object** + +### Authorization + +[BearerAuth](../README.md#BearerAuth) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | Orchestration cancelled | - | +**400** | Orchestration already completed/cancelled | - | +**403** | Access denied | - | +**404** | Orchestration not found | - | +**500** | Failed to cancel orchestration | - | + +[[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) + +# **create_orchestration** +> object create_orchestration(organisation, create_orchestration_request) + +Create Durable Orchestration + +Create a new durable orchestration for batch processing. + * + * **Input Sources:** + * - `static`: Process a fixed list of items + * - `task_query`: Process tasks matching a query + * - `generator`: AI generates items from a prompt + * + * **Stop Conditions:** + * - `all_complete`: Stop when all items processed + * - `max_iterations`: Stop after N iterations + * - `condition`: AI evaluates a prompt to decide + * - `manual`: Run until manually stopped + * + * **Auto-start:** + * By default, the orchestration starts immediately. Set `autoStart: false` to create in pending state. + +### Example + +* Bearer (JWT) Authentication (BearerAuth): + +```python +import quantcdn +from quantcdn.models.create_orchestration_request import CreateOrchestrationRequest +from quantcdn.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to https://dashboard.quantcdn.io +# See configuration.py for a list of all supported configuration parameters. +configuration = quantcdn.Configuration( + host = "https://dashboard.quantcdn.io" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure Bearer authorization (JWT): BearerAuth +configuration = quantcdn.Configuration( + access_token = os.environ["BEARER_TOKEN"] +) + +# Enter a context with an instance of the API client +with quantcdn.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = quantcdn.AIOrchestrationsApi(api_client) + organisation = 'organisation_example' # str | The organisation machine name + create_orchestration_request = quantcdn.CreateOrchestrationRequest() # CreateOrchestrationRequest | + + try: + # Create Durable Orchestration + api_response = api_instance.create_orchestration(organisation, create_orchestration_request) + print("The response of AIOrchestrationsApi->create_orchestration:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling AIOrchestrationsApi->create_orchestration: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **organisation** | **str**| The organisation machine name | + **create_orchestration_request** | [**CreateOrchestrationRequest**](CreateOrchestrationRequest.md)| | + +### Return type + +**object** + +### Authorization + +[BearerAuth](../README.md#BearerAuth) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**201** | Orchestration created | - | +**400** | Invalid request | - | +**403** | Access denied | - | +**500** | Failed to create orchestration | - | + +[[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) + +# **delete_orchestration** +> delete_orchestration(organisation, orchestration_id) + +Delete Durable Orchestration + +Delete an orchestration. Can only delete orchestrations in completed, failed, or cancelled status. + +### Example + +* Bearer (JWT) Authentication (BearerAuth): + +```python +import quantcdn +from quantcdn.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to https://dashboard.quantcdn.io +# See configuration.py for a list of all supported configuration parameters. +configuration = quantcdn.Configuration( + host = "https://dashboard.quantcdn.io" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure Bearer authorization (JWT): BearerAuth +configuration = quantcdn.Configuration( + access_token = os.environ["BEARER_TOKEN"] +) + +# Enter a context with an instance of the API client +with quantcdn.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = quantcdn.AIOrchestrationsApi(api_client) + organisation = 'organisation_example' # str | The organisation machine name + orchestration_id = 'orchestration_id_example' # str | Orchestration identifier + + try: + # Delete Durable Orchestration + api_instance.delete_orchestration(organisation, orchestration_id) + except Exception as e: + print("Exception when calling AIOrchestrationsApi->delete_orchestration: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **organisation** | **str**| The organisation machine name | + **orchestration_id** | **str**| Orchestration identifier | + +### Return type + +void (empty response body) + +### Authorization + +[BearerAuth](../README.md#BearerAuth) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: Not defined + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**204** | Orchestration deleted | - | +**400** | Cannot delete active orchestration | - | +**403** | Access denied | - | +**404** | Orchestration not found | - | +**500** | Failed to delete orchestration | - | + +[[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) + +# **get_orchestration** +> object get_orchestration(organisation, orchestration_id) + +Get Durable Orchestration + +Get orchestration details including status and progress. + * + * **Progress Tracking:** + * - `total`: Total items to process + * - `completed`: Successfully processed + * - `failed`: Failed processing + * - `pending`: Awaiting processing + +### Example + +* Bearer (JWT) Authentication (BearerAuth): + +```python +import quantcdn +from quantcdn.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to https://dashboard.quantcdn.io +# See configuration.py for a list of all supported configuration parameters. +configuration = quantcdn.Configuration( + host = "https://dashboard.quantcdn.io" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure Bearer authorization (JWT): BearerAuth +configuration = quantcdn.Configuration( + access_token = os.environ["BEARER_TOKEN"] +) + +# Enter a context with an instance of the API client +with quantcdn.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = quantcdn.AIOrchestrationsApi(api_client) + organisation = 'organisation_example' # str | The organisation machine name + orchestration_id = 'orch_1704067200_abc123xyz' # str | Orchestration identifier + + try: + # Get Durable Orchestration + api_response = api_instance.get_orchestration(organisation, orchestration_id) + print("The response of AIOrchestrationsApi->get_orchestration:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling AIOrchestrationsApi->get_orchestration: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **organisation** | **str**| The organisation machine name | + **orchestration_id** | **str**| Orchestration identifier | + +### Return type + +**object** + +### Authorization + +[BearerAuth](../README.md#BearerAuth) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | Orchestration details | - | +**403** | Access denied | - | +**404** | Orchestration not found | - | +**500** | Failed to get orchestration | - | + +[[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) + +# **list_orchestration_batches** +> ListOrchestrationBatches200Response list_orchestration_batches(organisation, orchestration_id, limit=limit, cursor=cursor) + +List Orchestration Batches + +Get history of batches processed by this orchestration. Returns paginated batch records with status and item counts. + +### Example + +* Bearer (JWT) Authentication (BearerAuth): + +```python +import quantcdn +from quantcdn.models.list_orchestration_batches200_response import ListOrchestrationBatches200Response +from quantcdn.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to https://dashboard.quantcdn.io +# See configuration.py for a list of all supported configuration parameters. +configuration = quantcdn.Configuration( + host = "https://dashboard.quantcdn.io" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure Bearer authorization (JWT): BearerAuth +configuration = quantcdn.Configuration( + access_token = os.environ["BEARER_TOKEN"] +) + +# Enter a context with an instance of the API client +with quantcdn.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = quantcdn.AIOrchestrationsApi(api_client) + organisation = 'organisation_example' # str | The organisation machine name + orchestration_id = 'orchestration_id_example' # str | Orchestration identifier + limit = 20 # int | Maximum number of batches to return (optional) (default to 20) + cursor = 'cursor_example' # str | Pagination cursor from previous response (optional) + + try: + # List Orchestration Batches + api_response = api_instance.list_orchestration_batches(organisation, orchestration_id, limit=limit, cursor=cursor) + print("The response of AIOrchestrationsApi->list_orchestration_batches:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling AIOrchestrationsApi->list_orchestration_batches: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **organisation** | **str**| The organisation machine name | + **orchestration_id** | **str**| Orchestration identifier | + **limit** | **int**| Maximum number of batches to return | [optional] [default to 20] + **cursor** | **str**| Pagination cursor from previous response | [optional] + +### Return type + +[**ListOrchestrationBatches200Response**](ListOrchestrationBatches200Response.md) + +### Authorization + +[BearerAuth](../README.md#BearerAuth) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | Batch history | - | +**403** | Access denied | - | +**404** | Orchestration not found | - | +**500** | Failed to list orchestration batches | - | + +[[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) + +# **list_orchestrations** +> ListOrchestrations200Response list_orchestrations(organisation, status=status, limit=limit, cursor=cursor) + +List Durable Orchestrations + +List durable orchestrations for an organization with optional filtering. + * + * **Note:** This is different from `/tools/orchestrations` which handles async tool execution + * polling. These durable orchestrations are for long-running batch processing loops. + * + * **Filter Options:** + * - `status`: Filter by orchestration status + * - `limit`: Max results (default 20, max 100) + * - `cursor`: Pagination cursor + +### Example + +* Bearer (JWT) Authentication (BearerAuth): + +```python +import quantcdn +from quantcdn.models.list_orchestrations200_response import ListOrchestrations200Response +from quantcdn.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to https://dashboard.quantcdn.io +# See configuration.py for a list of all supported configuration parameters. +configuration = quantcdn.Configuration( + host = "https://dashboard.quantcdn.io" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure Bearer authorization (JWT): BearerAuth +configuration = quantcdn.Configuration( + access_token = os.environ["BEARER_TOKEN"] +) + +# Enter a context with an instance of the API client +with quantcdn.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = quantcdn.AIOrchestrationsApi(api_client) + organisation = 'organisation_example' # str | The organisation machine name + status = 'status_example' # str | Filter by orchestration status (optional) + limit = 20 # int | Maximum number of results (optional) (default to 20) + cursor = 'cursor_example' # str | Pagination cursor from previous response (optional) + + try: + # List Durable Orchestrations + api_response = api_instance.list_orchestrations(organisation, status=status, limit=limit, cursor=cursor) + print("The response of AIOrchestrationsApi->list_orchestrations:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling AIOrchestrationsApi->list_orchestrations: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **organisation** | **str**| The organisation machine name | + **status** | **str**| Filter by orchestration status | [optional] + **limit** | **int**| Maximum number of results | [optional] [default to 20] + **cursor** | **str**| Pagination cursor from previous response | [optional] + +### Return type + +[**ListOrchestrations200Response**](ListOrchestrations200Response.md) + +### Authorization + +[BearerAuth](../README.md#BearerAuth) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | List of orchestrations | - | +**403** | Access denied | - | +**500** | Failed to list orchestrations | - | + +[[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) + +# **pause_orchestration** +> object pause_orchestration(organisation, orchestration_id) + +Pause Durable Orchestration + +Pause a running orchestration. The current batch will complete, but no new batches will start. Can be resumed later. + +### Example + +* Bearer (JWT) Authentication (BearerAuth): + +```python +import quantcdn +from quantcdn.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to https://dashboard.quantcdn.io +# See configuration.py for a list of all supported configuration parameters. +configuration = quantcdn.Configuration( + host = "https://dashboard.quantcdn.io" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure Bearer authorization (JWT): BearerAuth +configuration = quantcdn.Configuration( + access_token = os.environ["BEARER_TOKEN"] +) + +# Enter a context with an instance of the API client +with quantcdn.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = quantcdn.AIOrchestrationsApi(api_client) + organisation = 'organisation_example' # str | The organisation machine name + orchestration_id = 'orchestration_id_example' # str | Orchestration identifier + + try: + # Pause Durable Orchestration + api_response = api_instance.pause_orchestration(organisation, orchestration_id) + print("The response of AIOrchestrationsApi->pause_orchestration:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling AIOrchestrationsApi->pause_orchestration: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **organisation** | **str**| The organisation machine name | + **orchestration_id** | **str**| Orchestration identifier | + +### Return type + +**object** + +### Authorization + +[BearerAuth](../README.md#BearerAuth) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | Orchestration paused | - | +**400** | Orchestration not running | - | +**403** | Access denied | - | +**404** | Orchestration not found | - | +**500** | Failed to pause orchestration | - | + +[[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) + +# **resume_orchestration** +> object resume_orchestration(organisation, orchestration_id) + +Resume Durable Orchestration + +Resume a paused orchestration. Processing continues from where it left off. + +### Example + +* Bearer (JWT) Authentication (BearerAuth): + +```python +import quantcdn +from quantcdn.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to https://dashboard.quantcdn.io +# See configuration.py for a list of all supported configuration parameters. +configuration = quantcdn.Configuration( + host = "https://dashboard.quantcdn.io" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure Bearer authorization (JWT): BearerAuth +configuration = quantcdn.Configuration( + access_token = os.environ["BEARER_TOKEN"] +) + +# Enter a context with an instance of the API client +with quantcdn.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = quantcdn.AIOrchestrationsApi(api_client) + organisation = 'organisation_example' # str | The organisation machine name + orchestration_id = 'orchestration_id_example' # str | Orchestration identifier + + try: + # Resume Durable Orchestration + api_response = api_instance.resume_orchestration(organisation, orchestration_id) + print("The response of AIOrchestrationsApi->resume_orchestration:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling AIOrchestrationsApi->resume_orchestration: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **organisation** | **str**| The organisation machine name | + **orchestration_id** | **str**| Orchestration identifier | + +### Return type + +**object** + +### Authorization + +[BearerAuth](../README.md#BearerAuth) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | Orchestration resumed | - | +**400** | Orchestration not paused | - | +**403** | Access denied | - | +**404** | Orchestration not found | - | +**500** | Failed to resume orchestration | - | + +[[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) + +# **start_orchestration** +> object start_orchestration(organisation, orchestration_id) + +Start Durable Orchestration + +Start a pending orchestration. Only works on orchestrations created with `autoStart: false`. + +### Example + +* Bearer (JWT) Authentication (BearerAuth): + +```python +import quantcdn +from quantcdn.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to https://dashboard.quantcdn.io +# See configuration.py for a list of all supported configuration parameters. +configuration = quantcdn.Configuration( + host = "https://dashboard.quantcdn.io" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure Bearer authorization (JWT): BearerAuth +configuration = quantcdn.Configuration( + access_token = os.environ["BEARER_TOKEN"] +) + +# Enter a context with an instance of the API client +with quantcdn.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = quantcdn.AIOrchestrationsApi(api_client) + organisation = 'organisation_example' # str | The organisation machine name + orchestration_id = 'orchestration_id_example' # str | Orchestration identifier + + try: + # Start Durable Orchestration + api_response = api_instance.start_orchestration(organisation, orchestration_id) + print("The response of AIOrchestrationsApi->start_orchestration:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling AIOrchestrationsApi->start_orchestration: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **organisation** | **str**| The organisation machine name | + **orchestration_id** | **str**| Orchestration identifier | + +### Return type + +**object** + +### Authorization + +[BearerAuth](../README.md#BearerAuth) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | Orchestration started | - | +**400** | Orchestration not in pending state | - | +**403** | Access denied | - | +**404** | Orchestration not found | - | +**500** | Failed to start orchestration | - | + +[[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/AISkillsApi.md b/docs/AISkillsApi.md new file mode 100644 index 0000000..ae4a863 --- /dev/null +++ b/docs/AISkillsApi.md @@ -0,0 +1,980 @@ +# quantcdn.AISkillsApi + +All URIs are relative to *https://dashboard.quantcdn.io* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**create_skill**](AISkillsApi.md#create_skill) | **POST** /api/v3/organizations/{organisation}/ai/skills | Create Inline Skill +[**delete_skill**](AISkillsApi.md#delete_skill) | **DELETE** /api/v3/organizations/{organisation}/ai/skills/{skillId} | Delete Skill +[**delete_skill_collection**](AISkillsApi.md#delete_skill_collection) | **DELETE** /api/v3/organizations/{organisation}/ai/skills/collections/{namespace} | Delete Skill Collection +[**get_skill**](AISkillsApi.md#get_skill) | **GET** /api/v3/organizations/{organisation}/ai/skills/{skillId} | Get Skill Details +[**import_skill**](AISkillsApi.md#import_skill) | **POST** /api/v3/organizations/{organisation}/ai/skills/import | Import Skill from External Source +[**import_skill_collection**](AISkillsApi.md#import_skill_collection) | **POST** /api/v3/organizations/{organisation}/ai/skills/import-collection | Import Skill Collection from GitHub +[**list_skill_collections**](AISkillsApi.md#list_skill_collections) | **GET** /api/v3/organizations/{organisation}/ai/skills/collections | List Skill Collections +[**list_skills**](AISkillsApi.md#list_skills) | **GET** /api/v3/organizations/{organisation}/ai/skills | List Organization's Skills +[**sync_skill**](AISkillsApi.md#sync_skill) | **POST** /api/v3/organizations/{organisation}/ai/skills/{skillId}/sync | Sync Skill from Source +[**sync_skill_collection**](AISkillsApi.md#sync_skill_collection) | **POST** /api/v3/organizations/{organisation}/ai/skills/collections/{namespace}/sync | Sync Skill Collection +[**update_skill**](AISkillsApi.md#update_skill) | **PUT** /api/v3/organizations/{organisation}/ai/skills/{skillId} | Update Skill + + +# **create_skill** +> CreateSkill201Response create_skill(organisation, create_skill_request) + +Create Inline Skill + +Creates a new skill with inline content. Use this for custom skills + * that are defined directly in your organization. + * + * **Trigger Conditions:** + * - Natural language description of when to use the skill + * - Used by AI to determine when to suggest or apply the skill + * - Example: 'When the user asks about code review or security analysis' + +### Example + +* Bearer (JWT) Authentication (BearerAuth): + +```python +import quantcdn +from quantcdn.models.create_skill201_response import CreateSkill201Response +from quantcdn.models.create_skill_request import CreateSkillRequest +from quantcdn.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to https://dashboard.quantcdn.io +# See configuration.py for a list of all supported configuration parameters. +configuration = quantcdn.Configuration( + host = "https://dashboard.quantcdn.io" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure Bearer authorization (JWT): BearerAuth +configuration = quantcdn.Configuration( + access_token = os.environ["BEARER_TOKEN"] +) + +# Enter a context with an instance of the API client +with quantcdn.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = quantcdn.AISkillsApi(api_client) + organisation = 'organisation_example' # str | The organisation ID + create_skill_request = quantcdn.CreateSkillRequest() # CreateSkillRequest | + + try: + # Create Inline Skill + api_response = api_instance.create_skill(organisation, create_skill_request) + print("The response of AISkillsApi->create_skill:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling AISkillsApi->create_skill: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **organisation** | **str**| The organisation ID | + **create_skill_request** | [**CreateSkillRequest**](CreateSkillRequest.md)| | + +### Return type + +[**CreateSkill201Response**](CreateSkill201Response.md) + +### Authorization + +[BearerAuth](../README.md#BearerAuth) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**201** | Skill created successfully | - | +**400** | Invalid request parameters | - | +**403** | Access denied | - | +**500** | Failed to create skill | - | + +[[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) + +# **delete_skill** +> DeleteSkill200Response delete_skill(organisation, skill_id) + +Delete Skill + +Permanently deletes a skill. This will also remove it from any agents that have it assigned. + +### Example + +* Bearer (JWT) Authentication (BearerAuth): + +```python +import quantcdn +from quantcdn.models.delete_skill200_response import DeleteSkill200Response +from quantcdn.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to https://dashboard.quantcdn.io +# See configuration.py for a list of all supported configuration parameters. +configuration = quantcdn.Configuration( + host = "https://dashboard.quantcdn.io" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure Bearer authorization (JWT): BearerAuth +configuration = quantcdn.Configuration( + access_token = os.environ["BEARER_TOKEN"] +) + +# Enter a context with an instance of the API client +with quantcdn.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = quantcdn.AISkillsApi(api_client) + organisation = 'organisation_example' # str | The organisation ID + skill_id = 'skill_id_example' # str | The skill ID + + try: + # Delete Skill + api_response = api_instance.delete_skill(organisation, skill_id) + print("The response of AISkillsApi->delete_skill:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling AISkillsApi->delete_skill: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **organisation** | **str**| The organisation ID | + **skill_id** | **str**| The skill ID | + +### Return type + +[**DeleteSkill200Response**](DeleteSkill200Response.md) + +### Authorization + +[BearerAuth](../README.md#BearerAuth) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | Skill deleted successfully | - | +**403** | Access denied | - | +**404** | Skill not found | - | +**500** | Failed to delete skill | - | + +[[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) + +# **delete_skill_collection** +> DeleteSkillCollection200Response delete_skill_collection(organisation, namespace) + +Delete Skill Collection + +Permanently deletes all skills in the specified namespace. + +### Example + +* Bearer (JWT) Authentication (BearerAuth): + +```python +import quantcdn +from quantcdn.models.delete_skill_collection200_response import DeleteSkillCollection200Response +from quantcdn.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to https://dashboard.quantcdn.io +# See configuration.py for a list of all supported configuration parameters. +configuration = quantcdn.Configuration( + host = "https://dashboard.quantcdn.io" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure Bearer authorization (JWT): BearerAuth +configuration = quantcdn.Configuration( + access_token = os.environ["BEARER_TOKEN"] +) + +# Enter a context with an instance of the API client +with quantcdn.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = quantcdn.AISkillsApi(api_client) + organisation = 'organisation_example' # str | The organisation ID + namespace = 'namespace_example' # str | Collection namespace + + try: + # Delete Skill Collection + api_response = api_instance.delete_skill_collection(organisation, namespace) + print("The response of AISkillsApi->delete_skill_collection:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling AISkillsApi->delete_skill_collection: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **organisation** | **str**| The organisation ID | + **namespace** | **str**| Collection namespace | + +### Return type + +[**DeleteSkillCollection200Response**](DeleteSkillCollection200Response.md) + +### Authorization + +[BearerAuth](../README.md#BearerAuth) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | Collection deleted successfully | - | +**403** | Access denied | - | +**404** | Collection not found | - | +**500** | Failed to delete collection | - | + +[[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) + +# **get_skill** +> GetSkill200Response get_skill(organisation, skill_id) + +Get Skill Details + +Retrieves full details of a skill including its content, source information, and metadata. + +### Example + +* Bearer (JWT) Authentication (BearerAuth): + +```python +import quantcdn +from quantcdn.models.get_skill200_response import GetSkill200Response +from quantcdn.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to https://dashboard.quantcdn.io +# See configuration.py for a list of all supported configuration parameters. +configuration = quantcdn.Configuration( + host = "https://dashboard.quantcdn.io" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure Bearer authorization (JWT): BearerAuth +configuration = quantcdn.Configuration( + access_token = os.environ["BEARER_TOKEN"] +) + +# Enter a context with an instance of the API client +with quantcdn.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = quantcdn.AISkillsApi(api_client) + organisation = 'organisation_example' # str | The organisation ID + skill_id = 'skill_id_example' # str | The skill ID + + try: + # Get Skill Details + api_response = api_instance.get_skill(organisation, skill_id) + print("The response of AISkillsApi->get_skill:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling AISkillsApi->get_skill: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **organisation** | **str**| The organisation ID | + **skill_id** | **str**| The skill ID | + +### Return type + +[**GetSkill200Response**](GetSkill200Response.md) + +### Authorization + +[BearerAuth](../README.md#BearerAuth) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | Skill details retrieved successfully | - | +**403** | Access denied | - | +**404** | Skill not found | - | +**500** | Failed to retrieve skill | - | + +[[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) + +# **import_skill** +> ImportSkill201Response import_skill(organisation, import_skill_request) + +Import Skill from External Source + +Imports a skill from an external source like skills.sh registry or GitHub repository. + * + * **Supported Sources:** + * - `skills.sh`: Import from the skills.sh community registry + * - `github`: Import from a GitHub repository (public or private) + * + * **Version Control:** + * - Skills can be pinned to specific versions + * - Use the sync endpoint to update to latest version + +### Example + +* Bearer (JWT) Authentication (BearerAuth): + +```python +import quantcdn +from quantcdn.models.import_skill201_response import ImportSkill201Response +from quantcdn.models.import_skill_request import ImportSkillRequest +from quantcdn.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to https://dashboard.quantcdn.io +# See configuration.py for a list of all supported configuration parameters. +configuration = quantcdn.Configuration( + host = "https://dashboard.quantcdn.io" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure Bearer authorization (JWT): BearerAuth +configuration = quantcdn.Configuration( + access_token = os.environ["BEARER_TOKEN"] +) + +# Enter a context with an instance of the API client +with quantcdn.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = quantcdn.AISkillsApi(api_client) + organisation = 'organisation_example' # str | The organisation ID + import_skill_request = quantcdn.ImportSkillRequest() # ImportSkillRequest | + + try: + # Import Skill from External Source + api_response = api_instance.import_skill(organisation, import_skill_request) + print("The response of AISkillsApi->import_skill:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling AISkillsApi->import_skill: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **organisation** | **str**| The organisation ID | + **import_skill_request** | [**ImportSkillRequest**](ImportSkillRequest.md)| | + +### Return type + +[**ImportSkill201Response**](ImportSkill201Response.md) + +### Authorization + +[BearerAuth](../README.md#BearerAuth) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**201** | Skill imported successfully | - | +**400** | Invalid request parameters | - | +**403** | Access denied | - | +**502** | Failed to fetch skill from source | - | +**500** | Failed to import skill | - | + +[[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) + +# **import_skill_collection** +> ImportSkillCollection201Response import_skill_collection(organisation, import_skill_collection_request) + +Import Skill Collection from GitHub + +Discovers all skill directories under a given path in a GitHub repository + * and imports each as a skill within the specified namespace. Each subdirectory must contain a SKILL.md file. + * + * **Namespace:** Used for grouping and slash-command invocation (e.g., `/superpowers:brainstorming`). + * + * **Idempotent:** If a skill with the same namespace + name already exists, it is updated. + +### Example + +* Bearer (JWT) Authentication (BearerAuth): + +```python +import quantcdn +from quantcdn.models.import_skill_collection201_response import ImportSkillCollection201Response +from quantcdn.models.import_skill_collection_request import ImportSkillCollectionRequest +from quantcdn.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to https://dashboard.quantcdn.io +# See configuration.py for a list of all supported configuration parameters. +configuration = quantcdn.Configuration( + host = "https://dashboard.quantcdn.io" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure Bearer authorization (JWT): BearerAuth +configuration = quantcdn.Configuration( + access_token = os.environ["BEARER_TOKEN"] +) + +# Enter a context with an instance of the API client +with quantcdn.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = quantcdn.AISkillsApi(api_client) + organisation = 'organisation_example' # str | The organisation ID + import_skill_collection_request = quantcdn.ImportSkillCollectionRequest() # ImportSkillCollectionRequest | + + try: + # Import Skill Collection from GitHub + api_response = api_instance.import_skill_collection(organisation, import_skill_collection_request) + print("The response of AISkillsApi->import_skill_collection:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling AISkillsApi->import_skill_collection: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **organisation** | **str**| The organisation ID | + **import_skill_collection_request** | [**ImportSkillCollectionRequest**](ImportSkillCollectionRequest.md)| | + +### Return type + +[**ImportSkillCollection201Response**](ImportSkillCollection201Response.md) + +### Authorization + +[BearerAuth](../README.md#BearerAuth) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**201** | Collection imported successfully | - | +**400** | Invalid request parameters | - | +**403** | Access denied | - | +**502** | GitHub API error | - | +**500** | Failed to import collection | - | + +[[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) + +# **list_skill_collections** +> ListSkillCollections200Response list_skill_collections(organisation) + +List Skill Collections + +Lists distinct namespaces (collections) for the organization, with skill counts and skill names for each collection. + +### Example + +* Bearer (JWT) Authentication (BearerAuth): + +```python +import quantcdn +from quantcdn.models.list_skill_collections200_response import ListSkillCollections200Response +from quantcdn.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to https://dashboard.quantcdn.io +# See configuration.py for a list of all supported configuration parameters. +configuration = quantcdn.Configuration( + host = "https://dashboard.quantcdn.io" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure Bearer authorization (JWT): BearerAuth +configuration = quantcdn.Configuration( + access_token = os.environ["BEARER_TOKEN"] +) + +# Enter a context with an instance of the API client +with quantcdn.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = quantcdn.AISkillsApi(api_client) + organisation = 'organisation_example' # str | The organisation ID + + try: + # List Skill Collections + api_response = api_instance.list_skill_collections(organisation) + print("The response of AISkillsApi->list_skill_collections:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling AISkillsApi->list_skill_collections: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **organisation** | **str**| The organisation ID | + +### Return type + +[**ListSkillCollections200Response**](ListSkillCollections200Response.md) + +### Authorization + +[BearerAuth](../README.md#BearerAuth) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | Collections retrieved successfully | - | +**403** | Access denied | - | +**500** | Failed to retrieve collections | - | + +[[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) + +# **list_skills** +> ListSkills200Response list_skills(organisation, tag=tag, namespace=namespace, limit=limit) + +List Organization's Skills + +Lists all skills available to the organization. Skills are reusable prompts, + * workflows, or instructions that can be assigned to agents or invoked directly. + * + * **Skill Sources:** + * - `inline`: Created directly via the API + * - `skills.sh`: Imported from skills.sh registry + * - `github`: Imported from a GitHub repository + * - `local`: Uploaded from local file + +### Example + +* Bearer (JWT) Authentication (BearerAuth): + +```python +import quantcdn +from quantcdn.models.list_skills200_response import ListSkills200Response +from quantcdn.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to https://dashboard.quantcdn.io +# See configuration.py for a list of all supported configuration parameters. +configuration = quantcdn.Configuration( + host = "https://dashboard.quantcdn.io" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure Bearer authorization (JWT): BearerAuth +configuration = quantcdn.Configuration( + access_token = os.environ["BEARER_TOKEN"] +) + +# Enter a context with an instance of the API client +with quantcdn.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = quantcdn.AISkillsApi(api_client) + organisation = 'organisation_example' # str | The organisation ID + tag = 'tag_example' # str | Filter skills by tag (optional) + namespace = 'namespace_example' # str | Filter skills by collection namespace (e.g. 'superpowers') (optional) + limit = 50 # int | Maximum number of skills to return (optional) (default to 50) + + try: + # List Organization's Skills + api_response = api_instance.list_skills(organisation, tag=tag, namespace=namespace, limit=limit) + print("The response of AISkillsApi->list_skills:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling AISkillsApi->list_skills: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **organisation** | **str**| The organisation ID | + **tag** | **str**| Filter skills by tag | [optional] + **namespace** | **str**| Filter skills by collection namespace (e.g. 'superpowers') | [optional] + **limit** | **int**| Maximum number of skills to return | [optional] [default to 50] + +### Return type + +[**ListSkills200Response**](ListSkills200Response.md) + +### Authorization + +[BearerAuth](../README.md#BearerAuth) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | List of skills retrieved successfully | - | +**403** | Access denied | - | +**500** | Failed to retrieve skills | - | + +[[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) + +# **sync_skill** +> ImportSkill201Response sync_skill(organisation, skill_id) + +Sync Skill from Source + +Re-fetches skill content from its original source. + * Only applicable to skills imported from external sources (skills.sh, github). + * Inline skills cannot be synced. + * + * **Version Behavior:** + * - If version is pinned, fetches that specific version + * - If no version specified, fetches latest + +### Example + +* Bearer (JWT) Authentication (BearerAuth): + +```python +import quantcdn +from quantcdn.models.import_skill201_response import ImportSkill201Response +from quantcdn.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to https://dashboard.quantcdn.io +# See configuration.py for a list of all supported configuration parameters. +configuration = quantcdn.Configuration( + host = "https://dashboard.quantcdn.io" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure Bearer authorization (JWT): BearerAuth +configuration = quantcdn.Configuration( + access_token = os.environ["BEARER_TOKEN"] +) + +# Enter a context with an instance of the API client +with quantcdn.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = quantcdn.AISkillsApi(api_client) + organisation = 'organisation_example' # str | The organisation ID + skill_id = 'skill_id_example' # str | The skill ID + + try: + # Sync Skill from Source + api_response = api_instance.sync_skill(organisation, skill_id) + print("The response of AISkillsApi->sync_skill:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling AISkillsApi->sync_skill: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **organisation** | **str**| The organisation ID | + **skill_id** | **str**| The skill ID | + +### Return type + +[**ImportSkill201Response**](ImportSkill201Response.md) + +### Authorization + +[BearerAuth](../README.md#BearerAuth) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | Skill synced successfully | - | +**400** | Cannot sync inline skill | - | +**403** | Access denied | - | +**404** | Skill not found | - | +**502** | Failed to fetch skill from source | - | +**500** | Failed to sync skill | - | + +[[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) + +# **sync_skill_collection** +> SyncSkillCollection200Response sync_skill_collection(organisation, namespace) + +Sync Skill Collection + +Re-syncs all skills in a namespace from their GitHub source. Detects new + * skills added to the repository and flags skills removed from the source. Does NOT auto-delete removed skills. + +### Example + +* Bearer (JWT) Authentication (BearerAuth): + +```python +import quantcdn +from quantcdn.models.sync_skill_collection200_response import SyncSkillCollection200Response +from quantcdn.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to https://dashboard.quantcdn.io +# See configuration.py for a list of all supported configuration parameters. +configuration = quantcdn.Configuration( + host = "https://dashboard.quantcdn.io" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure Bearer authorization (JWT): BearerAuth +configuration = quantcdn.Configuration( + access_token = os.environ["BEARER_TOKEN"] +) + +# Enter a context with an instance of the API client +with quantcdn.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = quantcdn.AISkillsApi(api_client) + organisation = 'organisation_example' # str | The organisation ID + namespace = 'namespace_example' # str | Collection namespace + + try: + # Sync Skill Collection + api_response = api_instance.sync_skill_collection(organisation, namespace) + print("The response of AISkillsApi->sync_skill_collection:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling AISkillsApi->sync_skill_collection: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **organisation** | **str**| The organisation ID | + **namespace** | **str**| Collection namespace | + +### Return type + +[**SyncSkillCollection200Response**](SyncSkillCollection200Response.md) + +### Authorization + +[BearerAuth](../README.md#BearerAuth) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | Collection synced successfully | - | +**400** | Invalid request | - | +**403** | Access denied | - | +**404** | Collection not found | - | +**502** | GitHub API error | - | +**500** | Failed to sync collection | - | + +[[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) + +# **update_skill** +> UpdateSkill200Response update_skill(organisation, skill_id, update_skill_request) + +Update Skill + +Updates an existing skill. For imported skills, this updates + * local overrides (name, tags, triggerCondition) but not the source content. + * Use the sync endpoint to update source content. + +### Example + +* Bearer (JWT) Authentication (BearerAuth): + +```python +import quantcdn +from quantcdn.models.update_skill200_response import UpdateSkill200Response +from quantcdn.models.update_skill_request import UpdateSkillRequest +from quantcdn.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to https://dashboard.quantcdn.io +# See configuration.py for a list of all supported configuration parameters. +configuration = quantcdn.Configuration( + host = "https://dashboard.quantcdn.io" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure Bearer authorization (JWT): BearerAuth +configuration = quantcdn.Configuration( + access_token = os.environ["BEARER_TOKEN"] +) + +# Enter a context with an instance of the API client +with quantcdn.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = quantcdn.AISkillsApi(api_client) + organisation = 'organisation_example' # str | The organisation ID + skill_id = 'skill_id_example' # str | The skill ID + update_skill_request = quantcdn.UpdateSkillRequest() # UpdateSkillRequest | + + try: + # Update Skill + api_response = api_instance.update_skill(organisation, skill_id, update_skill_request) + print("The response of AISkillsApi->update_skill:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling AISkillsApi->update_skill: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **organisation** | **str**| The organisation ID | + **skill_id** | **str**| The skill ID | + **update_skill_request** | [**UpdateSkillRequest**](UpdateSkillRequest.md)| | + +### Return type + +[**UpdateSkill200Response**](UpdateSkill200Response.md) + +### Authorization + +[BearerAuth](../README.md#BearerAuth) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | Skill updated successfully | - | +**400** | Invalid request parameters | - | +**403** | Access denied | - | +**404** | Skill not found | - | +**500** | Failed to update skill | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + diff --git a/docs/AIToolsApi.md b/docs/AIToolsApi.md index c52e658..b618f16 100644 --- a/docs/AIToolsApi.md +++ b/docs/AIToolsApi.md @@ -4,7 +4,7 @@ All URIs are relative to *https://dashboard.quantcdn.io* Method | HTTP request | Description ------------- | ------------- | ------------- -[**get_ai_orchestration_status**](AIToolsApi.md#get_ai_orchestration_status) | **GET** /api/v3/organizations/{organisation}/ai/tools/orchestrations/{orchestrationId} | Get Orchestration Status +[**get_ai_orchestration_status**](AIToolsApi.md#get_ai_orchestration_status) | **GET** /api/v3/organizations/{organisation}/ai/tools/orchestrations/{orchestrationId} | Get Tool Orchestration Status (Async Tool Polling) [**get_ai_tool_execution_status**](AIToolsApi.md#get_ai_tool_execution_status) | **GET** /api/v3/organizations/{organisation}/ai/tools/executions/{executionId} | Get async tool execution status and result [**list_ai_tool_executions**](AIToolsApi.md#list_ai_tool_executions) | **GET** /api/v3/organizations/{organisation}/ai/tools/executions | List tool executions for monitoring and debugging [**list_ai_tool_names**](AIToolsApi.md#list_ai_tool_names) | **GET** /api/v3/organizations/{organisation}/ai/tools/names | List tool names only (lightweight response) @@ -14,9 +14,12 @@ Method | HTTP request | Description # **get_ai_orchestration_status** > GetAIOrchestrationStatus200Response get_ai_orchestration_status(organisation, orchestration_id) -Get Orchestration Status +Get Tool Orchestration Status (Async Tool Polling) -Retrieves the status and synthesized result of a multi-tool orchestration. +Retrieves the status and synthesized result of a multi-tool async execution orchestration. + * + * **Note:** This endpoint is for async tool execution polling (`/tools/orchestrations`). + * For durable batch processing orchestrations, see `GET /orchestrations` endpoints. * * **Orchestration Pattern:** * When the AI requests multiple async tools simultaneously, an orchestration is created @@ -80,7 +83,7 @@ with quantcdn.ApiClient(configuration) as api_client: orchestration_id = 'orch_abc123def456789012345678901234' # str | Orchestration identifier for aggregated async tool executions try: - # Get Orchestration Status + # Get Tool Orchestration Status (Async Tool Polling) api_response = api_instance.get_ai_orchestration_status(organisation, orchestration_id) print("The response of AIToolsApi->get_ai_orchestration_status:\n") pprint(api_response) diff --git a/docs/AIVectorDatabaseApi.md b/docs/AIVectorDatabaseApi.md index 9ba325a..e9b8414 100644 --- a/docs/AIVectorDatabaseApi.md +++ b/docs/AIVectorDatabaseApi.md @@ -6,6 +6,7 @@ Method | HTTP request | Description ------------- | ------------- | ------------- [**create_vector_collection**](AIVectorDatabaseApi.md#create_vector_collection) | **POST** /api/v3/organizations/{organisation}/ai/vector-db/collections | Create Vector Database Collection [**delete_vector_collection**](AIVectorDatabaseApi.md#delete_vector_collection) | **DELETE** /api/v3/organizations/{organisation}/ai/vector-db/collections/{collectionId} | Delete Collection +[**delete_vector_documents**](AIVectorDatabaseApi.md#delete_vector_documents) | **DELETE** /api/v3/organizations/{organisation}/ai/vector-db/collections/{collectionId}/documents | Delete Documents from Collection [**get_vector_collection**](AIVectorDatabaseApi.md#get_vector_collection) | **GET** /api/v3/organizations/{organisation}/ai/vector-db/collections/{collectionId} | Get Collection Details [**list_vector_collections**](AIVectorDatabaseApi.md#list_vector_collections) | **GET** /api/v3/organizations/{organisation}/ai/vector-db/collections | List Vector Database Collections [**query_vector_collection**](AIVectorDatabaseApi.md#query_vector_collection) | **POST** /api/v3/organizations/{organisation}/ai/vector-db/collections/{collectionId}/query | Semantic Search Query @@ -104,7 +105,7 @@ Name | Type | Description | Notes [[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) # **delete_vector_collection** -> DeleteVectorCollection200Response delete_vector_collection(organisation, collection_id) +> DeleteSkillCollection200Response delete_vector_collection(organisation, collection_id) Delete Collection @@ -116,7 +117,7 @@ Deletes a vector database collection and all its documents. This action cannot b ```python import quantcdn -from quantcdn.models.delete_vector_collection200_response import DeleteVectorCollection200Response +from quantcdn.models.delete_skill_collection200_response import DeleteSkillCollection200Response from quantcdn.rest import ApiException from pprint import pprint @@ -164,7 +165,7 @@ Name | Type | Description | Notes ### Return type -[**DeleteVectorCollection200Response**](DeleteVectorCollection200Response.md) +[**DeleteSkillCollection200Response**](DeleteSkillCollection200Response.md) ### Authorization @@ -186,6 +187,104 @@ Name | Type | Description | Notes [[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) +# **delete_vector_documents** +> DeleteVectorDocuments200Response delete_vector_documents(organisation, collection_id, delete_vector_documents_request) + +Delete Documents from Collection + +Delete documents from a collection. Supports three deletion modes: + * + * 1. **Purge All** - Set `purgeAll: true` to delete ALL documents in the collection + * + * 2. **By Document IDs** - Provide `documentIds` array with specific document UUIDs + * + * 3. **By Metadata** - Provide `metadata` object with `field` and `values` to delete documents where the metadata field matches any of the values + * + * **Drupal Integration:** + * When using with Drupal AI Search, use metadata deletion with: + * - `field: 'drupal_entity_id'` to delete all chunks for specific entities + * - `field: 'drupal_long_id'` to delete specific chunks + +### Example + +* Bearer (JWT) Authentication (BearerAuth): + +```python +import quantcdn +from quantcdn.models.delete_vector_documents200_response import DeleteVectorDocuments200Response +from quantcdn.models.delete_vector_documents_request import DeleteVectorDocumentsRequest +from quantcdn.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to https://dashboard.quantcdn.io +# See configuration.py for a list of all supported configuration parameters. +configuration = quantcdn.Configuration( + host = "https://dashboard.quantcdn.io" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure Bearer authorization (JWT): BearerAuth +configuration = quantcdn.Configuration( + access_token = os.environ["BEARER_TOKEN"] +) + +# Enter a context with an instance of the API client +with quantcdn.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = quantcdn.AIVectorDatabaseApi(api_client) + organisation = 'organisation_example' # str | Organisation machine name + collection_id = 'collection_id_example' # str | Collection UUID + delete_vector_documents_request = quantcdn.DeleteVectorDocumentsRequest() # DeleteVectorDocumentsRequest | + + try: + # Delete Documents from Collection + api_response = api_instance.delete_vector_documents(organisation, collection_id, delete_vector_documents_request) + print("The response of AIVectorDatabaseApi->delete_vector_documents:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling AIVectorDatabaseApi->delete_vector_documents: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **organisation** | **str**| Organisation machine name | + **collection_id** | **str**| Collection UUID | + **delete_vector_documents_request** | [**DeleteVectorDocumentsRequest**](DeleteVectorDocumentsRequest.md)| | + +### Return type + +[**DeleteVectorDocuments200Response**](DeleteVectorDocuments200Response.md) + +### Authorization + +[BearerAuth](../README.md#BearerAuth) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | Documents deleted successfully | - | +**400** | Invalid request - must specify purgeAll, documentIds, or metadata | - | +**403** | Access denied | - | +**404** | Collection not found | - | +**500** | Failed to delete documents | - | + +[[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) + # **get_vector_collection** > GetVectorCollection200Response get_vector_collection(organisation, collection_id) diff --git a/docs/CDNMetricsApi.md b/docs/CDNMetricsApi.md new file mode 100644 index 0000000..b6b6fc2 --- /dev/null +++ b/docs/CDNMetricsApi.md @@ -0,0 +1,275 @@ +# quantcdn.CDNMetricsApi + +All URIs are relative to *https://dashboard.quantcdn.io* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**get_daily_metrics**](CDNMetricsApi.md#get_daily_metrics) | **GET** /v2/organizations/{organization}/projects/{project}/metrics/daily | Get daily metrics +[**get_hourly_metrics**](CDNMetricsApi.md#get_hourly_metrics) | **GET** /v2/organizations/{organization}/projects/{project}/metrics/hourly | Get hourly metrics +[**get_monthly_metrics**](CDNMetricsApi.md#get_monthly_metrics) | **GET** /v2/organizations/{organization}/projects/{project}/metrics/monthly | Get monthly metrics + + +# **get_daily_metrics** +> V2MetricsResponse get_daily_metrics(organization, project, domain=domain, metrics=metrics, timestamp_format=timestamp_format) + +Get daily metrics + +Returns the last 30 days of daily metrics data + +### Example + +* Bearer (JWT) Authentication (BearerAuth): + +```python +import quantcdn +from quantcdn.models.v2_metrics_response import V2MetricsResponse +from quantcdn.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to https://dashboard.quantcdn.io +# See configuration.py for a list of all supported configuration parameters. +configuration = quantcdn.Configuration( + host = "https://dashboard.quantcdn.io" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure Bearer authorization (JWT): BearerAuth +configuration = quantcdn.Configuration( + access_token = os.environ["BEARER_TOKEN"] +) + +# Enter a context with an instance of the API client +with quantcdn.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = quantcdn.CDNMetricsApi(api_client) + organization = 'organization_example' # str | Organization identifier + project = 'project_example' # str | Project identifier + domain = 'domain_example' # str | Filter by domain ID or domain name (optional) + metrics = ['metrics_example'] # List[str] | Metrics to return (default: hits, bytes). Use the /metrics/available endpoint to list all metrics by category. (optional) + timestamp_format = iso8601 # str | Timestamp format in response (optional) (default to iso8601) + + try: + # Get daily metrics + api_response = api_instance.get_daily_metrics(organization, project, domain=domain, metrics=metrics, timestamp_format=timestamp_format) + print("The response of CDNMetricsApi->get_daily_metrics:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling CDNMetricsApi->get_daily_metrics: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **organization** | **str**| Organization identifier | + **project** | **str**| Project identifier | + **domain** | **str**| Filter by domain ID or domain name | [optional] + **metrics** | [**List[str]**](str.md)| Metrics to return (default: hits, bytes). Use the /metrics/available endpoint to list all metrics by category. | [optional] + **timestamp_format** | **str**| Timestamp format in response | [optional] [default to iso8601] + +### Return type + +[**V2MetricsResponse**](V2MetricsResponse.md) + +### Authorization + +[BearerAuth](../README.md#BearerAuth) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | Daily metrics data | - | +**400** | Invalid metric requested | - | +**404** | No domains found or domain not found | - | + +[[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) + +# **get_hourly_metrics** +> V2MetricsResponse get_hourly_metrics(organization, project, domain=domain, metrics=metrics, timestamp_format=timestamp_format) + +Get hourly metrics + +Returns the last hour of minute-by-minute metrics data + +### Example + +* Bearer (JWT) Authentication (BearerAuth): + +```python +import quantcdn +from quantcdn.models.v2_metrics_response import V2MetricsResponse +from quantcdn.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to https://dashboard.quantcdn.io +# See configuration.py for a list of all supported configuration parameters. +configuration = quantcdn.Configuration( + host = "https://dashboard.quantcdn.io" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure Bearer authorization (JWT): BearerAuth +configuration = quantcdn.Configuration( + access_token = os.environ["BEARER_TOKEN"] +) + +# Enter a context with an instance of the API client +with quantcdn.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = quantcdn.CDNMetricsApi(api_client) + organization = 'organization_example' # str | Organization identifier + project = 'project_example' # str | Project identifier + domain = 'domain_example' # str | Filter by domain ID or domain name (optional) + metrics = ['metrics_example'] # List[str] | Metrics to return (default: hits, bytes). Use the /metrics/available endpoint to list all metrics by category. (optional) + timestamp_format = iso8601 # str | Timestamp format in response (optional) (default to iso8601) + + try: + # Get hourly metrics + api_response = api_instance.get_hourly_metrics(organization, project, domain=domain, metrics=metrics, timestamp_format=timestamp_format) + print("The response of CDNMetricsApi->get_hourly_metrics:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling CDNMetricsApi->get_hourly_metrics: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **organization** | **str**| Organization identifier | + **project** | **str**| Project identifier | + **domain** | **str**| Filter by domain ID or domain name | [optional] + **metrics** | [**List[str]**](str.md)| Metrics to return (default: hits, bytes). Use the /metrics/available endpoint to list all metrics by category. | [optional] + **timestamp_format** | **str**| Timestamp format in response | [optional] [default to iso8601] + +### Return type + +[**V2MetricsResponse**](V2MetricsResponse.md) + +### Authorization + +[BearerAuth](../README.md#BearerAuth) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | Hourly metrics data | - | +**400** | Invalid metric requested | - | +**404** | No domains found or domain not found | - | + +[[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) + +# **get_monthly_metrics** +> V2MetricsResponse get_monthly_metrics(organization, project, domain=domain, metrics=metrics, timestamp_format=timestamp_format) + +Get monthly metrics + +Returns the last 12 months of monthly metrics data + +### Example + +* Bearer (JWT) Authentication (BearerAuth): + +```python +import quantcdn +from quantcdn.models.v2_metrics_response import V2MetricsResponse +from quantcdn.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to https://dashboard.quantcdn.io +# See configuration.py for a list of all supported configuration parameters. +configuration = quantcdn.Configuration( + host = "https://dashboard.quantcdn.io" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure Bearer authorization (JWT): BearerAuth +configuration = quantcdn.Configuration( + access_token = os.environ["BEARER_TOKEN"] +) + +# Enter a context with an instance of the API client +with quantcdn.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = quantcdn.CDNMetricsApi(api_client) + organization = 'organization_example' # str | Organization identifier + project = 'project_example' # str | Project identifier + domain = 'domain_example' # str | Filter by domain ID or domain name (optional) + metrics = ['metrics_example'] # List[str] | Metrics to return (default: hits, bytes). Use the /metrics/available endpoint to list all metrics by category. (optional) + timestamp_format = iso8601 # str | Timestamp format in response (optional) (default to iso8601) + + try: + # Get monthly metrics + api_response = api_instance.get_monthly_metrics(organization, project, domain=domain, metrics=metrics, timestamp_format=timestamp_format) + print("The response of CDNMetricsApi->get_monthly_metrics:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling CDNMetricsApi->get_monthly_metrics: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **organization** | **str**| Organization identifier | + **project** | **str**| Project identifier | + **domain** | **str**| Filter by domain ID or domain name | [optional] + **metrics** | [**List[str]**](str.md)| Metrics to return (default: hits, bytes). Use the /metrics/available endpoint to list all metrics by category. | [optional] + **timestamp_format** | **str**| Timestamp format in response | [optional] [default to iso8601] + +### Return type + +[**V2MetricsResponse**](V2MetricsResponse.md) + +### Authorization + +[BearerAuth](../README.md#BearerAuth) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | Monthly metrics data | - | +**400** | Invalid metric requested | - | +**404** | No domains found or domain not found | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + diff --git a/docs/ChatInferenceRequest.md b/docs/ChatInferenceRequest.md index fb5bcdd..3f6e31d 100644 --- a/docs/ChatInferenceRequest.md +++ b/docs/ChatInferenceRequest.md @@ -17,6 +17,9 @@ Name | Type | Description | Notes **tool_config** | [**ChatInferenceRequestToolConfig**](ChatInferenceRequestToolConfig.md) | | [optional] **session_id** | **str** | Optional session ID for conversation continuity. Omit to use stateless mode, include to continue an existing session. | [optional] **var_async** | **bool** | Enable async/durable execution mode. When true, returns 202 with pollUrl instead of waiting for completion. Use for long-running inference, client-executed tools, or operations >30 seconds. | [optional] [default to False] +**allowed_tools** | **List[str]** | Top-level convenience alias for toolConfig.allowedTools. Whitelists which tools can be auto-executed. | [optional] +**guardrails** | [**ChatInferenceRequestGuardrails**](ChatInferenceRequestGuardrails.md) | | [optional] +**long_context** | **bool** | Enable 1M context window support regardless of token estimation. Use when sending large payloads (>200K tokens). | [optional] [default to False] ## Example diff --git a/docs/ChatInferenceRequestGuardrails.md b/docs/ChatInferenceRequestGuardrails.md new file mode 100644 index 0000000..9eb42c9 --- /dev/null +++ b/docs/ChatInferenceRequestGuardrails.md @@ -0,0 +1,32 @@ +# ChatInferenceRequestGuardrails + +AWS Bedrock guardrails configuration for content filtering and safety. + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**guardrail_identifier** | **str** | Guardrail identifier from AWS Bedrock | [optional] +**guardrail_version** | **str** | Guardrail version | [optional] +**trace** | **str** | Enable guardrail trace output | [optional] + +## Example + +```python +from quantcdn.models.chat_inference_request_guardrails import ChatInferenceRequestGuardrails + +# TODO update the JSON string below +json = "{}" +# create an instance of ChatInferenceRequestGuardrails from a JSON string +chat_inference_request_guardrails_instance = ChatInferenceRequestGuardrails.from_json(json) +# print the JSON string representation of the object +print(ChatInferenceRequestGuardrails.to_json()) + +# convert the object into a dict +chat_inference_request_guardrails_dict = chat_inference_request_guardrails_instance.to_dict() +# create an instance of ChatInferenceRequestGuardrails from a dict +chat_inference_request_guardrails_from_dict = ChatInferenceRequestGuardrails.from_dict(chat_inference_request_guardrails_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/ChatInferenceStreamRequest.md b/docs/ChatInferenceStreamRequest.md index 7926327..1ccbcba 100644 --- a/docs/ChatInferenceStreamRequest.md +++ b/docs/ChatInferenceStreamRequest.md @@ -16,6 +16,9 @@ Name | Type | Description | Notes **tool_config** | [**ChatInferenceRequestToolConfig**](ChatInferenceRequestToolConfig.md) | | [optional] **session_id** | **str** | Optional session ID for conversation continuity. Omit to use stateless mode, include to continue an existing session. | [optional] **var_async** | **bool** | Enable async/durable execution mode. When true, returns 202 with pollUrl instead of streaming. Use for long-running inference, client-executed tools, or operations >30 seconds. | [optional] [default to False] +**allowed_tools** | **List[str]** | Top-level convenience alias for toolConfig.allowedTools. Whitelists which tools can be auto-executed. | [optional] +**guardrails** | [**ChatInferenceRequestGuardrails**](ChatInferenceRequestGuardrails.md) | | [optional] +**long_context** | **bool** | Enable 1M context window support regardless of token estimation. Use when sending large payloads (>200K tokens). | [optional] [default to False] ## Example diff --git a/docs/CreateOrchestrationRequest.md b/docs/CreateOrchestrationRequest.md new file mode 100644 index 0000000..508cc84 --- /dev/null +++ b/docs/CreateOrchestrationRequest.md @@ -0,0 +1,40 @@ +# CreateOrchestrationRequest + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**name** | **str** | Orchestration name | +**description** | **str** | Optional description | [optional] +**agent_id** | **str** | Agent to process items | [optional] +**tool_id** | **str** | Tool to execute for items | [optional] +**workflow_id** | **str** | Workflow to run for items | [optional] +**input_source** | [**CreateOrchestrationRequestInputSource**](CreateOrchestrationRequestInputSource.md) | | +**batch_size** | **int** | Items per batch | [optional] [default to 10] +**concurrency** | **int** | Concurrent items within a batch | [optional] [default to 1] +**stop_condition** | [**CreateOrchestrationRequestStopCondition**](CreateOrchestrationRequestStopCondition.md) | | [optional] +**assigned_skills** | **List[str]** | Skill IDs to assign | [optional] +**context** | **object** | Optional context merged into each item before processing (e.g. shared credentials or endpoints) | [optional] +**auto_start** | **bool** | Whether to start immediately | [optional] [default to True] + +## Example + +```python +from quantcdn.models.create_orchestration_request import CreateOrchestrationRequest + +# TODO update the JSON string below +json = "{}" +# create an instance of CreateOrchestrationRequest from a JSON string +create_orchestration_request_instance = CreateOrchestrationRequest.from_json(json) +# print the JSON string representation of the object +print(CreateOrchestrationRequest.to_json()) + +# convert the object into a dict +create_orchestration_request_dict = create_orchestration_request_instance.to_dict() +# create an instance of CreateOrchestrationRequest from a dict +create_orchestration_request_from_dict = CreateOrchestrationRequest.from_dict(create_orchestration_request_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/CreateOrchestrationRequestInputSource.md b/docs/CreateOrchestrationRequestInputSource.md new file mode 100644 index 0000000..4dd82ad --- /dev/null +++ b/docs/CreateOrchestrationRequestInputSource.md @@ -0,0 +1,32 @@ +# CreateOrchestrationRequestInputSource + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**type** | **str** | Input source type (api type not yet supported) | +**items** | **List[object]** | Static items (for type=static) | [optional] +**task_query** | **object** | Task query filters (for type=task_query) | [optional] +**generator_prompt** | **str** | AI prompt (for type=generator) | [optional] + +## Example + +```python +from quantcdn.models.create_orchestration_request_input_source import CreateOrchestrationRequestInputSource + +# TODO update the JSON string below +json = "{}" +# create an instance of CreateOrchestrationRequestInputSource from a JSON string +create_orchestration_request_input_source_instance = CreateOrchestrationRequestInputSource.from_json(json) +# print the JSON string representation of the object +print(CreateOrchestrationRequestInputSource.to_json()) + +# convert the object into a dict +create_orchestration_request_input_source_dict = create_orchestration_request_input_source_instance.to_dict() +# create an instance of CreateOrchestrationRequestInputSource from a dict +create_orchestration_request_input_source_from_dict = CreateOrchestrationRequestInputSource.from_dict(create_orchestration_request_input_source_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/CreateOrchestrationRequestStopCondition.md b/docs/CreateOrchestrationRequestStopCondition.md new file mode 100644 index 0000000..f03784a --- /dev/null +++ b/docs/CreateOrchestrationRequestStopCondition.md @@ -0,0 +1,31 @@ +# CreateOrchestrationRequestStopCondition + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**type** | **str** | | [optional] [default to 'all_complete'] +**max_iterations** | **int** | Max iterations (for type=max_iterations) | [optional] +**condition_prompt** | **str** | AI prompt to evaluate stop (for type=condition) | [optional] + +## Example + +```python +from quantcdn.models.create_orchestration_request_stop_condition import CreateOrchestrationRequestStopCondition + +# TODO update the JSON string below +json = "{}" +# create an instance of CreateOrchestrationRequestStopCondition from a JSON string +create_orchestration_request_stop_condition_instance = CreateOrchestrationRequestStopCondition.from_json(json) +# print the JSON string representation of the object +print(CreateOrchestrationRequestStopCondition.to_json()) + +# convert the object into a dict +create_orchestration_request_stop_condition_dict = create_orchestration_request_stop_condition_instance.to_dict() +# create an instance of CreateOrchestrationRequestStopCondition from a dict +create_orchestration_request_stop_condition_from_dict = CreateOrchestrationRequestStopCondition.from_dict(create_orchestration_request_stop_condition_dict) +``` +[[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/CreateSkill201Response.md b/docs/CreateSkill201Response.md new file mode 100644 index 0000000..a698fe4 --- /dev/null +++ b/docs/CreateSkill201Response.md @@ -0,0 +1,31 @@ +# CreateSkill201Response + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**success** | **bool** | | [optional] +**skill** | **object** | | [optional] +**message** | **str** | | [optional] + +## Example + +```python +from quantcdn.models.create_skill201_response import CreateSkill201Response + +# TODO update the JSON string below +json = "{}" +# create an instance of CreateSkill201Response from a JSON string +create_skill201_response_instance = CreateSkill201Response.from_json(json) +# print the JSON string representation of the object +print(CreateSkill201Response.to_json()) + +# convert the object into a dict +create_skill201_response_dict = create_skill201_response_instance.to_dict() +# create an instance of CreateSkill201Response from a dict +create_skill201_response_from_dict = CreateSkill201Response.from_dict(create_skill201_response_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/CreateSkillRequest.md b/docs/CreateSkillRequest.md new file mode 100644 index 0000000..ab328a9 --- /dev/null +++ b/docs/CreateSkillRequest.md @@ -0,0 +1,39 @@ +# CreateSkillRequest + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**name** | **str** | | +**description** | **str** | | [optional] +**content** | **str** | | +**trigger_condition** | **str** | | +**tags** | **List[str]** | | [optional] +**required_tools** | **List[str]** | | [optional] +**namespace** | **str** | | [optional] +**files** | **object** | | [optional] +**disable_model_invocation** | **bool** | | [optional] +**allowed_tools** | **List[str]** | | [optional] +**installed_by** | **str** | | [optional] + +## Example + +```python +from quantcdn.models.create_skill_request import CreateSkillRequest + +# TODO update the JSON string below +json = "{}" +# create an instance of CreateSkillRequest from a JSON string +create_skill_request_instance = CreateSkillRequest.from_json(json) +# print the JSON string representation of the object +print(CreateSkillRequest.to_json()) + +# convert the object into a dict +create_skill_request_dict = create_skill_request_instance.to_dict() +# create an instance of CreateSkillRequest from a dict +create_skill_request_from_dict = CreateSkillRequest.from_dict(create_skill_request_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/DeleteSkill200Response.md b/docs/DeleteSkill200Response.md new file mode 100644 index 0000000..458721d --- /dev/null +++ b/docs/DeleteSkill200Response.md @@ -0,0 +1,30 @@ +# DeleteSkill200Response + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**success** | **bool** | | [optional] +**message** | **str** | | [optional] + +## Example + +```python +from quantcdn.models.delete_skill200_response import DeleteSkill200Response + +# TODO update the JSON string below +json = "{}" +# create an instance of DeleteSkill200Response from a JSON string +delete_skill200_response_instance = DeleteSkill200Response.from_json(json) +# print the JSON string representation of the object +print(DeleteSkill200Response.to_json()) + +# convert the object into a dict +delete_skill200_response_dict = delete_skill200_response_instance.to_dict() +# create an instance of DeleteSkill200Response from a dict +delete_skill200_response_from_dict = DeleteSkill200Response.from_dict(delete_skill200_response_dict) +``` +[[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/DeleteSkillCollection200Response.md b/docs/DeleteSkillCollection200Response.md new file mode 100644 index 0000000..3f33edd --- /dev/null +++ b/docs/DeleteSkillCollection200Response.md @@ -0,0 +1,30 @@ +# DeleteSkillCollection200Response + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**success** | **bool** | | [optional] +**message** | **str** | | [optional] + +## Example + +```python +from quantcdn.models.delete_skill_collection200_response import DeleteSkillCollection200Response + +# TODO update the JSON string below +json = "{}" +# create an instance of DeleteSkillCollection200Response from a JSON string +delete_skill_collection200_response_instance = DeleteSkillCollection200Response.from_json(json) +# print the JSON string representation of the object +print(DeleteSkillCollection200Response.to_json()) + +# convert the object into a dict +delete_skill_collection200_response_dict = delete_skill_collection200_response_instance.to_dict() +# create an instance of DeleteSkillCollection200Response from a dict +delete_skill_collection200_response_from_dict = DeleteSkillCollection200Response.from_dict(delete_skill_collection200_response_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/DeleteVectorCollection200Response.md b/docs/DeleteVectorCollection200Response.md deleted file mode 100644 index 038c714..0000000 --- a/docs/DeleteVectorCollection200Response.md +++ /dev/null @@ -1,30 +0,0 @@ -# DeleteVectorCollection200Response - - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**success** | **bool** | | [optional] -**message** | **str** | | [optional] - -## Example - -```python -from quantcdn.models.delete_vector_collection200_response import DeleteVectorCollection200Response - -# TODO update the JSON string below -json = "{}" -# create an instance of DeleteVectorCollection200Response from a JSON string -delete_vector_collection200_response_instance = DeleteVectorCollection200Response.from_json(json) -# print the JSON string representation of the object -print(DeleteVectorCollection200Response.to_json()) - -# convert the object into a dict -delete_vector_collection200_response_dict = delete_vector_collection200_response_instance.to_dict() -# create an instance of DeleteVectorCollection200Response from a dict -delete_vector_collection200_response_from_dict = DeleteVectorCollection200Response.from_dict(delete_vector_collection200_response_dict) -``` -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/docs/DeleteVectorDocuments200Response.md b/docs/DeleteVectorDocuments200Response.md new file mode 100644 index 0000000..5ef3488 --- /dev/null +++ b/docs/DeleteVectorDocuments200Response.md @@ -0,0 +1,31 @@ +# DeleteVectorDocuments200Response + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**message** | **str** | | [optional] +**collection_id** | **str** | | [optional] +**deleted_count** | **int** | | [optional] + +## Example + +```python +from quantcdn.models.delete_vector_documents200_response import DeleteVectorDocuments200Response + +# TODO update the JSON string below +json = "{}" +# create an instance of DeleteVectorDocuments200Response from a JSON string +delete_vector_documents200_response_instance = DeleteVectorDocuments200Response.from_json(json) +# print the JSON string representation of the object +print(DeleteVectorDocuments200Response.to_json()) + +# convert the object into a dict +delete_vector_documents200_response_dict = delete_vector_documents200_response_instance.to_dict() +# create an instance of DeleteVectorDocuments200Response from a dict +delete_vector_documents200_response_from_dict = DeleteVectorDocuments200Response.from_dict(delete_vector_documents200_response_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/DeleteVectorDocumentsRequest.md b/docs/DeleteVectorDocumentsRequest.md new file mode 100644 index 0000000..8448e63 --- /dev/null +++ b/docs/DeleteVectorDocumentsRequest.md @@ -0,0 +1,31 @@ +# DeleteVectorDocumentsRequest + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**purge_all** | **bool** | Delete ALL documents in collection | [optional] +**document_ids** | **List[str]** | Delete specific documents by UUID | [optional] +**metadata** | [**DeleteVectorDocumentsRequestMetadata**](DeleteVectorDocumentsRequestMetadata.md) | | [optional] + +## Example + +```python +from quantcdn.models.delete_vector_documents_request import DeleteVectorDocumentsRequest + +# TODO update the JSON string below +json = "{}" +# create an instance of DeleteVectorDocumentsRequest from a JSON string +delete_vector_documents_request_instance = DeleteVectorDocumentsRequest.from_json(json) +# print the JSON string representation of the object +print(DeleteVectorDocumentsRequest.to_json()) + +# convert the object into a dict +delete_vector_documents_request_dict = delete_vector_documents_request_instance.to_dict() +# create an instance of DeleteVectorDocumentsRequest from a dict +delete_vector_documents_request_from_dict = DeleteVectorDocumentsRequest.from_dict(delete_vector_documents_request_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/DeleteVectorDocumentsRequestMetadata.md b/docs/DeleteVectorDocumentsRequestMetadata.md new file mode 100644 index 0000000..28db80b --- /dev/null +++ b/docs/DeleteVectorDocumentsRequestMetadata.md @@ -0,0 +1,30 @@ +# DeleteVectorDocumentsRequestMetadata + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**var_field** | **str** | Metadata field name (e.g., 'drupal_entity_id') | [optional] +**values** | **List[str]** | Values to match (OR logic) | [optional] + +## Example + +```python +from quantcdn.models.delete_vector_documents_request_metadata import DeleteVectorDocumentsRequestMetadata + +# TODO update the JSON string below +json = "{}" +# create an instance of DeleteVectorDocumentsRequestMetadata from a JSON string +delete_vector_documents_request_metadata_instance = DeleteVectorDocumentsRequestMetadata.from_json(json) +# print the JSON string representation of the object +print(DeleteVectorDocumentsRequestMetadata.to_json()) + +# convert the object into a dict +delete_vector_documents_request_metadata_dict = delete_vector_documents_request_metadata_instance.to_dict() +# create an instance of DeleteVectorDocumentsRequestMetadata from a dict +delete_vector_documents_request_metadata_from_dict = DeleteVectorDocumentsRequestMetadata.from_dict(delete_vector_documents_request_metadata_dict) +``` +[[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/GetSkill200Response.md b/docs/GetSkill200Response.md new file mode 100644 index 0000000..2aa3e6f --- /dev/null +++ b/docs/GetSkill200Response.md @@ -0,0 +1,29 @@ +# GetSkill200Response + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**skill** | [**GetSkill200ResponseSkill**](GetSkill200ResponseSkill.md) | | [optional] + +## Example + +```python +from quantcdn.models.get_skill200_response import GetSkill200Response + +# TODO update the JSON string below +json = "{}" +# create an instance of GetSkill200Response from a JSON string +get_skill200_response_instance = GetSkill200Response.from_json(json) +# print the JSON string representation of the object +print(GetSkill200Response.to_json()) + +# convert the object into a dict +get_skill200_response_dict = get_skill200_response_instance.to_dict() +# create an instance of GetSkill200Response from a dict +get_skill200_response_from_dict = GetSkill200Response.from_dict(get_skill200_response_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/GetSkill200ResponseSkill.md b/docs/GetSkill200ResponseSkill.md new file mode 100644 index 0000000..219ca18 --- /dev/null +++ b/docs/GetSkill200ResponseSkill.md @@ -0,0 +1,42 @@ +# GetSkill200ResponseSkill + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**skill_id** | **str** | | [optional] +**name** | **str** | | [optional] +**description** | **str** | | [optional] +**content** | **str** | | [optional] +**trigger_condition** | **str** | | [optional] +**tags** | **List[str]** | | [optional] +**source** | **object** | | [optional] +**required_tools** | **List[str]** | | [optional] +**files** | **object** | | [optional] +**namespace** | **str** | | [optional] +**disable_model_invocation** | **bool** | | [optional] +**allowed_tools** | **List[str]** | | [optional] +**installed_at** | **datetime** | | [optional] +**updated_at** | **datetime** | | [optional] + +## Example + +```python +from quantcdn.models.get_skill200_response_skill import GetSkill200ResponseSkill + +# TODO update the JSON string below +json = "{}" +# create an instance of GetSkill200ResponseSkill from a JSON string +get_skill200_response_skill_instance = GetSkill200ResponseSkill.from_json(json) +# print the JSON string representation of the object +print(GetSkill200ResponseSkill.to_json()) + +# convert the object into a dict +get_skill200_response_skill_dict = get_skill200_response_skill_instance.to_dict() +# create an instance of GetSkill200ResponseSkill from a dict +get_skill200_response_skill_from_dict = GetSkill200ResponseSkill.from_dict(get_skill200_response_skill_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/ImportSkill201Response.md b/docs/ImportSkill201Response.md new file mode 100644 index 0000000..065a2a9 --- /dev/null +++ b/docs/ImportSkill201Response.md @@ -0,0 +1,30 @@ +# ImportSkill201Response + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**skill** | **object** | | [optional] +**message** | **str** | | [optional] + +## Example + +```python +from quantcdn.models.import_skill201_response import ImportSkill201Response + +# TODO update the JSON string below +json = "{}" +# create an instance of ImportSkill201Response from a JSON string +import_skill201_response_instance = ImportSkill201Response.from_json(json) +# print the JSON string representation of the object +print(ImportSkill201Response.to_json()) + +# convert the object into a dict +import_skill201_response_dict = import_skill201_response_instance.to_dict() +# create an instance of ImportSkill201Response from a dict +import_skill201_response_from_dict = ImportSkill201Response.from_dict(import_skill201_response_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/ImportSkillCollection201Response.md b/docs/ImportSkillCollection201Response.md new file mode 100644 index 0000000..63d686d --- /dev/null +++ b/docs/ImportSkillCollection201Response.md @@ -0,0 +1,33 @@ +# ImportSkillCollection201Response + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**namespace** | **str** | | [optional] +**imported** | **int** | | [optional] +**failed** | **int** | | [optional] +**skills** | **List[object]** | | [optional] +**errors** | **List[object]** | | [optional] + +## Example + +```python +from quantcdn.models.import_skill_collection201_response import ImportSkillCollection201Response + +# TODO update the JSON string below +json = "{}" +# create an instance of ImportSkillCollection201Response from a JSON string +import_skill_collection201_response_instance = ImportSkillCollection201Response.from_json(json) +# print the JSON string representation of the object +print(ImportSkillCollection201Response.to_json()) + +# convert the object into a dict +import_skill_collection201_response_dict = import_skill_collection201_response_instance.to_dict() +# create an instance of ImportSkillCollection201Response from a dict +import_skill_collection201_response_from_dict = ImportSkillCollection201Response.from_dict(import_skill_collection201_response_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/ImportSkillCollectionRequest.md b/docs/ImportSkillCollectionRequest.md new file mode 100644 index 0000000..02ebab3 --- /dev/null +++ b/docs/ImportSkillCollectionRequest.md @@ -0,0 +1,32 @@ +# ImportSkillCollectionRequest + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**namespace** | **str** | | +**source** | [**ImportSkillCollectionRequestSource**](ImportSkillCollectionRequestSource.md) | | +**tags** | **List[str]** | | [optional] +**installed_by** | **str** | | [optional] + +## Example + +```python +from quantcdn.models.import_skill_collection_request import ImportSkillCollectionRequest + +# TODO update the JSON string below +json = "{}" +# create an instance of ImportSkillCollectionRequest from a JSON string +import_skill_collection_request_instance = ImportSkillCollectionRequest.from_json(json) +# print the JSON string representation of the object +print(ImportSkillCollectionRequest.to_json()) + +# convert the object into a dict +import_skill_collection_request_dict = import_skill_collection_request_instance.to_dict() +# create an instance of ImportSkillCollectionRequest from a dict +import_skill_collection_request_from_dict = ImportSkillCollectionRequest.from_dict(import_skill_collection_request_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/ImportSkillCollectionRequestSource.md b/docs/ImportSkillCollectionRequestSource.md new file mode 100644 index 0000000..0178181 --- /dev/null +++ b/docs/ImportSkillCollectionRequestSource.md @@ -0,0 +1,32 @@ +# ImportSkillCollectionRequestSource + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**type** | **str** | | +**repo** | **str** | | +**path** | **str** | | [optional] +**version** | **str** | | [optional] + +## Example + +```python +from quantcdn.models.import_skill_collection_request_source import ImportSkillCollectionRequestSource + +# TODO update the JSON string below +json = "{}" +# create an instance of ImportSkillCollectionRequestSource from a JSON string +import_skill_collection_request_source_instance = ImportSkillCollectionRequestSource.from_json(json) +# print the JSON string representation of the object +print(ImportSkillCollectionRequestSource.to_json()) + +# convert the object into a dict +import_skill_collection_request_source_dict = import_skill_collection_request_source_instance.to_dict() +# create an instance of ImportSkillCollectionRequestSource from a dict +import_skill_collection_request_source_from_dict = ImportSkillCollectionRequestSource.from_dict(import_skill_collection_request_source_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/ImportSkillRequest.md b/docs/ImportSkillRequest.md new file mode 100644 index 0000000..4d6ed70 --- /dev/null +++ b/docs/ImportSkillRequest.md @@ -0,0 +1,37 @@ +# ImportSkillRequest + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**source** | [**ImportSkillRequestSource**](ImportSkillRequestSource.md) | | +**name** | **str** | | [optional] +**description** | **str** | | [optional] +**tags** | **List[str]** | | [optional] +**trigger_condition** | **str** | | [optional] +**required_tools** | **List[str]** | | [optional] +**disable_model_invocation** | **bool** | | [optional] +**allowed_tools** | **List[str]** | | [optional] +**installed_by** | **str** | | [optional] + +## Example + +```python +from quantcdn.models.import_skill_request import ImportSkillRequest + +# TODO update the JSON string below +json = "{}" +# create an instance of ImportSkillRequest from a JSON string +import_skill_request_instance = ImportSkillRequest.from_json(json) +# print the JSON string representation of the object +print(ImportSkillRequest.to_json()) + +# convert the object into a dict +import_skill_request_dict = import_skill_request_instance.to_dict() +# create an instance of ImportSkillRequest from a dict +import_skill_request_from_dict = ImportSkillRequest.from_dict(import_skill_request_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/ImportSkillRequestSource.md b/docs/ImportSkillRequestSource.md new file mode 100644 index 0000000..9600cfe --- /dev/null +++ b/docs/ImportSkillRequestSource.md @@ -0,0 +1,33 @@ +# ImportSkillRequestSource + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**type** | **str** | | +**url** | **str** | | [optional] +**repo** | **str** | | [optional] +**path** | **str** | | [optional] +**version** | **str** | | [optional] + +## Example + +```python +from quantcdn.models.import_skill_request_source import ImportSkillRequestSource + +# TODO update the JSON string below +json = "{}" +# create an instance of ImportSkillRequestSource from a JSON string +import_skill_request_source_instance = ImportSkillRequestSource.from_json(json) +# print the JSON string representation of the object +print(ImportSkillRequestSource.to_json()) + +# convert the object into a dict +import_skill_request_source_dict = import_skill_request_source_instance.to_dict() +# create an instance of ImportSkillRequestSource from a dict +import_skill_request_source_from_dict = ImportSkillRequestSource.from_dict(import_skill_request_source_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/KVApi.md b/docs/KVApi.md index c5737a9..6d2f240 100644 --- a/docs/KVApi.md +++ b/docs/KVApi.md @@ -11,8 +11,10 @@ Method | HTTP request | Description [**k_v_items_list**](KVApi.md#k_v_items_list) | **GET** /api/v2/organizations/{organization}/projects/{project}/kv/{store_id}/items | List items in a kv store [**k_v_items_show**](KVApi.md#k_v_items_show) | **GET** /api/v2/organizations/{organization}/projects/{project}/kv/{store_id}/items/{key} | Get an item from a kv store [**k_v_items_update**](KVApi.md#k_v_items_update) | **PUT** /api/v2/organizations/{organization}/projects/{project}/kv/{store_id}/items/{key} | Update an item in a kv store +[**k_v_link_to_project**](KVApi.md#k_v_link_to_project) | **POST** /api/v2/organizations/{organization}/projects/{project}/kv/{store_id}/link | Link a KV store to another project [**k_v_list**](KVApi.md#k_v_list) | **GET** /api/v2/organizations/{organization}/projects/{project}/kv | List key-value stores [**k_v_show**](KVApi.md#k_v_show) | **GET** /api/v2/organizations/{organization}/projects/{project}/kv/{store_id} | Get a kv store +[**k_v_unlink_from_project**](KVApi.md#k_v_unlink_from_project) | **DELETE** /api/v2/organizations/{organization}/projects/{project}/kv/{store_id}/link | Unlink a KV store from this project # **k_v_create** @@ -611,6 +613,94 @@ Name | Type | Description | Notes [[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) +# **k_v_link_to_project** +> KVLinkToProject200Response k_v_link_to_project(organization, project, store_id, kv_link_to_project_request) + +Link a KV store to another project + +Share a KV store from the source project with a target project. The store will be accessible in the target project. + +### Example + +* Bearer (JWT) Authentication (BearerAuth): + +```python +import quantcdn +from quantcdn.models.kv_link_to_project200_response import KVLinkToProject200Response +from quantcdn.models.kv_link_to_project_request import KVLinkToProjectRequest +from quantcdn.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to https://dashboard.quantcdn.io +# See configuration.py for a list of all supported configuration parameters. +configuration = quantcdn.Configuration( + host = "https://dashboard.quantcdn.io" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure Bearer authorization (JWT): BearerAuth +configuration = quantcdn.Configuration( + access_token = os.environ["BEARER_TOKEN"] +) + +# Enter a context with an instance of the API client +with quantcdn.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = quantcdn.KVApi(api_client) + organization = 'test-org' # str | Organization identifier + project = 'test-project' # str | Source project identifier + store_id = 'store-123' # str | KV store identifier + kv_link_to_project_request = quantcdn.KVLinkToProjectRequest() # KVLinkToProjectRequest | + + try: + # Link a KV store to another project + api_response = api_instance.k_v_link_to_project(organization, project, store_id, kv_link_to_project_request) + print("The response of KVApi->k_v_link_to_project:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling KVApi->k_v_link_to_project: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **organization** | **str**| Organization identifier | + **project** | **str**| Source project identifier | + **store_id** | **str**| KV store identifier | + **kv_link_to_project_request** | [**KVLinkToProjectRequest**](KVLinkToProjectRequest.md)| | + +### Return type + +[**KVLinkToProject200Response**](KVLinkToProject200Response.md) + +### Authorization + +[BearerAuth](../README.md#BearerAuth) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | Store linked successfully | - | +**400** | Store already linked or invalid request | - | +**404** | Store or target project not found | - | +**403** | Access forbidden | - | + +[[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) + # **k_v_list** > List[V2Store] k_v_list(organization, project) @@ -773,3 +863,87 @@ Name | Type | Description | Notes [[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) +# **k_v_unlink_from_project** +> KVLinkToProject200Response k_v_unlink_from_project(organization, project, store_id) + +Unlink a KV store from this project + +Remove access to a linked KV store from this project. The store must be linked (not owned by this project). + +### Example + +* Bearer (JWT) Authentication (BearerAuth): + +```python +import quantcdn +from quantcdn.models.kv_link_to_project200_response import KVLinkToProject200Response +from quantcdn.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to https://dashboard.quantcdn.io +# See configuration.py for a list of all supported configuration parameters. +configuration = quantcdn.Configuration( + host = "https://dashboard.quantcdn.io" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure Bearer authorization (JWT): BearerAuth +configuration = quantcdn.Configuration( + access_token = os.environ["BEARER_TOKEN"] +) + +# Enter a context with an instance of the API client +with quantcdn.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = quantcdn.KVApi(api_client) + organization = 'test-org' # str | Organization identifier + project = 'test-project' # str | Project identifier + store_id = 'store-123' # str | KV store identifier + + try: + # Unlink a KV store from this project + api_response = api_instance.k_v_unlink_from_project(organization, project, store_id) + print("The response of KVApi->k_v_unlink_from_project:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling KVApi->k_v_unlink_from_project: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **organization** | **str**| Organization identifier | + **project** | **str**| Project identifier | + **store_id** | **str**| KV store identifier | + +### Return type + +[**KVLinkToProject200Response**](KVLinkToProject200Response.md) + +### Authorization + +[BearerAuth](../README.md#BearerAuth) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | Store unlinked successfully | - | +**400** | Store not linked or invalid request | - | +**403** | Cannot unlink store owned by this project | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + diff --git a/docs/KVLinkToProject200Response.md b/docs/KVLinkToProject200Response.md new file mode 100644 index 0000000..44a8ea8 --- /dev/null +++ b/docs/KVLinkToProject200Response.md @@ -0,0 +1,30 @@ +# KVLinkToProject200Response + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**success** | **bool** | | [optional] +**message** | **str** | | [optional] + +## Example + +```python +from quantcdn.models.kv_link_to_project200_response import KVLinkToProject200Response + +# TODO update the JSON string below +json = "{}" +# create an instance of KVLinkToProject200Response from a JSON string +kv_link_to_project200_response_instance = KVLinkToProject200Response.from_json(json) +# print the JSON string representation of the object +print(KVLinkToProject200Response.to_json()) + +# convert the object into a dict +kv_link_to_project200_response_dict = kv_link_to_project200_response_instance.to_dict() +# create an instance of KVLinkToProject200Response from a dict +kv_link_to_project200_response_from_dict = KVLinkToProject200Response.from_dict(kv_link_to_project200_response_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/KVLinkToProjectRequest.md b/docs/KVLinkToProjectRequest.md new file mode 100644 index 0000000..3ef94b2 --- /dev/null +++ b/docs/KVLinkToProjectRequest.md @@ -0,0 +1,29 @@ +# KVLinkToProjectRequest + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**project_id** | **int** | Target project ID to link to | + +## Example + +```python +from quantcdn.models.kv_link_to_project_request import KVLinkToProjectRequest + +# TODO update the JSON string below +json = "{}" +# create an instance of KVLinkToProjectRequest from a JSON string +kv_link_to_project_request_instance = KVLinkToProjectRequest.from_json(json) +# print the JSON string representation of the object +print(KVLinkToProjectRequest.to_json()) + +# convert the object into a dict +kv_link_to_project_request_dict = kv_link_to_project_request_instance.to_dict() +# create an instance of KVLinkToProjectRequest from a dict +kv_link_to_project_request_from_dict = KVLinkToProjectRequest.from_dict(kv_link_to_project_request_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/ListOrchestrationBatches200Response.md b/docs/ListOrchestrationBatches200Response.md new file mode 100644 index 0000000..9f2f1a0 --- /dev/null +++ b/docs/ListOrchestrationBatches200Response.md @@ -0,0 +1,30 @@ +# ListOrchestrationBatches200Response + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**batches** | [**List[ListOrchestrationBatches200ResponseBatchesInner]**](ListOrchestrationBatches200ResponseBatchesInner.md) | | [optional] +**next_cursor** | **str** | | [optional] + +## Example + +```python +from quantcdn.models.list_orchestration_batches200_response import ListOrchestrationBatches200Response + +# TODO update the JSON string below +json = "{}" +# create an instance of ListOrchestrationBatches200Response from a JSON string +list_orchestration_batches200_response_instance = ListOrchestrationBatches200Response.from_json(json) +# print the JSON string representation of the object +print(ListOrchestrationBatches200Response.to_json()) + +# convert the object into a dict +list_orchestration_batches200_response_dict = list_orchestration_batches200_response_instance.to_dict() +# create an instance of ListOrchestrationBatches200Response from a dict +list_orchestration_batches200_response_from_dict = ListOrchestrationBatches200Response.from_dict(list_orchestration_batches200_response_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/ListOrchestrationBatches200ResponseBatchesInner.md b/docs/ListOrchestrationBatches200ResponseBatchesInner.md new file mode 100644 index 0000000..23606a3 --- /dev/null +++ b/docs/ListOrchestrationBatches200ResponseBatchesInner.md @@ -0,0 +1,38 @@ +# ListOrchestrationBatches200ResponseBatchesInner + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**batch_id** | **str** | | [optional] +**orchestration_id** | **str** | | [optional] +**iteration** | **int** | | [optional] +**item_count** | **int** | | [optional] +**completed_count** | **int** | | [optional] +**failed_count** | **int** | | [optional] +**status** | **str** | | [optional] +**started_at** | **datetime** | | [optional] +**completed_at** | **datetime** | | [optional] +**error** | **str** | | [optional] + +## Example + +```python +from quantcdn.models.list_orchestration_batches200_response_batches_inner import ListOrchestrationBatches200ResponseBatchesInner + +# TODO update the JSON string below +json = "{}" +# create an instance of ListOrchestrationBatches200ResponseBatchesInner from a JSON string +list_orchestration_batches200_response_batches_inner_instance = ListOrchestrationBatches200ResponseBatchesInner.from_json(json) +# print the JSON string representation of the object +print(ListOrchestrationBatches200ResponseBatchesInner.to_json()) + +# convert the object into a dict +list_orchestration_batches200_response_batches_inner_dict = list_orchestration_batches200_response_batches_inner_instance.to_dict() +# create an instance of ListOrchestrationBatches200ResponseBatchesInner from a dict +list_orchestration_batches200_response_batches_inner_from_dict = ListOrchestrationBatches200ResponseBatchesInner.from_dict(list_orchestration_batches200_response_batches_inner_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/ListOrchestrations200Response.md b/docs/ListOrchestrations200Response.md new file mode 100644 index 0000000..930d298 --- /dev/null +++ b/docs/ListOrchestrations200Response.md @@ -0,0 +1,30 @@ +# ListOrchestrations200Response + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**orchestrations** | **List[object]** | | [optional] +**next_cursor** | **str** | | [optional] + +## Example + +```python +from quantcdn.models.list_orchestrations200_response import ListOrchestrations200Response + +# TODO update the JSON string below +json = "{}" +# create an instance of ListOrchestrations200Response from a JSON string +list_orchestrations200_response_instance = ListOrchestrations200Response.from_json(json) +# print the JSON string representation of the object +print(ListOrchestrations200Response.to_json()) + +# convert the object into a dict +list_orchestrations200_response_dict = list_orchestrations200_response_instance.to_dict() +# create an instance of ListOrchestrations200Response from a dict +list_orchestrations200_response_from_dict = ListOrchestrations200Response.from_dict(list_orchestrations200_response_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/ListSkillCollections200Response.md b/docs/ListSkillCollections200Response.md new file mode 100644 index 0000000..b1749c5 --- /dev/null +++ b/docs/ListSkillCollections200Response.md @@ -0,0 +1,29 @@ +# ListSkillCollections200Response + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**collections** | [**List[ListSkillCollections200ResponseCollectionsInner]**](ListSkillCollections200ResponseCollectionsInner.md) | | [optional] + +## Example + +```python +from quantcdn.models.list_skill_collections200_response import ListSkillCollections200Response + +# TODO update the JSON string below +json = "{}" +# create an instance of ListSkillCollections200Response from a JSON string +list_skill_collections200_response_instance = ListSkillCollections200Response.from_json(json) +# print the JSON string representation of the object +print(ListSkillCollections200Response.to_json()) + +# convert the object into a dict +list_skill_collections200_response_dict = list_skill_collections200_response_instance.to_dict() +# create an instance of ListSkillCollections200Response from a dict +list_skill_collections200_response_from_dict = ListSkillCollections200Response.from_dict(list_skill_collections200_response_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/ListSkillCollections200ResponseCollectionsInner.md b/docs/ListSkillCollections200ResponseCollectionsInner.md new file mode 100644 index 0000000..39af379 --- /dev/null +++ b/docs/ListSkillCollections200ResponseCollectionsInner.md @@ -0,0 +1,31 @@ +# ListSkillCollections200ResponseCollectionsInner + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**namespace** | **str** | | [optional] +**count** | **int** | | [optional] +**skills** | **List[str]** | | [optional] + +## Example + +```python +from quantcdn.models.list_skill_collections200_response_collections_inner import ListSkillCollections200ResponseCollectionsInner + +# TODO update the JSON string below +json = "{}" +# create an instance of ListSkillCollections200ResponseCollectionsInner from a JSON string +list_skill_collections200_response_collections_inner_instance = ListSkillCollections200ResponseCollectionsInner.from_json(json) +# print the JSON string representation of the object +print(ListSkillCollections200ResponseCollectionsInner.to_json()) + +# convert the object into a dict +list_skill_collections200_response_collections_inner_dict = list_skill_collections200_response_collections_inner_instance.to_dict() +# create an instance of ListSkillCollections200ResponseCollectionsInner from a dict +list_skill_collections200_response_collections_inner_from_dict = ListSkillCollections200ResponseCollectionsInner.from_dict(list_skill_collections200_response_collections_inner_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/ListSkills200Response.md b/docs/ListSkills200Response.md new file mode 100644 index 0000000..9b3aaf8 --- /dev/null +++ b/docs/ListSkills200Response.md @@ -0,0 +1,30 @@ +# ListSkills200Response + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**skills** | [**List[ListSkills200ResponseSkillsInner]**](ListSkills200ResponseSkillsInner.md) | | [optional] +**count** | **int** | | [optional] + +## Example + +```python +from quantcdn.models.list_skills200_response import ListSkills200Response + +# TODO update the JSON string below +json = "{}" +# create an instance of ListSkills200Response from a JSON string +list_skills200_response_instance = ListSkills200Response.from_json(json) +# print the JSON string representation of the object +print(ListSkills200Response.to_json()) + +# convert the object into a dict +list_skills200_response_dict = list_skills200_response_instance.to_dict() +# create an instance of ListSkills200Response from a dict +list_skills200_response_from_dict = ListSkills200Response.from_dict(list_skills200_response_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/ListSkills200ResponseSkillsInner.md b/docs/ListSkills200ResponseSkillsInner.md new file mode 100644 index 0000000..be70f0a --- /dev/null +++ b/docs/ListSkills200ResponseSkillsInner.md @@ -0,0 +1,37 @@ +# ListSkills200ResponseSkillsInner + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**skill_id** | **str** | | [optional] +**name** | **str** | | [optional] +**description** | **str** | | [optional] +**tags** | **List[str]** | | [optional] +**source** | **object** | | [optional] +**trigger_condition** | **str** | | [optional] +**namespace** | **str** | | [optional] +**installed_at** | **datetime** | | [optional] +**updated_at** | **datetime** | | [optional] + +## Example + +```python +from quantcdn.models.list_skills200_response_skills_inner import ListSkills200ResponseSkillsInner + +# TODO update the JSON string below +json = "{}" +# create an instance of ListSkills200ResponseSkillsInner from a JSON string +list_skills200_response_skills_inner_instance = ListSkills200ResponseSkillsInner.from_json(json) +# print the JSON string representation of the object +print(ListSkills200ResponseSkillsInner.to_json()) + +# convert the object into a dict +list_skills200_response_skills_inner_dict = list_skills200_response_skills_inner_instance.to_dict() +# create an instance of ListSkills200ResponseSkillsInner from a dict +list_skills200_response_skills_inner_from_dict = ListSkills200ResponseSkillsInner.from_dict(list_skills200_response_skills_inner_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/OrchestrationApi.md b/docs/OrchestrationApi.md deleted file mode 100644 index 5cb1978..0000000 --- a/docs/OrchestrationApi.md +++ /dev/null @@ -1,120 +0,0 @@ -# quantcdn.OrchestrationApi - -All URIs are relative to *https://dashboard.quantcdn.io* - -Method | HTTP request | Description -------------- | ------------- | ------------- -[**get_ai_orchestration_status**](OrchestrationApi.md#get_ai_orchestration_status) | **GET** /api/v3/organizations/{organisation}/ai/tools/orchestrations/{orchestrationId} | Get Orchestration Status - - -# **get_ai_orchestration_status** -> GetAIOrchestrationStatus200Response get_ai_orchestration_status(organisation, orchestration_id) - -Get Orchestration Status - -Retrieves the status and synthesized result of a multi-tool orchestration. - * - * **Orchestration Pattern:** - * When the AI requests multiple async tools simultaneously, an orchestration is created - * to track all tool executions and synthesize their results into a single coherent response. - * - * **Flow:** - * 1. AI requests multiple async tools (e.g., image generation + web search) - * 2. Chat API creates orchestration and returns orchestrationId - * 3. Tool Orchestrator Lambda polls all async tools - * 4. When all tools complete, Orchestrator synthesizes results using AI - * 5. Client polls this endpoint and receives final synthesized response - * - * **Status Values:** - * - pending: Orchestration created, tools not yet started - * - polling: Orchestrator is actively polling async tools - * - synthesizing: All tools complete, AI is synthesizing response - * - complete: Orchestration finished, synthesizedResponse available - * - failed: Orchestration failed, error available - * - * **Polling Recommendations:** - * - Poll every 2 seconds - * - Maximum poll time: 10 minutes - * - Orchestrator handles tool polling internally - * - * **Benefits over individual polling:** - * - Single poll endpoint for multiple async tools - * - AI synthesizes all results into coherent response - * - Answers the original user question, not just tool summaries - -### Example - -* Bearer (JWT) Authentication (BearerAuth): - -```python -import quantcdn -from quantcdn.models.get_ai_orchestration_status200_response import GetAIOrchestrationStatus200Response -from quantcdn.rest import ApiException -from pprint import pprint - -# Defining the host is optional and defaults to https://dashboard.quantcdn.io -# See configuration.py for a list of all supported configuration parameters. -configuration = quantcdn.Configuration( - host = "https://dashboard.quantcdn.io" -) - -# The client must configure the authentication and authorization parameters -# in accordance with the API server security policy. -# Examples for each auth method are provided below, use the example that -# satisfies your auth use case. - -# Configure Bearer authorization (JWT): BearerAuth -configuration = quantcdn.Configuration( - access_token = os.environ["BEARER_TOKEN"] -) - -# Enter a context with an instance of the API client -with quantcdn.ApiClient(configuration) as api_client: - # Create an instance of the API class - api_instance = quantcdn.OrchestrationApi(api_client) - organisation = 'organisation_example' # str | The organisation ID - orchestration_id = 'orch_abc123def456789012345678901234' # str | Orchestration identifier for aggregated async tool executions - - try: - # Get Orchestration Status - api_response = api_instance.get_ai_orchestration_status(organisation, orchestration_id) - print("The response of OrchestrationApi->get_ai_orchestration_status:\n") - pprint(api_response) - except Exception as e: - print("Exception when calling OrchestrationApi->get_ai_orchestration_status: %s\n" % e) -``` - - - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **organisation** | **str**| The organisation ID | - **orchestration_id** | **str**| Orchestration identifier for aggregated async tool executions | - -### Return type - -[**GetAIOrchestrationStatus200Response**](GetAIOrchestrationStatus200Response.md) - -### Authorization - -[BearerAuth](../README.md#BearerAuth) - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json - -### HTTP response details - -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**200** | Orchestration status retrieved successfully | - | -**404** | Orchestration not found (may have expired after 24h) | - | -**403** | Access denied | - | -**500** | Failed to retrieve orchestration status | - | - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - diff --git a/docs/SyncSkillCollection200Response.md b/docs/SyncSkillCollection200Response.md new file mode 100644 index 0000000..3ee909c --- /dev/null +++ b/docs/SyncSkillCollection200Response.md @@ -0,0 +1,34 @@ +# SyncSkillCollection200Response + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**namespace** | **str** | | [optional] +**synced** | **int** | | [optional] +**created** | **int** | | [optional] +**failed** | **int** | | [optional] +**removed_from_source** | **List[str]** | | [optional] +**skills** | **List[object]** | | [optional] + +## Example + +```python +from quantcdn.models.sync_skill_collection200_response import SyncSkillCollection200Response + +# TODO update the JSON string below +json = "{}" +# create an instance of SyncSkillCollection200Response from a JSON string +sync_skill_collection200_response_instance = SyncSkillCollection200Response.from_json(json) +# print the JSON string representation of the object +print(SyncSkillCollection200Response.to_json()) + +# convert the object into a dict +sync_skill_collection200_response_dict = sync_skill_collection200_response_instance.to_dict() +# create an instance of SyncSkillCollection200Response from a dict +sync_skill_collection200_response_from_dict = SyncSkillCollection200Response.from_dict(sync_skill_collection200_response_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/TokensApi.md b/docs/TokensApi.md new file mode 100644 index 0000000..f20523f --- /dev/null +++ b/docs/TokensApi.md @@ -0,0 +1,249 @@ +# quantcdn.TokensApi + +All URIs are relative to *https://dashboard.quantcdn.io* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**tokens_create**](TokensApi.md#tokens_create) | **POST** /api/v2/organizations/{organization}/tokens | Create a new API token scoped to this organization +[**tokens_delete**](TokensApi.md#tokens_delete) | **DELETE** /api/v2/organizations/{organization}/tokens/{token_id} | Revoke an API token +[**tokens_list**](TokensApi.md#tokens_list) | **GET** /api/v2/organizations/{organization}/tokens | List API tokens scoped to this organization + + +# **tokens_create** +> TokensCreate201Response tokens_create(organization, tokens_create_request) + +Create a new API token scoped to this organization + +### Example + +* Bearer (JWT) Authentication (BearerAuth): + +```python +import quantcdn +from quantcdn.models.tokens_create201_response import TokensCreate201Response +from quantcdn.models.tokens_create_request import TokensCreateRequest +from quantcdn.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to https://dashboard.quantcdn.io +# See configuration.py for a list of all supported configuration parameters. +configuration = quantcdn.Configuration( + host = "https://dashboard.quantcdn.io" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure Bearer authorization (JWT): BearerAuth +configuration = quantcdn.Configuration( + access_token = os.environ["BEARER_TOKEN"] +) + +# Enter a context with an instance of the API client +with quantcdn.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = quantcdn.TokensApi(api_client) + organization = 'test-org' # str | Organization identifier + tokens_create_request = quantcdn.TokensCreateRequest() # TokensCreateRequest | + + try: + # Create a new API token scoped to this organization + api_response = api_instance.tokens_create(organization, tokens_create_request) + print("The response of TokensApi->tokens_create:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling TokensApi->tokens_create: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **organization** | **str**| Organization identifier | + **tokens_create_request** | [**TokensCreateRequest**](TokensCreateRequest.md)| | + +### Return type + +[**TokensCreate201Response**](TokensCreate201Response.md) + +### Authorization + +[BearerAuth](../README.md#BearerAuth) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**201** | Token created. The plain token is returned once and cannot be retrieved again. | - | +**400** | Bad request. | - | +**403** | Access is forbidden. | - | + +[[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) + +# **tokens_delete** +> TokensDelete200Response tokens_delete(organization, token_id) + +Revoke an API token + +### Example + +* Bearer (JWT) Authentication (BearerAuth): + +```python +import quantcdn +from quantcdn.models.tokens_delete200_response import TokensDelete200Response +from quantcdn.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to https://dashboard.quantcdn.io +# See configuration.py for a list of all supported configuration parameters. +configuration = quantcdn.Configuration( + host = "https://dashboard.quantcdn.io" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure Bearer authorization (JWT): BearerAuth +configuration = quantcdn.Configuration( + access_token = os.environ["BEARER_TOKEN"] +) + +# Enter a context with an instance of the API client +with quantcdn.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = quantcdn.TokensApi(api_client) + organization = 'test-org' # str | Organization identifier + token_id = 42 # int | Token ID to revoke + + try: + # Revoke an API token + api_response = api_instance.tokens_delete(organization, token_id) + print("The response of TokensApi->tokens_delete:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling TokensApi->tokens_delete: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **organization** | **str**| Organization identifier | + **token_id** | **int**| Token ID to revoke | + +### Return type + +[**TokensDelete200Response**](TokensDelete200Response.md) + +### Authorization + +[BearerAuth](../README.md#BearerAuth) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | Token revoked successfully. | - | +**403** | Access is forbidden. | - | +**404** | Token not found. | - | + +[[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) + +# **tokens_list** +> List[TokensList200ResponseInner] tokens_list(organization) + +List API tokens scoped to this organization + +### Example + +* Bearer (JWT) Authentication (BearerAuth): + +```python +import quantcdn +from quantcdn.models.tokens_list200_response_inner import TokensList200ResponseInner +from quantcdn.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to https://dashboard.quantcdn.io +# See configuration.py for a list of all supported configuration parameters. +configuration = quantcdn.Configuration( + host = "https://dashboard.quantcdn.io" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure Bearer authorization (JWT): BearerAuth +configuration = quantcdn.Configuration( + access_token = os.environ["BEARER_TOKEN"] +) + +# Enter a context with an instance of the API client +with quantcdn.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = quantcdn.TokensApi(api_client) + organization = 'test-org' # str | Organization identifier + + try: + # List API tokens scoped to this organization + api_response = api_instance.tokens_list(organization) + print("The response of TokensApi->tokens_list:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling TokensApi->tokens_list: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **organization** | **str**| Organization identifier | + +### Return type + +[**List[TokensList200ResponseInner]**](TokensList200ResponseInner.md) + +### Authorization + +[BearerAuth](../README.md#BearerAuth) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | The request has succeeded. | - | +**403** | Access is forbidden. | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + diff --git a/docs/TokensCreate201Response.md b/docs/TokensCreate201Response.md new file mode 100644 index 0000000..160b882 --- /dev/null +++ b/docs/TokensCreate201Response.md @@ -0,0 +1,31 @@ +# TokensCreate201Response + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**token** | **str** | The plain text token (shown once) | [optional] +**name** | **str** | | [optional] +**created_at** | **datetime** | | [optional] + +## Example + +```python +from quantcdn.models.tokens_create201_response import TokensCreate201Response + +# TODO update the JSON string below +json = "{}" +# create an instance of TokensCreate201Response from a JSON string +tokens_create201_response_instance = TokensCreate201Response.from_json(json) +# print the JSON string representation of the object +print(TokensCreate201Response.to_json()) + +# convert the object into a dict +tokens_create201_response_dict = tokens_create201_response_instance.to_dict() +# create an instance of TokensCreate201Response from a dict +tokens_create201_response_from_dict = TokensCreate201Response.from_dict(tokens_create201_response_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/TokensCreateRequest.md b/docs/TokensCreateRequest.md new file mode 100644 index 0000000..cab478d --- /dev/null +++ b/docs/TokensCreateRequest.md @@ -0,0 +1,29 @@ +# TokensCreateRequest + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**name** | **str** | Name for the token | + +## Example + +```python +from quantcdn.models.tokens_create_request import TokensCreateRequest + +# TODO update the JSON string below +json = "{}" +# create an instance of TokensCreateRequest from a JSON string +tokens_create_request_instance = TokensCreateRequest.from_json(json) +# print the JSON string representation of the object +print(TokensCreateRequest.to_json()) + +# convert the object into a dict +tokens_create_request_dict = tokens_create_request_instance.to_dict() +# create an instance of TokensCreateRequest from a dict +tokens_create_request_from_dict = TokensCreateRequest.from_dict(tokens_create_request_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/TokensDelete200Response.md b/docs/TokensDelete200Response.md new file mode 100644 index 0000000..67673ee --- /dev/null +++ b/docs/TokensDelete200Response.md @@ -0,0 +1,29 @@ +# TokensDelete200Response + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**message** | **str** | | [optional] + +## Example + +```python +from quantcdn.models.tokens_delete200_response import TokensDelete200Response + +# TODO update the JSON string below +json = "{}" +# create an instance of TokensDelete200Response from a JSON string +tokens_delete200_response_instance = TokensDelete200Response.from_json(json) +# print the JSON string representation of the object +print(TokensDelete200Response.to_json()) + +# convert the object into a dict +tokens_delete200_response_dict = tokens_delete200_response_instance.to_dict() +# create an instance of TokensDelete200Response from a dict +tokens_delete200_response_from_dict = TokensDelete200Response.from_dict(tokens_delete200_response_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/TokensList200ResponseInner.md b/docs/TokensList200ResponseInner.md new file mode 100644 index 0000000..2f07709 --- /dev/null +++ b/docs/TokensList200ResponseInner.md @@ -0,0 +1,32 @@ +# TokensList200ResponseInner + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**id** | **int** | | [optional] +**name** | **str** | | [optional] +**last_used** | **datetime** | | [optional] +**created_at** | **datetime** | | [optional] + +## Example + +```python +from quantcdn.models.tokens_list200_response_inner import TokensList200ResponseInner + +# TODO update the JSON string below +json = "{}" +# create an instance of TokensList200ResponseInner from a JSON string +tokens_list200_response_inner_instance = TokensList200ResponseInner.from_json(json) +# print the JSON string representation of the object +print(TokensList200ResponseInner.to_json()) + +# convert the object into a dict +tokens_list200_response_inner_dict = tokens_list200_response_inner_instance.to_dict() +# create an instance of TokensList200ResponseInner from a dict +tokens_list200_response_inner_from_dict = TokensList200ResponseInner.from_dict(tokens_list200_response_inner_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/UpdateSkill200Response.md b/docs/UpdateSkill200Response.md new file mode 100644 index 0000000..83ad89c --- /dev/null +++ b/docs/UpdateSkill200Response.md @@ -0,0 +1,31 @@ +# UpdateSkill200Response + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**success** | **bool** | | [optional] +**skill** | **object** | | [optional] +**message** | **str** | | [optional] + +## Example + +```python +from quantcdn.models.update_skill200_response import UpdateSkill200Response + +# TODO update the JSON string below +json = "{}" +# create an instance of UpdateSkill200Response from a JSON string +update_skill200_response_instance = UpdateSkill200Response.from_json(json) +# print the JSON string representation of the object +print(UpdateSkill200Response.to_json()) + +# convert the object into a dict +update_skill200_response_dict = update_skill200_response_instance.to_dict() +# create an instance of UpdateSkill200Response from a dict +update_skill200_response_from_dict = UpdateSkill200Response.from_dict(update_skill200_response_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/UpdateSkillRequest.md b/docs/UpdateSkillRequest.md new file mode 100644 index 0000000..02f2539 --- /dev/null +++ b/docs/UpdateSkillRequest.md @@ -0,0 +1,39 @@ +# UpdateSkillRequest + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**name** | **str** | | [optional] +**description** | **str** | | [optional] +**content** | **str** | | [optional] +**trigger_condition** | **str** | | [optional] +**tags** | **List[str]** | | [optional] +**required_tools** | **List[str]** | | [optional] +**source** | **object** | | [optional] +**files** | **object** | | [optional] +**disable_model_invocation** | **bool** | | [optional] +**allowed_tools** | **List[str]** | | [optional] +**namespace** | **str** | | [optional] + +## Example + +```python +from quantcdn.models.update_skill_request import UpdateSkillRequest + +# TODO update the JSON string below +json = "{}" +# create an instance of UpdateSkillRequest from a JSON string +update_skill_request_instance = UpdateSkillRequest.from_json(json) +# print the JSON string representation of the object +print(UpdateSkillRequest.to_json()) + +# convert the object into a dict +update_skill_request_dict = update_skill_request_instance.to_dict() +# create an instance of UpdateSkillRequest from a dict +update_skill_request_from_dict = UpdateSkillRequest.from_dict(update_skill_request_dict) +``` +[[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/V2CrawlerSchedule.md b/docs/V2CrawlerSchedule.md index 3639f8d..1df78df 100644 --- a/docs/V2CrawlerSchedule.md +++ b/docs/V2CrawlerSchedule.md @@ -11,7 +11,7 @@ Name | Type | Description | Notes **crawler_uuid** | **str** | Crawler UUID | [optional] **project_id** | **int** | Project ID | **crawler_last_run_id** | **int** | Last run ID | -**schedule_cron_string** | **str** | Cron schedule string | +**schedule_cron_string** | **str** | Standard Unix cron expression with 5 space-separated fields: minute, hour, day-of-month, month, day-of-week. Example: 0 2 * * * runs daily at 2 AM. | **created_at** | **datetime** | Creation timestamp | [optional] **updated_at** | **datetime** | Last update timestamp | [optional] diff --git a/docs/V2CrawlerScheduleRequest.md b/docs/V2CrawlerScheduleRequest.md index 46b272d..22e1837 100644 --- a/docs/V2CrawlerScheduleRequest.md +++ b/docs/V2CrawlerScheduleRequest.md @@ -5,8 +5,8 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**name** | **str** | Schedule name | -**schedule_cron_string** | **str** | Cron schedule string | +**name** | **str** | Schedule name. If not provided, defaults to 'Schedule {crawler_name}'. | [optional] +**schedule_cron_string** | **str** | Standard Unix cron expression with 5 space-separated fields: minute, hour, day-of-month, month, day-of-week. Example: 0 2 * * * for daily at 2 AM. | ## Example diff --git a/docs/V2MetricData.md b/docs/V2MetricData.md new file mode 100644 index 0000000..e3b32cf --- /dev/null +++ b/docs/V2MetricData.md @@ -0,0 +1,32 @@ +# V2MetricData + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**series** | [**List[V2MetricDataPoint]**](V2MetricDataPoint.md) | Time series data points | +**period_total** | **float** | Total value for the period | +**all_time_total** | **float** | All-time total value | +**period_average** | **float** | Average value per time unit in the period | + +## Example + +```python +from quantcdn.models.v2_metric_data import V2MetricData + +# TODO update the JSON string below +json = "{}" +# create an instance of V2MetricData from a JSON string +v2_metric_data_instance = V2MetricData.from_json(json) +# print the JSON string representation of the object +print(V2MetricData.to_json()) + +# convert the object into a dict +v2_metric_data_dict = v2_metric_data_instance.to_dict() +# create an instance of V2MetricData from a dict +v2_metric_data_from_dict = V2MetricData.from_dict(v2_metric_data_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V2MetricDataPoint.md b/docs/V2MetricDataPoint.md new file mode 100644 index 0000000..5ed99bd --- /dev/null +++ b/docs/V2MetricDataPoint.md @@ -0,0 +1,30 @@ +# V2MetricDataPoint + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**timestamp** | [**V2MetricDataPointTimestamp**](V2MetricDataPointTimestamp.md) | | +**value** | **float** | Metric value at this timestamp | + +## Example + +```python +from quantcdn.models.v2_metric_data_point import V2MetricDataPoint + +# TODO update the JSON string below +json = "{}" +# create an instance of V2MetricDataPoint from a JSON string +v2_metric_data_point_instance = V2MetricDataPoint.from_json(json) +# print the JSON string representation of the object +print(V2MetricDataPoint.to_json()) + +# convert the object into a dict +v2_metric_data_point_dict = v2_metric_data_point_instance.to_dict() +# create an instance of V2MetricDataPoint from a dict +v2_metric_data_point_from_dict = V2MetricDataPoint.from_dict(v2_metric_data_point_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V2MetricDataPointTimestamp.md b/docs/V2MetricDataPointTimestamp.md new file mode 100644 index 0000000..2d94752 --- /dev/null +++ b/docs/V2MetricDataPointTimestamp.md @@ -0,0 +1,29 @@ +# V2MetricDataPointTimestamp + +Timestamp for this data point (format depends on timestamp_format parameter) + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- + +## Example + +```python +from quantcdn.models.v2_metric_data_point_timestamp import V2MetricDataPointTimestamp + +# TODO update the JSON string below +json = "{}" +# create an instance of V2MetricDataPointTimestamp from a JSON string +v2_metric_data_point_timestamp_instance = V2MetricDataPointTimestamp.from_json(json) +# print the JSON string representation of the object +print(V2MetricDataPointTimestamp.to_json()) + +# convert the object into a dict +v2_metric_data_point_timestamp_dict = v2_metric_data_point_timestamp_instance.to_dict() +# create an instance of V2MetricDataPointTimestamp from a dict +v2_metric_data_point_timestamp_from_dict = V2MetricDataPointTimestamp.from_dict(v2_metric_data_point_timestamp_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V2MetricsMeta.md b/docs/V2MetricsMeta.md new file mode 100644 index 0000000..5f3e534 --- /dev/null +++ b/docs/V2MetricsMeta.md @@ -0,0 +1,34 @@ +# V2MetricsMeta + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**period** | **str** | The period type for this data | +**granularity** | **str** | The granularity of data points | +**start_time** | **str** | Start time of the data range (ISO8601 or Unix timestamp based on timestamp_format parameter) | +**end_time** | **str** | End time of the data range (ISO8601 or Unix timestamp based on timestamp_format parameter) | +**metrics** | **List[str]** | List of metrics included in the response | +**domain** | **str** | Domain filter applied (if any) | [optional] + +## Example + +```python +from quantcdn.models.v2_metrics_meta import V2MetricsMeta + +# TODO update the JSON string below +json = "{}" +# create an instance of V2MetricsMeta from a JSON string +v2_metrics_meta_instance = V2MetricsMeta.from_json(json) +# print the JSON string representation of the object +print(V2MetricsMeta.to_json()) + +# convert the object into a dict +v2_metrics_meta_dict = v2_metrics_meta_instance.to_dict() +# create an instance of V2MetricsMeta from a dict +v2_metrics_meta_from_dict = V2MetricsMeta.from_dict(v2_metrics_meta_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V2MetricsResponse.md b/docs/V2MetricsResponse.md new file mode 100644 index 0000000..d38afe4 --- /dev/null +++ b/docs/V2MetricsResponse.md @@ -0,0 +1,30 @@ +# V2MetricsResponse + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**meta** | [**V2MetricsMeta**](V2MetricsMeta.md) | | +**data** | [**Dict[str, V2MetricData]**](V2MetricData.md) | Metrics data keyed by metric name | + +## Example + +```python +from quantcdn.models.v2_metrics_response import V2MetricsResponse + +# TODO update the JSON string below +json = "{}" +# create an instance of V2MetricsResponse from a JSON string +v2_metrics_response_instance = V2MetricsResponse.from_json(json) +# print the JSON string representation of the object +print(V2MetricsResponse.to_json()) + +# convert the object into a dict +v2_metrics_response_dict = v2_metrics_response_instance.to_dict() +# create an instance of V2MetricsResponse from a dict +v2_metrics_response_from_dict = V2MetricsResponse.from_dict(v2_metrics_response_dict) +``` +[[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/pyproject.toml b/pyproject.toml index 5f9a58b..7ec6e0e 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [tool.poetry] name = "quantcdn" -version = "4.9.0" +version = "4.12.0" description = "QuantCDN API" authors = ["OpenAPI Generator Community "] license = "NoLicense" diff --git a/quantcdn/__init__.py b/quantcdn/__init__.py index 2d28adf..8f4acce 100644 --- a/quantcdn/__init__.py +++ b/quantcdn/__init__.py @@ -7,7 +7,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.9.0 + The version of the OpenAPI document: 4.12.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -23,12 +23,15 @@ from quantcdn.api.ai_inference_api import AIInferenceApi from quantcdn.api.ai_models_api import AIModelsApi from quantcdn.api.ai_monitoring_api import AIMonitoringApi +from quantcdn.api.ai_orchestrations_api import AIOrchestrationsApi from quantcdn.api.ai_sessions_api import AISessionsApi +from quantcdn.api.ai_skills_api import AISkillsApi from quantcdn.api.ai_task_management_api import AITaskManagementApi from quantcdn.api.ai_tools_api import AIToolsApi from quantcdn.api.ai_vector_database_api import AIVectorDatabaseApi from quantcdn.api.applications_api import ApplicationsApi from quantcdn.api.backup_management_api import BackupManagementApi +from quantcdn.api.cdn_metrics_api import CDNMetricsApi from quantcdn.api.commands_api import CommandsApi from quantcdn.api.compose_api import ComposeApi from quantcdn.api.containers_api import ContainersApi @@ -39,13 +42,13 @@ from quantcdn.api.environments_api import EnvironmentsApi from quantcdn.api.headers_api import HeadersApi from quantcdn.api.kv_api import KVApi -from quantcdn.api.orchestration_api import OrchestrationApi from quantcdn.api.organizations_api import OrganizationsApi from quantcdn.api.projects_api import ProjectsApi from quantcdn.api.purge_api import PurgeApi from quantcdn.api.rules_api import RulesApi from quantcdn.api.ssh_access_api import SSHAccessApi from quantcdn.api.scaling_policy_api import ScalingPolicyApi +from quantcdn.api.tokens_api import TokensApi from quantcdn.api.variables_api import VariablesApi from quantcdn.api.volumes_api import VolumesApi @@ -78,6 +81,7 @@ from quantcdn.models.chat_inference200_response_usage import ChatInference200ResponseUsage from quantcdn.models.chat_inference202_response import ChatInference202Response from quantcdn.models.chat_inference_request import ChatInferenceRequest +from quantcdn.models.chat_inference_request_guardrails import ChatInferenceRequestGuardrails from quantcdn.models.chat_inference_request_messages_inner import ChatInferenceRequestMessagesInner from quantcdn.models.chat_inference_request_messages_inner_content import ChatInferenceRequestMessagesInnerContent from quantcdn.models.chat_inference_request_messages_inner_content_one_of_inner import ChatInferenceRequestMessagesInnerContentOneOfInner @@ -135,6 +139,11 @@ from quantcdn.models.create_environment403_response import CreateEnvironment403Response from quantcdn.models.create_environment_request import CreateEnvironmentRequest from quantcdn.models.create_environment_request_environment_inner import CreateEnvironmentRequestEnvironmentInner +from quantcdn.models.create_orchestration_request import CreateOrchestrationRequest +from quantcdn.models.create_orchestration_request_input_source import CreateOrchestrationRequestInputSource +from quantcdn.models.create_orchestration_request_stop_condition import CreateOrchestrationRequestStopCondition +from quantcdn.models.create_skill201_response import CreateSkill201Response +from quantcdn.models.create_skill_request import CreateSkillRequest from quantcdn.models.create_task201_response import CreateTask201Response from quantcdn.models.create_task_request import CreateTaskRequest from quantcdn.models.create_vector_collection201_response import CreateVectorCollection201Response @@ -148,9 +157,13 @@ from quantcdn.models.delete_backup200_response import DeleteBackup200Response from quantcdn.models.delete_custom_tool200_response import DeleteCustomTool200Response from quantcdn.models.delete_file200_response import DeleteFile200Response +from quantcdn.models.delete_skill200_response import DeleteSkill200Response +from quantcdn.models.delete_skill_collection200_response import DeleteSkillCollection200Response from quantcdn.models.delete_task200_response import DeleteTask200Response from quantcdn.models.delete_task409_response import DeleteTask409Response -from quantcdn.models.delete_vector_collection200_response import DeleteVectorCollection200Response +from quantcdn.models.delete_vector_documents200_response import DeleteVectorDocuments200Response +from quantcdn.models.delete_vector_documents_request import DeleteVectorDocumentsRequest +from quantcdn.models.delete_vector_documents_request_metadata import DeleteVectorDocumentsRequestMetadata from quantcdn.models.download_backup200_response import DownloadBackup200Response from quantcdn.models.embeddings200_response import Embeddings200Response from quantcdn.models.embeddings200_response_embeddings import Embeddings200ResponseEmbeddings @@ -188,6 +201,8 @@ from quantcdn.models.get_environment_logs200_response import GetEnvironmentLogs200Response from quantcdn.models.get_environment_logs200_response_log_events_inner import GetEnvironmentLogs200ResponseLogEventsInner from quantcdn.models.get_file200_response import GetFile200Response +from quantcdn.models.get_skill200_response import GetSkill200Response +from quantcdn.models.get_skill200_response_skill import GetSkill200ResponseSkill from quantcdn.models.get_ssh_access_credentials200_response import GetSshAccessCredentials200Response from quantcdn.models.get_ssh_access_credentials200_response_credentials import GetSshAccessCredentials200ResponseCredentials from quantcdn.models.get_task200_response import GetTask200Response @@ -202,10 +217,18 @@ from quantcdn.models.image_generation_request_in_painting_params import ImageGenerationRequestInPaintingParams from quantcdn.models.image_generation_request_out_painting_params import ImageGenerationRequestOutPaintingParams from quantcdn.models.image_generation_request_text_to_image_params import ImageGenerationRequestTextToImageParams +from quantcdn.models.import_skill201_response import ImportSkill201Response +from quantcdn.models.import_skill_collection201_response import ImportSkillCollection201Response +from quantcdn.models.import_skill_collection_request import ImportSkillCollectionRequest +from quantcdn.models.import_skill_collection_request_source import ImportSkillCollectionRequestSource +from quantcdn.models.import_skill_request import ImportSkillRequest +from quantcdn.models.import_skill_request_source import ImportSkillRequestSource from quantcdn.models.kv_items_create200_response import KVItemsCreate200Response from quantcdn.models.kv_items_delete200_response import KVItemsDelete200Response from quantcdn.models.kv_items_show200_response import KVItemsShow200Response from quantcdn.models.kv_items_show200_response_value import KVItemsShow200ResponseValue +from quantcdn.models.kv_link_to_project200_response import KVLinkToProject200Response +from quantcdn.models.kv_link_to_project_request import KVLinkToProjectRequest from quantcdn.models.list_ai_agents200_response import ListAIAgents200Response from quantcdn.models.list_ai_agents200_response_agents_inner import ListAIAgents200ResponseAgentsInner from quantcdn.models.list_ai_models200_response import ListAIModels200Response @@ -226,6 +249,13 @@ from quantcdn.models.list_custom_tools200_response_tools_inner import ListCustomTools200ResponseToolsInner from quantcdn.models.list_files200_response import ListFiles200Response from quantcdn.models.list_files200_response_files_inner import ListFiles200ResponseFilesInner +from quantcdn.models.list_orchestration_batches200_response import ListOrchestrationBatches200Response +from quantcdn.models.list_orchestration_batches200_response_batches_inner import ListOrchestrationBatches200ResponseBatchesInner +from quantcdn.models.list_orchestrations200_response import ListOrchestrations200Response +from quantcdn.models.list_skill_collections200_response import ListSkillCollections200Response +from quantcdn.models.list_skill_collections200_response_collections_inner import ListSkillCollections200ResponseCollectionsInner +from quantcdn.models.list_skills200_response import ListSkills200Response +from quantcdn.models.list_skills200_response_skills_inner import ListSkills200ResponseSkillsInner from quantcdn.models.list_tasks200_response import ListTasks200Response from quantcdn.models.list_tasks200_response_tasks_inner import ListTasks200ResponseTasksInner from quantcdn.models.list_vector_collections200_response import ListVectorCollections200Response @@ -248,7 +278,12 @@ from quantcdn.models.submit_tool_callback_request import SubmitToolCallbackRequest from quantcdn.models.submit_tool_callback_request_tool_results_inner import SubmitToolCallbackRequestToolResultsInner from quantcdn.models.sync_operation import SyncOperation +from quantcdn.models.sync_skill_collection200_response import SyncSkillCollection200Response from quantcdn.models.sync_to_environment_request import SyncToEnvironmentRequest +from quantcdn.models.tokens_create201_response import TokensCreate201Response +from quantcdn.models.tokens_create_request import TokensCreateRequest +from quantcdn.models.tokens_delete200_response import TokensDelete200Response +from quantcdn.models.tokens_list200_response_inner import TokensList200ResponseInner from quantcdn.models.update_ai_agent200_response import UpdateAIAgent200Response from quantcdn.models.update_ai_agent_request import UpdateAIAgentRequest from quantcdn.models.update_ai_session200_response import UpdateAISession200Response @@ -258,6 +293,8 @@ from quantcdn.models.update_environment_request import UpdateEnvironmentRequest from quantcdn.models.update_environment_state_request import UpdateEnvironmentStateRequest from quantcdn.models.update_environment_variable_request import UpdateEnvironmentVariableRequest +from quantcdn.models.update_skill200_response import UpdateSkill200Response +from quantcdn.models.update_skill_request import UpdateSkillRequest from quantcdn.models.update_task200_response import UpdateTask200Response from quantcdn.models.update_task_request import UpdateTaskRequest from quantcdn.models.upload_file201_response import UploadFile201Response @@ -321,6 +358,11 @@ from quantcdn.models.v2_domain_dns_validation_records_inner import V2DomainDnsValidationRecordsInner from quantcdn.models.v2_domain_request import V2DomainRequest from quantcdn.models.v2_error import V2Error +from quantcdn.models.v2_metric_data import V2MetricData +from quantcdn.models.v2_metric_data_point import V2MetricDataPoint +from quantcdn.models.v2_metric_data_point_timestamp import V2MetricDataPointTimestamp +from quantcdn.models.v2_metrics_meta import V2MetricsMeta +from quantcdn.models.v2_metrics_response import V2MetricsResponse from quantcdn.models.v2_organization import V2Organization from quantcdn.models.v2_organization_request import V2OrganizationRequest from quantcdn.models.v2_project import V2Project diff --git a/quantcdn/__version__.py b/quantcdn/__version__.py index 787f0e9..c93c179 100644 --- a/quantcdn/__version__.py +++ b/quantcdn/__version__.py @@ -1,2 +1,2 @@ """Version information for quantcdn SDK.""" -__version__ = "4.9.0" +__version__ = "4.12.0" diff --git a/quantcdn/api/__init__.py b/quantcdn/api/__init__.py index 5d10a47..dd02f0c 100644 --- a/quantcdn/api/__init__.py +++ b/quantcdn/api/__init__.py @@ -7,12 +7,15 @@ from quantcdn.api.ai_inference_api import AIInferenceApi from quantcdn.api.ai_models_api import AIModelsApi from quantcdn.api.ai_monitoring_api import AIMonitoringApi +from quantcdn.api.ai_orchestrations_api import AIOrchestrationsApi from quantcdn.api.ai_sessions_api import AISessionsApi +from quantcdn.api.ai_skills_api import AISkillsApi from quantcdn.api.ai_task_management_api import AITaskManagementApi from quantcdn.api.ai_tools_api import AIToolsApi from quantcdn.api.ai_vector_database_api import AIVectorDatabaseApi from quantcdn.api.applications_api import ApplicationsApi from quantcdn.api.backup_management_api import BackupManagementApi +from quantcdn.api.cdn_metrics_api import CDNMetricsApi from quantcdn.api.commands_api import CommandsApi from quantcdn.api.compose_api import ComposeApi from quantcdn.api.containers_api import ContainersApi @@ -23,13 +26,13 @@ from quantcdn.api.environments_api import EnvironmentsApi from quantcdn.api.headers_api import HeadersApi from quantcdn.api.kv_api import KVApi -from quantcdn.api.orchestration_api import OrchestrationApi from quantcdn.api.organizations_api import OrganizationsApi from quantcdn.api.projects_api import ProjectsApi from quantcdn.api.purge_api import PurgeApi from quantcdn.api.rules_api import RulesApi from quantcdn.api.ssh_access_api import SSHAccessApi from quantcdn.api.scaling_policy_api import ScalingPolicyApi +from quantcdn.api.tokens_api import TokensApi from quantcdn.api.variables_api import VariablesApi from quantcdn.api.volumes_api import VolumesApi diff --git a/quantcdn/api/ai_agents_api.py b/quantcdn/api/ai_agents_api.py index 996b66a..f84bdd7 100644 --- a/quantcdn/api/ai_agents_api.py +++ b/quantcdn/api/ai_agents_api.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.9.0 + The version of the OpenAPI document: 4.12.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/quantcdn/api/ai_custom_tools_api.py b/quantcdn/api/ai_custom_tools_api.py index 2ae1144..9296727 100644 --- a/quantcdn/api/ai_custom_tools_api.py +++ b/quantcdn/api/ai_custom_tools_api.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.9.0 + The version of the OpenAPI document: 4.12.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/quantcdn/api/ai_file_storage_api.py b/quantcdn/api/ai_file_storage_api.py index f81689e..560fff2 100644 --- a/quantcdn/api/ai_file_storage_api.py +++ b/quantcdn/api/ai_file_storage_api.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.9.0 + The version of the OpenAPI document: 4.12.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/quantcdn/api/ai_inference_api.py b/quantcdn/api/ai_inference_api.py index ff9ef81..86355d4 100644 --- a/quantcdn/api/ai_inference_api.py +++ b/quantcdn/api/ai_inference_api.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.9.0 + The version of the OpenAPI document: 4.12.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/quantcdn/api/ai_models_api.py b/quantcdn/api/ai_models_api.py index 4d2a5e6..1bcc126 100644 --- a/quantcdn/api/ai_models_api.py +++ b/quantcdn/api/ai_models_api.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.9.0 + The version of the OpenAPI document: 4.12.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/quantcdn/api/ai_monitoring_api.py b/quantcdn/api/ai_monitoring_api.py index 25dd503..56d7689 100644 --- a/quantcdn/api/ai_monitoring_api.py +++ b/quantcdn/api/ai_monitoring_api.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.9.0 + The version of the OpenAPI document: 4.12.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/quantcdn/api/ai_orchestrations_api.py b/quantcdn/api/ai_orchestrations_api.py new file mode 100644 index 0000000..85fdf7c --- /dev/null +++ b/quantcdn/api/ai_orchestrations_api.py @@ -0,0 +1,2694 @@ +# coding: utf-8 + +""" + QuantCDN API + + Unified API for QuantCDN Admin and QuantCloud Platform services + + The version of the OpenAPI document: 4.12.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + +import warnings +from pydantic import validate_call, Field, StrictFloat, StrictStr, StrictInt +from typing import Any, Dict, List, Optional, Tuple, Union +from typing_extensions import Annotated + +from pydantic import Field, StrictStr, field_validator +from typing import Any, Dict, Optional +from typing_extensions import Annotated +from quantcdn.models.create_orchestration_request import CreateOrchestrationRequest +from quantcdn.models.list_orchestration_batches200_response import ListOrchestrationBatches200Response +from quantcdn.models.list_orchestrations200_response import ListOrchestrations200Response + +from quantcdn.api_client import ApiClient, RequestSerialized +from quantcdn.api_response import ApiResponse +from quantcdn.rest import RESTResponseType + + +class AIOrchestrationsApi: + """NOTE: This class is auto generated by OpenAPI Generator + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + def __init__(self, api_client=None) -> None: + if api_client is None: + api_client = ApiClient.get_default() + self.api_client = api_client + + + @validate_call + def cancel_orchestration( + self, + organisation: Annotated[StrictStr, Field(description="The organisation machine name")], + orchestration_id: Annotated[StrictStr, Field(description="Orchestration identifier")], + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> object: + """Cancel Durable Orchestration + + Cancel an orchestration permanently. Cannot be resumed. Any in-progress items will complete, but no new processing starts. + + :param organisation: The organisation machine name (required) + :type organisation: str + :param orchestration_id: Orchestration identifier (required) + :type orchestration_id: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._cancel_orchestration_serialize( + organisation=organisation, + orchestration_id=orchestration_id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "object", + '400': None, + '403': None, + '404': None, + '500': None, + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def cancel_orchestration_with_http_info( + self, + organisation: Annotated[StrictStr, Field(description="The organisation machine name")], + orchestration_id: Annotated[StrictStr, Field(description="Orchestration identifier")], + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[object]: + """Cancel Durable Orchestration + + Cancel an orchestration permanently. Cannot be resumed. Any in-progress items will complete, but no new processing starts. + + :param organisation: The organisation machine name (required) + :type organisation: str + :param orchestration_id: Orchestration identifier (required) + :type orchestration_id: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._cancel_orchestration_serialize( + organisation=organisation, + orchestration_id=orchestration_id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "object", + '400': None, + '403': None, + '404': None, + '500': None, + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def cancel_orchestration_without_preload_content( + self, + organisation: Annotated[StrictStr, Field(description="The organisation machine name")], + orchestration_id: Annotated[StrictStr, Field(description="Orchestration identifier")], + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """Cancel Durable Orchestration + + Cancel an orchestration permanently. Cannot be resumed. Any in-progress items will complete, but no new processing starts. + + :param organisation: The organisation machine name (required) + :type organisation: str + :param orchestration_id: Orchestration identifier (required) + :type orchestration_id: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._cancel_orchestration_serialize( + organisation=organisation, + orchestration_id=orchestration_id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "object", + '400': None, + '403': None, + '404': None, + '500': None, + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _cancel_orchestration_serialize( + self, + organisation, + orchestration_id, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + if organisation is not None: + _path_params['organisation'] = organisation + if orchestration_id is not None: + _path_params['orchestrationId'] = orchestration_id + # process the query parameters + # process the header parameters + # process the form parameters + # process the body parameter + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + 'BearerAuth' + ] + + return self.api_client.param_serialize( + method='POST', + resource_path='/api/v3/organizations/{organisation}/ai/orchestrations/{orchestrationId}/cancel', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def create_orchestration( + self, + organisation: Annotated[StrictStr, Field(description="The organisation machine name")], + create_orchestration_request: CreateOrchestrationRequest, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> object: + """Create Durable Orchestration + + Create a new durable orchestration for batch processing. * * **Input Sources:** * - `static`: Process a fixed list of items * - `task_query`: Process tasks matching a query * - `generator`: AI generates items from a prompt * * **Stop Conditions:** * - `all_complete`: Stop when all items processed * - `max_iterations`: Stop after N iterations * - `condition`: AI evaluates a prompt to decide * - `manual`: Run until manually stopped * * **Auto-start:** * By default, the orchestration starts immediately. Set `autoStart: false` to create in pending state. + + :param organisation: The organisation machine name (required) + :type organisation: str + :param create_orchestration_request: (required) + :type create_orchestration_request: CreateOrchestrationRequest + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._create_orchestration_serialize( + organisation=organisation, + create_orchestration_request=create_orchestration_request, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '201': "object", + '400': None, + '403': None, + '500': None, + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def create_orchestration_with_http_info( + self, + organisation: Annotated[StrictStr, Field(description="The organisation machine name")], + create_orchestration_request: CreateOrchestrationRequest, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[object]: + """Create Durable Orchestration + + Create a new durable orchestration for batch processing. * * **Input Sources:** * - `static`: Process a fixed list of items * - `task_query`: Process tasks matching a query * - `generator`: AI generates items from a prompt * * **Stop Conditions:** * - `all_complete`: Stop when all items processed * - `max_iterations`: Stop after N iterations * - `condition`: AI evaluates a prompt to decide * - `manual`: Run until manually stopped * * **Auto-start:** * By default, the orchestration starts immediately. Set `autoStart: false` to create in pending state. + + :param organisation: The organisation machine name (required) + :type organisation: str + :param create_orchestration_request: (required) + :type create_orchestration_request: CreateOrchestrationRequest + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._create_orchestration_serialize( + organisation=organisation, + create_orchestration_request=create_orchestration_request, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '201': "object", + '400': None, + '403': None, + '500': None, + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def create_orchestration_without_preload_content( + self, + organisation: Annotated[StrictStr, Field(description="The organisation machine name")], + create_orchestration_request: CreateOrchestrationRequest, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """Create Durable Orchestration + + Create a new durable orchestration for batch processing. * * **Input Sources:** * - `static`: Process a fixed list of items * - `task_query`: Process tasks matching a query * - `generator`: AI generates items from a prompt * * **Stop Conditions:** * - `all_complete`: Stop when all items processed * - `max_iterations`: Stop after N iterations * - `condition`: AI evaluates a prompt to decide * - `manual`: Run until manually stopped * * **Auto-start:** * By default, the orchestration starts immediately. Set `autoStart: false` to create in pending state. + + :param organisation: The organisation machine name (required) + :type organisation: str + :param create_orchestration_request: (required) + :type create_orchestration_request: CreateOrchestrationRequest + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._create_orchestration_serialize( + organisation=organisation, + create_orchestration_request=create_orchestration_request, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '201': "object", + '400': None, + '403': None, + '500': None, + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _create_orchestration_serialize( + self, + organisation, + create_orchestration_request, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + if organisation is not None: + _path_params['organisation'] = organisation + # process the query parameters + # process the header parameters + # process the form parameters + # process the body parameter + if create_orchestration_request is not None: + _body_params = create_orchestration_request + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + # set the HTTP header `Content-Type` + if _content_type: + _header_params['Content-Type'] = _content_type + else: + _default_content_type = ( + self.api_client.select_header_content_type( + [ + 'application/json' + ] + ) + ) + if _default_content_type is not None: + _header_params['Content-Type'] = _default_content_type + + # authentication setting + _auth_settings: List[str] = [ + 'BearerAuth' + ] + + return self.api_client.param_serialize( + method='POST', + resource_path='/api/v3/organizations/{organisation}/ai/orchestrations', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def delete_orchestration( + self, + organisation: Annotated[StrictStr, Field(description="The organisation machine name")], + orchestration_id: Annotated[StrictStr, Field(description="Orchestration identifier")], + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> None: + """Delete Durable Orchestration + + Delete an orchestration. Can only delete orchestrations in completed, failed, or cancelled status. + + :param organisation: The organisation machine name (required) + :type organisation: str + :param orchestration_id: Orchestration identifier (required) + :type orchestration_id: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._delete_orchestration_serialize( + organisation=organisation, + orchestration_id=orchestration_id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '204': None, + '400': None, + '403': None, + '404': None, + '500': None, + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def delete_orchestration_with_http_info( + self, + organisation: Annotated[StrictStr, Field(description="The organisation machine name")], + orchestration_id: Annotated[StrictStr, Field(description="Orchestration identifier")], + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[None]: + """Delete Durable Orchestration + + Delete an orchestration. Can only delete orchestrations in completed, failed, or cancelled status. + + :param organisation: The organisation machine name (required) + :type organisation: str + :param orchestration_id: Orchestration identifier (required) + :type orchestration_id: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._delete_orchestration_serialize( + organisation=organisation, + orchestration_id=orchestration_id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '204': None, + '400': None, + '403': None, + '404': None, + '500': None, + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def delete_orchestration_without_preload_content( + self, + organisation: Annotated[StrictStr, Field(description="The organisation machine name")], + orchestration_id: Annotated[StrictStr, Field(description="Orchestration identifier")], + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """Delete Durable Orchestration + + Delete an orchestration. Can only delete orchestrations in completed, failed, or cancelled status. + + :param organisation: The organisation machine name (required) + :type organisation: str + :param orchestration_id: Orchestration identifier (required) + :type orchestration_id: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._delete_orchestration_serialize( + organisation=organisation, + orchestration_id=orchestration_id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '204': None, + '400': None, + '403': None, + '404': None, + '500': None, + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _delete_orchestration_serialize( + self, + organisation, + orchestration_id, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + if organisation is not None: + _path_params['organisation'] = organisation + if orchestration_id is not None: + _path_params['orchestrationId'] = orchestration_id + # process the query parameters + # process the header parameters + # process the form parameters + # process the body parameter + + + + + # authentication setting + _auth_settings: List[str] = [ + 'BearerAuth' + ] + + return self.api_client.param_serialize( + method='DELETE', + resource_path='/api/v3/organizations/{organisation}/ai/orchestrations/{orchestrationId}', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def get_orchestration( + self, + organisation: Annotated[StrictStr, Field(description="The organisation machine name")], + orchestration_id: Annotated[StrictStr, Field(description="Orchestration identifier")], + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> object: + """Get Durable Orchestration + + Get orchestration details including status and progress. * * **Progress Tracking:** * - `total`: Total items to process * - `completed`: Successfully processed * - `failed`: Failed processing * - `pending`: Awaiting processing + + :param organisation: The organisation machine name (required) + :type organisation: str + :param orchestration_id: Orchestration identifier (required) + :type orchestration_id: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_orchestration_serialize( + organisation=organisation, + orchestration_id=orchestration_id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "object", + '403': None, + '404': None, + '500': None, + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def get_orchestration_with_http_info( + self, + organisation: Annotated[StrictStr, Field(description="The organisation machine name")], + orchestration_id: Annotated[StrictStr, Field(description="Orchestration identifier")], + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[object]: + """Get Durable Orchestration + + Get orchestration details including status and progress. * * **Progress Tracking:** * - `total`: Total items to process * - `completed`: Successfully processed * - `failed`: Failed processing * - `pending`: Awaiting processing + + :param organisation: The organisation machine name (required) + :type organisation: str + :param orchestration_id: Orchestration identifier (required) + :type orchestration_id: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_orchestration_serialize( + organisation=organisation, + orchestration_id=orchestration_id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "object", + '403': None, + '404': None, + '500': None, + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def get_orchestration_without_preload_content( + self, + organisation: Annotated[StrictStr, Field(description="The organisation machine name")], + orchestration_id: Annotated[StrictStr, Field(description="Orchestration identifier")], + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """Get Durable Orchestration + + Get orchestration details including status and progress. * * **Progress Tracking:** * - `total`: Total items to process * - `completed`: Successfully processed * - `failed`: Failed processing * - `pending`: Awaiting processing + + :param organisation: The organisation machine name (required) + :type organisation: str + :param orchestration_id: Orchestration identifier (required) + :type orchestration_id: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_orchestration_serialize( + organisation=organisation, + orchestration_id=orchestration_id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "object", + '403': None, + '404': None, + '500': None, + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _get_orchestration_serialize( + self, + organisation, + orchestration_id, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + if organisation is not None: + _path_params['organisation'] = organisation + if orchestration_id is not None: + _path_params['orchestrationId'] = orchestration_id + # process the query parameters + # process the header parameters + # process the form parameters + # process the body parameter + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + 'BearerAuth' + ] + + return self.api_client.param_serialize( + method='GET', + resource_path='/api/v3/organizations/{organisation}/ai/orchestrations/{orchestrationId}', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def list_orchestration_batches( + self, + organisation: Annotated[StrictStr, Field(description="The organisation machine name")], + orchestration_id: Annotated[StrictStr, Field(description="Orchestration identifier")], + limit: Annotated[Optional[Annotated[int, Field(le=100, strict=True, ge=1)]], Field(description="Maximum number of batches to return")] = None, + cursor: Annotated[Optional[StrictStr], Field(description="Pagination cursor from previous response")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ListOrchestrationBatches200Response: + """List Orchestration Batches + + Get history of batches processed by this orchestration. Returns paginated batch records with status and item counts. + + :param organisation: The organisation machine name (required) + :type organisation: str + :param orchestration_id: Orchestration identifier (required) + :type orchestration_id: str + :param limit: Maximum number of batches to return + :type limit: int + :param cursor: Pagination cursor from previous response + :type cursor: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._list_orchestration_batches_serialize( + organisation=organisation, + orchestration_id=orchestration_id, + limit=limit, + cursor=cursor, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "ListOrchestrationBatches200Response", + '403': None, + '404': None, + '500': None, + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def list_orchestration_batches_with_http_info( + self, + organisation: Annotated[StrictStr, Field(description="The organisation machine name")], + orchestration_id: Annotated[StrictStr, Field(description="Orchestration identifier")], + limit: Annotated[Optional[Annotated[int, Field(le=100, strict=True, ge=1)]], Field(description="Maximum number of batches to return")] = None, + cursor: Annotated[Optional[StrictStr], Field(description="Pagination cursor from previous response")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[ListOrchestrationBatches200Response]: + """List Orchestration Batches + + Get history of batches processed by this orchestration. Returns paginated batch records with status and item counts. + + :param organisation: The organisation machine name (required) + :type organisation: str + :param orchestration_id: Orchestration identifier (required) + :type orchestration_id: str + :param limit: Maximum number of batches to return + :type limit: int + :param cursor: Pagination cursor from previous response + :type cursor: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._list_orchestration_batches_serialize( + organisation=organisation, + orchestration_id=orchestration_id, + limit=limit, + cursor=cursor, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "ListOrchestrationBatches200Response", + '403': None, + '404': None, + '500': None, + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def list_orchestration_batches_without_preload_content( + self, + organisation: Annotated[StrictStr, Field(description="The organisation machine name")], + orchestration_id: Annotated[StrictStr, Field(description="Orchestration identifier")], + limit: Annotated[Optional[Annotated[int, Field(le=100, strict=True, ge=1)]], Field(description="Maximum number of batches to return")] = None, + cursor: Annotated[Optional[StrictStr], Field(description="Pagination cursor from previous response")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """List Orchestration Batches + + Get history of batches processed by this orchestration. Returns paginated batch records with status and item counts. + + :param organisation: The organisation machine name (required) + :type organisation: str + :param orchestration_id: Orchestration identifier (required) + :type orchestration_id: str + :param limit: Maximum number of batches to return + :type limit: int + :param cursor: Pagination cursor from previous response + :type cursor: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._list_orchestration_batches_serialize( + organisation=organisation, + orchestration_id=orchestration_id, + limit=limit, + cursor=cursor, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "ListOrchestrationBatches200Response", + '403': None, + '404': None, + '500': None, + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _list_orchestration_batches_serialize( + self, + organisation, + orchestration_id, + limit, + cursor, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + if organisation is not None: + _path_params['organisation'] = organisation + if orchestration_id is not None: + _path_params['orchestrationId'] = orchestration_id + # process the query parameters + if limit is not None: + + _query_params.append(('limit', limit)) + + if cursor is not None: + + _query_params.append(('cursor', cursor)) + + # process the header parameters + # process the form parameters + # process the body parameter + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + 'BearerAuth' + ] + + return self.api_client.param_serialize( + method='GET', + resource_path='/api/v3/organizations/{organisation}/ai/orchestrations/{orchestrationId}/batches', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def list_orchestrations( + self, + organisation: Annotated[StrictStr, Field(description="The organisation machine name")], + status: Annotated[Optional[StrictStr], Field(description="Filter by orchestration status")] = None, + limit: Annotated[Optional[Annotated[int, Field(le=100, strict=True, ge=1)]], Field(description="Maximum number of results")] = None, + cursor: Annotated[Optional[StrictStr], Field(description="Pagination cursor from previous response")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ListOrchestrations200Response: + """List Durable Orchestrations + + List durable orchestrations for an organization with optional filtering. * * **Note:** This is different from `/tools/orchestrations` which handles async tool execution * polling. These durable orchestrations are for long-running batch processing loops. * * **Filter Options:** * - `status`: Filter by orchestration status * - `limit`: Max results (default 20, max 100) * - `cursor`: Pagination cursor + + :param organisation: The organisation machine name (required) + :type organisation: str + :param status: Filter by orchestration status + :type status: str + :param limit: Maximum number of results + :type limit: int + :param cursor: Pagination cursor from previous response + :type cursor: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._list_orchestrations_serialize( + organisation=organisation, + status=status, + limit=limit, + cursor=cursor, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "ListOrchestrations200Response", + '403': None, + '500': None, + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def list_orchestrations_with_http_info( + self, + organisation: Annotated[StrictStr, Field(description="The organisation machine name")], + status: Annotated[Optional[StrictStr], Field(description="Filter by orchestration status")] = None, + limit: Annotated[Optional[Annotated[int, Field(le=100, strict=True, ge=1)]], Field(description="Maximum number of results")] = None, + cursor: Annotated[Optional[StrictStr], Field(description="Pagination cursor from previous response")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[ListOrchestrations200Response]: + """List Durable Orchestrations + + List durable orchestrations for an organization with optional filtering. * * **Note:** This is different from `/tools/orchestrations` which handles async tool execution * polling. These durable orchestrations are for long-running batch processing loops. * * **Filter Options:** * - `status`: Filter by orchestration status * - `limit`: Max results (default 20, max 100) * - `cursor`: Pagination cursor + + :param organisation: The organisation machine name (required) + :type organisation: str + :param status: Filter by orchestration status + :type status: str + :param limit: Maximum number of results + :type limit: int + :param cursor: Pagination cursor from previous response + :type cursor: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._list_orchestrations_serialize( + organisation=organisation, + status=status, + limit=limit, + cursor=cursor, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "ListOrchestrations200Response", + '403': None, + '500': None, + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def list_orchestrations_without_preload_content( + self, + organisation: Annotated[StrictStr, Field(description="The organisation machine name")], + status: Annotated[Optional[StrictStr], Field(description="Filter by orchestration status")] = None, + limit: Annotated[Optional[Annotated[int, Field(le=100, strict=True, ge=1)]], Field(description="Maximum number of results")] = None, + cursor: Annotated[Optional[StrictStr], Field(description="Pagination cursor from previous response")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """List Durable Orchestrations + + List durable orchestrations for an organization with optional filtering. * * **Note:** This is different from `/tools/orchestrations` which handles async tool execution * polling. These durable orchestrations are for long-running batch processing loops. * * **Filter Options:** * - `status`: Filter by orchestration status * - `limit`: Max results (default 20, max 100) * - `cursor`: Pagination cursor + + :param organisation: The organisation machine name (required) + :type organisation: str + :param status: Filter by orchestration status + :type status: str + :param limit: Maximum number of results + :type limit: int + :param cursor: Pagination cursor from previous response + :type cursor: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._list_orchestrations_serialize( + organisation=organisation, + status=status, + limit=limit, + cursor=cursor, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "ListOrchestrations200Response", + '403': None, + '500': None, + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _list_orchestrations_serialize( + self, + organisation, + status, + limit, + cursor, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + if organisation is not None: + _path_params['organisation'] = organisation + # process the query parameters + if status is not None: + + _query_params.append(('status', status)) + + if limit is not None: + + _query_params.append(('limit', limit)) + + if cursor is not None: + + _query_params.append(('cursor', cursor)) + + # process the header parameters + # process the form parameters + # process the body parameter + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + 'BearerAuth' + ] + + return self.api_client.param_serialize( + method='GET', + resource_path='/api/v3/organizations/{organisation}/ai/orchestrations', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def pause_orchestration( + self, + organisation: Annotated[StrictStr, Field(description="The organisation machine name")], + orchestration_id: Annotated[StrictStr, Field(description="Orchestration identifier")], + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> object: + """Pause Durable Orchestration + + Pause a running orchestration. The current batch will complete, but no new batches will start. Can be resumed later. + + :param organisation: The organisation machine name (required) + :type organisation: str + :param orchestration_id: Orchestration identifier (required) + :type orchestration_id: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._pause_orchestration_serialize( + organisation=organisation, + orchestration_id=orchestration_id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "object", + '400': None, + '403': None, + '404': None, + '500': None, + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def pause_orchestration_with_http_info( + self, + organisation: Annotated[StrictStr, Field(description="The organisation machine name")], + orchestration_id: Annotated[StrictStr, Field(description="Orchestration identifier")], + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[object]: + """Pause Durable Orchestration + + Pause a running orchestration. The current batch will complete, but no new batches will start. Can be resumed later. + + :param organisation: The organisation machine name (required) + :type organisation: str + :param orchestration_id: Orchestration identifier (required) + :type orchestration_id: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._pause_orchestration_serialize( + organisation=organisation, + orchestration_id=orchestration_id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "object", + '400': None, + '403': None, + '404': None, + '500': None, + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def pause_orchestration_without_preload_content( + self, + organisation: Annotated[StrictStr, Field(description="The organisation machine name")], + orchestration_id: Annotated[StrictStr, Field(description="Orchestration identifier")], + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """Pause Durable Orchestration + + Pause a running orchestration. The current batch will complete, but no new batches will start. Can be resumed later. + + :param organisation: The organisation machine name (required) + :type organisation: str + :param orchestration_id: Orchestration identifier (required) + :type orchestration_id: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._pause_orchestration_serialize( + organisation=organisation, + orchestration_id=orchestration_id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "object", + '400': None, + '403': None, + '404': None, + '500': None, + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _pause_orchestration_serialize( + self, + organisation, + orchestration_id, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + if organisation is not None: + _path_params['organisation'] = organisation + if orchestration_id is not None: + _path_params['orchestrationId'] = orchestration_id + # process the query parameters + # process the header parameters + # process the form parameters + # process the body parameter + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + 'BearerAuth' + ] + + return self.api_client.param_serialize( + method='POST', + resource_path='/api/v3/organizations/{organisation}/ai/orchestrations/{orchestrationId}/pause', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def resume_orchestration( + self, + organisation: Annotated[StrictStr, Field(description="The organisation machine name")], + orchestration_id: Annotated[StrictStr, Field(description="Orchestration identifier")], + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> object: + """Resume Durable Orchestration + + Resume a paused orchestration. Processing continues from where it left off. + + :param organisation: The organisation machine name (required) + :type organisation: str + :param orchestration_id: Orchestration identifier (required) + :type orchestration_id: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._resume_orchestration_serialize( + organisation=organisation, + orchestration_id=orchestration_id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "object", + '400': None, + '403': None, + '404': None, + '500': None, + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def resume_orchestration_with_http_info( + self, + organisation: Annotated[StrictStr, Field(description="The organisation machine name")], + orchestration_id: Annotated[StrictStr, Field(description="Orchestration identifier")], + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[object]: + """Resume Durable Orchestration + + Resume a paused orchestration. Processing continues from where it left off. + + :param organisation: The organisation machine name (required) + :type organisation: str + :param orchestration_id: Orchestration identifier (required) + :type orchestration_id: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._resume_orchestration_serialize( + organisation=organisation, + orchestration_id=orchestration_id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "object", + '400': None, + '403': None, + '404': None, + '500': None, + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def resume_orchestration_without_preload_content( + self, + organisation: Annotated[StrictStr, Field(description="The organisation machine name")], + orchestration_id: Annotated[StrictStr, Field(description="Orchestration identifier")], + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """Resume Durable Orchestration + + Resume a paused orchestration. Processing continues from where it left off. + + :param organisation: The organisation machine name (required) + :type organisation: str + :param orchestration_id: Orchestration identifier (required) + :type orchestration_id: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._resume_orchestration_serialize( + organisation=organisation, + orchestration_id=orchestration_id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "object", + '400': None, + '403': None, + '404': None, + '500': None, + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _resume_orchestration_serialize( + self, + organisation, + orchestration_id, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + if organisation is not None: + _path_params['organisation'] = organisation + if orchestration_id is not None: + _path_params['orchestrationId'] = orchestration_id + # process the query parameters + # process the header parameters + # process the form parameters + # process the body parameter + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + 'BearerAuth' + ] + + return self.api_client.param_serialize( + method='POST', + resource_path='/api/v3/organizations/{organisation}/ai/orchestrations/{orchestrationId}/resume', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def start_orchestration( + self, + organisation: Annotated[StrictStr, Field(description="The organisation machine name")], + orchestration_id: Annotated[StrictStr, Field(description="Orchestration identifier")], + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> object: + """Start Durable Orchestration + + Start a pending orchestration. Only works on orchestrations created with `autoStart: false`. + + :param organisation: The organisation machine name (required) + :type organisation: str + :param orchestration_id: Orchestration identifier (required) + :type orchestration_id: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._start_orchestration_serialize( + organisation=organisation, + orchestration_id=orchestration_id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "object", + '400': None, + '403': None, + '404': None, + '500': None, + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def start_orchestration_with_http_info( + self, + organisation: Annotated[StrictStr, Field(description="The organisation machine name")], + orchestration_id: Annotated[StrictStr, Field(description="Orchestration identifier")], + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[object]: + """Start Durable Orchestration + + Start a pending orchestration. Only works on orchestrations created with `autoStart: false`. + + :param organisation: The organisation machine name (required) + :type organisation: str + :param orchestration_id: Orchestration identifier (required) + :type orchestration_id: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._start_orchestration_serialize( + organisation=organisation, + orchestration_id=orchestration_id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "object", + '400': None, + '403': None, + '404': None, + '500': None, + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def start_orchestration_without_preload_content( + self, + organisation: Annotated[StrictStr, Field(description="The organisation machine name")], + orchestration_id: Annotated[StrictStr, Field(description="Orchestration identifier")], + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """Start Durable Orchestration + + Start a pending orchestration. Only works on orchestrations created with `autoStart: false`. + + :param organisation: The organisation machine name (required) + :type organisation: str + :param orchestration_id: Orchestration identifier (required) + :type orchestration_id: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._start_orchestration_serialize( + organisation=organisation, + orchestration_id=orchestration_id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "object", + '400': None, + '403': None, + '404': None, + '500': None, + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _start_orchestration_serialize( + self, + organisation, + orchestration_id, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + if organisation is not None: + _path_params['organisation'] = organisation + if orchestration_id is not None: + _path_params['orchestrationId'] = orchestration_id + # process the query parameters + # process the header parameters + # process the form parameters + # process the body parameter + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + 'BearerAuth' + ] + + return self.api_client.param_serialize( + method='POST', + resource_path='/api/v3/organizations/{organisation}/ai/orchestrations/{orchestrationId}/start', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + diff --git a/quantcdn/api/ai_sessions_api.py b/quantcdn/api/ai_sessions_api.py index 5dcbdbd..fef5069 100644 --- a/quantcdn/api/ai_sessions_api.py +++ b/quantcdn/api/ai_sessions_api.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.9.0 + The version of the OpenAPI document: 4.12.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/quantcdn/api/ai_skills_api.py b/quantcdn/api/ai_skills_api.py new file mode 100644 index 0000000..6623b14 --- /dev/null +++ b/quantcdn/api/ai_skills_api.py @@ -0,0 +1,3290 @@ +# coding: utf-8 + +""" + QuantCDN API + + Unified API for QuantCDN Admin and QuantCloud Platform services + + The version of the OpenAPI document: 4.12.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + +import warnings +from pydantic import validate_call, Field, StrictFloat, StrictStr, StrictInt +from typing import Any, Dict, List, Optional, Tuple, Union +from typing_extensions import Annotated + +from pydantic import Field, StrictStr +from typing import Optional +from typing_extensions import Annotated +from quantcdn.models.create_skill201_response import CreateSkill201Response +from quantcdn.models.create_skill_request import CreateSkillRequest +from quantcdn.models.delete_skill200_response import DeleteSkill200Response +from quantcdn.models.delete_skill_collection200_response import DeleteSkillCollection200Response +from quantcdn.models.get_skill200_response import GetSkill200Response +from quantcdn.models.import_skill201_response import ImportSkill201Response +from quantcdn.models.import_skill_collection201_response import ImportSkillCollection201Response +from quantcdn.models.import_skill_collection_request import ImportSkillCollectionRequest +from quantcdn.models.import_skill_request import ImportSkillRequest +from quantcdn.models.list_skill_collections200_response import ListSkillCollections200Response +from quantcdn.models.list_skills200_response import ListSkills200Response +from quantcdn.models.sync_skill_collection200_response import SyncSkillCollection200Response +from quantcdn.models.update_skill200_response import UpdateSkill200Response +from quantcdn.models.update_skill_request import UpdateSkillRequest + +from quantcdn.api_client import ApiClient, RequestSerialized +from quantcdn.api_response import ApiResponse +from quantcdn.rest import RESTResponseType + + +class AISkillsApi: + """NOTE: This class is auto generated by OpenAPI Generator + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + def __init__(self, api_client=None) -> None: + if api_client is None: + api_client = ApiClient.get_default() + self.api_client = api_client + + + @validate_call + def create_skill( + self, + organisation: Annotated[StrictStr, Field(description="The organisation ID")], + create_skill_request: CreateSkillRequest, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> CreateSkill201Response: + """Create Inline Skill + + Creates a new skill with inline content. Use this for custom skills * that are defined directly in your organization. * * **Trigger Conditions:** * - Natural language description of when to use the skill * - Used by AI to determine when to suggest or apply the skill * - Example: 'When the user asks about code review or security analysis' + + :param organisation: The organisation ID (required) + :type organisation: str + :param create_skill_request: (required) + :type create_skill_request: CreateSkillRequest + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._create_skill_serialize( + organisation=organisation, + create_skill_request=create_skill_request, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '201': "CreateSkill201Response", + '400': None, + '403': None, + '500': None, + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def create_skill_with_http_info( + self, + organisation: Annotated[StrictStr, Field(description="The organisation ID")], + create_skill_request: CreateSkillRequest, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[CreateSkill201Response]: + """Create Inline Skill + + Creates a new skill with inline content. Use this for custom skills * that are defined directly in your organization. * * **Trigger Conditions:** * - Natural language description of when to use the skill * - Used by AI to determine when to suggest or apply the skill * - Example: 'When the user asks about code review or security analysis' + + :param organisation: The organisation ID (required) + :type organisation: str + :param create_skill_request: (required) + :type create_skill_request: CreateSkillRequest + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._create_skill_serialize( + organisation=organisation, + create_skill_request=create_skill_request, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '201': "CreateSkill201Response", + '400': None, + '403': None, + '500': None, + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def create_skill_without_preload_content( + self, + organisation: Annotated[StrictStr, Field(description="The organisation ID")], + create_skill_request: CreateSkillRequest, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """Create Inline Skill + + Creates a new skill with inline content. Use this for custom skills * that are defined directly in your organization. * * **Trigger Conditions:** * - Natural language description of when to use the skill * - Used by AI to determine when to suggest or apply the skill * - Example: 'When the user asks about code review or security analysis' + + :param organisation: The organisation ID (required) + :type organisation: str + :param create_skill_request: (required) + :type create_skill_request: CreateSkillRequest + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._create_skill_serialize( + organisation=organisation, + create_skill_request=create_skill_request, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '201': "CreateSkill201Response", + '400': None, + '403': None, + '500': None, + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _create_skill_serialize( + self, + organisation, + create_skill_request, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + if organisation is not None: + _path_params['organisation'] = organisation + # process the query parameters + # process the header parameters + # process the form parameters + # process the body parameter + if create_skill_request is not None: + _body_params = create_skill_request + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + # set the HTTP header `Content-Type` + if _content_type: + _header_params['Content-Type'] = _content_type + else: + _default_content_type = ( + self.api_client.select_header_content_type( + [ + 'application/json' + ] + ) + ) + if _default_content_type is not None: + _header_params['Content-Type'] = _default_content_type + + # authentication setting + _auth_settings: List[str] = [ + 'BearerAuth' + ] + + return self.api_client.param_serialize( + method='POST', + resource_path='/api/v3/organizations/{organisation}/ai/skills', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def delete_skill( + self, + organisation: Annotated[StrictStr, Field(description="The organisation ID")], + skill_id: Annotated[StrictStr, Field(description="The skill ID")], + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> DeleteSkill200Response: + """Delete Skill + + Permanently deletes a skill. This will also remove it from any agents that have it assigned. + + :param organisation: The organisation ID (required) + :type organisation: str + :param skill_id: The skill ID (required) + :type skill_id: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._delete_skill_serialize( + organisation=organisation, + skill_id=skill_id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "DeleteSkill200Response", + '403': None, + '404': None, + '500': None, + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def delete_skill_with_http_info( + self, + organisation: Annotated[StrictStr, Field(description="The organisation ID")], + skill_id: Annotated[StrictStr, Field(description="The skill ID")], + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[DeleteSkill200Response]: + """Delete Skill + + Permanently deletes a skill. This will also remove it from any agents that have it assigned. + + :param organisation: The organisation ID (required) + :type organisation: str + :param skill_id: The skill ID (required) + :type skill_id: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._delete_skill_serialize( + organisation=organisation, + skill_id=skill_id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "DeleteSkill200Response", + '403': None, + '404': None, + '500': None, + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def delete_skill_without_preload_content( + self, + organisation: Annotated[StrictStr, Field(description="The organisation ID")], + skill_id: Annotated[StrictStr, Field(description="The skill ID")], + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """Delete Skill + + Permanently deletes a skill. This will also remove it from any agents that have it assigned. + + :param organisation: The organisation ID (required) + :type organisation: str + :param skill_id: The skill ID (required) + :type skill_id: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._delete_skill_serialize( + organisation=organisation, + skill_id=skill_id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "DeleteSkill200Response", + '403': None, + '404': None, + '500': None, + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _delete_skill_serialize( + self, + organisation, + skill_id, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + if organisation is not None: + _path_params['organisation'] = organisation + if skill_id is not None: + _path_params['skillId'] = skill_id + # process the query parameters + # process the header parameters + # process the form parameters + # process the body parameter + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + 'BearerAuth' + ] + + return self.api_client.param_serialize( + method='DELETE', + resource_path='/api/v3/organizations/{organisation}/ai/skills/{skillId}', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def delete_skill_collection( + self, + organisation: Annotated[StrictStr, Field(description="The organisation ID")], + namespace: Annotated[StrictStr, Field(description="Collection namespace")], + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> DeleteSkillCollection200Response: + """Delete Skill Collection + + Permanently deletes all skills in the specified namespace. + + :param organisation: The organisation ID (required) + :type organisation: str + :param namespace: Collection namespace (required) + :type namespace: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._delete_skill_collection_serialize( + organisation=organisation, + namespace=namespace, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "DeleteSkillCollection200Response", + '403': None, + '404': None, + '500': None, + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def delete_skill_collection_with_http_info( + self, + organisation: Annotated[StrictStr, Field(description="The organisation ID")], + namespace: Annotated[StrictStr, Field(description="Collection namespace")], + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[DeleteSkillCollection200Response]: + """Delete Skill Collection + + Permanently deletes all skills in the specified namespace. + + :param organisation: The organisation ID (required) + :type organisation: str + :param namespace: Collection namespace (required) + :type namespace: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._delete_skill_collection_serialize( + organisation=organisation, + namespace=namespace, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "DeleteSkillCollection200Response", + '403': None, + '404': None, + '500': None, + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def delete_skill_collection_without_preload_content( + self, + organisation: Annotated[StrictStr, Field(description="The organisation ID")], + namespace: Annotated[StrictStr, Field(description="Collection namespace")], + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """Delete Skill Collection + + Permanently deletes all skills in the specified namespace. + + :param organisation: The organisation ID (required) + :type organisation: str + :param namespace: Collection namespace (required) + :type namespace: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._delete_skill_collection_serialize( + organisation=organisation, + namespace=namespace, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "DeleteSkillCollection200Response", + '403': None, + '404': None, + '500': None, + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _delete_skill_collection_serialize( + self, + organisation, + namespace, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + if organisation is not None: + _path_params['organisation'] = organisation + if namespace is not None: + _path_params['namespace'] = namespace + # process the query parameters + # process the header parameters + # process the form parameters + # process the body parameter + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + 'BearerAuth' + ] + + return self.api_client.param_serialize( + method='DELETE', + resource_path='/api/v3/organizations/{organisation}/ai/skills/collections/{namespace}', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def get_skill( + self, + organisation: Annotated[StrictStr, Field(description="The organisation ID")], + skill_id: Annotated[StrictStr, Field(description="The skill ID")], + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> GetSkill200Response: + """Get Skill Details + + Retrieves full details of a skill including its content, source information, and metadata. + + :param organisation: The organisation ID (required) + :type organisation: str + :param skill_id: The skill ID (required) + :type skill_id: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_skill_serialize( + organisation=organisation, + skill_id=skill_id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "GetSkill200Response", + '403': None, + '404': None, + '500': None, + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def get_skill_with_http_info( + self, + organisation: Annotated[StrictStr, Field(description="The organisation ID")], + skill_id: Annotated[StrictStr, Field(description="The skill ID")], + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[GetSkill200Response]: + """Get Skill Details + + Retrieves full details of a skill including its content, source information, and metadata. + + :param organisation: The organisation ID (required) + :type organisation: str + :param skill_id: The skill ID (required) + :type skill_id: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_skill_serialize( + organisation=organisation, + skill_id=skill_id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "GetSkill200Response", + '403': None, + '404': None, + '500': None, + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def get_skill_without_preload_content( + self, + organisation: Annotated[StrictStr, Field(description="The organisation ID")], + skill_id: Annotated[StrictStr, Field(description="The skill ID")], + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """Get Skill Details + + Retrieves full details of a skill including its content, source information, and metadata. + + :param organisation: The organisation ID (required) + :type organisation: str + :param skill_id: The skill ID (required) + :type skill_id: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_skill_serialize( + organisation=organisation, + skill_id=skill_id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "GetSkill200Response", + '403': None, + '404': None, + '500': None, + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _get_skill_serialize( + self, + organisation, + skill_id, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + if organisation is not None: + _path_params['organisation'] = organisation + if skill_id is not None: + _path_params['skillId'] = skill_id + # process the query parameters + # process the header parameters + # process the form parameters + # process the body parameter + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + 'BearerAuth' + ] + + return self.api_client.param_serialize( + method='GET', + resource_path='/api/v3/organizations/{organisation}/ai/skills/{skillId}', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def import_skill( + self, + organisation: Annotated[StrictStr, Field(description="The organisation ID")], + import_skill_request: ImportSkillRequest, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ImportSkill201Response: + """Import Skill from External Source + + Imports a skill from an external source like skills.sh registry or GitHub repository. * * **Supported Sources:** * - `skills.sh`: Import from the skills.sh community registry * - `github`: Import from a GitHub repository (public or private) * * **Version Control:** * - Skills can be pinned to specific versions * - Use the sync endpoint to update to latest version + + :param organisation: The organisation ID (required) + :type organisation: str + :param import_skill_request: (required) + :type import_skill_request: ImportSkillRequest + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._import_skill_serialize( + organisation=organisation, + import_skill_request=import_skill_request, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '201': "ImportSkill201Response", + '400': None, + '403': None, + '502': None, + '500': None, + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def import_skill_with_http_info( + self, + organisation: Annotated[StrictStr, Field(description="The organisation ID")], + import_skill_request: ImportSkillRequest, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[ImportSkill201Response]: + """Import Skill from External Source + + Imports a skill from an external source like skills.sh registry or GitHub repository. * * **Supported Sources:** * - `skills.sh`: Import from the skills.sh community registry * - `github`: Import from a GitHub repository (public or private) * * **Version Control:** * - Skills can be pinned to specific versions * - Use the sync endpoint to update to latest version + + :param organisation: The organisation ID (required) + :type organisation: str + :param import_skill_request: (required) + :type import_skill_request: ImportSkillRequest + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._import_skill_serialize( + organisation=organisation, + import_skill_request=import_skill_request, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '201': "ImportSkill201Response", + '400': None, + '403': None, + '502': None, + '500': None, + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def import_skill_without_preload_content( + self, + organisation: Annotated[StrictStr, Field(description="The organisation ID")], + import_skill_request: ImportSkillRequest, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """Import Skill from External Source + + Imports a skill from an external source like skills.sh registry or GitHub repository. * * **Supported Sources:** * - `skills.sh`: Import from the skills.sh community registry * - `github`: Import from a GitHub repository (public or private) * * **Version Control:** * - Skills can be pinned to specific versions * - Use the sync endpoint to update to latest version + + :param organisation: The organisation ID (required) + :type organisation: str + :param import_skill_request: (required) + :type import_skill_request: ImportSkillRequest + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._import_skill_serialize( + organisation=organisation, + import_skill_request=import_skill_request, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '201': "ImportSkill201Response", + '400': None, + '403': None, + '502': None, + '500': None, + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _import_skill_serialize( + self, + organisation, + import_skill_request, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + if organisation is not None: + _path_params['organisation'] = organisation + # process the query parameters + # process the header parameters + # process the form parameters + # process the body parameter + if import_skill_request is not None: + _body_params = import_skill_request + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + # set the HTTP header `Content-Type` + if _content_type: + _header_params['Content-Type'] = _content_type + else: + _default_content_type = ( + self.api_client.select_header_content_type( + [ + 'application/json' + ] + ) + ) + if _default_content_type is not None: + _header_params['Content-Type'] = _default_content_type + + # authentication setting + _auth_settings: List[str] = [ + 'BearerAuth' + ] + + return self.api_client.param_serialize( + method='POST', + resource_path='/api/v3/organizations/{organisation}/ai/skills/import', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def import_skill_collection( + self, + organisation: Annotated[StrictStr, Field(description="The organisation ID")], + import_skill_collection_request: ImportSkillCollectionRequest, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ImportSkillCollection201Response: + """Import Skill Collection from GitHub + + Discovers all skill directories under a given path in a GitHub repository * and imports each as a skill within the specified namespace. Each subdirectory must contain a SKILL.md file. * * **Namespace:** Used for grouping and slash-command invocation (e.g., `/superpowers:brainstorming`). * * **Idempotent:** If a skill with the same namespace + name already exists, it is updated. + + :param organisation: The organisation ID (required) + :type organisation: str + :param import_skill_collection_request: (required) + :type import_skill_collection_request: ImportSkillCollectionRequest + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._import_skill_collection_serialize( + organisation=organisation, + import_skill_collection_request=import_skill_collection_request, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '201': "ImportSkillCollection201Response", + '400': None, + '403': None, + '502': None, + '500': None, + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def import_skill_collection_with_http_info( + self, + organisation: Annotated[StrictStr, Field(description="The organisation ID")], + import_skill_collection_request: ImportSkillCollectionRequest, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[ImportSkillCollection201Response]: + """Import Skill Collection from GitHub + + Discovers all skill directories under a given path in a GitHub repository * and imports each as a skill within the specified namespace. Each subdirectory must contain a SKILL.md file. * * **Namespace:** Used for grouping and slash-command invocation (e.g., `/superpowers:brainstorming`). * * **Idempotent:** If a skill with the same namespace + name already exists, it is updated. + + :param organisation: The organisation ID (required) + :type organisation: str + :param import_skill_collection_request: (required) + :type import_skill_collection_request: ImportSkillCollectionRequest + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._import_skill_collection_serialize( + organisation=organisation, + import_skill_collection_request=import_skill_collection_request, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '201': "ImportSkillCollection201Response", + '400': None, + '403': None, + '502': None, + '500': None, + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def import_skill_collection_without_preload_content( + self, + organisation: Annotated[StrictStr, Field(description="The organisation ID")], + import_skill_collection_request: ImportSkillCollectionRequest, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """Import Skill Collection from GitHub + + Discovers all skill directories under a given path in a GitHub repository * and imports each as a skill within the specified namespace. Each subdirectory must contain a SKILL.md file. * * **Namespace:** Used for grouping and slash-command invocation (e.g., `/superpowers:brainstorming`). * * **Idempotent:** If a skill with the same namespace + name already exists, it is updated. + + :param organisation: The organisation ID (required) + :type organisation: str + :param import_skill_collection_request: (required) + :type import_skill_collection_request: ImportSkillCollectionRequest + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._import_skill_collection_serialize( + organisation=organisation, + import_skill_collection_request=import_skill_collection_request, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '201': "ImportSkillCollection201Response", + '400': None, + '403': None, + '502': None, + '500': None, + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _import_skill_collection_serialize( + self, + organisation, + import_skill_collection_request, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + if organisation is not None: + _path_params['organisation'] = organisation + # process the query parameters + # process the header parameters + # process the form parameters + # process the body parameter + if import_skill_collection_request is not None: + _body_params = import_skill_collection_request + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + # set the HTTP header `Content-Type` + if _content_type: + _header_params['Content-Type'] = _content_type + else: + _default_content_type = ( + self.api_client.select_header_content_type( + [ + 'application/json' + ] + ) + ) + if _default_content_type is not None: + _header_params['Content-Type'] = _default_content_type + + # authentication setting + _auth_settings: List[str] = [ + 'BearerAuth' + ] + + return self.api_client.param_serialize( + method='POST', + resource_path='/api/v3/organizations/{organisation}/ai/skills/import-collection', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def list_skill_collections( + self, + organisation: Annotated[StrictStr, Field(description="The organisation ID")], + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ListSkillCollections200Response: + """List Skill Collections + + Lists distinct namespaces (collections) for the organization, with skill counts and skill names for each collection. + + :param organisation: The organisation ID (required) + :type organisation: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._list_skill_collections_serialize( + organisation=organisation, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "ListSkillCollections200Response", + '403': None, + '500': None, + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def list_skill_collections_with_http_info( + self, + organisation: Annotated[StrictStr, Field(description="The organisation ID")], + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[ListSkillCollections200Response]: + """List Skill Collections + + Lists distinct namespaces (collections) for the organization, with skill counts and skill names for each collection. + + :param organisation: The organisation ID (required) + :type organisation: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._list_skill_collections_serialize( + organisation=organisation, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "ListSkillCollections200Response", + '403': None, + '500': None, + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def list_skill_collections_without_preload_content( + self, + organisation: Annotated[StrictStr, Field(description="The organisation ID")], + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """List Skill Collections + + Lists distinct namespaces (collections) for the organization, with skill counts and skill names for each collection. + + :param organisation: The organisation ID (required) + :type organisation: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._list_skill_collections_serialize( + organisation=organisation, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "ListSkillCollections200Response", + '403': None, + '500': None, + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _list_skill_collections_serialize( + self, + organisation, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + if organisation is not None: + _path_params['organisation'] = organisation + # process the query parameters + # process the header parameters + # process the form parameters + # process the body parameter + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + 'BearerAuth' + ] + + return self.api_client.param_serialize( + method='GET', + resource_path='/api/v3/organizations/{organisation}/ai/skills/collections', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def list_skills( + self, + organisation: Annotated[StrictStr, Field(description="The organisation ID")], + tag: Annotated[Optional[StrictStr], Field(description="Filter skills by tag")] = None, + namespace: Annotated[Optional[StrictStr], Field(description="Filter skills by collection namespace (e.g. 'superpowers')")] = None, + limit: Annotated[Optional[Annotated[int, Field(le=100, strict=True, ge=1)]], Field(description="Maximum number of skills to return")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ListSkills200Response: + """List Organization's Skills + + Lists all skills available to the organization. Skills are reusable prompts, * workflows, or instructions that can be assigned to agents or invoked directly. * * **Skill Sources:** * - `inline`: Created directly via the API * - `skills.sh`: Imported from skills.sh registry * - `github`: Imported from a GitHub repository * - `local`: Uploaded from local file + + :param organisation: The organisation ID (required) + :type organisation: str + :param tag: Filter skills by tag + :type tag: str + :param namespace: Filter skills by collection namespace (e.g. 'superpowers') + :type namespace: str + :param limit: Maximum number of skills to return + :type limit: int + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._list_skills_serialize( + organisation=organisation, + tag=tag, + namespace=namespace, + limit=limit, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "ListSkills200Response", + '403': None, + '500': None, + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def list_skills_with_http_info( + self, + organisation: Annotated[StrictStr, Field(description="The organisation ID")], + tag: Annotated[Optional[StrictStr], Field(description="Filter skills by tag")] = None, + namespace: Annotated[Optional[StrictStr], Field(description="Filter skills by collection namespace (e.g. 'superpowers')")] = None, + limit: Annotated[Optional[Annotated[int, Field(le=100, strict=True, ge=1)]], Field(description="Maximum number of skills to return")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[ListSkills200Response]: + """List Organization's Skills + + Lists all skills available to the organization. Skills are reusable prompts, * workflows, or instructions that can be assigned to agents or invoked directly. * * **Skill Sources:** * - `inline`: Created directly via the API * - `skills.sh`: Imported from skills.sh registry * - `github`: Imported from a GitHub repository * - `local`: Uploaded from local file + + :param organisation: The organisation ID (required) + :type organisation: str + :param tag: Filter skills by tag + :type tag: str + :param namespace: Filter skills by collection namespace (e.g. 'superpowers') + :type namespace: str + :param limit: Maximum number of skills to return + :type limit: int + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._list_skills_serialize( + organisation=organisation, + tag=tag, + namespace=namespace, + limit=limit, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "ListSkills200Response", + '403': None, + '500': None, + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def list_skills_without_preload_content( + self, + organisation: Annotated[StrictStr, Field(description="The organisation ID")], + tag: Annotated[Optional[StrictStr], Field(description="Filter skills by tag")] = None, + namespace: Annotated[Optional[StrictStr], Field(description="Filter skills by collection namespace (e.g. 'superpowers')")] = None, + limit: Annotated[Optional[Annotated[int, Field(le=100, strict=True, ge=1)]], Field(description="Maximum number of skills to return")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """List Organization's Skills + + Lists all skills available to the organization. Skills are reusable prompts, * workflows, or instructions that can be assigned to agents or invoked directly. * * **Skill Sources:** * - `inline`: Created directly via the API * - `skills.sh`: Imported from skills.sh registry * - `github`: Imported from a GitHub repository * - `local`: Uploaded from local file + + :param organisation: The organisation ID (required) + :type organisation: str + :param tag: Filter skills by tag + :type tag: str + :param namespace: Filter skills by collection namespace (e.g. 'superpowers') + :type namespace: str + :param limit: Maximum number of skills to return + :type limit: int + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._list_skills_serialize( + organisation=organisation, + tag=tag, + namespace=namespace, + limit=limit, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "ListSkills200Response", + '403': None, + '500': None, + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _list_skills_serialize( + self, + organisation, + tag, + namespace, + limit, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + if organisation is not None: + _path_params['organisation'] = organisation + # process the query parameters + if tag is not None: + + _query_params.append(('tag', tag)) + + if namespace is not None: + + _query_params.append(('namespace', namespace)) + + if limit is not None: + + _query_params.append(('limit', limit)) + + # process the header parameters + # process the form parameters + # process the body parameter + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + 'BearerAuth' + ] + + return self.api_client.param_serialize( + method='GET', + resource_path='/api/v3/organizations/{organisation}/ai/skills', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def sync_skill( + self, + organisation: Annotated[StrictStr, Field(description="The organisation ID")], + skill_id: Annotated[StrictStr, Field(description="The skill ID")], + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ImportSkill201Response: + """Sync Skill from Source + + Re-fetches skill content from its original source. * Only applicable to skills imported from external sources (skills.sh, github). * Inline skills cannot be synced. * * **Version Behavior:** * - If version is pinned, fetches that specific version * - If no version specified, fetches latest + + :param organisation: The organisation ID (required) + :type organisation: str + :param skill_id: The skill ID (required) + :type skill_id: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._sync_skill_serialize( + organisation=organisation, + skill_id=skill_id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "ImportSkill201Response", + '400': None, + '403': None, + '404': None, + '502': None, + '500': None, + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def sync_skill_with_http_info( + self, + organisation: Annotated[StrictStr, Field(description="The organisation ID")], + skill_id: Annotated[StrictStr, Field(description="The skill ID")], + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[ImportSkill201Response]: + """Sync Skill from Source + + Re-fetches skill content from its original source. * Only applicable to skills imported from external sources (skills.sh, github). * Inline skills cannot be synced. * * **Version Behavior:** * - If version is pinned, fetches that specific version * - If no version specified, fetches latest + + :param organisation: The organisation ID (required) + :type organisation: str + :param skill_id: The skill ID (required) + :type skill_id: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._sync_skill_serialize( + organisation=organisation, + skill_id=skill_id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "ImportSkill201Response", + '400': None, + '403': None, + '404': None, + '502': None, + '500': None, + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def sync_skill_without_preload_content( + self, + organisation: Annotated[StrictStr, Field(description="The organisation ID")], + skill_id: Annotated[StrictStr, Field(description="The skill ID")], + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """Sync Skill from Source + + Re-fetches skill content from its original source. * Only applicable to skills imported from external sources (skills.sh, github). * Inline skills cannot be synced. * * **Version Behavior:** * - If version is pinned, fetches that specific version * - If no version specified, fetches latest + + :param organisation: The organisation ID (required) + :type organisation: str + :param skill_id: The skill ID (required) + :type skill_id: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._sync_skill_serialize( + organisation=organisation, + skill_id=skill_id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "ImportSkill201Response", + '400': None, + '403': None, + '404': None, + '502': None, + '500': None, + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _sync_skill_serialize( + self, + organisation, + skill_id, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + if organisation is not None: + _path_params['organisation'] = organisation + if skill_id is not None: + _path_params['skillId'] = skill_id + # process the query parameters + # process the header parameters + # process the form parameters + # process the body parameter + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + 'BearerAuth' + ] + + return self.api_client.param_serialize( + method='POST', + resource_path='/api/v3/organizations/{organisation}/ai/skills/{skillId}/sync', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def sync_skill_collection( + self, + organisation: Annotated[StrictStr, Field(description="The organisation ID")], + namespace: Annotated[StrictStr, Field(description="Collection namespace")], + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> SyncSkillCollection200Response: + """Sync Skill Collection + + Re-syncs all skills in a namespace from their GitHub source. Detects new * skills added to the repository and flags skills removed from the source. Does NOT auto-delete removed skills. + + :param organisation: The organisation ID (required) + :type organisation: str + :param namespace: Collection namespace (required) + :type namespace: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._sync_skill_collection_serialize( + organisation=organisation, + namespace=namespace, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "SyncSkillCollection200Response", + '400': None, + '403': None, + '404': None, + '502': None, + '500': None, + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def sync_skill_collection_with_http_info( + self, + organisation: Annotated[StrictStr, Field(description="The organisation ID")], + namespace: Annotated[StrictStr, Field(description="Collection namespace")], + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[SyncSkillCollection200Response]: + """Sync Skill Collection + + Re-syncs all skills in a namespace from their GitHub source. Detects new * skills added to the repository and flags skills removed from the source. Does NOT auto-delete removed skills. + + :param organisation: The organisation ID (required) + :type organisation: str + :param namespace: Collection namespace (required) + :type namespace: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._sync_skill_collection_serialize( + organisation=organisation, + namespace=namespace, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "SyncSkillCollection200Response", + '400': None, + '403': None, + '404': None, + '502': None, + '500': None, + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def sync_skill_collection_without_preload_content( + self, + organisation: Annotated[StrictStr, Field(description="The organisation ID")], + namespace: Annotated[StrictStr, Field(description="Collection namespace")], + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """Sync Skill Collection + + Re-syncs all skills in a namespace from their GitHub source. Detects new * skills added to the repository and flags skills removed from the source. Does NOT auto-delete removed skills. + + :param organisation: The organisation ID (required) + :type organisation: str + :param namespace: Collection namespace (required) + :type namespace: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._sync_skill_collection_serialize( + organisation=organisation, + namespace=namespace, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "SyncSkillCollection200Response", + '400': None, + '403': None, + '404': None, + '502': None, + '500': None, + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _sync_skill_collection_serialize( + self, + organisation, + namespace, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + if organisation is not None: + _path_params['organisation'] = organisation + if namespace is not None: + _path_params['namespace'] = namespace + # process the query parameters + # process the header parameters + # process the form parameters + # process the body parameter + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + 'BearerAuth' + ] + + return self.api_client.param_serialize( + method='POST', + resource_path='/api/v3/organizations/{organisation}/ai/skills/collections/{namespace}/sync', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def update_skill( + self, + organisation: Annotated[StrictStr, Field(description="The organisation ID")], + skill_id: Annotated[StrictStr, Field(description="The skill ID")], + update_skill_request: UpdateSkillRequest, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> UpdateSkill200Response: + """Update Skill + + Updates an existing skill. For imported skills, this updates * local overrides (name, tags, triggerCondition) but not the source content. * Use the sync endpoint to update source content. + + :param organisation: The organisation ID (required) + :type organisation: str + :param skill_id: The skill ID (required) + :type skill_id: str + :param update_skill_request: (required) + :type update_skill_request: UpdateSkillRequest + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._update_skill_serialize( + organisation=organisation, + skill_id=skill_id, + update_skill_request=update_skill_request, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "UpdateSkill200Response", + '400': None, + '403': None, + '404': None, + '500': None, + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def update_skill_with_http_info( + self, + organisation: Annotated[StrictStr, Field(description="The organisation ID")], + skill_id: Annotated[StrictStr, Field(description="The skill ID")], + update_skill_request: UpdateSkillRequest, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[UpdateSkill200Response]: + """Update Skill + + Updates an existing skill. For imported skills, this updates * local overrides (name, tags, triggerCondition) but not the source content. * Use the sync endpoint to update source content. + + :param organisation: The organisation ID (required) + :type organisation: str + :param skill_id: The skill ID (required) + :type skill_id: str + :param update_skill_request: (required) + :type update_skill_request: UpdateSkillRequest + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._update_skill_serialize( + organisation=organisation, + skill_id=skill_id, + update_skill_request=update_skill_request, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "UpdateSkill200Response", + '400': None, + '403': None, + '404': None, + '500': None, + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def update_skill_without_preload_content( + self, + organisation: Annotated[StrictStr, Field(description="The organisation ID")], + skill_id: Annotated[StrictStr, Field(description="The skill ID")], + update_skill_request: UpdateSkillRequest, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """Update Skill + + Updates an existing skill. For imported skills, this updates * local overrides (name, tags, triggerCondition) but not the source content. * Use the sync endpoint to update source content. + + :param organisation: The organisation ID (required) + :type organisation: str + :param skill_id: The skill ID (required) + :type skill_id: str + :param update_skill_request: (required) + :type update_skill_request: UpdateSkillRequest + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._update_skill_serialize( + organisation=organisation, + skill_id=skill_id, + update_skill_request=update_skill_request, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "UpdateSkill200Response", + '400': None, + '403': None, + '404': None, + '500': None, + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _update_skill_serialize( + self, + organisation, + skill_id, + update_skill_request, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + if organisation is not None: + _path_params['organisation'] = organisation + if skill_id is not None: + _path_params['skillId'] = skill_id + # process the query parameters + # process the header parameters + # process the form parameters + # process the body parameter + if update_skill_request is not None: + _body_params = update_skill_request + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + # set the HTTP header `Content-Type` + if _content_type: + _header_params['Content-Type'] = _content_type + else: + _default_content_type = ( + self.api_client.select_header_content_type( + [ + 'application/json' + ] + ) + ) + if _default_content_type is not None: + _header_params['Content-Type'] = _default_content_type + + # authentication setting + _auth_settings: List[str] = [ + 'BearerAuth' + ] + + return self.api_client.param_serialize( + method='PUT', + resource_path='/api/v3/organizations/{organisation}/ai/skills/{skillId}', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + diff --git a/quantcdn/api/ai_task_management_api.py b/quantcdn/api/ai_task_management_api.py index e689e48..97f2c53 100644 --- a/quantcdn/api/ai_task_management_api.py +++ b/quantcdn/api/ai_task_management_api.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.9.0 + The version of the OpenAPI document: 4.12.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/quantcdn/api/ai_tools_api.py b/quantcdn/api/ai_tools_api.py index 547341a..afa6aab 100644 --- a/quantcdn/api/ai_tools_api.py +++ b/quantcdn/api/ai_tools_api.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.9.0 + The version of the OpenAPI document: 4.12.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -61,9 +61,9 @@ def get_ai_orchestration_status( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> GetAIOrchestrationStatus200Response: - """Get Orchestration Status + """Get Tool Orchestration Status (Async Tool Polling) - Retrieves the status and synthesized result of a multi-tool orchestration. * * **Orchestration Pattern:** * When the AI requests multiple async tools simultaneously, an orchestration is created * to track all tool executions and synthesize their results into a single coherent response. * * **Flow:** * 1. AI requests multiple async tools (e.g., image generation + web search) * 2. Chat API creates orchestration and returns orchestrationId * 3. Tool Orchestrator Lambda polls all async tools * 4. When all tools complete, Orchestrator synthesizes results using AI * 5. Client polls this endpoint and receives final synthesized response * * **Status Values:** * - pending: Orchestration created, tools not yet started * - polling: Orchestrator is actively polling async tools * - synthesizing: All tools complete, AI is synthesizing response * - complete: Orchestration finished, synthesizedResponse available * - failed: Orchestration failed, error available * * **Polling Recommendations:** * - Poll every 2 seconds * - Maximum poll time: 10 minutes * - Orchestrator handles tool polling internally * * **Benefits over individual polling:** * - Single poll endpoint for multiple async tools * - AI synthesizes all results into coherent response * - Answers the original user question, not just tool summaries + Retrieves the status and synthesized result of a multi-tool async execution orchestration. * * **Note:** This endpoint is for async tool execution polling (`/tools/orchestrations`). * For durable batch processing orchestrations, see `GET /orchestrations` endpoints. * * **Orchestration Pattern:** * When the AI requests multiple async tools simultaneously, an orchestration is created * to track all tool executions and synthesize their results into a single coherent response. * * **Flow:** * 1. AI requests multiple async tools (e.g., image generation + web search) * 2. Chat API creates orchestration and returns orchestrationId * 3. Tool Orchestrator Lambda polls all async tools * 4. When all tools complete, Orchestrator synthesizes results using AI * 5. Client polls this endpoint and receives final synthesized response * * **Status Values:** * - pending: Orchestration created, tools not yet started * - polling: Orchestrator is actively polling async tools * - synthesizing: All tools complete, AI is synthesizing response * - complete: Orchestration finished, synthesizedResponse available * - failed: Orchestration failed, error available * * **Polling Recommendations:** * - Poll every 2 seconds * - Maximum poll time: 10 minutes * - Orchestrator handles tool polling internally * * **Benefits over individual polling:** * - Single poll endpoint for multiple async tools * - AI synthesizes all results into coherent response * - Answers the original user question, not just tool summaries :param organisation: The organisation ID (required) :type organisation: str @@ -135,9 +135,9 @@ def get_ai_orchestration_status_with_http_info( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[GetAIOrchestrationStatus200Response]: - """Get Orchestration Status + """Get Tool Orchestration Status (Async Tool Polling) - Retrieves the status and synthesized result of a multi-tool orchestration. * * **Orchestration Pattern:** * When the AI requests multiple async tools simultaneously, an orchestration is created * to track all tool executions and synthesize their results into a single coherent response. * * **Flow:** * 1. AI requests multiple async tools (e.g., image generation + web search) * 2. Chat API creates orchestration and returns orchestrationId * 3. Tool Orchestrator Lambda polls all async tools * 4. When all tools complete, Orchestrator synthesizes results using AI * 5. Client polls this endpoint and receives final synthesized response * * **Status Values:** * - pending: Orchestration created, tools not yet started * - polling: Orchestrator is actively polling async tools * - synthesizing: All tools complete, AI is synthesizing response * - complete: Orchestration finished, synthesizedResponse available * - failed: Orchestration failed, error available * * **Polling Recommendations:** * - Poll every 2 seconds * - Maximum poll time: 10 minutes * - Orchestrator handles tool polling internally * * **Benefits over individual polling:** * - Single poll endpoint for multiple async tools * - AI synthesizes all results into coherent response * - Answers the original user question, not just tool summaries + Retrieves the status and synthesized result of a multi-tool async execution orchestration. * * **Note:** This endpoint is for async tool execution polling (`/tools/orchestrations`). * For durable batch processing orchestrations, see `GET /orchestrations` endpoints. * * **Orchestration Pattern:** * When the AI requests multiple async tools simultaneously, an orchestration is created * to track all tool executions and synthesize their results into a single coherent response. * * **Flow:** * 1. AI requests multiple async tools (e.g., image generation + web search) * 2. Chat API creates orchestration and returns orchestrationId * 3. Tool Orchestrator Lambda polls all async tools * 4. When all tools complete, Orchestrator synthesizes results using AI * 5. Client polls this endpoint and receives final synthesized response * * **Status Values:** * - pending: Orchestration created, tools not yet started * - polling: Orchestrator is actively polling async tools * - synthesizing: All tools complete, AI is synthesizing response * - complete: Orchestration finished, synthesizedResponse available * - failed: Orchestration failed, error available * * **Polling Recommendations:** * - Poll every 2 seconds * - Maximum poll time: 10 minutes * - Orchestrator handles tool polling internally * * **Benefits over individual polling:** * - Single poll endpoint for multiple async tools * - AI synthesizes all results into coherent response * - Answers the original user question, not just tool summaries :param organisation: The organisation ID (required) :type organisation: str @@ -209,9 +209,9 @@ def get_ai_orchestration_status_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """Get Orchestration Status + """Get Tool Orchestration Status (Async Tool Polling) - Retrieves the status and synthesized result of a multi-tool orchestration. * * **Orchestration Pattern:** * When the AI requests multiple async tools simultaneously, an orchestration is created * to track all tool executions and synthesize their results into a single coherent response. * * **Flow:** * 1. AI requests multiple async tools (e.g., image generation + web search) * 2. Chat API creates orchestration and returns orchestrationId * 3. Tool Orchestrator Lambda polls all async tools * 4. When all tools complete, Orchestrator synthesizes results using AI * 5. Client polls this endpoint and receives final synthesized response * * **Status Values:** * - pending: Orchestration created, tools not yet started * - polling: Orchestrator is actively polling async tools * - synthesizing: All tools complete, AI is synthesizing response * - complete: Orchestration finished, synthesizedResponse available * - failed: Orchestration failed, error available * * **Polling Recommendations:** * - Poll every 2 seconds * - Maximum poll time: 10 minutes * - Orchestrator handles tool polling internally * * **Benefits over individual polling:** * - Single poll endpoint for multiple async tools * - AI synthesizes all results into coherent response * - Answers the original user question, not just tool summaries + Retrieves the status and synthesized result of a multi-tool async execution orchestration. * * **Note:** This endpoint is for async tool execution polling (`/tools/orchestrations`). * For durable batch processing orchestrations, see `GET /orchestrations` endpoints. * * **Orchestration Pattern:** * When the AI requests multiple async tools simultaneously, an orchestration is created * to track all tool executions and synthesize their results into a single coherent response. * * **Flow:** * 1. AI requests multiple async tools (e.g., image generation + web search) * 2. Chat API creates orchestration and returns orchestrationId * 3. Tool Orchestrator Lambda polls all async tools * 4. When all tools complete, Orchestrator synthesizes results using AI * 5. Client polls this endpoint and receives final synthesized response * * **Status Values:** * - pending: Orchestration created, tools not yet started * - polling: Orchestrator is actively polling async tools * - synthesizing: All tools complete, AI is synthesizing response * - complete: Orchestration finished, synthesizedResponse available * - failed: Orchestration failed, error available * * **Polling Recommendations:** * - Poll every 2 seconds * - Maximum poll time: 10 minutes * - Orchestrator handles tool polling internally * * **Benefits over individual polling:** * - Single poll endpoint for multiple async tools * - AI synthesizes all results into coherent response * - Answers the original user question, not just tool summaries :param organisation: The organisation ID (required) :type organisation: str diff --git a/quantcdn/api/ai_vector_database_api.py b/quantcdn/api/ai_vector_database_api.py index ef8c7da..593652f 100644 --- a/quantcdn/api/ai_vector_database_api.py +++ b/quantcdn/api/ai_vector_database_api.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.9.0 + The version of the OpenAPI document: 4.12.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -20,7 +20,9 @@ from typing_extensions import Annotated from quantcdn.models.create_vector_collection201_response import CreateVectorCollection201Response from quantcdn.models.create_vector_collection_request import CreateVectorCollectionRequest -from quantcdn.models.delete_vector_collection200_response import DeleteVectorCollection200Response +from quantcdn.models.delete_skill_collection200_response import DeleteSkillCollection200Response +from quantcdn.models.delete_vector_documents200_response import DeleteVectorDocuments200Response +from quantcdn.models.delete_vector_documents_request import DeleteVectorDocumentsRequest from quantcdn.models.get_vector_collection200_response import GetVectorCollection200Response from quantcdn.models.list_vector_collections200_response import ListVectorCollections200Response from quantcdn.models.query_vector_collection200_response import QueryVectorCollection200Response @@ -364,7 +366,7 @@ def delete_vector_collection( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> DeleteVectorCollection200Response: + ) -> DeleteSkillCollection200Response: """Delete Collection Deletes a vector database collection and all its documents. This action cannot be undone. @@ -405,7 +407,7 @@ def delete_vector_collection( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "DeleteVectorCollection200Response", + '200': "DeleteSkillCollection200Response", '403': None, '404': None, '500': None, @@ -438,7 +440,7 @@ def delete_vector_collection_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[DeleteVectorCollection200Response]: + ) -> ApiResponse[DeleteSkillCollection200Response]: """Delete Collection Deletes a vector database collection and all its documents. This action cannot be undone. @@ -479,7 +481,7 @@ def delete_vector_collection_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "DeleteVectorCollection200Response", + '200': "DeleteSkillCollection200Response", '403': None, '404': None, '500': None, @@ -553,7 +555,7 @@ def delete_vector_collection_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "DeleteVectorCollection200Response", + '200': "DeleteSkillCollection200Response", '403': None, '404': None, '500': None, @@ -632,6 +634,322 @@ def _delete_vector_collection_serialize( + @validate_call + def delete_vector_documents( + self, + organisation: Annotated[StrictStr, Field(description="Organisation machine name")], + collection_id: Annotated[StrictStr, Field(description="Collection UUID")], + delete_vector_documents_request: DeleteVectorDocumentsRequest, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> DeleteVectorDocuments200Response: + """Delete Documents from Collection + + Delete documents from a collection. Supports three deletion modes: * * 1. **Purge All** - Set `purgeAll: true` to delete ALL documents in the collection * * 2. **By Document IDs** - Provide `documentIds` array with specific document UUIDs * * 3. **By Metadata** - Provide `metadata` object with `field` and `values` to delete documents where the metadata field matches any of the values * * **Drupal Integration:** * When using with Drupal AI Search, use metadata deletion with: * - `field: 'drupal_entity_id'` to delete all chunks for specific entities * - `field: 'drupal_long_id'` to delete specific chunks + + :param organisation: Organisation machine name (required) + :type organisation: str + :param collection_id: Collection UUID (required) + :type collection_id: str + :param delete_vector_documents_request: (required) + :type delete_vector_documents_request: DeleteVectorDocumentsRequest + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._delete_vector_documents_serialize( + organisation=organisation, + collection_id=collection_id, + delete_vector_documents_request=delete_vector_documents_request, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "DeleteVectorDocuments200Response", + '400': None, + '403': None, + '404': None, + '500': None, + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def delete_vector_documents_with_http_info( + self, + organisation: Annotated[StrictStr, Field(description="Organisation machine name")], + collection_id: Annotated[StrictStr, Field(description="Collection UUID")], + delete_vector_documents_request: DeleteVectorDocumentsRequest, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[DeleteVectorDocuments200Response]: + """Delete Documents from Collection + + Delete documents from a collection. Supports three deletion modes: * * 1. **Purge All** - Set `purgeAll: true` to delete ALL documents in the collection * * 2. **By Document IDs** - Provide `documentIds` array with specific document UUIDs * * 3. **By Metadata** - Provide `metadata` object with `field` and `values` to delete documents where the metadata field matches any of the values * * **Drupal Integration:** * When using with Drupal AI Search, use metadata deletion with: * - `field: 'drupal_entity_id'` to delete all chunks for specific entities * - `field: 'drupal_long_id'` to delete specific chunks + + :param organisation: Organisation machine name (required) + :type organisation: str + :param collection_id: Collection UUID (required) + :type collection_id: str + :param delete_vector_documents_request: (required) + :type delete_vector_documents_request: DeleteVectorDocumentsRequest + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._delete_vector_documents_serialize( + organisation=organisation, + collection_id=collection_id, + delete_vector_documents_request=delete_vector_documents_request, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "DeleteVectorDocuments200Response", + '400': None, + '403': None, + '404': None, + '500': None, + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def delete_vector_documents_without_preload_content( + self, + organisation: Annotated[StrictStr, Field(description="Organisation machine name")], + collection_id: Annotated[StrictStr, Field(description="Collection UUID")], + delete_vector_documents_request: DeleteVectorDocumentsRequest, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """Delete Documents from Collection + + Delete documents from a collection. Supports three deletion modes: * * 1. **Purge All** - Set `purgeAll: true` to delete ALL documents in the collection * * 2. **By Document IDs** - Provide `documentIds` array with specific document UUIDs * * 3. **By Metadata** - Provide `metadata` object with `field` and `values` to delete documents where the metadata field matches any of the values * * **Drupal Integration:** * When using with Drupal AI Search, use metadata deletion with: * - `field: 'drupal_entity_id'` to delete all chunks for specific entities * - `field: 'drupal_long_id'` to delete specific chunks + + :param organisation: Organisation machine name (required) + :type organisation: str + :param collection_id: Collection UUID (required) + :type collection_id: str + :param delete_vector_documents_request: (required) + :type delete_vector_documents_request: DeleteVectorDocumentsRequest + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._delete_vector_documents_serialize( + organisation=organisation, + collection_id=collection_id, + delete_vector_documents_request=delete_vector_documents_request, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "DeleteVectorDocuments200Response", + '400': None, + '403': None, + '404': None, + '500': None, + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _delete_vector_documents_serialize( + self, + organisation, + collection_id, + delete_vector_documents_request, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + if organisation is not None: + _path_params['organisation'] = organisation + if collection_id is not None: + _path_params['collectionId'] = collection_id + # process the query parameters + # process the header parameters + # process the form parameters + # process the body parameter + if delete_vector_documents_request is not None: + _body_params = delete_vector_documents_request + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + # set the HTTP header `Content-Type` + if _content_type: + _header_params['Content-Type'] = _content_type + else: + _default_content_type = ( + self.api_client.select_header_content_type( + [ + 'application/json' + ] + ) + ) + if _default_content_type is not None: + _header_params['Content-Type'] = _default_content_type + + # authentication setting + _auth_settings: List[str] = [ + 'BearerAuth' + ] + + return self.api_client.param_serialize( + method='DELETE', + resource_path='/api/v3/organizations/{organisation}/ai/vector-db/collections/{collectionId}/documents', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + @validate_call def get_vector_collection( self, diff --git a/quantcdn/api/applications_api.py b/quantcdn/api/applications_api.py index 3229a67..be1f565 100644 --- a/quantcdn/api/applications_api.py +++ b/quantcdn/api/applications_api.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.9.0 + The version of the OpenAPI document: 4.12.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/quantcdn/api/backup_management_api.py b/quantcdn/api/backup_management_api.py index 400ce57..1ddcb36 100644 --- a/quantcdn/api/backup_management_api.py +++ b/quantcdn/api/backup_management_api.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.9.0 + The version of the OpenAPI document: 4.12.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/quantcdn/api/cdn_metrics_api.py b/quantcdn/api/cdn_metrics_api.py new file mode 100644 index 0000000..40942a7 --- /dev/null +++ b/quantcdn/api/cdn_metrics_api.py @@ -0,0 +1,1041 @@ +# coding: utf-8 + +""" + QuantCDN API + + Unified API for QuantCDN Admin and QuantCloud Platform services + + The version of the OpenAPI document: 4.12.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + +import warnings +from pydantic import validate_call, Field, StrictFloat, StrictStr, StrictInt +from typing import Any, Dict, List, Optional, Tuple, Union +from typing_extensions import Annotated + +from pydantic import Field, StrictStr, field_validator +from typing import List, Optional +from typing_extensions import Annotated +from quantcdn.models.v2_metrics_response import V2MetricsResponse + +from quantcdn.api_client import ApiClient, RequestSerialized +from quantcdn.api_response import ApiResponse +from quantcdn.rest import RESTResponseType + + +class CDNMetricsApi: + """NOTE: This class is auto generated by OpenAPI Generator + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + def __init__(self, api_client=None) -> None: + if api_client is None: + api_client = ApiClient.get_default() + self.api_client = api_client + + + @validate_call + def get_daily_metrics( + self, + organization: Annotated[StrictStr, Field(description="Organization identifier")], + project: Annotated[StrictStr, Field(description="Project identifier")], + domain: Annotated[Optional[StrictStr], Field(description="Filter by domain ID or domain name")] = None, + metrics: Annotated[Optional[List[StrictStr]], Field(description="Metrics to return (default: hits, bytes). Use the /metrics/available endpoint to list all metrics by category.")] = None, + timestamp_format: Annotated[Optional[StrictStr], Field(description="Timestamp format in response")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> V2MetricsResponse: + """Get daily metrics + + Returns the last 30 days of daily metrics data + + :param organization: Organization identifier (required) + :type organization: str + :param project: Project identifier (required) + :type project: str + :param domain: Filter by domain ID or domain name + :type domain: str + :param metrics: Metrics to return (default: hits, bytes). Use the /metrics/available endpoint to list all metrics by category. + :type metrics: List[str] + :param timestamp_format: Timestamp format in response + :type timestamp_format: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_daily_metrics_serialize( + organization=organization, + project=project, + domain=domain, + metrics=metrics, + timestamp_format=timestamp_format, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V2MetricsResponse", + '400': None, + '404': None, + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def get_daily_metrics_with_http_info( + self, + organization: Annotated[StrictStr, Field(description="Organization identifier")], + project: Annotated[StrictStr, Field(description="Project identifier")], + domain: Annotated[Optional[StrictStr], Field(description="Filter by domain ID or domain name")] = None, + metrics: Annotated[Optional[List[StrictStr]], Field(description="Metrics to return (default: hits, bytes). Use the /metrics/available endpoint to list all metrics by category.")] = None, + timestamp_format: Annotated[Optional[StrictStr], Field(description="Timestamp format in response")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[V2MetricsResponse]: + """Get daily metrics + + Returns the last 30 days of daily metrics data + + :param organization: Organization identifier (required) + :type organization: str + :param project: Project identifier (required) + :type project: str + :param domain: Filter by domain ID or domain name + :type domain: str + :param metrics: Metrics to return (default: hits, bytes). Use the /metrics/available endpoint to list all metrics by category. + :type metrics: List[str] + :param timestamp_format: Timestamp format in response + :type timestamp_format: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_daily_metrics_serialize( + organization=organization, + project=project, + domain=domain, + metrics=metrics, + timestamp_format=timestamp_format, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V2MetricsResponse", + '400': None, + '404': None, + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def get_daily_metrics_without_preload_content( + self, + organization: Annotated[StrictStr, Field(description="Organization identifier")], + project: Annotated[StrictStr, Field(description="Project identifier")], + domain: Annotated[Optional[StrictStr], Field(description="Filter by domain ID or domain name")] = None, + metrics: Annotated[Optional[List[StrictStr]], Field(description="Metrics to return (default: hits, bytes). Use the /metrics/available endpoint to list all metrics by category.")] = None, + timestamp_format: Annotated[Optional[StrictStr], Field(description="Timestamp format in response")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """Get daily metrics + + Returns the last 30 days of daily metrics data + + :param organization: Organization identifier (required) + :type organization: str + :param project: Project identifier (required) + :type project: str + :param domain: Filter by domain ID or domain name + :type domain: str + :param metrics: Metrics to return (default: hits, bytes). Use the /metrics/available endpoint to list all metrics by category. + :type metrics: List[str] + :param timestamp_format: Timestamp format in response + :type timestamp_format: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_daily_metrics_serialize( + organization=organization, + project=project, + domain=domain, + metrics=metrics, + timestamp_format=timestamp_format, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V2MetricsResponse", + '400': None, + '404': None, + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _get_daily_metrics_serialize( + self, + organization, + project, + domain, + metrics, + timestamp_format, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + 'metrics[]': 'multi', + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + if organization is not None: + _path_params['organization'] = organization + if project is not None: + _path_params['project'] = project + # process the query parameters + if domain is not None: + + _query_params.append(('domain', domain)) + + if metrics is not None: + + _query_params.append(('metrics[]', metrics)) + + if timestamp_format is not None: + + _query_params.append(('timestamp_format', timestamp_format)) + + # process the header parameters + # process the form parameters + # process the body parameter + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + 'BearerAuth' + ] + + return self.api_client.param_serialize( + method='GET', + resource_path='/v2/organizations/{organization}/projects/{project}/metrics/daily', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def get_hourly_metrics( + self, + organization: Annotated[StrictStr, Field(description="Organization identifier")], + project: Annotated[StrictStr, Field(description="Project identifier")], + domain: Annotated[Optional[StrictStr], Field(description="Filter by domain ID or domain name")] = None, + metrics: Annotated[Optional[List[StrictStr]], Field(description="Metrics to return (default: hits, bytes). Use the /metrics/available endpoint to list all metrics by category.")] = None, + timestamp_format: Annotated[Optional[StrictStr], Field(description="Timestamp format in response")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> V2MetricsResponse: + """Get hourly metrics + + Returns the last hour of minute-by-minute metrics data + + :param organization: Organization identifier (required) + :type organization: str + :param project: Project identifier (required) + :type project: str + :param domain: Filter by domain ID or domain name + :type domain: str + :param metrics: Metrics to return (default: hits, bytes). Use the /metrics/available endpoint to list all metrics by category. + :type metrics: List[str] + :param timestamp_format: Timestamp format in response + :type timestamp_format: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_hourly_metrics_serialize( + organization=organization, + project=project, + domain=domain, + metrics=metrics, + timestamp_format=timestamp_format, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V2MetricsResponse", + '400': None, + '404': None, + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def get_hourly_metrics_with_http_info( + self, + organization: Annotated[StrictStr, Field(description="Organization identifier")], + project: Annotated[StrictStr, Field(description="Project identifier")], + domain: Annotated[Optional[StrictStr], Field(description="Filter by domain ID or domain name")] = None, + metrics: Annotated[Optional[List[StrictStr]], Field(description="Metrics to return (default: hits, bytes). Use the /metrics/available endpoint to list all metrics by category.")] = None, + timestamp_format: Annotated[Optional[StrictStr], Field(description="Timestamp format in response")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[V2MetricsResponse]: + """Get hourly metrics + + Returns the last hour of minute-by-minute metrics data + + :param organization: Organization identifier (required) + :type organization: str + :param project: Project identifier (required) + :type project: str + :param domain: Filter by domain ID or domain name + :type domain: str + :param metrics: Metrics to return (default: hits, bytes). Use the /metrics/available endpoint to list all metrics by category. + :type metrics: List[str] + :param timestamp_format: Timestamp format in response + :type timestamp_format: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_hourly_metrics_serialize( + organization=organization, + project=project, + domain=domain, + metrics=metrics, + timestamp_format=timestamp_format, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V2MetricsResponse", + '400': None, + '404': None, + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def get_hourly_metrics_without_preload_content( + self, + organization: Annotated[StrictStr, Field(description="Organization identifier")], + project: Annotated[StrictStr, Field(description="Project identifier")], + domain: Annotated[Optional[StrictStr], Field(description="Filter by domain ID or domain name")] = None, + metrics: Annotated[Optional[List[StrictStr]], Field(description="Metrics to return (default: hits, bytes). Use the /metrics/available endpoint to list all metrics by category.")] = None, + timestamp_format: Annotated[Optional[StrictStr], Field(description="Timestamp format in response")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """Get hourly metrics + + Returns the last hour of minute-by-minute metrics data + + :param organization: Organization identifier (required) + :type organization: str + :param project: Project identifier (required) + :type project: str + :param domain: Filter by domain ID or domain name + :type domain: str + :param metrics: Metrics to return (default: hits, bytes). Use the /metrics/available endpoint to list all metrics by category. + :type metrics: List[str] + :param timestamp_format: Timestamp format in response + :type timestamp_format: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_hourly_metrics_serialize( + organization=organization, + project=project, + domain=domain, + metrics=metrics, + timestamp_format=timestamp_format, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V2MetricsResponse", + '400': None, + '404': None, + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _get_hourly_metrics_serialize( + self, + organization, + project, + domain, + metrics, + timestamp_format, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + 'metrics[]': 'multi', + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + if organization is not None: + _path_params['organization'] = organization + if project is not None: + _path_params['project'] = project + # process the query parameters + if domain is not None: + + _query_params.append(('domain', domain)) + + if metrics is not None: + + _query_params.append(('metrics[]', metrics)) + + if timestamp_format is not None: + + _query_params.append(('timestamp_format', timestamp_format)) + + # process the header parameters + # process the form parameters + # process the body parameter + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + 'BearerAuth' + ] + + return self.api_client.param_serialize( + method='GET', + resource_path='/v2/organizations/{organization}/projects/{project}/metrics/hourly', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def get_monthly_metrics( + self, + organization: Annotated[StrictStr, Field(description="Organization identifier")], + project: Annotated[StrictStr, Field(description="Project identifier")], + domain: Annotated[Optional[StrictStr], Field(description="Filter by domain ID or domain name")] = None, + metrics: Annotated[Optional[List[StrictStr]], Field(description="Metrics to return (default: hits, bytes). Use the /metrics/available endpoint to list all metrics by category.")] = None, + timestamp_format: Annotated[Optional[StrictStr], Field(description="Timestamp format in response")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> V2MetricsResponse: + """Get monthly metrics + + Returns the last 12 months of monthly metrics data + + :param organization: Organization identifier (required) + :type organization: str + :param project: Project identifier (required) + :type project: str + :param domain: Filter by domain ID or domain name + :type domain: str + :param metrics: Metrics to return (default: hits, bytes). Use the /metrics/available endpoint to list all metrics by category. + :type metrics: List[str] + :param timestamp_format: Timestamp format in response + :type timestamp_format: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_monthly_metrics_serialize( + organization=organization, + project=project, + domain=domain, + metrics=metrics, + timestamp_format=timestamp_format, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V2MetricsResponse", + '400': None, + '404': None, + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def get_monthly_metrics_with_http_info( + self, + organization: Annotated[StrictStr, Field(description="Organization identifier")], + project: Annotated[StrictStr, Field(description="Project identifier")], + domain: Annotated[Optional[StrictStr], Field(description="Filter by domain ID or domain name")] = None, + metrics: Annotated[Optional[List[StrictStr]], Field(description="Metrics to return (default: hits, bytes). Use the /metrics/available endpoint to list all metrics by category.")] = None, + timestamp_format: Annotated[Optional[StrictStr], Field(description="Timestamp format in response")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[V2MetricsResponse]: + """Get monthly metrics + + Returns the last 12 months of monthly metrics data + + :param organization: Organization identifier (required) + :type organization: str + :param project: Project identifier (required) + :type project: str + :param domain: Filter by domain ID or domain name + :type domain: str + :param metrics: Metrics to return (default: hits, bytes). Use the /metrics/available endpoint to list all metrics by category. + :type metrics: List[str] + :param timestamp_format: Timestamp format in response + :type timestamp_format: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_monthly_metrics_serialize( + organization=organization, + project=project, + domain=domain, + metrics=metrics, + timestamp_format=timestamp_format, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V2MetricsResponse", + '400': None, + '404': None, + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def get_monthly_metrics_without_preload_content( + self, + organization: Annotated[StrictStr, Field(description="Organization identifier")], + project: Annotated[StrictStr, Field(description="Project identifier")], + domain: Annotated[Optional[StrictStr], Field(description="Filter by domain ID or domain name")] = None, + metrics: Annotated[Optional[List[StrictStr]], Field(description="Metrics to return (default: hits, bytes). Use the /metrics/available endpoint to list all metrics by category.")] = None, + timestamp_format: Annotated[Optional[StrictStr], Field(description="Timestamp format in response")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """Get monthly metrics + + Returns the last 12 months of monthly metrics data + + :param organization: Organization identifier (required) + :type organization: str + :param project: Project identifier (required) + :type project: str + :param domain: Filter by domain ID or domain name + :type domain: str + :param metrics: Metrics to return (default: hits, bytes). Use the /metrics/available endpoint to list all metrics by category. + :type metrics: List[str] + :param timestamp_format: Timestamp format in response + :type timestamp_format: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_monthly_metrics_serialize( + organization=organization, + project=project, + domain=domain, + metrics=metrics, + timestamp_format=timestamp_format, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V2MetricsResponse", + '400': None, + '404': None, + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _get_monthly_metrics_serialize( + self, + organization, + project, + domain, + metrics, + timestamp_format, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + 'metrics[]': 'multi', + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + if organization is not None: + _path_params['organization'] = organization + if project is not None: + _path_params['project'] = project + # process the query parameters + if domain is not None: + + _query_params.append(('domain', domain)) + + if metrics is not None: + + _query_params.append(('metrics[]', metrics)) + + if timestamp_format is not None: + + _query_params.append(('timestamp_format', timestamp_format)) + + # process the header parameters + # process the form parameters + # process the body parameter + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + 'BearerAuth' + ] + + return self.api_client.param_serialize( + method='GET', + resource_path='/v2/organizations/{organization}/projects/{project}/metrics/monthly', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + diff --git a/quantcdn/api/commands_api.py b/quantcdn/api/commands_api.py index 54ecd96..4cdfc92 100644 --- a/quantcdn/api/commands_api.py +++ b/quantcdn/api/commands_api.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.9.0 + The version of the OpenAPI document: 4.12.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/quantcdn/api/compose_api.py b/quantcdn/api/compose_api.py index 1508dee..1c884fd 100644 --- a/quantcdn/api/compose_api.py +++ b/quantcdn/api/compose_api.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.9.0 + The version of the OpenAPI document: 4.12.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/quantcdn/api/containers_api.py b/quantcdn/api/containers_api.py index f22b98a..3bc4233 100644 --- a/quantcdn/api/containers_api.py +++ b/quantcdn/api/containers_api.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.9.0 + The version of the OpenAPI document: 4.12.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/quantcdn/api/crawler_schedules_api.py b/quantcdn/api/crawler_schedules_api.py index e6f766b..8754145 100644 --- a/quantcdn/api/crawler_schedules_api.py +++ b/quantcdn/api/crawler_schedules_api.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.9.0 + The version of the OpenAPI document: 4.12.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/quantcdn/api/crawlers_api.py b/quantcdn/api/crawlers_api.py index 0332810..f9e6e7b 100644 --- a/quantcdn/api/crawlers_api.py +++ b/quantcdn/api/crawlers_api.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.9.0 + The version of the OpenAPI document: 4.12.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/quantcdn/api/cron_api.py b/quantcdn/api/cron_api.py index a497d8b..d2ab033 100644 --- a/quantcdn/api/cron_api.py +++ b/quantcdn/api/cron_api.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.9.0 + The version of the OpenAPI document: 4.12.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/quantcdn/api/domains_api.py b/quantcdn/api/domains_api.py index 3f15b5d..97b600d 100644 --- a/quantcdn/api/domains_api.py +++ b/quantcdn/api/domains_api.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.9.0 + The version of the OpenAPI document: 4.12.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/quantcdn/api/environments_api.py b/quantcdn/api/environments_api.py index 7a09d3c..c590899 100644 --- a/quantcdn/api/environments_api.py +++ b/quantcdn/api/environments_api.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.9.0 + The version of the OpenAPI document: 4.12.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/quantcdn/api/headers_api.py b/quantcdn/api/headers_api.py index 7f481dc..3a85cc1 100644 --- a/quantcdn/api/headers_api.py +++ b/quantcdn/api/headers_api.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.9.0 + The version of the OpenAPI document: 4.12.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/quantcdn/api/kv_api.py b/quantcdn/api/kv_api.py index 07ff1e3..6b398e9 100644 --- a/quantcdn/api/kv_api.py +++ b/quantcdn/api/kv_api.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.9.0 + The version of the OpenAPI document: 4.12.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -22,6 +22,8 @@ from quantcdn.models.kv_items_create200_response import KVItemsCreate200Response from quantcdn.models.kv_items_delete200_response import KVItemsDelete200Response from quantcdn.models.kv_items_show200_response import KVItemsShow200Response +from quantcdn.models.kv_link_to_project200_response import KVLinkToProject200Response +from quantcdn.models.kv_link_to_project_request import KVLinkToProjectRequest from quantcdn.models.v2_store import V2Store from quantcdn.models.v2_store_item_request import V2StoreItemRequest from quantcdn.models.v2_store_item_update_request import V2StoreItemUpdateRequest @@ -2295,6 +2297,334 @@ def _k_v_items_update_serialize( + @validate_call + def k_v_link_to_project( + self, + organization: Annotated[StrictStr, Field(description="Organization identifier")], + project: Annotated[StrictStr, Field(description="Source project identifier")], + store_id: Annotated[StrictStr, Field(description="KV store identifier")], + kv_link_to_project_request: KVLinkToProjectRequest, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> KVLinkToProject200Response: + """Link a KV store to another project + + Share a KV store from the source project with a target project. The store will be accessible in the target project. + + :param organization: Organization identifier (required) + :type organization: str + :param project: Source project identifier (required) + :type project: str + :param store_id: KV store identifier (required) + :type store_id: str + :param kv_link_to_project_request: (required) + :type kv_link_to_project_request: KVLinkToProjectRequest + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._k_v_link_to_project_serialize( + organization=organization, + project=project, + store_id=store_id, + kv_link_to_project_request=kv_link_to_project_request, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "KVLinkToProject200Response", + '400': "V2Error", + '404': "V2Error", + '403': "V2Error", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def k_v_link_to_project_with_http_info( + self, + organization: Annotated[StrictStr, Field(description="Organization identifier")], + project: Annotated[StrictStr, Field(description="Source project identifier")], + store_id: Annotated[StrictStr, Field(description="KV store identifier")], + kv_link_to_project_request: KVLinkToProjectRequest, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[KVLinkToProject200Response]: + """Link a KV store to another project + + Share a KV store from the source project with a target project. The store will be accessible in the target project. + + :param organization: Organization identifier (required) + :type organization: str + :param project: Source project identifier (required) + :type project: str + :param store_id: KV store identifier (required) + :type store_id: str + :param kv_link_to_project_request: (required) + :type kv_link_to_project_request: KVLinkToProjectRequest + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._k_v_link_to_project_serialize( + organization=organization, + project=project, + store_id=store_id, + kv_link_to_project_request=kv_link_to_project_request, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "KVLinkToProject200Response", + '400': "V2Error", + '404': "V2Error", + '403': "V2Error", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def k_v_link_to_project_without_preload_content( + self, + organization: Annotated[StrictStr, Field(description="Organization identifier")], + project: Annotated[StrictStr, Field(description="Source project identifier")], + store_id: Annotated[StrictStr, Field(description="KV store identifier")], + kv_link_to_project_request: KVLinkToProjectRequest, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """Link a KV store to another project + + Share a KV store from the source project with a target project. The store will be accessible in the target project. + + :param organization: Organization identifier (required) + :type organization: str + :param project: Source project identifier (required) + :type project: str + :param store_id: KV store identifier (required) + :type store_id: str + :param kv_link_to_project_request: (required) + :type kv_link_to_project_request: KVLinkToProjectRequest + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._k_v_link_to_project_serialize( + organization=organization, + project=project, + store_id=store_id, + kv_link_to_project_request=kv_link_to_project_request, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "KVLinkToProject200Response", + '400': "V2Error", + '404': "V2Error", + '403': "V2Error", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _k_v_link_to_project_serialize( + self, + organization, + project, + store_id, + kv_link_to_project_request, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + if organization is not None: + _path_params['organization'] = organization + if project is not None: + _path_params['project'] = project + if store_id is not None: + _path_params['store_id'] = store_id + # process the query parameters + # process the header parameters + # process the form parameters + # process the body parameter + if kv_link_to_project_request is not None: + _body_params = kv_link_to_project_request + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + # set the HTTP header `Content-Type` + if _content_type: + _header_params['Content-Type'] = _content_type + else: + _default_content_type = ( + self.api_client.select_header_content_type( + [ + 'application/json' + ] + ) + ) + if _default_content_type is not None: + _header_params['Content-Type'] = _default_content_type + + # authentication setting + _auth_settings: List[str] = [ + 'BearerAuth' + ] + + return self.api_client.param_serialize( + method='POST', + resource_path='/api/v2/organizations/{organization}/projects/{project}/kv/{store_id}/link', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + @validate_call def k_v_list( self, @@ -2312,7 +2642,151 @@ def k_v_list( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> List[V2Store]: + ) -> List[V2Store]: + """List key-value stores + + + :param organization: Organization identifier (required) + :type organization: str + :param project: Project identifier (required) + :type project: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._k_v_list_serialize( + organization=organization, + project=project, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "List[V2Store]", + '400': "V2Error", + '403': "V2Error", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def k_v_list_with_http_info( + self, + organization: Annotated[StrictStr, Field(description="Organization identifier")], + project: Annotated[StrictStr, Field(description="Project identifier")], + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[List[V2Store]]: + """List key-value stores + + + :param organization: Organization identifier (required) + :type organization: str + :param project: Project identifier (required) + :type project: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._k_v_list_serialize( + organization=organization, + project=project, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "List[V2Store]", + '400': "V2Error", + '403': "V2Error", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def k_v_list_without_preload_content( + self, + organization: Annotated[StrictStr, Field(description="Organization identifier")], + project: Annotated[StrictStr, Field(description="Project identifier")], + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: """List key-value stores @@ -2360,6 +2834,145 @@ def k_v_list( *_param, _request_timeout=_request_timeout ) + return response_data.response + + + def _k_v_list_serialize( + self, + organization, + project, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + if organization is not None: + _path_params['organization'] = organization + if project is not None: + _path_params['project'] = project + # process the query parameters + # process the header parameters + # process the form parameters + # process the body parameter + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + 'BearerAuth' + ] + + return self.api_client.param_serialize( + method='GET', + resource_path='/api/v2/organizations/{organization}/projects/{project}/kv', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def k_v_show( + self, + organization: Annotated[StrictStr, Field(description="Organization identifier")], + project: Annotated[StrictStr, Field(description="Project identifier")], + store_id: StrictStr, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> V2Store: + """Get a kv store + + + :param organization: Organization identifier (required) + :type organization: str + :param project: Project identifier (required) + :type project: str + :param store_id: (required) + :type store_id: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._k_v_show_serialize( + organization=organization, + project=project, + store_id=store_id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V2Store", + '404': "V2Error", + '403': "V2Error", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) response_data.read() return self.api_client.response_deserialize( response_data=response_data, @@ -2368,10 +2981,11 @@ def k_v_list( @validate_call - def k_v_list_with_http_info( + def k_v_show_with_http_info( self, organization: Annotated[StrictStr, Field(description="Organization identifier")], project: Annotated[StrictStr, Field(description="Project identifier")], + store_id: StrictStr, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -2384,14 +2998,16 @@ def k_v_list_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[List[V2Store]]: - """List key-value stores + ) -> ApiResponse[V2Store]: + """Get a kv store :param organization: Organization identifier (required) :type organization: str :param project: Project identifier (required) :type project: str + :param store_id: (required) + :type store_id: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -2414,9 +3030,10 @@ def k_v_list_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._k_v_list_serialize( + _param = self._k_v_show_serialize( organization=organization, project=project, + store_id=store_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -2424,8 +3041,8 @@ def k_v_list_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "List[V2Store]", - '400': "V2Error", + '200': "V2Store", + '404': "V2Error", '403': "V2Error", } response_data = self.api_client.call_api( @@ -2440,10 +3057,11 @@ def k_v_list_with_http_info( @validate_call - def k_v_list_without_preload_content( + def k_v_show_without_preload_content( self, organization: Annotated[StrictStr, Field(description="Organization identifier")], project: Annotated[StrictStr, Field(description="Project identifier")], + store_id: StrictStr, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -2457,13 +3075,15 @@ def k_v_list_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """List key-value stores + """Get a kv store :param organization: Organization identifier (required) :type organization: str :param project: Project identifier (required) :type project: str + :param store_id: (required) + :type store_id: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -2486,9 +3106,10 @@ def k_v_list_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._k_v_list_serialize( + _param = self._k_v_show_serialize( organization=organization, project=project, + store_id=store_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -2496,8 +3117,8 @@ def k_v_list_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "List[V2Store]", - '400': "V2Error", + '200': "V2Store", + '404': "V2Error", '403': "V2Error", } response_data = self.api_client.call_api( @@ -2507,10 +3128,11 @@ def k_v_list_without_preload_content( return response_data.response - def _k_v_list_serialize( + def _k_v_show_serialize( self, organization, project, + store_id, _request_auth, _content_type, _headers, @@ -2536,6 +3158,8 @@ def _k_v_list_serialize( _path_params['organization'] = organization if project is not None: _path_params['project'] = project + if store_id is not None: + _path_params['store_id'] = store_id # process the query parameters # process the header parameters # process the form parameters @@ -2558,7 +3182,7 @@ def _k_v_list_serialize( return self.api_client.param_serialize( method='GET', - resource_path='/api/v2/organizations/{organization}/projects/{project}/kv', + resource_path='/api/v2/organizations/{organization}/projects/{project}/kv/{store_id}', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -2575,11 +3199,11 @@ def _k_v_list_serialize( @validate_call - def k_v_show( + def k_v_unlink_from_project( self, organization: Annotated[StrictStr, Field(description="Organization identifier")], project: Annotated[StrictStr, Field(description="Project identifier")], - store_id: StrictStr, + store_id: Annotated[StrictStr, Field(description="KV store identifier")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -2592,15 +3216,16 @@ def k_v_show( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> V2Store: - """Get a kv store + ) -> KVLinkToProject200Response: + """Unlink a KV store from this project + Remove access to a linked KV store from this project. The store must be linked (not owned by this project). :param organization: Organization identifier (required) :type organization: str :param project: Project identifier (required) :type project: str - :param store_id: (required) + :param store_id: KV store identifier (required) :type store_id: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request @@ -2624,7 +3249,7 @@ def k_v_show( :return: Returns the result object. """ # noqa: E501 - _param = self._k_v_show_serialize( + _param = self._k_v_unlink_from_project_serialize( organization=organization, project=project, store_id=store_id, @@ -2635,8 +3260,8 @@ def k_v_show( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V2Store", - '404': "V2Error", + '200': "KVLinkToProject200Response", + '400': "V2Error", '403': "V2Error", } response_data = self.api_client.call_api( @@ -2651,11 +3276,11 @@ def k_v_show( @validate_call - def k_v_show_with_http_info( + def k_v_unlink_from_project_with_http_info( self, organization: Annotated[StrictStr, Field(description="Organization identifier")], project: Annotated[StrictStr, Field(description="Project identifier")], - store_id: StrictStr, + store_id: Annotated[StrictStr, Field(description="KV store identifier")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -2668,15 +3293,16 @@ def k_v_show_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[V2Store]: - """Get a kv store + ) -> ApiResponse[KVLinkToProject200Response]: + """Unlink a KV store from this project + Remove access to a linked KV store from this project. The store must be linked (not owned by this project). :param organization: Organization identifier (required) :type organization: str :param project: Project identifier (required) :type project: str - :param store_id: (required) + :param store_id: KV store identifier (required) :type store_id: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request @@ -2700,7 +3326,7 @@ def k_v_show_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._k_v_show_serialize( + _param = self._k_v_unlink_from_project_serialize( organization=organization, project=project, store_id=store_id, @@ -2711,8 +3337,8 @@ def k_v_show_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V2Store", - '404': "V2Error", + '200': "KVLinkToProject200Response", + '400': "V2Error", '403': "V2Error", } response_data = self.api_client.call_api( @@ -2727,11 +3353,11 @@ def k_v_show_with_http_info( @validate_call - def k_v_show_without_preload_content( + def k_v_unlink_from_project_without_preload_content( self, organization: Annotated[StrictStr, Field(description="Organization identifier")], project: Annotated[StrictStr, Field(description="Project identifier")], - store_id: StrictStr, + store_id: Annotated[StrictStr, Field(description="KV store identifier")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -2745,14 +3371,15 @@ def k_v_show_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """Get a kv store + """Unlink a KV store from this project + Remove access to a linked KV store from this project. The store must be linked (not owned by this project). :param organization: Organization identifier (required) :type organization: str :param project: Project identifier (required) :type project: str - :param store_id: (required) + :param store_id: KV store identifier (required) :type store_id: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request @@ -2776,7 +3403,7 @@ def k_v_show_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._k_v_show_serialize( + _param = self._k_v_unlink_from_project_serialize( organization=organization, project=project, store_id=store_id, @@ -2787,8 +3414,8 @@ def k_v_show_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V2Store", - '404': "V2Error", + '200': "KVLinkToProject200Response", + '400': "V2Error", '403': "V2Error", } response_data = self.api_client.call_api( @@ -2798,7 +3425,7 @@ def k_v_show_without_preload_content( return response_data.response - def _k_v_show_serialize( + def _k_v_unlink_from_project_serialize( self, organization, project, @@ -2851,8 +3478,8 @@ def _k_v_show_serialize( ] return self.api_client.param_serialize( - method='GET', - resource_path='/api/v2/organizations/{organization}/projects/{project}/kv/{store_id}', + method='DELETE', + resource_path='/api/v2/organizations/{organization}/projects/{project}/kv/{store_id}/link', path_params=_path_params, query_params=_query_params, header_params=_header_params, diff --git a/quantcdn/api/orchestration_api.py b/quantcdn/api/orchestration_api.py deleted file mode 100644 index 9e162a8..0000000 --- a/quantcdn/api/orchestration_api.py +++ /dev/null @@ -1,323 +0,0 @@ -# coding: utf-8 - -""" - QuantCDN API - - Unified API for QuantCDN Admin and QuantCloud Platform services - - The version of the OpenAPI document: 4.9.0 - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - -import warnings -from pydantic import validate_call, Field, StrictFloat, StrictStr, StrictInt -from typing import Any, Dict, List, Optional, Tuple, Union -from typing_extensions import Annotated - -from pydantic import Field, StrictStr, field_validator -from typing_extensions import Annotated -from quantcdn.models.get_ai_orchestration_status200_response import GetAIOrchestrationStatus200Response - -from quantcdn.api_client import ApiClient, RequestSerialized -from quantcdn.api_response import ApiResponse -from quantcdn.rest import RESTResponseType - - -class OrchestrationApi: - """NOTE: This class is auto generated by OpenAPI Generator - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - def __init__(self, api_client=None) -> None: - if api_client is None: - api_client = ApiClient.get_default() - self.api_client = api_client - - - @validate_call - def get_ai_orchestration_status( - self, - organisation: Annotated[StrictStr, Field(description="The organisation ID")], - orchestration_id: Annotated[str, Field(strict=True, description="Orchestration identifier for aggregated async tool executions")], - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> GetAIOrchestrationStatus200Response: - """Get Orchestration Status - - Retrieves the status and synthesized result of a multi-tool orchestration. * * **Orchestration Pattern:** * When the AI requests multiple async tools simultaneously, an orchestration is created * to track all tool executions and synthesize their results into a single coherent response. * * **Flow:** * 1. AI requests multiple async tools (e.g., image generation + web search) * 2. Chat API creates orchestration and returns orchestrationId * 3. Tool Orchestrator Lambda polls all async tools * 4. When all tools complete, Orchestrator synthesizes results using AI * 5. Client polls this endpoint and receives final synthesized response * * **Status Values:** * - pending: Orchestration created, tools not yet started * - polling: Orchestrator is actively polling async tools * - synthesizing: All tools complete, AI is synthesizing response * - complete: Orchestration finished, synthesizedResponse available * - failed: Orchestration failed, error available * * **Polling Recommendations:** * - Poll every 2 seconds * - Maximum poll time: 10 minutes * - Orchestrator handles tool polling internally * * **Benefits over individual polling:** * - Single poll endpoint for multiple async tools * - AI synthesizes all results into coherent response * - Answers the original user question, not just tool summaries - - :param organisation: The organisation ID (required) - :type organisation: str - :param orchestration_id: Orchestration identifier for aggregated async tool executions (required) - :type orchestration_id: str - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._get_ai_orchestration_status_serialize( - organisation=organisation, - orchestration_id=orchestration_id, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "GetAIOrchestrationStatus200Response", - '404': "GetAIOrchestrationStatus404Response", - '403': None, - '500': None, - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - response_data.read() - return self.api_client.response_deserialize( - response_data=response_data, - response_types_map=_response_types_map, - ).data - - - @validate_call - def get_ai_orchestration_status_with_http_info( - self, - organisation: Annotated[StrictStr, Field(description="The organisation ID")], - orchestration_id: Annotated[str, Field(strict=True, description="Orchestration identifier for aggregated async tool executions")], - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[GetAIOrchestrationStatus200Response]: - """Get Orchestration Status - - Retrieves the status and synthesized result of a multi-tool orchestration. * * **Orchestration Pattern:** * When the AI requests multiple async tools simultaneously, an orchestration is created * to track all tool executions and synthesize their results into a single coherent response. * * **Flow:** * 1. AI requests multiple async tools (e.g., image generation + web search) * 2. Chat API creates orchestration and returns orchestrationId * 3. Tool Orchestrator Lambda polls all async tools * 4. When all tools complete, Orchestrator synthesizes results using AI * 5. Client polls this endpoint and receives final synthesized response * * **Status Values:** * - pending: Orchestration created, tools not yet started * - polling: Orchestrator is actively polling async tools * - synthesizing: All tools complete, AI is synthesizing response * - complete: Orchestration finished, synthesizedResponse available * - failed: Orchestration failed, error available * * **Polling Recommendations:** * - Poll every 2 seconds * - Maximum poll time: 10 minutes * - Orchestrator handles tool polling internally * * **Benefits over individual polling:** * - Single poll endpoint for multiple async tools * - AI synthesizes all results into coherent response * - Answers the original user question, not just tool summaries - - :param organisation: The organisation ID (required) - :type organisation: str - :param orchestration_id: Orchestration identifier for aggregated async tool executions (required) - :type orchestration_id: str - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._get_ai_orchestration_status_serialize( - organisation=organisation, - orchestration_id=orchestration_id, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "GetAIOrchestrationStatus200Response", - '404': "GetAIOrchestrationStatus404Response", - '403': None, - '500': None, - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - response_data.read() - return self.api_client.response_deserialize( - response_data=response_data, - response_types_map=_response_types_map, - ) - - - @validate_call - def get_ai_orchestration_status_without_preload_content( - self, - organisation: Annotated[StrictStr, Field(description="The organisation ID")], - orchestration_id: Annotated[str, Field(strict=True, description="Orchestration identifier for aggregated async tool executions")], - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> RESTResponseType: - """Get Orchestration Status - - Retrieves the status and synthesized result of a multi-tool orchestration. * * **Orchestration Pattern:** * When the AI requests multiple async tools simultaneously, an orchestration is created * to track all tool executions and synthesize their results into a single coherent response. * * **Flow:** * 1. AI requests multiple async tools (e.g., image generation + web search) * 2. Chat API creates orchestration and returns orchestrationId * 3. Tool Orchestrator Lambda polls all async tools * 4. When all tools complete, Orchestrator synthesizes results using AI * 5. Client polls this endpoint and receives final synthesized response * * **Status Values:** * - pending: Orchestration created, tools not yet started * - polling: Orchestrator is actively polling async tools * - synthesizing: All tools complete, AI is synthesizing response * - complete: Orchestration finished, synthesizedResponse available * - failed: Orchestration failed, error available * * **Polling Recommendations:** * - Poll every 2 seconds * - Maximum poll time: 10 minutes * - Orchestrator handles tool polling internally * * **Benefits over individual polling:** * - Single poll endpoint for multiple async tools * - AI synthesizes all results into coherent response * - Answers the original user question, not just tool summaries - - :param organisation: The organisation ID (required) - :type organisation: str - :param orchestration_id: Orchestration identifier for aggregated async tool executions (required) - :type orchestration_id: str - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._get_ai_orchestration_status_serialize( - organisation=organisation, - orchestration_id=orchestration_id, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "GetAIOrchestrationStatus200Response", - '404': "GetAIOrchestrationStatus404Response", - '403': None, - '500': None, - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - return response_data.response - - - def _get_ai_orchestration_status_serialize( - self, - organisation, - orchestration_id, - _request_auth, - _content_type, - _headers, - _host_index, - ) -> RequestSerialized: - - _host = None - - _collection_formats: Dict[str, str] = { - } - - _path_params: Dict[str, str] = {} - _query_params: List[Tuple[str, str]] = [] - _header_params: Dict[str, Optional[str]] = _headers or {} - _form_params: List[Tuple[str, str]] = [] - _files: Dict[ - str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] - ] = {} - _body_params: Optional[bytes] = None - - # process the path parameters - if organisation is not None: - _path_params['organisation'] = organisation - if orchestration_id is not None: - _path_params['orchestrationId'] = orchestration_id - # process the query parameters - # process the header parameters - # process the form parameters - # process the body parameter - - - # set the HTTP header `Accept` - if 'Accept' not in _header_params: - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'application/json' - ] - ) - - - # authentication setting - _auth_settings: List[str] = [ - 'BearerAuth' - ] - - return self.api_client.param_serialize( - method='GET', - resource_path='/api/v3/organizations/{organisation}/ai/tools/orchestrations/{orchestrationId}', - path_params=_path_params, - query_params=_query_params, - header_params=_header_params, - body=_body_params, - post_params=_form_params, - files=_files, - auth_settings=_auth_settings, - collection_formats=_collection_formats, - _host=_host, - _request_auth=_request_auth - ) - - diff --git a/quantcdn/api/organizations_api.py b/quantcdn/api/organizations_api.py index 7cc8511..baaea11 100644 --- a/quantcdn/api/organizations_api.py +++ b/quantcdn/api/organizations_api.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.9.0 + The version of the OpenAPI document: 4.12.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/quantcdn/api/projects_api.py b/quantcdn/api/projects_api.py index ab132e3..10a6a10 100644 --- a/quantcdn/api/projects_api.py +++ b/quantcdn/api/projects_api.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.9.0 + The version of the OpenAPI document: 4.12.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/quantcdn/api/purge_api.py b/quantcdn/api/purge_api.py index 320c9c3..1658e4f 100644 --- a/quantcdn/api/purge_api.py +++ b/quantcdn/api/purge_api.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.9.0 + The version of the OpenAPI document: 4.12.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/quantcdn/api/rules_api.py b/quantcdn/api/rules_api.py index a481395..9e27a52 100644 --- a/quantcdn/api/rules_api.py +++ b/quantcdn/api/rules_api.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.9.0 + The version of the OpenAPI document: 4.12.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/quantcdn/api/scaling_policy_api.py b/quantcdn/api/scaling_policy_api.py index b0da9cc..e51b191 100644 --- a/quantcdn/api/scaling_policy_api.py +++ b/quantcdn/api/scaling_policy_api.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.9.0 + The version of the OpenAPI document: 4.12.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/quantcdn/api/ssh_access_api.py b/quantcdn/api/ssh_access_api.py index ceb8c82..e1c6a01 100644 --- a/quantcdn/api/ssh_access_api.py +++ b/quantcdn/api/ssh_access_api.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.9.0 + The version of the OpenAPI document: 4.12.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/quantcdn/api/tokens_api.py b/quantcdn/api/tokens_api.py new file mode 100644 index 0000000..824f947 --- /dev/null +++ b/quantcdn/api/tokens_api.py @@ -0,0 +1,874 @@ +# coding: utf-8 + +""" + QuantCDN API + + Unified API for QuantCDN Admin and QuantCloud Platform services + + The version of the OpenAPI document: 4.12.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + +import warnings +from pydantic import validate_call, Field, StrictFloat, StrictStr, StrictInt +from typing import Any, Dict, List, Optional, Tuple, Union +from typing_extensions import Annotated + +from pydantic import Field, StrictInt, StrictStr +from typing import List +from typing_extensions import Annotated +from quantcdn.models.tokens_create201_response import TokensCreate201Response +from quantcdn.models.tokens_create_request import TokensCreateRequest +from quantcdn.models.tokens_delete200_response import TokensDelete200Response +from quantcdn.models.tokens_list200_response_inner import TokensList200ResponseInner + +from quantcdn.api_client import ApiClient, RequestSerialized +from quantcdn.api_response import ApiResponse +from quantcdn.rest import RESTResponseType + + +class TokensApi: + """NOTE: This class is auto generated by OpenAPI Generator + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + def __init__(self, api_client=None) -> None: + if api_client is None: + api_client = ApiClient.get_default() + self.api_client = api_client + + + @validate_call + def tokens_create( + self, + organization: Annotated[StrictStr, Field(description="Organization identifier")], + tokens_create_request: TokensCreateRequest, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> TokensCreate201Response: + """Create a new API token scoped to this organization + + + :param organization: Organization identifier (required) + :type organization: str + :param tokens_create_request: (required) + :type tokens_create_request: TokensCreateRequest + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._tokens_create_serialize( + organization=organization, + tokens_create_request=tokens_create_request, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '201': "TokensCreate201Response", + '400': "V2Error", + '403': "V2Error", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def tokens_create_with_http_info( + self, + organization: Annotated[StrictStr, Field(description="Organization identifier")], + tokens_create_request: TokensCreateRequest, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[TokensCreate201Response]: + """Create a new API token scoped to this organization + + + :param organization: Organization identifier (required) + :type organization: str + :param tokens_create_request: (required) + :type tokens_create_request: TokensCreateRequest + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._tokens_create_serialize( + organization=organization, + tokens_create_request=tokens_create_request, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '201': "TokensCreate201Response", + '400': "V2Error", + '403': "V2Error", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def tokens_create_without_preload_content( + self, + organization: Annotated[StrictStr, Field(description="Organization identifier")], + tokens_create_request: TokensCreateRequest, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """Create a new API token scoped to this organization + + + :param organization: Organization identifier (required) + :type organization: str + :param tokens_create_request: (required) + :type tokens_create_request: TokensCreateRequest + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._tokens_create_serialize( + organization=organization, + tokens_create_request=tokens_create_request, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '201': "TokensCreate201Response", + '400': "V2Error", + '403': "V2Error", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _tokens_create_serialize( + self, + organization, + tokens_create_request, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + if organization is not None: + _path_params['organization'] = organization + # process the query parameters + # process the header parameters + # process the form parameters + # process the body parameter + if tokens_create_request is not None: + _body_params = tokens_create_request + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + # set the HTTP header `Content-Type` + if _content_type: + _header_params['Content-Type'] = _content_type + else: + _default_content_type = ( + self.api_client.select_header_content_type( + [ + 'application/json' + ] + ) + ) + if _default_content_type is not None: + _header_params['Content-Type'] = _default_content_type + + # authentication setting + _auth_settings: List[str] = [ + 'BearerAuth' + ] + + return self.api_client.param_serialize( + method='POST', + resource_path='/api/v2/organizations/{organization}/tokens', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def tokens_delete( + self, + organization: Annotated[StrictStr, Field(description="Organization identifier")], + token_id: Annotated[StrictInt, Field(description="Token ID to revoke")], + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> TokensDelete200Response: + """Revoke an API token + + + :param organization: Organization identifier (required) + :type organization: str + :param token_id: Token ID to revoke (required) + :type token_id: int + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._tokens_delete_serialize( + organization=organization, + token_id=token_id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "TokensDelete200Response", + '403': "V2Error", + '404': "V2Error", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def tokens_delete_with_http_info( + self, + organization: Annotated[StrictStr, Field(description="Organization identifier")], + token_id: Annotated[StrictInt, Field(description="Token ID to revoke")], + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[TokensDelete200Response]: + """Revoke an API token + + + :param organization: Organization identifier (required) + :type organization: str + :param token_id: Token ID to revoke (required) + :type token_id: int + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._tokens_delete_serialize( + organization=organization, + token_id=token_id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "TokensDelete200Response", + '403': "V2Error", + '404': "V2Error", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def tokens_delete_without_preload_content( + self, + organization: Annotated[StrictStr, Field(description="Organization identifier")], + token_id: Annotated[StrictInt, Field(description="Token ID to revoke")], + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """Revoke an API token + + + :param organization: Organization identifier (required) + :type organization: str + :param token_id: Token ID to revoke (required) + :type token_id: int + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._tokens_delete_serialize( + organization=organization, + token_id=token_id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "TokensDelete200Response", + '403': "V2Error", + '404': "V2Error", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _tokens_delete_serialize( + self, + organization, + token_id, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + if organization is not None: + _path_params['organization'] = organization + if token_id is not None: + _path_params['token_id'] = token_id + # process the query parameters + # process the header parameters + # process the form parameters + # process the body parameter + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + 'BearerAuth' + ] + + return self.api_client.param_serialize( + method='DELETE', + resource_path='/api/v2/organizations/{organization}/tokens/{token_id}', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def tokens_list( + self, + organization: Annotated[StrictStr, Field(description="Organization identifier")], + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> List[TokensList200ResponseInner]: + """List API tokens scoped to this organization + + + :param organization: Organization identifier (required) + :type organization: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._tokens_list_serialize( + organization=organization, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "List[TokensList200ResponseInner]", + '403': "V2Error", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def tokens_list_with_http_info( + self, + organization: Annotated[StrictStr, Field(description="Organization identifier")], + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[List[TokensList200ResponseInner]]: + """List API tokens scoped to this organization + + + :param organization: Organization identifier (required) + :type organization: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._tokens_list_serialize( + organization=organization, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "List[TokensList200ResponseInner]", + '403': "V2Error", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def tokens_list_without_preload_content( + self, + organization: Annotated[StrictStr, Field(description="Organization identifier")], + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """List API tokens scoped to this organization + + + :param organization: Organization identifier (required) + :type organization: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._tokens_list_serialize( + organization=organization, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "List[TokensList200ResponseInner]", + '403': "V2Error", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _tokens_list_serialize( + self, + organization, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + if organization is not None: + _path_params['organization'] = organization + # process the query parameters + # process the header parameters + # process the form parameters + # process the body parameter + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + 'BearerAuth' + ] + + return self.api_client.param_serialize( + method='GET', + resource_path='/api/v2/organizations/{organization}/tokens', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + diff --git a/quantcdn/api/variables_api.py b/quantcdn/api/variables_api.py index 6056171..bbaf536 100644 --- a/quantcdn/api/variables_api.py +++ b/quantcdn/api/variables_api.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.9.0 + The version of the OpenAPI document: 4.12.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/quantcdn/api/volumes_api.py b/quantcdn/api/volumes_api.py index b45c93d..c63dc47 100644 --- a/quantcdn/api/volumes_api.py +++ b/quantcdn/api/volumes_api.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.9.0 + The version of the OpenAPI document: 4.12.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/quantcdn/api_client.py b/quantcdn/api_client.py index 13cae24..b8c6dc5 100644 --- a/quantcdn/api_client.py +++ b/quantcdn/api_client.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.9.0 + The version of the OpenAPI document: 4.12.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/quantcdn/configuration.py b/quantcdn/configuration.py index 1a2eb5d..bb4b06c 100644 --- a/quantcdn/configuration.py +++ b/quantcdn/configuration.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.9.0 + The version of the OpenAPI document: 4.12.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -510,7 +510,7 @@ def to_debug_report(self) -> str: return "Python SDK Debug Report:\n"\ "OS: {env}\n"\ "Python Version: {pyversion}\n"\ - "Version of the API: 4.9.0\n"\ + "Version of the API: 4.12.0\n"\ "SDK Package Version: 1.0.0".\ format(env=sys.platform, pyversion=sys.version) diff --git a/quantcdn/exceptions.py b/quantcdn/exceptions.py index 9b78c7c..2bea190 100644 --- a/quantcdn/exceptions.py +++ b/quantcdn/exceptions.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.9.0 + The version of the OpenAPI document: 4.12.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/quantcdn/models/__init__.py b/quantcdn/models/__init__.py index c4179ae..58a57f8 100644 --- a/quantcdn/models/__init__.py +++ b/quantcdn/models/__init__.py @@ -6,7 +6,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.9.0 + The version of the OpenAPI document: 4.12.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -31,6 +31,7 @@ from quantcdn.models.chat_inference200_response_usage import ChatInference200ResponseUsage from quantcdn.models.chat_inference202_response import ChatInference202Response from quantcdn.models.chat_inference_request import ChatInferenceRequest +from quantcdn.models.chat_inference_request_guardrails import ChatInferenceRequestGuardrails from quantcdn.models.chat_inference_request_messages_inner import ChatInferenceRequestMessagesInner from quantcdn.models.chat_inference_request_messages_inner_content import ChatInferenceRequestMessagesInnerContent from quantcdn.models.chat_inference_request_messages_inner_content_one_of_inner import ChatInferenceRequestMessagesInnerContentOneOfInner @@ -88,6 +89,11 @@ from quantcdn.models.create_environment403_response import CreateEnvironment403Response from quantcdn.models.create_environment_request import CreateEnvironmentRequest from quantcdn.models.create_environment_request_environment_inner import CreateEnvironmentRequestEnvironmentInner +from quantcdn.models.create_orchestration_request import CreateOrchestrationRequest +from quantcdn.models.create_orchestration_request_input_source import CreateOrchestrationRequestInputSource +from quantcdn.models.create_orchestration_request_stop_condition import CreateOrchestrationRequestStopCondition +from quantcdn.models.create_skill201_response import CreateSkill201Response +from quantcdn.models.create_skill_request import CreateSkillRequest from quantcdn.models.create_task201_response import CreateTask201Response from quantcdn.models.create_task_request import CreateTaskRequest from quantcdn.models.create_vector_collection201_response import CreateVectorCollection201Response @@ -101,9 +107,13 @@ from quantcdn.models.delete_backup200_response import DeleteBackup200Response from quantcdn.models.delete_custom_tool200_response import DeleteCustomTool200Response from quantcdn.models.delete_file200_response import DeleteFile200Response +from quantcdn.models.delete_skill200_response import DeleteSkill200Response +from quantcdn.models.delete_skill_collection200_response import DeleteSkillCollection200Response from quantcdn.models.delete_task200_response import DeleteTask200Response from quantcdn.models.delete_task409_response import DeleteTask409Response -from quantcdn.models.delete_vector_collection200_response import DeleteVectorCollection200Response +from quantcdn.models.delete_vector_documents200_response import DeleteVectorDocuments200Response +from quantcdn.models.delete_vector_documents_request import DeleteVectorDocumentsRequest +from quantcdn.models.delete_vector_documents_request_metadata import DeleteVectorDocumentsRequestMetadata from quantcdn.models.download_backup200_response import DownloadBackup200Response from quantcdn.models.embeddings200_response import Embeddings200Response from quantcdn.models.embeddings200_response_embeddings import Embeddings200ResponseEmbeddings @@ -141,6 +151,8 @@ from quantcdn.models.get_environment_logs200_response import GetEnvironmentLogs200Response from quantcdn.models.get_environment_logs200_response_log_events_inner import GetEnvironmentLogs200ResponseLogEventsInner from quantcdn.models.get_file200_response import GetFile200Response +from quantcdn.models.get_skill200_response import GetSkill200Response +from quantcdn.models.get_skill200_response_skill import GetSkill200ResponseSkill from quantcdn.models.get_ssh_access_credentials200_response import GetSshAccessCredentials200Response from quantcdn.models.get_ssh_access_credentials200_response_credentials import GetSshAccessCredentials200ResponseCredentials from quantcdn.models.get_task200_response import GetTask200Response @@ -155,10 +167,18 @@ from quantcdn.models.image_generation_request_in_painting_params import ImageGenerationRequestInPaintingParams from quantcdn.models.image_generation_request_out_painting_params import ImageGenerationRequestOutPaintingParams from quantcdn.models.image_generation_request_text_to_image_params import ImageGenerationRequestTextToImageParams +from quantcdn.models.import_skill201_response import ImportSkill201Response +from quantcdn.models.import_skill_collection201_response import ImportSkillCollection201Response +from quantcdn.models.import_skill_collection_request import ImportSkillCollectionRequest +from quantcdn.models.import_skill_collection_request_source import ImportSkillCollectionRequestSource +from quantcdn.models.import_skill_request import ImportSkillRequest +from quantcdn.models.import_skill_request_source import ImportSkillRequestSource from quantcdn.models.kv_items_create200_response import KVItemsCreate200Response from quantcdn.models.kv_items_delete200_response import KVItemsDelete200Response from quantcdn.models.kv_items_show200_response import KVItemsShow200Response from quantcdn.models.kv_items_show200_response_value import KVItemsShow200ResponseValue +from quantcdn.models.kv_link_to_project200_response import KVLinkToProject200Response +from quantcdn.models.kv_link_to_project_request import KVLinkToProjectRequest from quantcdn.models.list_ai_agents200_response import ListAIAgents200Response from quantcdn.models.list_ai_agents200_response_agents_inner import ListAIAgents200ResponseAgentsInner from quantcdn.models.list_ai_models200_response import ListAIModels200Response @@ -179,6 +199,13 @@ from quantcdn.models.list_custom_tools200_response_tools_inner import ListCustomTools200ResponseToolsInner from quantcdn.models.list_files200_response import ListFiles200Response from quantcdn.models.list_files200_response_files_inner import ListFiles200ResponseFilesInner +from quantcdn.models.list_orchestration_batches200_response import ListOrchestrationBatches200Response +from quantcdn.models.list_orchestration_batches200_response_batches_inner import ListOrchestrationBatches200ResponseBatchesInner +from quantcdn.models.list_orchestrations200_response import ListOrchestrations200Response +from quantcdn.models.list_skill_collections200_response import ListSkillCollections200Response +from quantcdn.models.list_skill_collections200_response_collections_inner import ListSkillCollections200ResponseCollectionsInner +from quantcdn.models.list_skills200_response import ListSkills200Response +from quantcdn.models.list_skills200_response_skills_inner import ListSkills200ResponseSkillsInner from quantcdn.models.list_tasks200_response import ListTasks200Response from quantcdn.models.list_tasks200_response_tasks_inner import ListTasks200ResponseTasksInner from quantcdn.models.list_vector_collections200_response import ListVectorCollections200Response @@ -201,7 +228,12 @@ from quantcdn.models.submit_tool_callback_request import SubmitToolCallbackRequest from quantcdn.models.submit_tool_callback_request_tool_results_inner import SubmitToolCallbackRequestToolResultsInner from quantcdn.models.sync_operation import SyncOperation +from quantcdn.models.sync_skill_collection200_response import SyncSkillCollection200Response from quantcdn.models.sync_to_environment_request import SyncToEnvironmentRequest +from quantcdn.models.tokens_create201_response import TokensCreate201Response +from quantcdn.models.tokens_create_request import TokensCreateRequest +from quantcdn.models.tokens_delete200_response import TokensDelete200Response +from quantcdn.models.tokens_list200_response_inner import TokensList200ResponseInner from quantcdn.models.update_ai_agent200_response import UpdateAIAgent200Response from quantcdn.models.update_ai_agent_request import UpdateAIAgentRequest from quantcdn.models.update_ai_session200_response import UpdateAISession200Response @@ -211,6 +243,8 @@ from quantcdn.models.update_environment_request import UpdateEnvironmentRequest from quantcdn.models.update_environment_state_request import UpdateEnvironmentStateRequest from quantcdn.models.update_environment_variable_request import UpdateEnvironmentVariableRequest +from quantcdn.models.update_skill200_response import UpdateSkill200Response +from quantcdn.models.update_skill_request import UpdateSkillRequest from quantcdn.models.update_task200_response import UpdateTask200Response from quantcdn.models.update_task_request import UpdateTaskRequest from quantcdn.models.upload_file201_response import UploadFile201Response @@ -274,6 +308,11 @@ from quantcdn.models.v2_domain_dns_validation_records_inner import V2DomainDnsValidationRecordsInner from quantcdn.models.v2_domain_request import V2DomainRequest from quantcdn.models.v2_error import V2Error +from quantcdn.models.v2_metric_data import V2MetricData +from quantcdn.models.v2_metric_data_point import V2MetricDataPoint +from quantcdn.models.v2_metric_data_point_timestamp import V2MetricDataPointTimestamp +from quantcdn.models.v2_metrics_meta import V2MetricsMeta +from quantcdn.models.v2_metrics_response import V2MetricsResponse from quantcdn.models.v2_organization import V2Organization from quantcdn.models.v2_organization_request import V2OrganizationRequest from quantcdn.models.v2_project import V2Project diff --git a/quantcdn/models/application.py b/quantcdn/models/application.py index ddb9fc6..39e1bae 100644 --- a/quantcdn/models/application.py +++ b/quantcdn/models/application.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.9.0 + The version of the OpenAPI document: 4.12.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/quantcdn/models/application_database.py b/quantcdn/models/application_database.py index 00db186..9fd3845 100644 --- a/quantcdn/models/application_database.py +++ b/quantcdn/models/application_database.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.9.0 + The version of the OpenAPI document: 4.12.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/quantcdn/models/application_deployment_information_inner.py b/quantcdn/models/application_deployment_information_inner.py index cc2b196..38d0346 100644 --- a/quantcdn/models/application_deployment_information_inner.py +++ b/quantcdn/models/application_deployment_information_inner.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.9.0 + The version of the OpenAPI document: 4.12.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/quantcdn/models/application_environments_inner.py b/quantcdn/models/application_environments_inner.py index 62187a3..57a544c 100644 --- a/quantcdn/models/application_environments_inner.py +++ b/quantcdn/models/application_environments_inner.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.9.0 + The version of the OpenAPI document: 4.12.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/quantcdn/models/application_filesystem.py b/quantcdn/models/application_filesystem.py index 12e386b..aedcc26 100644 --- a/quantcdn/models/application_filesystem.py +++ b/quantcdn/models/application_filesystem.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.9.0 + The version of the OpenAPI document: 4.12.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/quantcdn/models/application_image_reference.py b/quantcdn/models/application_image_reference.py index 876a9a2..e51022f 100644 --- a/quantcdn/models/application_image_reference.py +++ b/quantcdn/models/application_image_reference.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.9.0 + The version of the OpenAPI document: 4.12.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/quantcdn/models/bulk_set_environment_variables_request.py b/quantcdn/models/bulk_set_environment_variables_request.py index 6475570..8d82ba7 100644 --- a/quantcdn/models/bulk_set_environment_variables_request.py +++ b/quantcdn/models/bulk_set_environment_variables_request.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.9.0 + The version of the OpenAPI document: 4.12.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/quantcdn/models/bulk_set_environment_variables_request_environment_inner.py b/quantcdn/models/bulk_set_environment_variables_request_environment_inner.py index 8e5dd36..f056492 100644 --- a/quantcdn/models/bulk_set_environment_variables_request_environment_inner.py +++ b/quantcdn/models/bulk_set_environment_variables_request_environment_inner.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.9.0 + The version of the OpenAPI document: 4.12.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/quantcdn/models/chat_inference200_response.py b/quantcdn/models/chat_inference200_response.py index 1560e91..7fdb58c 100644 --- a/quantcdn/models/chat_inference200_response.py +++ b/quantcdn/models/chat_inference200_response.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.9.0 + The version of the OpenAPI document: 4.12.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/quantcdn/models/chat_inference200_response_response.py b/quantcdn/models/chat_inference200_response_response.py index 8a0170a..1cdbaba 100644 --- a/quantcdn/models/chat_inference200_response_response.py +++ b/quantcdn/models/chat_inference200_response_response.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.9.0 + The version of the OpenAPI document: 4.12.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/quantcdn/models/chat_inference200_response_response_tool_use.py b/quantcdn/models/chat_inference200_response_response_tool_use.py index 1af39dc..1ecb21d 100644 --- a/quantcdn/models/chat_inference200_response_response_tool_use.py +++ b/quantcdn/models/chat_inference200_response_response_tool_use.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.9.0 + The version of the OpenAPI document: 4.12.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/quantcdn/models/chat_inference200_response_response_tool_use_one_of.py b/quantcdn/models/chat_inference200_response_response_tool_use_one_of.py index bc7d1a6..59e493e 100644 --- a/quantcdn/models/chat_inference200_response_response_tool_use_one_of.py +++ b/quantcdn/models/chat_inference200_response_response_tool_use_one_of.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.9.0 + The version of the OpenAPI document: 4.12.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/quantcdn/models/chat_inference200_response_response_tool_use_one_of1_inner.py b/quantcdn/models/chat_inference200_response_response_tool_use_one_of1_inner.py index c8b6d39..878d78a 100644 --- a/quantcdn/models/chat_inference200_response_response_tool_use_one_of1_inner.py +++ b/quantcdn/models/chat_inference200_response_response_tool_use_one_of1_inner.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.9.0 + The version of the OpenAPI document: 4.12.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/quantcdn/models/chat_inference200_response_response_tool_use_one_of_result.py b/quantcdn/models/chat_inference200_response_response_tool_use_one_of_result.py index 3b765a0..304c9e5 100644 --- a/quantcdn/models/chat_inference200_response_response_tool_use_one_of_result.py +++ b/quantcdn/models/chat_inference200_response_response_tool_use_one_of_result.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.9.0 + The version of the OpenAPI document: 4.12.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/quantcdn/models/chat_inference200_response_usage.py b/quantcdn/models/chat_inference200_response_usage.py index bd22513..fe06c87 100644 --- a/quantcdn/models/chat_inference200_response_usage.py +++ b/quantcdn/models/chat_inference200_response_usage.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.9.0 + The version of the OpenAPI document: 4.12.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/quantcdn/models/chat_inference202_response.py b/quantcdn/models/chat_inference202_response.py index 461b23a..457d216 100644 --- a/quantcdn/models/chat_inference202_response.py +++ b/quantcdn/models/chat_inference202_response.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.9.0 + The version of the OpenAPI document: 4.12.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/quantcdn/models/chat_inference_request.py b/quantcdn/models/chat_inference_request.py index a59e633..9c87b38 100644 --- a/quantcdn/models/chat_inference_request.py +++ b/quantcdn/models/chat_inference_request.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.9.0 + The version of the OpenAPI document: 4.12.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -20,6 +20,7 @@ from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictStr from typing import Any, ClassVar, Dict, List, Optional, Union from typing_extensions import Annotated +from quantcdn.models.chat_inference_request_guardrails import ChatInferenceRequestGuardrails from quantcdn.models.chat_inference_request_messages_inner import ChatInferenceRequestMessagesInner from quantcdn.models.chat_inference_request_response_format import ChatInferenceRequestResponseFormat from quantcdn.models.chat_inference_request_tool_config import ChatInferenceRequestToolConfig @@ -42,7 +43,10 @@ class ChatInferenceRequest(BaseModel): tool_config: Optional[ChatInferenceRequestToolConfig] = Field(default=None, alias="toolConfig") session_id: Optional[StrictStr] = Field(default=None, description="Optional session ID for conversation continuity. Omit to use stateless mode, include to continue an existing session.", alias="sessionId") var_async: Optional[StrictBool] = Field(default=False, description="Enable async/durable execution mode. When true, returns 202 with pollUrl instead of waiting for completion. Use for long-running inference, client-executed tools, or operations >30 seconds.", alias="async") - __properties: ClassVar[List[str]] = ["messages", "modelId", "temperature", "maxTokens", "topP", "stream", "systemPrompt", "stopSequences", "responseFormat", "toolConfig", "sessionId", "async"] + allowed_tools: Optional[List[StrictStr]] = Field(default=None, description="Top-level convenience alias for toolConfig.allowedTools. Whitelists which tools can be auto-executed.", alias="allowedTools") + guardrails: Optional[ChatInferenceRequestGuardrails] = None + long_context: Optional[StrictBool] = Field(default=False, description="Enable 1M context window support regardless of token estimation. Use when sending large payloads (>200K tokens).", alias="longContext") + __properties: ClassVar[List[str]] = ["messages", "modelId", "temperature", "maxTokens", "topP", "stream", "systemPrompt", "stopSequences", "responseFormat", "toolConfig", "sessionId", "async", "allowedTools", "guardrails", "longContext"] model_config = ConfigDict( populate_by_name=True, @@ -96,6 +100,9 @@ def to_dict(self) -> Dict[str, Any]: # override the default output from pydantic by calling `to_dict()` of tool_config if self.tool_config: _dict['toolConfig'] = self.tool_config.to_dict() + # override the default output from pydantic by calling `to_dict()` of guardrails + if self.guardrails: + _dict['guardrails'] = self.guardrails.to_dict() return _dict @classmethod @@ -119,7 +126,10 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "responseFormat": ChatInferenceRequestResponseFormat.from_dict(obj["responseFormat"]) if obj.get("responseFormat") is not None else None, "toolConfig": ChatInferenceRequestToolConfig.from_dict(obj["toolConfig"]) if obj.get("toolConfig") is not None else None, "sessionId": obj.get("sessionId"), - "async": obj.get("async") if obj.get("async") is not None else False + "async": obj.get("async") if obj.get("async") is not None else False, + "allowedTools": obj.get("allowedTools"), + "guardrails": ChatInferenceRequestGuardrails.from_dict(obj["guardrails"]) if obj.get("guardrails") is not None else None, + "longContext": obj.get("longContext") if obj.get("longContext") is not None else False }) return _obj diff --git a/quantcdn/models/chat_inference_request_guardrails.py b/quantcdn/models/chat_inference_request_guardrails.py new file mode 100644 index 0000000..ba08642 --- /dev/null +++ b/quantcdn/models/chat_inference_request_guardrails.py @@ -0,0 +1,101 @@ +# coding: utf-8 + +""" + QuantCDN API + + Unified API for QuantCDN Admin and QuantCloud Platform services + + The version of the OpenAPI document: 4.12.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr, field_validator +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class ChatInferenceRequestGuardrails(BaseModel): + """ + AWS Bedrock guardrails configuration for content filtering and safety. + """ # noqa: E501 + guardrail_identifier: Optional[StrictStr] = Field(default=None, description="Guardrail identifier from AWS Bedrock", alias="guardrailIdentifier") + guardrail_version: Optional[StrictStr] = Field(default=None, description="Guardrail version", alias="guardrailVersion") + trace: Optional[StrictStr] = Field(default=None, description="Enable guardrail trace output") + __properties: ClassVar[List[str]] = ["guardrailIdentifier", "guardrailVersion", "trace"] + + @field_validator('trace') + def trace_validate_enum(cls, value): + """Validates the enum""" + if value is None: + return value + + if value not in set(['enabled', 'disabled']): + raise ValueError("must be one of enum values ('enabled', 'disabled')") + return value + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of ChatInferenceRequestGuardrails from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of ChatInferenceRequestGuardrails from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "guardrailIdentifier": obj.get("guardrailIdentifier"), + "guardrailVersion": obj.get("guardrailVersion"), + "trace": obj.get("trace") + }) + return _obj + + diff --git a/quantcdn/models/chat_inference_request_messages_inner.py b/quantcdn/models/chat_inference_request_messages_inner.py index 816d56f..9ee63bd 100644 --- a/quantcdn/models/chat_inference_request_messages_inner.py +++ b/quantcdn/models/chat_inference_request_messages_inner.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.9.0 + The version of the OpenAPI document: 4.12.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/quantcdn/models/chat_inference_request_messages_inner_content.py b/quantcdn/models/chat_inference_request_messages_inner_content.py index 64967f1..5b8c8c3 100644 --- a/quantcdn/models/chat_inference_request_messages_inner_content.py +++ b/quantcdn/models/chat_inference_request_messages_inner_content.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.9.0 + The version of the OpenAPI document: 4.12.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/quantcdn/models/chat_inference_request_messages_inner_content_one_of_inner.py b/quantcdn/models/chat_inference_request_messages_inner_content_one_of_inner.py index 0b57d3c..79d8e07 100644 --- a/quantcdn/models/chat_inference_request_messages_inner_content_one_of_inner.py +++ b/quantcdn/models/chat_inference_request_messages_inner_content_one_of_inner.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.9.0 + The version of the OpenAPI document: 4.12.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/quantcdn/models/chat_inference_request_messages_inner_content_one_of_inner_one_of.py b/quantcdn/models/chat_inference_request_messages_inner_content_one_of_inner_one_of.py index 992a46e..04e03d4 100644 --- a/quantcdn/models/chat_inference_request_messages_inner_content_one_of_inner_one_of.py +++ b/quantcdn/models/chat_inference_request_messages_inner_content_one_of_inner_one_of.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.9.0 + The version of the OpenAPI document: 4.12.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/quantcdn/models/chat_inference_request_messages_inner_content_one_of_inner_one_of1.py b/quantcdn/models/chat_inference_request_messages_inner_content_one_of_inner_one_of1.py index 0277155..04ffb72 100644 --- a/quantcdn/models/chat_inference_request_messages_inner_content_one_of_inner_one_of1.py +++ b/quantcdn/models/chat_inference_request_messages_inner_content_one_of_inner_one_of1.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.9.0 + The version of the OpenAPI document: 4.12.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/quantcdn/models/chat_inference_request_messages_inner_content_one_of_inner_one_of1_image.py b/quantcdn/models/chat_inference_request_messages_inner_content_one_of_inner_one_of1_image.py index 6b092d8..bd921aa 100644 --- a/quantcdn/models/chat_inference_request_messages_inner_content_one_of_inner_one_of1_image.py +++ b/quantcdn/models/chat_inference_request_messages_inner_content_one_of_inner_one_of1_image.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.9.0 + The version of the OpenAPI document: 4.12.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/quantcdn/models/chat_inference_request_messages_inner_content_one_of_inner_one_of1_image_source.py b/quantcdn/models/chat_inference_request_messages_inner_content_one_of_inner_one_of1_image_source.py index 585aee0..b8cc220 100644 --- a/quantcdn/models/chat_inference_request_messages_inner_content_one_of_inner_one_of1_image_source.py +++ b/quantcdn/models/chat_inference_request_messages_inner_content_one_of_inner_one_of1_image_source.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.9.0 + The version of the OpenAPI document: 4.12.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/quantcdn/models/chat_inference_request_messages_inner_content_one_of_inner_one_of2.py b/quantcdn/models/chat_inference_request_messages_inner_content_one_of_inner_one_of2.py index d566005..5441270 100644 --- a/quantcdn/models/chat_inference_request_messages_inner_content_one_of_inner_one_of2.py +++ b/quantcdn/models/chat_inference_request_messages_inner_content_one_of_inner_one_of2.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.9.0 + The version of the OpenAPI document: 4.12.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/quantcdn/models/chat_inference_request_messages_inner_content_one_of_inner_one_of2_video.py b/quantcdn/models/chat_inference_request_messages_inner_content_one_of_inner_one_of2_video.py index 51475b3..d02a69d 100644 --- a/quantcdn/models/chat_inference_request_messages_inner_content_one_of_inner_one_of2_video.py +++ b/quantcdn/models/chat_inference_request_messages_inner_content_one_of_inner_one_of2_video.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.9.0 + The version of the OpenAPI document: 4.12.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/quantcdn/models/chat_inference_request_messages_inner_content_one_of_inner_one_of2_video_source.py b/quantcdn/models/chat_inference_request_messages_inner_content_one_of_inner_one_of2_video_source.py index 32454fb..24ddda8 100644 --- a/quantcdn/models/chat_inference_request_messages_inner_content_one_of_inner_one_of2_video_source.py +++ b/quantcdn/models/chat_inference_request_messages_inner_content_one_of_inner_one_of2_video_source.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.9.0 + The version of the OpenAPI document: 4.12.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/quantcdn/models/chat_inference_request_messages_inner_content_one_of_inner_one_of3.py b/quantcdn/models/chat_inference_request_messages_inner_content_one_of_inner_one_of3.py index b9ef762..5121280 100644 --- a/quantcdn/models/chat_inference_request_messages_inner_content_one_of_inner_one_of3.py +++ b/quantcdn/models/chat_inference_request_messages_inner_content_one_of_inner_one_of3.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.9.0 + The version of the OpenAPI document: 4.12.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/quantcdn/models/chat_inference_request_messages_inner_content_one_of_inner_one_of3_document.py b/quantcdn/models/chat_inference_request_messages_inner_content_one_of_inner_one_of3_document.py index 740e44f..ceba37a 100644 --- a/quantcdn/models/chat_inference_request_messages_inner_content_one_of_inner_one_of3_document.py +++ b/quantcdn/models/chat_inference_request_messages_inner_content_one_of_inner_one_of3_document.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.9.0 + The version of the OpenAPI document: 4.12.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/quantcdn/models/chat_inference_request_messages_inner_content_one_of_inner_one_of3_document_source.py b/quantcdn/models/chat_inference_request_messages_inner_content_one_of_inner_one_of3_document_source.py index c4af379..9ab4094 100644 --- a/quantcdn/models/chat_inference_request_messages_inner_content_one_of_inner_one_of3_document_source.py +++ b/quantcdn/models/chat_inference_request_messages_inner_content_one_of_inner_one_of3_document_source.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.9.0 + The version of the OpenAPI document: 4.12.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/quantcdn/models/chat_inference_request_response_format.py b/quantcdn/models/chat_inference_request_response_format.py index b4bdcb8..71828a0 100644 --- a/quantcdn/models/chat_inference_request_response_format.py +++ b/quantcdn/models/chat_inference_request_response_format.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.9.0 + The version of the OpenAPI document: 4.12.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/quantcdn/models/chat_inference_request_tool_config.py b/quantcdn/models/chat_inference_request_tool_config.py index f661c28..7cbfb6a 100644 --- a/quantcdn/models/chat_inference_request_tool_config.py +++ b/quantcdn/models/chat_inference_request_tool_config.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.9.0 + The version of the OpenAPI document: 4.12.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/quantcdn/models/chat_inference_request_tool_config_tools_inner.py b/quantcdn/models/chat_inference_request_tool_config_tools_inner.py index bbec911..a175eb1 100644 --- a/quantcdn/models/chat_inference_request_tool_config_tools_inner.py +++ b/quantcdn/models/chat_inference_request_tool_config_tools_inner.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.9.0 + The version of the OpenAPI document: 4.12.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/quantcdn/models/chat_inference_request_tool_config_tools_inner_tool_spec.py b/quantcdn/models/chat_inference_request_tool_config_tools_inner_tool_spec.py index b9c0b47..02aea1c 100644 --- a/quantcdn/models/chat_inference_request_tool_config_tools_inner_tool_spec.py +++ b/quantcdn/models/chat_inference_request_tool_config_tools_inner_tool_spec.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.9.0 + The version of the OpenAPI document: 4.12.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/quantcdn/models/chat_inference_request_tool_config_tools_inner_tool_spec_input_schema.py b/quantcdn/models/chat_inference_request_tool_config_tools_inner_tool_spec_input_schema.py index d94ef85..2c473f8 100644 --- a/quantcdn/models/chat_inference_request_tool_config_tools_inner_tool_spec_input_schema.py +++ b/quantcdn/models/chat_inference_request_tool_config_tools_inner_tool_spec_input_schema.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.9.0 + The version of the OpenAPI document: 4.12.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/quantcdn/models/chat_inference_stream_request.py b/quantcdn/models/chat_inference_stream_request.py index aed07cd..1d7b8c4 100644 --- a/quantcdn/models/chat_inference_stream_request.py +++ b/quantcdn/models/chat_inference_stream_request.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.9.0 + The version of the OpenAPI document: 4.12.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -20,6 +20,7 @@ from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictStr from typing import Any, ClassVar, Dict, List, Optional, Union from typing_extensions import Annotated +from quantcdn.models.chat_inference_request_guardrails import ChatInferenceRequestGuardrails from quantcdn.models.chat_inference_request_response_format import ChatInferenceRequestResponseFormat from quantcdn.models.chat_inference_request_tool_config import ChatInferenceRequestToolConfig from quantcdn.models.chat_inference_stream_request_messages_inner import ChatInferenceStreamRequestMessagesInner @@ -41,7 +42,10 @@ class ChatInferenceStreamRequest(BaseModel): tool_config: Optional[ChatInferenceRequestToolConfig] = Field(default=None, alias="toolConfig") session_id: Optional[StrictStr] = Field(default=None, description="Optional session ID for conversation continuity. Omit to use stateless mode, include to continue an existing session.", alias="sessionId") var_async: Optional[StrictBool] = Field(default=False, description="Enable async/durable execution mode. When true, returns 202 with pollUrl instead of streaming. Use for long-running inference, client-executed tools, or operations >30 seconds.", alias="async") - __properties: ClassVar[List[str]] = ["messages", "modelId", "temperature", "maxTokens", "topP", "systemPrompt", "stopSequences", "responseFormat", "toolConfig", "sessionId", "async"] + allowed_tools: Optional[List[StrictStr]] = Field(default=None, description="Top-level convenience alias for toolConfig.allowedTools. Whitelists which tools can be auto-executed.", alias="allowedTools") + guardrails: Optional[ChatInferenceRequestGuardrails] = None + long_context: Optional[StrictBool] = Field(default=False, description="Enable 1M context window support regardless of token estimation. Use when sending large payloads (>200K tokens).", alias="longContext") + __properties: ClassVar[List[str]] = ["messages", "modelId", "temperature", "maxTokens", "topP", "systemPrompt", "stopSequences", "responseFormat", "toolConfig", "sessionId", "async", "allowedTools", "guardrails", "longContext"] model_config = ConfigDict( populate_by_name=True, @@ -95,6 +99,9 @@ def to_dict(self) -> Dict[str, Any]: # override the default output from pydantic by calling `to_dict()` of tool_config if self.tool_config: _dict['toolConfig'] = self.tool_config.to_dict() + # override the default output from pydantic by calling `to_dict()` of guardrails + if self.guardrails: + _dict['guardrails'] = self.guardrails.to_dict() return _dict @classmethod @@ -117,7 +124,10 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "responseFormat": ChatInferenceRequestResponseFormat.from_dict(obj["responseFormat"]) if obj.get("responseFormat") is not None else None, "toolConfig": ChatInferenceRequestToolConfig.from_dict(obj["toolConfig"]) if obj.get("toolConfig") is not None else None, "sessionId": obj.get("sessionId"), - "async": obj.get("async") if obj.get("async") is not None else False + "async": obj.get("async") if obj.get("async") is not None else False, + "allowedTools": obj.get("allowedTools"), + "guardrails": ChatInferenceRequestGuardrails.from_dict(obj["guardrails"]) if obj.get("guardrails") is not None else None, + "longContext": obj.get("longContext") if obj.get("longContext") is not None else False }) return _obj diff --git a/quantcdn/models/chat_inference_stream_request_messages_inner.py b/quantcdn/models/chat_inference_stream_request_messages_inner.py index 0a24001..fd60a2f 100644 --- a/quantcdn/models/chat_inference_stream_request_messages_inner.py +++ b/quantcdn/models/chat_inference_stream_request_messages_inner.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.9.0 + The version of the OpenAPI document: 4.12.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/quantcdn/models/chat_inference_stream_request_messages_inner_content.py b/quantcdn/models/chat_inference_stream_request_messages_inner_content.py index 018faed..1080098 100644 --- a/quantcdn/models/chat_inference_stream_request_messages_inner_content.py +++ b/quantcdn/models/chat_inference_stream_request_messages_inner_content.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.9.0 + The version of the OpenAPI document: 4.12.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/quantcdn/models/chat_with_ai_agent200_response.py b/quantcdn/models/chat_with_ai_agent200_response.py index c1245cb..14cb2dd 100644 --- a/quantcdn/models/chat_with_ai_agent200_response.py +++ b/quantcdn/models/chat_with_ai_agent200_response.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.9.0 + The version of the OpenAPI document: 4.12.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/quantcdn/models/chat_with_ai_agent200_response_response.py b/quantcdn/models/chat_with_ai_agent200_response_response.py index 701946f..6e7fff4 100644 --- a/quantcdn/models/chat_with_ai_agent200_response_response.py +++ b/quantcdn/models/chat_with_ai_agent200_response_response.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.9.0 + The version of the OpenAPI document: 4.12.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/quantcdn/models/chat_with_ai_agent200_response_response_usage.py b/quantcdn/models/chat_with_ai_agent200_response_response_usage.py index 1cbef57..258f521 100644 --- a/quantcdn/models/chat_with_ai_agent200_response_response_usage.py +++ b/quantcdn/models/chat_with_ai_agent200_response_response_usage.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.9.0 + The version of the OpenAPI document: 4.12.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/quantcdn/models/chat_with_ai_agent202_response.py b/quantcdn/models/chat_with_ai_agent202_response.py index e5430ac..4383bed 100644 --- a/quantcdn/models/chat_with_ai_agent202_response.py +++ b/quantcdn/models/chat_with_ai_agent202_response.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.9.0 + The version of the OpenAPI document: 4.12.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/quantcdn/models/chat_with_ai_agent_request.py b/quantcdn/models/chat_with_ai_agent_request.py index 51a7e71..db49f32 100644 --- a/quantcdn/models/chat_with_ai_agent_request.py +++ b/quantcdn/models/chat_with_ai_agent_request.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.9.0 + The version of the OpenAPI document: 4.12.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/quantcdn/models/command.py b/quantcdn/models/command.py index e64c646..f6b4c88 100644 --- a/quantcdn/models/command.py +++ b/quantcdn/models/command.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.9.0 + The version of the OpenAPI document: 4.12.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/quantcdn/models/compose.py b/quantcdn/models/compose.py index e763c07..9189dd8 100644 --- a/quantcdn/models/compose.py +++ b/quantcdn/models/compose.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.9.0 + The version of the OpenAPI document: 4.12.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/quantcdn/models/container.py b/quantcdn/models/container.py index 858504a..05f4e5e 100644 --- a/quantcdn/models/container.py +++ b/quantcdn/models/container.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.9.0 + The version of the OpenAPI document: 4.12.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/quantcdn/models/container_depends_on_inner.py b/quantcdn/models/container_depends_on_inner.py index afa2bf4..4f6855b 100644 --- a/quantcdn/models/container_depends_on_inner.py +++ b/quantcdn/models/container_depends_on_inner.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.9.0 + The version of the OpenAPI document: 4.12.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/quantcdn/models/container_environment_inner.py b/quantcdn/models/container_environment_inner.py index f21d4bf..89a67ff 100644 --- a/quantcdn/models/container_environment_inner.py +++ b/quantcdn/models/container_environment_inner.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.9.0 + The version of the OpenAPI document: 4.12.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/quantcdn/models/container_health_check.py b/quantcdn/models/container_health_check.py index 64ba8ca..f6ce2ab 100644 --- a/quantcdn/models/container_health_check.py +++ b/quantcdn/models/container_health_check.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.9.0 + The version of the OpenAPI document: 4.12.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/quantcdn/models/container_image_reference.py b/quantcdn/models/container_image_reference.py index d947034..d0d8696 100644 --- a/quantcdn/models/container_image_reference.py +++ b/quantcdn/models/container_image_reference.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.9.0 + The version of the OpenAPI document: 4.12.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/quantcdn/models/container_mount_points_inner.py b/quantcdn/models/container_mount_points_inner.py index f7786c8..3b358bd 100644 --- a/quantcdn/models/container_mount_points_inner.py +++ b/quantcdn/models/container_mount_points_inner.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.9.0 + The version of the OpenAPI document: 4.12.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/quantcdn/models/container_origin_protection_config.py b/quantcdn/models/container_origin_protection_config.py index c48b9f1..7260b5c 100644 --- a/quantcdn/models/container_origin_protection_config.py +++ b/quantcdn/models/container_origin_protection_config.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.9.0 + The version of the OpenAPI document: 4.12.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/quantcdn/models/container_secrets_inner.py b/quantcdn/models/container_secrets_inner.py index a6e74d2..e025606 100644 --- a/quantcdn/models/container_secrets_inner.py +++ b/quantcdn/models/container_secrets_inner.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.9.0 + The version of the OpenAPI document: 4.12.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/quantcdn/models/crawlers_run200_response.py b/quantcdn/models/crawlers_run200_response.py index 1e5b6ce..d339a13 100644 --- a/quantcdn/models/crawlers_run200_response.py +++ b/quantcdn/models/crawlers_run200_response.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.9.0 + The version of the OpenAPI document: 4.12.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/quantcdn/models/crawlers_run_request.py b/quantcdn/models/crawlers_run_request.py index fa8d797..1a84fe1 100644 --- a/quantcdn/models/crawlers_run_request.py +++ b/quantcdn/models/crawlers_run_request.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.9.0 + The version of the OpenAPI document: 4.12.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/quantcdn/models/create_ai_agent201_response.py b/quantcdn/models/create_ai_agent201_response.py index bdccd8d..4e6a3a0 100644 --- a/quantcdn/models/create_ai_agent201_response.py +++ b/quantcdn/models/create_ai_agent201_response.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.9.0 + The version of the OpenAPI document: 4.12.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/quantcdn/models/create_ai_agent_request.py b/quantcdn/models/create_ai_agent_request.py index 192558e..5337f79 100644 --- a/quantcdn/models/create_ai_agent_request.py +++ b/quantcdn/models/create_ai_agent_request.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.9.0 + The version of the OpenAPI document: 4.12.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/quantcdn/models/create_ai_session201_response.py b/quantcdn/models/create_ai_session201_response.py index ad0abb9..d0403d6 100644 --- a/quantcdn/models/create_ai_session201_response.py +++ b/quantcdn/models/create_ai_session201_response.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.9.0 + The version of the OpenAPI document: 4.12.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/quantcdn/models/create_ai_session_request.py b/quantcdn/models/create_ai_session_request.py index af7f9df..d821a7a 100644 --- a/quantcdn/models/create_ai_session_request.py +++ b/quantcdn/models/create_ai_session_request.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.9.0 + The version of the OpenAPI document: 4.12.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/quantcdn/models/create_ai_session_request_initial_messages_inner.py b/quantcdn/models/create_ai_session_request_initial_messages_inner.py index 67ad738..9ef1ba6 100644 --- a/quantcdn/models/create_ai_session_request_initial_messages_inner.py +++ b/quantcdn/models/create_ai_session_request_initial_messages_inner.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.9.0 + The version of the OpenAPI document: 4.12.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/quantcdn/models/create_application403_response.py b/quantcdn/models/create_application403_response.py index 1c0f2c8..fbf7897 100644 --- a/quantcdn/models/create_application403_response.py +++ b/quantcdn/models/create_application403_response.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.9.0 + The version of the OpenAPI document: 4.12.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/quantcdn/models/create_application_request.py b/quantcdn/models/create_application_request.py index e872b53..7f00c97 100644 --- a/quantcdn/models/create_application_request.py +++ b/quantcdn/models/create_application_request.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.9.0 + The version of the OpenAPI document: 4.12.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/quantcdn/models/create_application_request_database.py b/quantcdn/models/create_application_request_database.py index 56b6f8e..79d8079 100644 --- a/quantcdn/models/create_application_request_database.py +++ b/quantcdn/models/create_application_request_database.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.9.0 + The version of the OpenAPI document: 4.12.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/quantcdn/models/create_application_request_environment_inner.py b/quantcdn/models/create_application_request_environment_inner.py index d22bce6..e7f978b 100644 --- a/quantcdn/models/create_application_request_environment_inner.py +++ b/quantcdn/models/create_application_request_environment_inner.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.9.0 + The version of the OpenAPI document: 4.12.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/quantcdn/models/create_application_request_filesystem.py b/quantcdn/models/create_application_request_filesystem.py index a21c634..788f018 100644 --- a/quantcdn/models/create_application_request_filesystem.py +++ b/quantcdn/models/create_application_request_filesystem.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.9.0 + The version of the OpenAPI document: 4.12.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/quantcdn/models/create_backup202_response.py b/quantcdn/models/create_backup202_response.py index e41e884..5d52f82 100644 --- a/quantcdn/models/create_backup202_response.py +++ b/quantcdn/models/create_backup202_response.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.9.0 + The version of the OpenAPI document: 4.12.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/quantcdn/models/create_backup_request.py b/quantcdn/models/create_backup_request.py index 30269cb..7272868 100644 --- a/quantcdn/models/create_backup_request.py +++ b/quantcdn/models/create_backup_request.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.9.0 + The version of the OpenAPI document: 4.12.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/quantcdn/models/create_command_request.py b/quantcdn/models/create_command_request.py index 32a4b9d..a93a732 100644 --- a/quantcdn/models/create_command_request.py +++ b/quantcdn/models/create_command_request.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.9.0 + The version of the OpenAPI document: 4.12.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/quantcdn/models/create_cron_job_request.py b/quantcdn/models/create_cron_job_request.py index 7ad1bec..8fb51b4 100644 --- a/quantcdn/models/create_cron_job_request.py +++ b/quantcdn/models/create_cron_job_request.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.9.0 + The version of the OpenAPI document: 4.12.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/quantcdn/models/create_custom_tool201_response.py b/quantcdn/models/create_custom_tool201_response.py index b9457bc..35f688d 100644 --- a/quantcdn/models/create_custom_tool201_response.py +++ b/quantcdn/models/create_custom_tool201_response.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.9.0 + The version of the OpenAPI document: 4.12.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/quantcdn/models/create_custom_tool_request.py b/quantcdn/models/create_custom_tool_request.py index 276ea8b..d0fb695 100644 --- a/quantcdn/models/create_custom_tool_request.py +++ b/quantcdn/models/create_custom_tool_request.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.9.0 + The version of the OpenAPI document: 4.12.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/quantcdn/models/create_environment403_response.py b/quantcdn/models/create_environment403_response.py index 9f0884f..b958d72 100644 --- a/quantcdn/models/create_environment403_response.py +++ b/quantcdn/models/create_environment403_response.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.9.0 + The version of the OpenAPI document: 4.12.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/quantcdn/models/create_environment_request.py b/quantcdn/models/create_environment_request.py index e7bce86..cb5a180 100644 --- a/quantcdn/models/create_environment_request.py +++ b/quantcdn/models/create_environment_request.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.9.0 + The version of the OpenAPI document: 4.12.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/quantcdn/models/create_environment_request_environment_inner.py b/quantcdn/models/create_environment_request_environment_inner.py index 5e2553b..bf9c515 100644 --- a/quantcdn/models/create_environment_request_environment_inner.py +++ b/quantcdn/models/create_environment_request_environment_inner.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.9.0 + The version of the OpenAPI document: 4.12.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/quantcdn/models/create_orchestration_request.py b/quantcdn/models/create_orchestration_request.py new file mode 100644 index 0000000..e455591 --- /dev/null +++ b/quantcdn/models/create_orchestration_request.py @@ -0,0 +1,143 @@ +# coding: utf-8 + +""" + QuantCDN API + + Unified API for QuantCDN Admin and QuantCloud Platform services + + The version of the OpenAPI document: 4.12.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from typing_extensions import Annotated +from quantcdn.models.create_orchestration_request_input_source import CreateOrchestrationRequestInputSource +from quantcdn.models.create_orchestration_request_stop_condition import CreateOrchestrationRequestStopCondition +from typing import Optional, Set +from typing_extensions import Self + +class CreateOrchestrationRequest(BaseModel): + """ + CreateOrchestrationRequest + """ # noqa: E501 + name: StrictStr = Field(description="Orchestration name") + description: Optional[StrictStr] = Field(default=None, description="Optional description") + agent_id: Optional[StrictStr] = Field(default=None, description="Agent to process items", alias="agentId") + tool_id: Optional[StrictStr] = Field(default=None, description="Tool to execute for items", alias="toolId") + workflow_id: Optional[StrictStr] = Field(default=None, description="Workflow to run for items", alias="workflowId") + input_source: CreateOrchestrationRequestInputSource = Field(alias="inputSource") + batch_size: Optional[Annotated[int, Field(le=100, strict=True, ge=1)]] = Field(default=10, description="Items per batch", alias="batchSize") + concurrency: Optional[Annotated[int, Field(le=10, strict=True, ge=1)]] = Field(default=1, description="Concurrent items within a batch") + stop_condition: Optional[CreateOrchestrationRequestStopCondition] = Field(default=None, alias="stopCondition") + assigned_skills: Optional[List[StrictStr]] = Field(default=None, description="Skill IDs to assign", alias="assignedSkills") + context: Optional[Dict[str, Any]] = Field(default=None, description="Optional context merged into each item before processing (e.g. shared credentials or endpoints)") + auto_start: Optional[StrictBool] = Field(default=True, description="Whether to start immediately", alias="autoStart") + __properties: ClassVar[List[str]] = ["name", "description", "agentId", "toolId", "workflowId", "inputSource", "batchSize", "concurrency", "stopCondition", "assignedSkills", "context", "autoStart"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of CreateOrchestrationRequest from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of input_source + if self.input_source: + _dict['inputSource'] = self.input_source.to_dict() + # override the default output from pydantic by calling `to_dict()` of stop_condition + if self.stop_condition: + _dict['stopCondition'] = self.stop_condition.to_dict() + # set to None if description (nullable) is None + # and model_fields_set contains the field + if self.description is None and "description" in self.model_fields_set: + _dict['description'] = None + + # set to None if agent_id (nullable) is None + # and model_fields_set contains the field + if self.agent_id is None and "agent_id" in self.model_fields_set: + _dict['agentId'] = None + + # set to None if tool_id (nullable) is None + # and model_fields_set contains the field + if self.tool_id is None and "tool_id" in self.model_fields_set: + _dict['toolId'] = None + + # set to None if workflow_id (nullable) is None + # and model_fields_set contains the field + if self.workflow_id is None and "workflow_id" in self.model_fields_set: + _dict['workflowId'] = None + + # set to None if context (nullable) is None + # and model_fields_set contains the field + if self.context is None and "context" in self.model_fields_set: + _dict['context'] = None + + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of CreateOrchestrationRequest from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "name": obj.get("name"), + "description": obj.get("description"), + "agentId": obj.get("agentId"), + "toolId": obj.get("toolId"), + "workflowId": obj.get("workflowId"), + "inputSource": CreateOrchestrationRequestInputSource.from_dict(obj["inputSource"]) if obj.get("inputSource") is not None else None, + "batchSize": obj.get("batchSize") if obj.get("batchSize") is not None else 10, + "concurrency": obj.get("concurrency") if obj.get("concurrency") is not None else 1, + "stopCondition": CreateOrchestrationRequestStopCondition.from_dict(obj["stopCondition"]) if obj.get("stopCondition") is not None else None, + "assignedSkills": obj.get("assignedSkills"), + "context": obj.get("context"), + "autoStart": obj.get("autoStart") if obj.get("autoStart") is not None else True + }) + return _obj + + diff --git a/quantcdn/models/create_orchestration_request_input_source.py b/quantcdn/models/create_orchestration_request_input_source.py new file mode 100644 index 0000000..02af19c --- /dev/null +++ b/quantcdn/models/create_orchestration_request_input_source.py @@ -0,0 +1,100 @@ +# coding: utf-8 + +""" + QuantCDN API + + Unified API for QuantCDN Admin and QuantCloud Platform services + + The version of the OpenAPI document: 4.12.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr, field_validator +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class CreateOrchestrationRequestInputSource(BaseModel): + """ + CreateOrchestrationRequestInputSource + """ # noqa: E501 + type: StrictStr = Field(description="Input source type (api type not yet supported)") + items: Optional[List[Dict[str, Any]]] = Field(default=None, description="Static items (for type=static)") + task_query: Optional[Dict[str, Any]] = Field(default=None, description="Task query filters (for type=task_query)", alias="taskQuery") + generator_prompt: Optional[StrictStr] = Field(default=None, description="AI prompt (for type=generator)", alias="generatorPrompt") + __properties: ClassVar[List[str]] = ["type", "items", "taskQuery", "generatorPrompt"] + + @field_validator('type') + def type_validate_enum(cls, value): + """Validates the enum""" + if value not in set(['static', 'task_query', 'generator']): + raise ValueError("must be one of enum values ('static', 'task_query', 'generator')") + return value + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of CreateOrchestrationRequestInputSource from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of CreateOrchestrationRequestInputSource from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "type": obj.get("type"), + "items": obj.get("items"), + "taskQuery": obj.get("taskQuery"), + "generatorPrompt": obj.get("generatorPrompt") + }) + return _obj + + diff --git a/quantcdn/models/create_orchestration_request_stop_condition.py b/quantcdn/models/create_orchestration_request_stop_condition.py new file mode 100644 index 0000000..e024ab4 --- /dev/null +++ b/quantcdn/models/create_orchestration_request_stop_condition.py @@ -0,0 +1,102 @@ +# coding: utf-8 + +""" + QuantCDN API + + Unified API for QuantCDN Admin and QuantCloud Platform services + + The version of the OpenAPI document: 4.12.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr, field_validator +from typing import Any, ClassVar, Dict, List, Optional +from typing_extensions import Annotated +from typing import Optional, Set +from typing_extensions import Self + +class CreateOrchestrationRequestStopCondition(BaseModel): + """ + CreateOrchestrationRequestStopCondition + """ # noqa: E501 + type: Optional[StrictStr] = 'all_complete' + max_iterations: Optional[Annotated[int, Field(strict=True, ge=1)]] = Field(default=None, description="Max iterations (for type=max_iterations)", alias="maxIterations") + condition_prompt: Optional[StrictStr] = Field(default=None, description="AI prompt to evaluate stop (for type=condition)", alias="conditionPrompt") + __properties: ClassVar[List[str]] = ["type", "maxIterations", "conditionPrompt"] + + @field_validator('type') + def type_validate_enum(cls, value): + """Validates the enum""" + if value is None: + return value + + if value not in set(['all_complete', 'max_iterations', 'condition', 'manual']): + raise ValueError("must be one of enum values ('all_complete', 'max_iterations', 'condition', 'manual')") + return value + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of CreateOrchestrationRequestStopCondition from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of CreateOrchestrationRequestStopCondition from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "type": obj.get("type") if obj.get("type") is not None else 'all_complete', + "maxIterations": obj.get("maxIterations"), + "conditionPrompt": obj.get("conditionPrompt") + }) + return _obj + + diff --git a/quantcdn/models/create_skill201_response.py b/quantcdn/models/create_skill201_response.py new file mode 100644 index 0000000..67eb8bc --- /dev/null +++ b/quantcdn/models/create_skill201_response.py @@ -0,0 +1,91 @@ +# coding: utf-8 + +""" + QuantCDN API + + Unified API for QuantCDN Admin and QuantCloud Platform services + + The version of the OpenAPI document: 4.12.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, StrictBool, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class CreateSkill201Response(BaseModel): + """ + CreateSkill201Response + """ # noqa: E501 + success: Optional[StrictBool] = None + skill: Optional[Dict[str, Any]] = None + message: Optional[StrictStr] = None + __properties: ClassVar[List[str]] = ["success", "skill", "message"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of CreateSkill201Response from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of CreateSkill201Response from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "success": obj.get("success"), + "skill": obj.get("skill"), + "message": obj.get("message") + }) + return _obj + + diff --git a/quantcdn/models/create_skill_request.py b/quantcdn/models/create_skill_request.py new file mode 100644 index 0000000..9149e34 --- /dev/null +++ b/quantcdn/models/create_skill_request.py @@ -0,0 +1,107 @@ +# coding: utf-8 + +""" + QuantCDN API + + Unified API for QuantCDN Admin and QuantCloud Platform services + + The version of the OpenAPI document: 4.12.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class CreateSkillRequest(BaseModel): + """ + CreateSkillRequest + """ # noqa: E501 + name: StrictStr + description: Optional[StrictStr] = None + content: StrictStr + trigger_condition: StrictStr = Field(alias="triggerCondition") + tags: Optional[List[StrictStr]] = None + required_tools: Optional[List[StrictStr]] = Field(default=None, alias="requiredTools") + namespace: Optional[StrictStr] = None + files: Optional[Dict[str, Any]] = None + disable_model_invocation: Optional[StrictBool] = Field(default=None, alias="disableModelInvocation") + allowed_tools: Optional[List[StrictStr]] = Field(default=None, alias="allowedTools") + installed_by: Optional[StrictStr] = Field(default=None, alias="installedBy") + __properties: ClassVar[List[str]] = ["name", "description", "content", "triggerCondition", "tags", "requiredTools", "namespace", "files", "disableModelInvocation", "allowedTools", "installedBy"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of CreateSkillRequest from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of CreateSkillRequest from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "name": obj.get("name"), + "description": obj.get("description"), + "content": obj.get("content"), + "triggerCondition": obj.get("triggerCondition"), + "tags": obj.get("tags"), + "requiredTools": obj.get("requiredTools"), + "namespace": obj.get("namespace"), + "files": obj.get("files"), + "disableModelInvocation": obj.get("disableModelInvocation"), + "allowedTools": obj.get("allowedTools"), + "installedBy": obj.get("installedBy") + }) + return _obj + + diff --git a/quantcdn/models/create_task201_response.py b/quantcdn/models/create_task201_response.py index 0a6e105..484bea4 100644 --- a/quantcdn/models/create_task201_response.py +++ b/quantcdn/models/create_task201_response.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.9.0 + The version of the OpenAPI document: 4.12.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/quantcdn/models/create_task_request.py b/quantcdn/models/create_task_request.py index 06b69f0..d40f7ab 100644 --- a/quantcdn/models/create_task_request.py +++ b/quantcdn/models/create_task_request.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.9.0 + The version of the OpenAPI document: 4.12.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/quantcdn/models/create_vector_collection201_response.py b/quantcdn/models/create_vector_collection201_response.py index 4b1e193..a536b4a 100644 --- a/quantcdn/models/create_vector_collection201_response.py +++ b/quantcdn/models/create_vector_collection201_response.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.9.0 + The version of the OpenAPI document: 4.12.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/quantcdn/models/create_vector_collection201_response_collection.py b/quantcdn/models/create_vector_collection201_response_collection.py index 700e7f5..e946178 100644 --- a/quantcdn/models/create_vector_collection201_response_collection.py +++ b/quantcdn/models/create_vector_collection201_response_collection.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.9.0 + The version of the OpenAPI document: 4.12.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/quantcdn/models/create_vector_collection_request.py b/quantcdn/models/create_vector_collection_request.py index d8aecce..d54d082 100644 --- a/quantcdn/models/create_vector_collection_request.py +++ b/quantcdn/models/create_vector_collection_request.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.9.0 + The version of the OpenAPI document: 4.12.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/quantcdn/models/create_volume_request.py b/quantcdn/models/create_volume_request.py index bea22f3..12aaaf1 100644 --- a/quantcdn/models/create_volume_request.py +++ b/quantcdn/models/create_volume_request.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.9.0 + The version of the OpenAPI document: 4.12.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/quantcdn/models/cron.py b/quantcdn/models/cron.py index cd55d1a..d369e09 100644 --- a/quantcdn/models/cron.py +++ b/quantcdn/models/cron.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.9.0 + The version of the OpenAPI document: 4.12.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/quantcdn/models/cron_run.py b/quantcdn/models/cron_run.py index 5d3eda6..6b37427 100644 --- a/quantcdn/models/cron_run.py +++ b/quantcdn/models/cron_run.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.9.0 + The version of the OpenAPI document: 4.12.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/quantcdn/models/delete_ai_agent200_response.py b/quantcdn/models/delete_ai_agent200_response.py index fb60fc8..0568772 100644 --- a/quantcdn/models/delete_ai_agent200_response.py +++ b/quantcdn/models/delete_ai_agent200_response.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.9.0 + The version of the OpenAPI document: 4.12.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/quantcdn/models/delete_ai_session200_response.py b/quantcdn/models/delete_ai_session200_response.py index 448649c..0c97d34 100644 --- a/quantcdn/models/delete_ai_session200_response.py +++ b/quantcdn/models/delete_ai_session200_response.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.9.0 + The version of the OpenAPI document: 4.12.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/quantcdn/models/delete_backup200_response.py b/quantcdn/models/delete_backup200_response.py index 9c88192..43c1e0c 100644 --- a/quantcdn/models/delete_backup200_response.py +++ b/quantcdn/models/delete_backup200_response.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.9.0 + The version of the OpenAPI document: 4.12.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/quantcdn/models/delete_custom_tool200_response.py b/quantcdn/models/delete_custom_tool200_response.py index 879fc35..42c487d 100644 --- a/quantcdn/models/delete_custom_tool200_response.py +++ b/quantcdn/models/delete_custom_tool200_response.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.9.0 + The version of the OpenAPI document: 4.12.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/quantcdn/models/delete_file200_response.py b/quantcdn/models/delete_file200_response.py index f683ea6..19d4f24 100644 --- a/quantcdn/models/delete_file200_response.py +++ b/quantcdn/models/delete_file200_response.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.9.0 + The version of the OpenAPI document: 4.12.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/quantcdn/models/delete_vector_collection200_response.py b/quantcdn/models/delete_skill200_response.py similarity index 88% rename from quantcdn/models/delete_vector_collection200_response.py rename to quantcdn/models/delete_skill200_response.py index b4c544b..8e6860e 100644 --- a/quantcdn/models/delete_vector_collection200_response.py +++ b/quantcdn/models/delete_skill200_response.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.9.0 + The version of the OpenAPI document: 4.12.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -22,9 +22,9 @@ from typing import Optional, Set from typing_extensions import Self -class DeleteVectorCollection200Response(BaseModel): +class DeleteSkill200Response(BaseModel): """ - DeleteVectorCollection200Response + DeleteSkill200Response """ # noqa: E501 success: Optional[StrictBool] = None message: Optional[StrictStr] = None @@ -48,7 +48,7 @@ def to_json(self) -> str: @classmethod def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of DeleteVectorCollection200Response from a JSON string""" + """Create an instance of DeleteSkill200Response from a JSON string""" return cls.from_dict(json.loads(json_str)) def to_dict(self) -> Dict[str, Any]: @@ -73,7 +73,7 @@ def to_dict(self) -> Dict[str, Any]: @classmethod def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of DeleteVectorCollection200Response from a dict""" + """Create an instance of DeleteSkill200Response from a dict""" if obj is None: return None diff --git a/quantcdn/models/delete_skill_collection200_response.py b/quantcdn/models/delete_skill_collection200_response.py new file mode 100644 index 0000000..e8f17f3 --- /dev/null +++ b/quantcdn/models/delete_skill_collection200_response.py @@ -0,0 +1,89 @@ +# coding: utf-8 + +""" + QuantCDN API + + Unified API for QuantCDN Admin and QuantCloud Platform services + + The version of the OpenAPI document: 4.12.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, StrictBool, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class DeleteSkillCollection200Response(BaseModel): + """ + DeleteSkillCollection200Response + """ # noqa: E501 + success: Optional[StrictBool] = None + message: Optional[StrictStr] = None + __properties: ClassVar[List[str]] = ["success", "message"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of DeleteSkillCollection200Response from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of DeleteSkillCollection200Response from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "success": obj.get("success"), + "message": obj.get("message") + }) + return _obj + + diff --git a/quantcdn/models/delete_task200_response.py b/quantcdn/models/delete_task200_response.py index 06ba1c8..c6dd2c4 100644 --- a/quantcdn/models/delete_task200_response.py +++ b/quantcdn/models/delete_task200_response.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.9.0 + The version of the OpenAPI document: 4.12.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/quantcdn/models/delete_task409_response.py b/quantcdn/models/delete_task409_response.py index 2615cd0..788adbb 100644 --- a/quantcdn/models/delete_task409_response.py +++ b/quantcdn/models/delete_task409_response.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.9.0 + The version of the OpenAPI document: 4.12.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/quantcdn/models/delete_vector_documents200_response.py b/quantcdn/models/delete_vector_documents200_response.py new file mode 100644 index 0000000..d852fda --- /dev/null +++ b/quantcdn/models/delete_vector_documents200_response.py @@ -0,0 +1,91 @@ +# coding: utf-8 + +""" + QuantCDN API + + Unified API for QuantCDN Admin and QuantCloud Platform services + + The version of the OpenAPI document: 4.12.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictInt, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class DeleteVectorDocuments200Response(BaseModel): + """ + DeleteVectorDocuments200Response + """ # noqa: E501 + message: Optional[StrictStr] = None + collection_id: Optional[StrictStr] = Field(default=None, alias="collectionId") + deleted_count: Optional[StrictInt] = Field(default=None, alias="deletedCount") + __properties: ClassVar[List[str]] = ["message", "collectionId", "deletedCount"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of DeleteVectorDocuments200Response from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of DeleteVectorDocuments200Response from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "message": obj.get("message"), + "collectionId": obj.get("collectionId"), + "deletedCount": obj.get("deletedCount") + }) + return _obj + + diff --git a/quantcdn/models/delete_vector_documents_request.py b/quantcdn/models/delete_vector_documents_request.py new file mode 100644 index 0000000..ee193b0 --- /dev/null +++ b/quantcdn/models/delete_vector_documents_request.py @@ -0,0 +1,95 @@ +# coding: utf-8 + +""" + QuantCDN API + + Unified API for QuantCDN Admin and QuantCloud Platform services + + The version of the OpenAPI document: 4.12.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from quantcdn.models.delete_vector_documents_request_metadata import DeleteVectorDocumentsRequestMetadata +from typing import Optional, Set +from typing_extensions import Self + +class DeleteVectorDocumentsRequest(BaseModel): + """ + DeleteVectorDocumentsRequest + """ # noqa: E501 + purge_all: Optional[StrictBool] = Field(default=None, description="Delete ALL documents in collection", alias="purgeAll") + document_ids: Optional[List[StrictStr]] = Field(default=None, description="Delete specific documents by UUID", alias="documentIds") + metadata: Optional[DeleteVectorDocumentsRequestMetadata] = None + __properties: ClassVar[List[str]] = ["purgeAll", "documentIds", "metadata"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of DeleteVectorDocumentsRequest from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of metadata + if self.metadata: + _dict['metadata'] = self.metadata.to_dict() + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of DeleteVectorDocumentsRequest from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "purgeAll": obj.get("purgeAll"), + "documentIds": obj.get("documentIds"), + "metadata": DeleteVectorDocumentsRequestMetadata.from_dict(obj["metadata"]) if obj.get("metadata") is not None else None + }) + return _obj + + diff --git a/quantcdn/models/delete_vector_documents_request_metadata.py b/quantcdn/models/delete_vector_documents_request_metadata.py new file mode 100644 index 0000000..4f737c0 --- /dev/null +++ b/quantcdn/models/delete_vector_documents_request_metadata.py @@ -0,0 +1,89 @@ +# coding: utf-8 + +""" + QuantCDN API + + Unified API for QuantCDN Admin and QuantCloud Platform services + + The version of the OpenAPI document: 4.12.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class DeleteVectorDocumentsRequestMetadata(BaseModel): + """ + DeleteVectorDocumentsRequestMetadata + """ # noqa: E501 + var_field: Optional[StrictStr] = Field(default=None, description="Metadata field name (e.g., 'drupal_entity_id')", alias="field") + values: Optional[List[StrictStr]] = Field(default=None, description="Values to match (OR logic)") + __properties: ClassVar[List[str]] = ["field", "values"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of DeleteVectorDocumentsRequestMetadata from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of DeleteVectorDocumentsRequestMetadata from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "field": obj.get("field"), + "values": obj.get("values") + }) + return _obj + + diff --git a/quantcdn/models/download_backup200_response.py b/quantcdn/models/download_backup200_response.py index 41b55cd..e53f8e6 100644 --- a/quantcdn/models/download_backup200_response.py +++ b/quantcdn/models/download_backup200_response.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.9.0 + The version of the OpenAPI document: 4.12.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/quantcdn/models/embeddings200_response.py b/quantcdn/models/embeddings200_response.py index 22a2216..e7d6ff2 100644 --- a/quantcdn/models/embeddings200_response.py +++ b/quantcdn/models/embeddings200_response.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.9.0 + The version of the OpenAPI document: 4.12.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/quantcdn/models/embeddings200_response_embeddings.py b/quantcdn/models/embeddings200_response_embeddings.py index 05c1a5d..816ae3d 100644 --- a/quantcdn/models/embeddings200_response_embeddings.py +++ b/quantcdn/models/embeddings200_response_embeddings.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.9.0 + The version of the OpenAPI document: 4.12.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/quantcdn/models/embeddings200_response_usage.py b/quantcdn/models/embeddings200_response_usage.py index 289a71b..4b30043 100644 --- a/quantcdn/models/embeddings200_response_usage.py +++ b/quantcdn/models/embeddings200_response_usage.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.9.0 + The version of the OpenAPI document: 4.12.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/quantcdn/models/embeddings_request.py b/quantcdn/models/embeddings_request.py index ba5c782..dc7a597 100644 --- a/quantcdn/models/embeddings_request.py +++ b/quantcdn/models/embeddings_request.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.9.0 + The version of the OpenAPI document: 4.12.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/quantcdn/models/embeddings_request_input.py b/quantcdn/models/embeddings_request_input.py index 21ae3fd..24b8fb6 100644 --- a/quantcdn/models/embeddings_request_input.py +++ b/quantcdn/models/embeddings_request_input.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.9.0 + The version of the OpenAPI document: 4.12.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/quantcdn/models/environment.py b/quantcdn/models/environment.py index b089de1..42eeaef 100644 --- a/quantcdn/models/environment.py +++ b/quantcdn/models/environment.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.9.0 + The version of the OpenAPI document: 4.12.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/quantcdn/models/environment_response.py b/quantcdn/models/environment_response.py index 60cf987..a857c4a 100644 --- a/quantcdn/models/environment_response.py +++ b/quantcdn/models/environment_response.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.9.0 + The version of the OpenAPI document: 4.12.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/quantcdn/models/environment_summary.py b/quantcdn/models/environment_summary.py index 20df429..4c012f3 100644 --- a/quantcdn/models/environment_summary.py +++ b/quantcdn/models/environment_summary.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.9.0 + The version of the OpenAPI document: 4.12.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/quantcdn/models/extend_ai_session200_response.py b/quantcdn/models/extend_ai_session200_response.py index a1bd2b8..3165b3d 100644 --- a/quantcdn/models/extend_ai_session200_response.py +++ b/quantcdn/models/extend_ai_session200_response.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.9.0 + The version of the OpenAPI document: 4.12.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/quantcdn/models/extend_ai_session_request.py b/quantcdn/models/extend_ai_session_request.py index eea1bb3..11d2769 100644 --- a/quantcdn/models/extend_ai_session_request.py +++ b/quantcdn/models/extend_ai_session_request.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.9.0 + The version of the OpenAPI document: 4.12.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/quantcdn/models/get_ai_agent200_response.py b/quantcdn/models/get_ai_agent200_response.py index f74ddf3..73a294f 100644 --- a/quantcdn/models/get_ai_agent200_response.py +++ b/quantcdn/models/get_ai_agent200_response.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.9.0 + The version of the OpenAPI document: 4.12.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/quantcdn/models/get_ai_agent200_response_agent.py b/quantcdn/models/get_ai_agent200_response_agent.py index 95dd1ab..415e735 100644 --- a/quantcdn/models/get_ai_agent200_response_agent.py +++ b/quantcdn/models/get_ai_agent200_response_agent.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.9.0 + The version of the OpenAPI document: 4.12.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/quantcdn/models/get_ai_model200_response.py b/quantcdn/models/get_ai_model200_response.py index 3671914..2c24ede 100644 --- a/quantcdn/models/get_ai_model200_response.py +++ b/quantcdn/models/get_ai_model200_response.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.9.0 + The version of the OpenAPI document: 4.12.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/quantcdn/models/get_ai_model200_response_capabilities.py b/quantcdn/models/get_ai_model200_response_capabilities.py index 6d60125..2489530 100644 --- a/quantcdn/models/get_ai_model200_response_capabilities.py +++ b/quantcdn/models/get_ai_model200_response_capabilities.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.9.0 + The version of the OpenAPI document: 4.12.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/quantcdn/models/get_ai_model200_response_pricing.py b/quantcdn/models/get_ai_model200_response_pricing.py index a1c6a2d..0e799cf 100644 --- a/quantcdn/models/get_ai_model200_response_pricing.py +++ b/quantcdn/models/get_ai_model200_response_pricing.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.9.0 + The version of the OpenAPI document: 4.12.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/quantcdn/models/get_ai_model404_response.py b/quantcdn/models/get_ai_model404_response.py index bcc747c..512e03e 100644 --- a/quantcdn/models/get_ai_model404_response.py +++ b/quantcdn/models/get_ai_model404_response.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.9.0 + The version of the OpenAPI document: 4.12.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/quantcdn/models/get_ai_orchestration_status200_response.py b/quantcdn/models/get_ai_orchestration_status200_response.py index ae49d56..e6ac2a6 100644 --- a/quantcdn/models/get_ai_orchestration_status200_response.py +++ b/quantcdn/models/get_ai_orchestration_status200_response.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.9.0 + The version of the OpenAPI document: 4.12.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/quantcdn/models/get_ai_orchestration_status200_response_tools_inner.py b/quantcdn/models/get_ai_orchestration_status200_response_tools_inner.py index ff6a83d..40c3178 100644 --- a/quantcdn/models/get_ai_orchestration_status200_response_tools_inner.py +++ b/quantcdn/models/get_ai_orchestration_status200_response_tools_inner.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.9.0 + The version of the OpenAPI document: 4.12.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/quantcdn/models/get_ai_orchestration_status404_response.py b/quantcdn/models/get_ai_orchestration_status404_response.py index 2e66e01..3182596 100644 --- a/quantcdn/models/get_ai_orchestration_status404_response.py +++ b/quantcdn/models/get_ai_orchestration_status404_response.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.9.0 + The version of the OpenAPI document: 4.12.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/quantcdn/models/get_ai_session200_response.py b/quantcdn/models/get_ai_session200_response.py index cdb722a..d380574 100644 --- a/quantcdn/models/get_ai_session200_response.py +++ b/quantcdn/models/get_ai_session200_response.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.9.0 + The version of the OpenAPI document: 4.12.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/quantcdn/models/get_ai_tool_execution_status200_response.py b/quantcdn/models/get_ai_tool_execution_status200_response.py index d8d598a..23bc917 100644 --- a/quantcdn/models/get_ai_tool_execution_status200_response.py +++ b/quantcdn/models/get_ai_tool_execution_status200_response.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.9.0 + The version of the OpenAPI document: 4.12.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/quantcdn/models/get_ai_tool_execution_status200_response_result.py b/quantcdn/models/get_ai_tool_execution_status200_response_result.py index b8c742e..7ea7efd 100644 --- a/quantcdn/models/get_ai_tool_execution_status200_response_result.py +++ b/quantcdn/models/get_ai_tool_execution_status200_response_result.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.9.0 + The version of the OpenAPI document: 4.12.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/quantcdn/models/get_ai_tool_execution_status404_response.py b/quantcdn/models/get_ai_tool_execution_status404_response.py index 138fc1d..72b0046 100644 --- a/quantcdn/models/get_ai_tool_execution_status404_response.py +++ b/quantcdn/models/get_ai_tool_execution_status404_response.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.9.0 + The version of the OpenAPI document: 4.12.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/quantcdn/models/get_ai_usage_stats200_response.py b/quantcdn/models/get_ai_usage_stats200_response.py index c9cbaff..41243c5 100644 --- a/quantcdn/models/get_ai_usage_stats200_response.py +++ b/quantcdn/models/get_ai_usage_stats200_response.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.9.0 + The version of the OpenAPI document: 4.12.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/quantcdn/models/get_ai_usage_stats200_response_by_model_value.py b/quantcdn/models/get_ai_usage_stats200_response_by_model_value.py index e8b8ba3..b40a781 100644 --- a/quantcdn/models/get_ai_usage_stats200_response_by_model_value.py +++ b/quantcdn/models/get_ai_usage_stats200_response_by_model_value.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.9.0 + The version of the OpenAPI document: 4.12.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/quantcdn/models/get_dependency_graph200_response.py b/quantcdn/models/get_dependency_graph200_response.py index e7353f6..70e5629 100644 --- a/quantcdn/models/get_dependency_graph200_response.py +++ b/quantcdn/models/get_dependency_graph200_response.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.9.0 + The version of the OpenAPI document: 4.12.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/quantcdn/models/get_durable_execution_status200_response.py b/quantcdn/models/get_durable_execution_status200_response.py index 444b32f..40f8af4 100644 --- a/quantcdn/models/get_durable_execution_status200_response.py +++ b/quantcdn/models/get_durable_execution_status200_response.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.9.0 + The version of the OpenAPI document: 4.12.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/quantcdn/models/get_durable_execution_status200_response_error.py b/quantcdn/models/get_durable_execution_status200_response_error.py index 9c23434..e2a0a76 100644 --- a/quantcdn/models/get_durable_execution_status200_response_error.py +++ b/quantcdn/models/get_durable_execution_status200_response_error.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.9.0 + The version of the OpenAPI document: 4.12.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/quantcdn/models/get_durable_execution_status200_response_pending_tools_inner.py b/quantcdn/models/get_durable_execution_status200_response_pending_tools_inner.py index 239ce91..b88dea1 100644 --- a/quantcdn/models/get_durable_execution_status200_response_pending_tools_inner.py +++ b/quantcdn/models/get_durable_execution_status200_response_pending_tools_inner.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.9.0 + The version of the OpenAPI document: 4.12.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/quantcdn/models/get_durable_execution_status200_response_result.py b/quantcdn/models/get_durable_execution_status200_response_result.py index eb0e164..ef61cc7 100644 --- a/quantcdn/models/get_durable_execution_status200_response_result.py +++ b/quantcdn/models/get_durable_execution_status200_response_result.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.9.0 + The version of the OpenAPI document: 4.12.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/quantcdn/models/get_durable_execution_status200_response_result_response.py b/quantcdn/models/get_durable_execution_status200_response_result_response.py index 40090b5..089344b 100644 --- a/quantcdn/models/get_durable_execution_status200_response_result_response.py +++ b/quantcdn/models/get_durable_execution_status200_response_result_response.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.9.0 + The version of the OpenAPI document: 4.12.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/quantcdn/models/get_durable_execution_status200_response_result_usage.py b/quantcdn/models/get_durable_execution_status200_response_result_usage.py index d154aef..7251f8f 100644 --- a/quantcdn/models/get_durable_execution_status200_response_result_usage.py +++ b/quantcdn/models/get_durable_execution_status200_response_result_usage.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.9.0 + The version of the OpenAPI document: 4.12.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/quantcdn/models/get_ecr_login_credentials200_response.py b/quantcdn/models/get_ecr_login_credentials200_response.py index fb725ce..d8a5899 100644 --- a/quantcdn/models/get_ecr_login_credentials200_response.py +++ b/quantcdn/models/get_ecr_login_credentials200_response.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.9.0 + The version of the OpenAPI document: 4.12.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/quantcdn/models/get_environment_logs200_response.py b/quantcdn/models/get_environment_logs200_response.py index 83bf084..404e005 100644 --- a/quantcdn/models/get_environment_logs200_response.py +++ b/quantcdn/models/get_environment_logs200_response.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.9.0 + The version of the OpenAPI document: 4.12.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/quantcdn/models/get_environment_logs200_response_log_events_inner.py b/quantcdn/models/get_environment_logs200_response_log_events_inner.py index 93f786a..ba38b87 100644 --- a/quantcdn/models/get_environment_logs200_response_log_events_inner.py +++ b/quantcdn/models/get_environment_logs200_response_log_events_inner.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.9.0 + The version of the OpenAPI document: 4.12.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/quantcdn/models/get_file200_response.py b/quantcdn/models/get_file200_response.py index b688972..dc54bd9 100644 --- a/quantcdn/models/get_file200_response.py +++ b/quantcdn/models/get_file200_response.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.9.0 + The version of the OpenAPI document: 4.12.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/quantcdn/models/get_skill200_response.py b/quantcdn/models/get_skill200_response.py new file mode 100644 index 0000000..6ebf640 --- /dev/null +++ b/quantcdn/models/get_skill200_response.py @@ -0,0 +1,91 @@ +# coding: utf-8 + +""" + QuantCDN API + + Unified API for QuantCDN Admin and QuantCloud Platform services + + The version of the OpenAPI document: 4.12.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict +from typing import Any, ClassVar, Dict, List, Optional +from quantcdn.models.get_skill200_response_skill import GetSkill200ResponseSkill +from typing import Optional, Set +from typing_extensions import Self + +class GetSkill200Response(BaseModel): + """ + GetSkill200Response + """ # noqa: E501 + skill: Optional[GetSkill200ResponseSkill] = None + __properties: ClassVar[List[str]] = ["skill"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of GetSkill200Response from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of skill + if self.skill: + _dict['skill'] = self.skill.to_dict() + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of GetSkill200Response from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "skill": GetSkill200ResponseSkill.from_dict(obj["skill"]) if obj.get("skill") is not None else None + }) + return _obj + + diff --git a/quantcdn/models/get_skill200_response_skill.py b/quantcdn/models/get_skill200_response_skill.py new file mode 100644 index 0000000..462abe0 --- /dev/null +++ b/quantcdn/models/get_skill200_response_skill.py @@ -0,0 +1,114 @@ +# coding: utf-8 + +""" + QuantCDN API + + Unified API for QuantCDN Admin and QuantCloud Platform services + + The version of the OpenAPI document: 4.12.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from datetime import datetime +from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class GetSkill200ResponseSkill(BaseModel): + """ + GetSkill200ResponseSkill + """ # noqa: E501 + skill_id: Optional[StrictStr] = Field(default=None, alias="skillId") + name: Optional[StrictStr] = None + description: Optional[StrictStr] = None + content: Optional[StrictStr] = None + trigger_condition: Optional[StrictStr] = Field(default=None, alias="triggerCondition") + tags: Optional[List[StrictStr]] = None + source: Optional[Dict[str, Any]] = None + required_tools: Optional[List[StrictStr]] = Field(default=None, alias="requiredTools") + files: Optional[Dict[str, Any]] = None + namespace: Optional[StrictStr] = None + disable_model_invocation: Optional[StrictBool] = Field(default=None, alias="disableModelInvocation") + allowed_tools: Optional[List[StrictStr]] = Field(default=None, alias="allowedTools") + installed_at: Optional[datetime] = Field(default=None, alias="installedAt") + updated_at: Optional[datetime] = Field(default=None, alias="updatedAt") + __properties: ClassVar[List[str]] = ["skillId", "name", "description", "content", "triggerCondition", "tags", "source", "requiredTools", "files", "namespace", "disableModelInvocation", "allowedTools", "installedAt", "updatedAt"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of GetSkill200ResponseSkill from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of GetSkill200ResponseSkill from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "skillId": obj.get("skillId"), + "name": obj.get("name"), + "description": obj.get("description"), + "content": obj.get("content"), + "triggerCondition": obj.get("triggerCondition"), + "tags": obj.get("tags"), + "source": obj.get("source"), + "requiredTools": obj.get("requiredTools"), + "files": obj.get("files"), + "namespace": obj.get("namespace"), + "disableModelInvocation": obj.get("disableModelInvocation"), + "allowedTools": obj.get("allowedTools"), + "installedAt": obj.get("installedAt"), + "updatedAt": obj.get("updatedAt") + }) + return _obj + + diff --git a/quantcdn/models/get_ssh_access_credentials200_response.py b/quantcdn/models/get_ssh_access_credentials200_response.py index 5d01761..ff3814a 100644 --- a/quantcdn/models/get_ssh_access_credentials200_response.py +++ b/quantcdn/models/get_ssh_access_credentials200_response.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.9.0 + The version of the OpenAPI document: 4.12.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/quantcdn/models/get_ssh_access_credentials200_response_credentials.py b/quantcdn/models/get_ssh_access_credentials200_response_credentials.py index 35318a2..971b5e1 100644 --- a/quantcdn/models/get_ssh_access_credentials200_response_credentials.py +++ b/quantcdn/models/get_ssh_access_credentials200_response_credentials.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.9.0 + The version of the OpenAPI document: 4.12.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/quantcdn/models/get_task200_response.py b/quantcdn/models/get_task200_response.py index a9778ef..2f892b1 100644 --- a/quantcdn/models/get_task200_response.py +++ b/quantcdn/models/get_task200_response.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.9.0 + The version of the OpenAPI document: 4.12.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/quantcdn/models/get_vector_collection200_response.py b/quantcdn/models/get_vector_collection200_response.py index 4f4208e..73c6cac 100644 --- a/quantcdn/models/get_vector_collection200_response.py +++ b/quantcdn/models/get_vector_collection200_response.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.9.0 + The version of the OpenAPI document: 4.12.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/quantcdn/models/get_vector_collection200_response_collection.py b/quantcdn/models/get_vector_collection200_response_collection.py index a41cf4a..8d372c9 100644 --- a/quantcdn/models/get_vector_collection200_response_collection.py +++ b/quantcdn/models/get_vector_collection200_response_collection.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.9.0 + The version of the OpenAPI document: 4.12.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/quantcdn/models/image_generation200_response.py b/quantcdn/models/image_generation200_response.py index 2d07da6..cc64d31 100644 --- a/quantcdn/models/image_generation200_response.py +++ b/quantcdn/models/image_generation200_response.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.9.0 + The version of the OpenAPI document: 4.12.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/quantcdn/models/image_generation_request.py b/quantcdn/models/image_generation_request.py index bac37b4..4ff2588 100644 --- a/quantcdn/models/image_generation_request.py +++ b/quantcdn/models/image_generation_request.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.9.0 + The version of the OpenAPI document: 4.12.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/quantcdn/models/image_generation_request_background_removal_params.py b/quantcdn/models/image_generation_request_background_removal_params.py index d326ad9..0320d68 100644 --- a/quantcdn/models/image_generation_request_background_removal_params.py +++ b/quantcdn/models/image_generation_request_background_removal_params.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.9.0 + The version of the OpenAPI document: 4.12.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/quantcdn/models/image_generation_request_color_guided_generation_params.py b/quantcdn/models/image_generation_request_color_guided_generation_params.py index 9ed8125..92cc90f 100644 --- a/quantcdn/models/image_generation_request_color_guided_generation_params.py +++ b/quantcdn/models/image_generation_request_color_guided_generation_params.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.9.0 + The version of the OpenAPI document: 4.12.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/quantcdn/models/image_generation_request_image_generation_config.py b/quantcdn/models/image_generation_request_image_generation_config.py index f231ae2..c08396a 100644 --- a/quantcdn/models/image_generation_request_image_generation_config.py +++ b/quantcdn/models/image_generation_request_image_generation_config.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.9.0 + The version of the OpenAPI document: 4.12.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/quantcdn/models/image_generation_request_image_variation_params.py b/quantcdn/models/image_generation_request_image_variation_params.py index 30d8a0c..6d4d24a 100644 --- a/quantcdn/models/image_generation_request_image_variation_params.py +++ b/quantcdn/models/image_generation_request_image_variation_params.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.9.0 + The version of the OpenAPI document: 4.12.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/quantcdn/models/image_generation_request_in_painting_params.py b/quantcdn/models/image_generation_request_in_painting_params.py index 0270da6..55ba9a2 100644 --- a/quantcdn/models/image_generation_request_in_painting_params.py +++ b/quantcdn/models/image_generation_request_in_painting_params.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.9.0 + The version of the OpenAPI document: 4.12.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/quantcdn/models/image_generation_request_out_painting_params.py b/quantcdn/models/image_generation_request_out_painting_params.py index 447b397..77298b3 100644 --- a/quantcdn/models/image_generation_request_out_painting_params.py +++ b/quantcdn/models/image_generation_request_out_painting_params.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.9.0 + The version of the OpenAPI document: 4.12.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/quantcdn/models/image_generation_request_text_to_image_params.py b/quantcdn/models/image_generation_request_text_to_image_params.py index 63e0b0a..2d8c0c2 100644 --- a/quantcdn/models/image_generation_request_text_to_image_params.py +++ b/quantcdn/models/image_generation_request_text_to_image_params.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.9.0 + The version of the OpenAPI document: 4.12.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/quantcdn/models/import_skill201_response.py b/quantcdn/models/import_skill201_response.py new file mode 100644 index 0000000..5a8c473 --- /dev/null +++ b/quantcdn/models/import_skill201_response.py @@ -0,0 +1,89 @@ +# coding: utf-8 + +""" + QuantCDN API + + Unified API for QuantCDN Admin and QuantCloud Platform services + + The version of the OpenAPI document: 4.12.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class ImportSkill201Response(BaseModel): + """ + ImportSkill201Response + """ # noqa: E501 + skill: Optional[Dict[str, Any]] = None + message: Optional[StrictStr] = None + __properties: ClassVar[List[str]] = ["skill", "message"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of ImportSkill201Response from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of ImportSkill201Response from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "skill": obj.get("skill"), + "message": obj.get("message") + }) + return _obj + + diff --git a/quantcdn/models/import_skill_collection201_response.py b/quantcdn/models/import_skill_collection201_response.py new file mode 100644 index 0000000..34022fe --- /dev/null +++ b/quantcdn/models/import_skill_collection201_response.py @@ -0,0 +1,95 @@ +# coding: utf-8 + +""" + QuantCDN API + + Unified API for QuantCDN Admin and QuantCloud Platform services + + The version of the OpenAPI document: 4.12.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, StrictInt, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class ImportSkillCollection201Response(BaseModel): + """ + ImportSkillCollection201Response + """ # noqa: E501 + namespace: Optional[StrictStr] = None + imported: Optional[StrictInt] = None + failed: Optional[StrictInt] = None + skills: Optional[List[Dict[str, Any]]] = None + errors: Optional[List[Dict[str, Any]]] = None + __properties: ClassVar[List[str]] = ["namespace", "imported", "failed", "skills", "errors"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of ImportSkillCollection201Response from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of ImportSkillCollection201Response from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "namespace": obj.get("namespace"), + "imported": obj.get("imported"), + "failed": obj.get("failed"), + "skills": obj.get("skills"), + "errors": obj.get("errors") + }) + return _obj + + diff --git a/quantcdn/models/import_skill_collection_request.py b/quantcdn/models/import_skill_collection_request.py new file mode 100644 index 0000000..7b66bfc --- /dev/null +++ b/quantcdn/models/import_skill_collection_request.py @@ -0,0 +1,105 @@ +# coding: utf-8 + +""" + QuantCDN API + + Unified API for QuantCDN Admin and QuantCloud Platform services + + The version of the OpenAPI document: 4.12.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr, field_validator +from typing import Any, ClassVar, Dict, List, Optional +from typing_extensions import Annotated +from quantcdn.models.import_skill_collection_request_source import ImportSkillCollectionRequestSource +from typing import Optional, Set +from typing_extensions import Self + +class ImportSkillCollectionRequest(BaseModel): + """ + ImportSkillCollectionRequest + """ # noqa: E501 + namespace: Annotated[str, Field(strict=True)] + source: ImportSkillCollectionRequestSource + tags: Optional[List[StrictStr]] = None + installed_by: Optional[StrictStr] = Field(default=None, alias="installedBy") + __properties: ClassVar[List[str]] = ["namespace", "source", "tags", "installedBy"] + + @field_validator('namespace') + def namespace_validate_regular_expression(cls, value): + """Validates the regular expression""" + if not re.match(r"^[a-z0-9][a-z0-9-]{0,62}[a-z0-9]$", value): + raise ValueError(r"must validate the regular expression /^[a-z0-9][a-z0-9-]{0,62}[a-z0-9]$/") + return value + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of ImportSkillCollectionRequest from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of source + if self.source: + _dict['source'] = self.source.to_dict() + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of ImportSkillCollectionRequest from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "namespace": obj.get("namespace"), + "source": ImportSkillCollectionRequestSource.from_dict(obj["source"]) if obj.get("source") is not None else None, + "tags": obj.get("tags"), + "installedBy": obj.get("installedBy") + }) + return _obj + + diff --git a/quantcdn/models/import_skill_collection_request_source.py b/quantcdn/models/import_skill_collection_request_source.py new file mode 100644 index 0000000..3e61ee5 --- /dev/null +++ b/quantcdn/models/import_skill_collection_request_source.py @@ -0,0 +1,100 @@ +# coding: utf-8 + +""" + QuantCDN API + + Unified API for QuantCDN Admin and QuantCloud Platform services + + The version of the OpenAPI document: 4.12.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, StrictStr, field_validator +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class ImportSkillCollectionRequestSource(BaseModel): + """ + ImportSkillCollectionRequestSource + """ # noqa: E501 + type: StrictStr + repo: StrictStr + path: Optional[StrictStr] = None + version: Optional[StrictStr] = None + __properties: ClassVar[List[str]] = ["type", "repo", "path", "version"] + + @field_validator('type') + def type_validate_enum(cls, value): + """Validates the enum""" + if value not in set(['github']): + raise ValueError("must be one of enum values ('github')") + return value + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of ImportSkillCollectionRequestSource from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of ImportSkillCollectionRequestSource from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "type": obj.get("type"), + "repo": obj.get("repo"), + "path": obj.get("path"), + "version": obj.get("version") + }) + return _obj + + diff --git a/quantcdn/models/import_skill_request.py b/quantcdn/models/import_skill_request.py new file mode 100644 index 0000000..64eb34b --- /dev/null +++ b/quantcdn/models/import_skill_request.py @@ -0,0 +1,107 @@ +# coding: utf-8 + +""" + QuantCDN API + + Unified API for QuantCDN Admin and QuantCloud Platform services + + The version of the OpenAPI document: 4.12.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from quantcdn.models.import_skill_request_source import ImportSkillRequestSource +from typing import Optional, Set +from typing_extensions import Self + +class ImportSkillRequest(BaseModel): + """ + ImportSkillRequest + """ # noqa: E501 + source: ImportSkillRequestSource + name: Optional[StrictStr] = None + description: Optional[StrictStr] = None + tags: Optional[List[StrictStr]] = None + trigger_condition: Optional[StrictStr] = Field(default=None, alias="triggerCondition") + required_tools: Optional[List[StrictStr]] = Field(default=None, alias="requiredTools") + disable_model_invocation: Optional[StrictBool] = Field(default=None, alias="disableModelInvocation") + allowed_tools: Optional[List[StrictStr]] = Field(default=None, alias="allowedTools") + installed_by: Optional[StrictStr] = Field(default=None, alias="installedBy") + __properties: ClassVar[List[str]] = ["source", "name", "description", "tags", "triggerCondition", "requiredTools", "disableModelInvocation", "allowedTools", "installedBy"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of ImportSkillRequest from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of source + if self.source: + _dict['source'] = self.source.to_dict() + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of ImportSkillRequest from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "source": ImportSkillRequestSource.from_dict(obj["source"]) if obj.get("source") is not None else None, + "name": obj.get("name"), + "description": obj.get("description"), + "tags": obj.get("tags"), + "triggerCondition": obj.get("triggerCondition"), + "requiredTools": obj.get("requiredTools"), + "disableModelInvocation": obj.get("disableModelInvocation"), + "allowedTools": obj.get("allowedTools"), + "installedBy": obj.get("installedBy") + }) + return _obj + + diff --git a/quantcdn/models/import_skill_request_source.py b/quantcdn/models/import_skill_request_source.py new file mode 100644 index 0000000..eedb3ac --- /dev/null +++ b/quantcdn/models/import_skill_request_source.py @@ -0,0 +1,102 @@ +# coding: utf-8 + +""" + QuantCDN API + + Unified API for QuantCDN Admin and QuantCloud Platform services + + The version of the OpenAPI document: 4.12.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, StrictStr, field_validator +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class ImportSkillRequestSource(BaseModel): + """ + ImportSkillRequestSource + """ # noqa: E501 + type: StrictStr + url: Optional[StrictStr] = None + repo: Optional[StrictStr] = None + path: Optional[StrictStr] = None + version: Optional[StrictStr] = None + __properties: ClassVar[List[str]] = ["type", "url", "repo", "path", "version"] + + @field_validator('type') + def type_validate_enum(cls, value): + """Validates the enum""" + if value not in set(['skills.sh', 'github']): + raise ValueError("must be one of enum values ('skills.sh', 'github')") + return value + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of ImportSkillRequestSource from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of ImportSkillRequestSource from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "type": obj.get("type"), + "url": obj.get("url"), + "repo": obj.get("repo"), + "path": obj.get("path"), + "version": obj.get("version") + }) + return _obj + + diff --git a/quantcdn/models/kv_items_create200_response.py b/quantcdn/models/kv_items_create200_response.py index 0e9ba83..3214427 100644 --- a/quantcdn/models/kv_items_create200_response.py +++ b/quantcdn/models/kv_items_create200_response.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.9.0 + The version of the OpenAPI document: 4.12.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/quantcdn/models/kv_items_delete200_response.py b/quantcdn/models/kv_items_delete200_response.py index b07850c..23b6658 100644 --- a/quantcdn/models/kv_items_delete200_response.py +++ b/quantcdn/models/kv_items_delete200_response.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.9.0 + The version of the OpenAPI document: 4.12.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/quantcdn/models/kv_items_show200_response.py b/quantcdn/models/kv_items_show200_response.py index 8e706c0..74a7ca2 100644 --- a/quantcdn/models/kv_items_show200_response.py +++ b/quantcdn/models/kv_items_show200_response.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.9.0 + The version of the OpenAPI document: 4.12.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/quantcdn/models/kv_items_show200_response_value.py b/quantcdn/models/kv_items_show200_response_value.py index 91b6099..b08557d 100644 --- a/quantcdn/models/kv_items_show200_response_value.py +++ b/quantcdn/models/kv_items_show200_response_value.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.9.0 + The version of the OpenAPI document: 4.12.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/quantcdn/models/kv_link_to_project200_response.py b/quantcdn/models/kv_link_to_project200_response.py new file mode 100644 index 0000000..4da6807 --- /dev/null +++ b/quantcdn/models/kv_link_to_project200_response.py @@ -0,0 +1,89 @@ +# coding: utf-8 + +""" + QuantCDN API + + Unified API for QuantCDN Admin and QuantCloud Platform services + + The version of the OpenAPI document: 4.12.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, StrictBool, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class KVLinkToProject200Response(BaseModel): + """ + KVLinkToProject200Response + """ # noqa: E501 + success: Optional[StrictBool] = None + message: Optional[StrictStr] = None + __properties: ClassVar[List[str]] = ["success", "message"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of KVLinkToProject200Response from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of KVLinkToProject200Response from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "success": obj.get("success"), + "message": obj.get("message") + }) + return _obj + + diff --git a/quantcdn/models/kv_link_to_project_request.py b/quantcdn/models/kv_link_to_project_request.py new file mode 100644 index 0000000..0bd1e25 --- /dev/null +++ b/quantcdn/models/kv_link_to_project_request.py @@ -0,0 +1,87 @@ +# coding: utf-8 + +""" + QuantCDN API + + Unified API for QuantCDN Admin and QuantCloud Platform services + + The version of the OpenAPI document: 4.12.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictInt +from typing import Any, ClassVar, Dict, List +from typing import Optional, Set +from typing_extensions import Self + +class KVLinkToProjectRequest(BaseModel): + """ + KVLinkToProjectRequest + """ # noqa: E501 + project_id: StrictInt = Field(description="Target project ID to link to") + __properties: ClassVar[List[str]] = ["project_id"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of KVLinkToProjectRequest from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of KVLinkToProjectRequest from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "project_id": obj.get("project_id") + }) + return _obj + + diff --git a/quantcdn/models/list_ai_agents200_response.py b/quantcdn/models/list_ai_agents200_response.py index 60037c1..0743f9d 100644 --- a/quantcdn/models/list_ai_agents200_response.py +++ b/quantcdn/models/list_ai_agents200_response.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.9.0 + The version of the OpenAPI document: 4.12.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/quantcdn/models/list_ai_agents200_response_agents_inner.py b/quantcdn/models/list_ai_agents200_response_agents_inner.py index e2a2442..01f4809 100644 --- a/quantcdn/models/list_ai_agents200_response_agents_inner.py +++ b/quantcdn/models/list_ai_agents200_response_agents_inner.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.9.0 + The version of the OpenAPI document: 4.12.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/quantcdn/models/list_ai_models200_response.py b/quantcdn/models/list_ai_models200_response.py index 325343a..70cf83a 100644 --- a/quantcdn/models/list_ai_models200_response.py +++ b/quantcdn/models/list_ai_models200_response.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.9.0 + The version of the OpenAPI document: 4.12.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/quantcdn/models/list_ai_models200_response_models_inner.py b/quantcdn/models/list_ai_models200_response_models_inner.py index 6e5afaa..bb7f843 100644 --- a/quantcdn/models/list_ai_models200_response_models_inner.py +++ b/quantcdn/models/list_ai_models200_response_models_inner.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.9.0 + The version of the OpenAPI document: 4.12.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/quantcdn/models/list_ai_models200_response_models_inner_capabilities.py b/quantcdn/models/list_ai_models200_response_models_inner_capabilities.py index baad9ed..6f174e1 100644 --- a/quantcdn/models/list_ai_models200_response_models_inner_capabilities.py +++ b/quantcdn/models/list_ai_models200_response_models_inner_capabilities.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.9.0 + The version of the OpenAPI document: 4.12.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/quantcdn/models/list_ai_sessions200_response_inner.py b/quantcdn/models/list_ai_sessions200_response_inner.py index 07647ea..e5442dc 100644 --- a/quantcdn/models/list_ai_sessions200_response_inner.py +++ b/quantcdn/models/list_ai_sessions200_response_inner.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.9.0 + The version of the OpenAPI document: 4.12.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/quantcdn/models/list_ai_tool_executions200_response.py b/quantcdn/models/list_ai_tool_executions200_response.py index b4950a1..31b2dc7 100644 --- a/quantcdn/models/list_ai_tool_executions200_response.py +++ b/quantcdn/models/list_ai_tool_executions200_response.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.9.0 + The version of the OpenAPI document: 4.12.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/quantcdn/models/list_ai_tool_executions200_response_executions_inner.py b/quantcdn/models/list_ai_tool_executions200_response_executions_inner.py index 71feea4..9688bd5 100644 --- a/quantcdn/models/list_ai_tool_executions200_response_executions_inner.py +++ b/quantcdn/models/list_ai_tool_executions200_response_executions_inner.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.9.0 + The version of the OpenAPI document: 4.12.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/quantcdn/models/list_ai_tool_names200_response.py b/quantcdn/models/list_ai_tool_names200_response.py index 65138b7..dfa3744 100644 --- a/quantcdn/models/list_ai_tool_names200_response.py +++ b/quantcdn/models/list_ai_tool_names200_response.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.9.0 + The version of the OpenAPI document: 4.12.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/quantcdn/models/list_ai_tools200_response.py b/quantcdn/models/list_ai_tools200_response.py index e47189e..b830867 100644 --- a/quantcdn/models/list_ai_tools200_response.py +++ b/quantcdn/models/list_ai_tools200_response.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.9.0 + The version of the OpenAPI document: 4.12.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/quantcdn/models/list_ai_tools200_response_tools_inner.py b/quantcdn/models/list_ai_tools200_response_tools_inner.py index 4354b33..cc314bd 100644 --- a/quantcdn/models/list_ai_tools200_response_tools_inner.py +++ b/quantcdn/models/list_ai_tools200_response_tools_inner.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.9.0 + The version of the OpenAPI document: 4.12.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/quantcdn/models/list_ai_tools200_response_tools_inner_tool_spec.py b/quantcdn/models/list_ai_tools200_response_tools_inner_tool_spec.py index 18ec90e..214c67b 100644 --- a/quantcdn/models/list_ai_tools200_response_tools_inner_tool_spec.py +++ b/quantcdn/models/list_ai_tools200_response_tools_inner_tool_spec.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.9.0 + The version of the OpenAPI document: 4.12.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/quantcdn/models/list_ai_tools200_response_tools_inner_tool_spec_input_schema.py b/quantcdn/models/list_ai_tools200_response_tools_inner_tool_spec_input_schema.py index 553280d..eddb551 100644 --- a/quantcdn/models/list_ai_tools200_response_tools_inner_tool_spec_input_schema.py +++ b/quantcdn/models/list_ai_tools200_response_tools_inner_tool_spec_input_schema.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.9.0 + The version of the OpenAPI document: 4.12.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/quantcdn/models/list_backups200_response.py b/quantcdn/models/list_backups200_response.py index d1b40ba..76a576e 100644 --- a/quantcdn/models/list_backups200_response.py +++ b/quantcdn/models/list_backups200_response.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.9.0 + The version of the OpenAPI document: 4.12.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/quantcdn/models/list_backups200_response_backups_inner.py b/quantcdn/models/list_backups200_response_backups_inner.py index d656962..0dc0599 100644 --- a/quantcdn/models/list_backups200_response_backups_inner.py +++ b/quantcdn/models/list_backups200_response_backups_inner.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.9.0 + The version of the OpenAPI document: 4.12.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/quantcdn/models/list_backups422_response.py b/quantcdn/models/list_backups422_response.py index 7c2062d..2a725d3 100644 --- a/quantcdn/models/list_backups422_response.py +++ b/quantcdn/models/list_backups422_response.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.9.0 + The version of the OpenAPI document: 4.12.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/quantcdn/models/list_custom_tools200_response.py b/quantcdn/models/list_custom_tools200_response.py index c849136..9fab990 100644 --- a/quantcdn/models/list_custom_tools200_response.py +++ b/quantcdn/models/list_custom_tools200_response.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.9.0 + The version of the OpenAPI document: 4.12.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/quantcdn/models/list_custom_tools200_response_tools_inner.py b/quantcdn/models/list_custom_tools200_response_tools_inner.py index 821acef..dc6595b 100644 --- a/quantcdn/models/list_custom_tools200_response_tools_inner.py +++ b/quantcdn/models/list_custom_tools200_response_tools_inner.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.9.0 + The version of the OpenAPI document: 4.12.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/quantcdn/models/list_files200_response.py b/quantcdn/models/list_files200_response.py index 43ae918..0a6139d 100644 --- a/quantcdn/models/list_files200_response.py +++ b/quantcdn/models/list_files200_response.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.9.0 + The version of the OpenAPI document: 4.12.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/quantcdn/models/list_files200_response_files_inner.py b/quantcdn/models/list_files200_response_files_inner.py index 26ad571..33b8107 100644 --- a/quantcdn/models/list_files200_response_files_inner.py +++ b/quantcdn/models/list_files200_response_files_inner.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.9.0 + The version of the OpenAPI document: 4.12.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/quantcdn/models/list_orchestration_batches200_response.py b/quantcdn/models/list_orchestration_batches200_response.py new file mode 100644 index 0000000..98ccac1 --- /dev/null +++ b/quantcdn/models/list_orchestration_batches200_response.py @@ -0,0 +1,102 @@ +# coding: utf-8 + +""" + QuantCDN API + + Unified API for QuantCDN Admin and QuantCloud Platform services + + The version of the OpenAPI document: 4.12.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from quantcdn.models.list_orchestration_batches200_response_batches_inner import ListOrchestrationBatches200ResponseBatchesInner +from typing import Optional, Set +from typing_extensions import Self + +class ListOrchestrationBatches200Response(BaseModel): + """ + ListOrchestrationBatches200Response + """ # noqa: E501 + batches: Optional[List[ListOrchestrationBatches200ResponseBatchesInner]] = None + next_cursor: Optional[StrictStr] = Field(default=None, alias="nextCursor") + __properties: ClassVar[List[str]] = ["batches", "nextCursor"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of ListOrchestrationBatches200Response from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of each item in batches (list) + _items = [] + if self.batches: + for _item_batches in self.batches: + if _item_batches: + _items.append(_item_batches.to_dict()) + _dict['batches'] = _items + # set to None if next_cursor (nullable) is None + # and model_fields_set contains the field + if self.next_cursor is None and "next_cursor" in self.model_fields_set: + _dict['nextCursor'] = None + + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of ListOrchestrationBatches200Response from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "batches": [ListOrchestrationBatches200ResponseBatchesInner.from_dict(_item) for _item in obj["batches"]] if obj.get("batches") is not None else None, + "nextCursor": obj.get("nextCursor") + }) + return _obj + + diff --git a/quantcdn/models/list_orchestration_batches200_response_batches_inner.py b/quantcdn/models/list_orchestration_batches200_response_batches_inner.py new file mode 100644 index 0000000..732b8d2 --- /dev/null +++ b/quantcdn/models/list_orchestration_batches200_response_batches_inner.py @@ -0,0 +1,121 @@ +# coding: utf-8 + +""" + QuantCDN API + + Unified API for QuantCDN Admin and QuantCloud Platform services + + The version of the OpenAPI document: 4.12.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from datetime import datetime +from pydantic import BaseModel, ConfigDict, Field, StrictInt, StrictStr, field_validator +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class ListOrchestrationBatches200ResponseBatchesInner(BaseModel): + """ + ListOrchestrationBatches200ResponseBatchesInner + """ # noqa: E501 + batch_id: Optional[StrictStr] = Field(default=None, alias="batchId") + orchestration_id: Optional[StrictStr] = Field(default=None, alias="orchestrationId") + iteration: Optional[StrictInt] = None + item_count: Optional[StrictInt] = Field(default=None, alias="itemCount") + completed_count: Optional[StrictInt] = Field(default=None, alias="completedCount") + failed_count: Optional[StrictInt] = Field(default=None, alias="failedCount") + status: Optional[StrictStr] = None + started_at: Optional[datetime] = Field(default=None, alias="startedAt") + completed_at: Optional[datetime] = Field(default=None, alias="completedAt") + error: Optional[StrictStr] = None + __properties: ClassVar[List[str]] = ["batchId", "orchestrationId", "iteration", "itemCount", "completedCount", "failedCount", "status", "startedAt", "completedAt", "error"] + + @field_validator('status') + def status_validate_enum(cls, value): + """Validates the enum""" + if value is None: + return value + + if value not in set(['pending', 'running', 'completed', 'failed']): + raise ValueError("must be one of enum values ('pending', 'running', 'completed', 'failed')") + return value + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of ListOrchestrationBatches200ResponseBatchesInner from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # set to None if error (nullable) is None + # and model_fields_set contains the field + if self.error is None and "error" in self.model_fields_set: + _dict['error'] = None + + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of ListOrchestrationBatches200ResponseBatchesInner from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "batchId": obj.get("batchId"), + "orchestrationId": obj.get("orchestrationId"), + "iteration": obj.get("iteration"), + "itemCount": obj.get("itemCount"), + "completedCount": obj.get("completedCount"), + "failedCount": obj.get("failedCount"), + "status": obj.get("status"), + "startedAt": obj.get("startedAt"), + "completedAt": obj.get("completedAt"), + "error": obj.get("error") + }) + return _obj + + diff --git a/quantcdn/models/list_orchestrations200_response.py b/quantcdn/models/list_orchestrations200_response.py new file mode 100644 index 0000000..19e3303 --- /dev/null +++ b/quantcdn/models/list_orchestrations200_response.py @@ -0,0 +1,94 @@ +# coding: utf-8 + +""" + QuantCDN API + + Unified API for QuantCDN Admin and QuantCloud Platform services + + The version of the OpenAPI document: 4.12.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class ListOrchestrations200Response(BaseModel): + """ + ListOrchestrations200Response + """ # noqa: E501 + orchestrations: Optional[List[Dict[str, Any]]] = None + next_cursor: Optional[StrictStr] = Field(default=None, alias="nextCursor") + __properties: ClassVar[List[str]] = ["orchestrations", "nextCursor"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of ListOrchestrations200Response from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # set to None if next_cursor (nullable) is None + # and model_fields_set contains the field + if self.next_cursor is None and "next_cursor" in self.model_fields_set: + _dict['nextCursor'] = None + + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of ListOrchestrations200Response from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "orchestrations": obj.get("orchestrations"), + "nextCursor": obj.get("nextCursor") + }) + return _obj + + diff --git a/quantcdn/models/list_skill_collections200_response.py b/quantcdn/models/list_skill_collections200_response.py new file mode 100644 index 0000000..956c6d9 --- /dev/null +++ b/quantcdn/models/list_skill_collections200_response.py @@ -0,0 +1,95 @@ +# coding: utf-8 + +""" + QuantCDN API + + Unified API for QuantCDN Admin and QuantCloud Platform services + + The version of the OpenAPI document: 4.12.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict +from typing import Any, ClassVar, Dict, List, Optional +from quantcdn.models.list_skill_collections200_response_collections_inner import ListSkillCollections200ResponseCollectionsInner +from typing import Optional, Set +from typing_extensions import Self + +class ListSkillCollections200Response(BaseModel): + """ + ListSkillCollections200Response + """ # noqa: E501 + collections: Optional[List[ListSkillCollections200ResponseCollectionsInner]] = None + __properties: ClassVar[List[str]] = ["collections"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of ListSkillCollections200Response from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of each item in collections (list) + _items = [] + if self.collections: + for _item_collections in self.collections: + if _item_collections: + _items.append(_item_collections.to_dict()) + _dict['collections'] = _items + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of ListSkillCollections200Response from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "collections": [ListSkillCollections200ResponseCollectionsInner.from_dict(_item) for _item in obj["collections"]] if obj.get("collections") is not None else None + }) + return _obj + + diff --git a/quantcdn/models/list_skill_collections200_response_collections_inner.py b/quantcdn/models/list_skill_collections200_response_collections_inner.py new file mode 100644 index 0000000..e461646 --- /dev/null +++ b/quantcdn/models/list_skill_collections200_response_collections_inner.py @@ -0,0 +1,91 @@ +# coding: utf-8 + +""" + QuantCDN API + + Unified API for QuantCDN Admin and QuantCloud Platform services + + The version of the OpenAPI document: 4.12.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, StrictInt, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class ListSkillCollections200ResponseCollectionsInner(BaseModel): + """ + ListSkillCollections200ResponseCollectionsInner + """ # noqa: E501 + namespace: Optional[StrictStr] = None + count: Optional[StrictInt] = None + skills: Optional[List[StrictStr]] = None + __properties: ClassVar[List[str]] = ["namespace", "count", "skills"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of ListSkillCollections200ResponseCollectionsInner from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of ListSkillCollections200ResponseCollectionsInner from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "namespace": obj.get("namespace"), + "count": obj.get("count"), + "skills": obj.get("skills") + }) + return _obj + + diff --git a/quantcdn/models/list_skills200_response.py b/quantcdn/models/list_skills200_response.py new file mode 100644 index 0000000..be360a3 --- /dev/null +++ b/quantcdn/models/list_skills200_response.py @@ -0,0 +1,97 @@ +# coding: utf-8 + +""" + QuantCDN API + + Unified API for QuantCDN Admin and QuantCloud Platform services + + The version of the OpenAPI document: 4.12.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, StrictInt +from typing import Any, ClassVar, Dict, List, Optional +from quantcdn.models.list_skills200_response_skills_inner import ListSkills200ResponseSkillsInner +from typing import Optional, Set +from typing_extensions import Self + +class ListSkills200Response(BaseModel): + """ + ListSkills200Response + """ # noqa: E501 + skills: Optional[List[ListSkills200ResponseSkillsInner]] = None + count: Optional[StrictInt] = None + __properties: ClassVar[List[str]] = ["skills", "count"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of ListSkills200Response from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of each item in skills (list) + _items = [] + if self.skills: + for _item_skills in self.skills: + if _item_skills: + _items.append(_item_skills.to_dict()) + _dict['skills'] = _items + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of ListSkills200Response from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "skills": [ListSkills200ResponseSkillsInner.from_dict(_item) for _item in obj["skills"]] if obj.get("skills") is not None else None, + "count": obj.get("count") + }) + return _obj + + diff --git a/quantcdn/models/list_skills200_response_skills_inner.py b/quantcdn/models/list_skills200_response_skills_inner.py new file mode 100644 index 0000000..2155477 --- /dev/null +++ b/quantcdn/models/list_skills200_response_skills_inner.py @@ -0,0 +1,104 @@ +# coding: utf-8 + +""" + QuantCDN API + + Unified API for QuantCDN Admin and QuantCloud Platform services + + The version of the OpenAPI document: 4.12.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from datetime import datetime +from pydantic import BaseModel, ConfigDict, Field, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class ListSkills200ResponseSkillsInner(BaseModel): + """ + ListSkills200ResponseSkillsInner + """ # noqa: E501 + skill_id: Optional[StrictStr] = Field(default=None, alias="skillId") + name: Optional[StrictStr] = None + description: Optional[StrictStr] = None + tags: Optional[List[StrictStr]] = None + source: Optional[Dict[str, Any]] = None + trigger_condition: Optional[StrictStr] = Field(default=None, alias="triggerCondition") + namespace: Optional[StrictStr] = None + installed_at: Optional[datetime] = Field(default=None, alias="installedAt") + updated_at: Optional[datetime] = Field(default=None, alias="updatedAt") + __properties: ClassVar[List[str]] = ["skillId", "name", "description", "tags", "source", "triggerCondition", "namespace", "installedAt", "updatedAt"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of ListSkills200ResponseSkillsInner from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of ListSkills200ResponseSkillsInner from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "skillId": obj.get("skillId"), + "name": obj.get("name"), + "description": obj.get("description"), + "tags": obj.get("tags"), + "source": obj.get("source"), + "triggerCondition": obj.get("triggerCondition"), + "namespace": obj.get("namespace"), + "installedAt": obj.get("installedAt"), + "updatedAt": obj.get("updatedAt") + }) + return _obj + + diff --git a/quantcdn/models/list_tasks200_response.py b/quantcdn/models/list_tasks200_response.py index adbd5bd..e5e6fba 100644 --- a/quantcdn/models/list_tasks200_response.py +++ b/quantcdn/models/list_tasks200_response.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.9.0 + The version of the OpenAPI document: 4.12.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/quantcdn/models/list_tasks200_response_tasks_inner.py b/quantcdn/models/list_tasks200_response_tasks_inner.py index 1d15599..6bc1bdd 100644 --- a/quantcdn/models/list_tasks200_response_tasks_inner.py +++ b/quantcdn/models/list_tasks200_response_tasks_inner.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.9.0 + The version of the OpenAPI document: 4.12.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/quantcdn/models/list_vector_collections200_response.py b/quantcdn/models/list_vector_collections200_response.py index 85b0d23..d146841 100644 --- a/quantcdn/models/list_vector_collections200_response.py +++ b/quantcdn/models/list_vector_collections200_response.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.9.0 + The version of the OpenAPI document: 4.12.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/quantcdn/models/list_vector_collections200_response_collections_inner.py b/quantcdn/models/list_vector_collections200_response_collections_inner.py index f761ce2..c6ca2b8 100644 --- a/quantcdn/models/list_vector_collections200_response_collections_inner.py +++ b/quantcdn/models/list_vector_collections200_response_collections_inner.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.9.0 + The version of the OpenAPI document: 4.12.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/quantcdn/models/organizations_list200_response_inner.py b/quantcdn/models/organizations_list200_response_inner.py index 6239bd9..1507bce 100644 --- a/quantcdn/models/organizations_list200_response_inner.py +++ b/quantcdn/models/organizations_list200_response_inner.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.9.0 + The version of the OpenAPI document: 4.12.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/quantcdn/models/patch_environment_compose202_response.py b/quantcdn/models/patch_environment_compose202_response.py index fc8a9a8..aeb20fa 100644 --- a/quantcdn/models/patch_environment_compose202_response.py +++ b/quantcdn/models/patch_environment_compose202_response.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.9.0 + The version of the OpenAPI document: 4.12.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/quantcdn/models/patch_environment_compose202_response_spot_configuration.py b/quantcdn/models/patch_environment_compose202_response_spot_configuration.py index 794ef00..ecb06d3 100644 --- a/quantcdn/models/patch_environment_compose202_response_spot_configuration.py +++ b/quantcdn/models/patch_environment_compose202_response_spot_configuration.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.9.0 + The version of the OpenAPI document: 4.12.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/quantcdn/models/patch_environment_compose400_response.py b/quantcdn/models/patch_environment_compose400_response.py index 1ced7a4..20f81c1 100644 --- a/quantcdn/models/patch_environment_compose400_response.py +++ b/quantcdn/models/patch_environment_compose400_response.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.9.0 + The version of the OpenAPI document: 4.12.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/quantcdn/models/patch_environment_compose_request.py b/quantcdn/models/patch_environment_compose_request.py index 50d80a1..2155e1a 100644 --- a/quantcdn/models/patch_environment_compose_request.py +++ b/quantcdn/models/patch_environment_compose_request.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.9.0 + The version of the OpenAPI document: 4.12.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/quantcdn/models/patch_environment_compose_request_spot_configuration.py b/quantcdn/models/patch_environment_compose_request_spot_configuration.py index 2e41e25..941785d 100644 --- a/quantcdn/models/patch_environment_compose_request_spot_configuration.py +++ b/quantcdn/models/patch_environment_compose_request_spot_configuration.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.9.0 + The version of the OpenAPI document: 4.12.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/quantcdn/models/purge_create_request.py b/quantcdn/models/purge_create_request.py index 17dea8d..efe0b78 100644 --- a/quantcdn/models/purge_create_request.py +++ b/quantcdn/models/purge_create_request.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.9.0 + The version of the OpenAPI document: 4.12.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/quantcdn/models/query_vector_collection200_response.py b/quantcdn/models/query_vector_collection200_response.py index 275a9bb..bab8497 100644 --- a/quantcdn/models/query_vector_collection200_response.py +++ b/quantcdn/models/query_vector_collection200_response.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.9.0 + The version of the OpenAPI document: 4.12.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/quantcdn/models/query_vector_collection200_response_pagination.py b/quantcdn/models/query_vector_collection200_response_pagination.py index 4b3ff69..bd28888 100644 --- a/quantcdn/models/query_vector_collection200_response_pagination.py +++ b/quantcdn/models/query_vector_collection200_response_pagination.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.9.0 + The version of the OpenAPI document: 4.12.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/quantcdn/models/query_vector_collection200_response_results_inner.py b/quantcdn/models/query_vector_collection200_response_results_inner.py index 54fed02..ad6b9af 100644 --- a/quantcdn/models/query_vector_collection200_response_results_inner.py +++ b/quantcdn/models/query_vector_collection200_response_results_inner.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.9.0 + The version of the OpenAPI document: 4.12.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/quantcdn/models/query_vector_collection_request.py b/quantcdn/models/query_vector_collection_request.py index 370c600..c890f3b 100644 --- a/quantcdn/models/query_vector_collection_request.py +++ b/quantcdn/models/query_vector_collection_request.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.9.0 + The version of the OpenAPI document: 4.12.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/quantcdn/models/query_vector_collection_request_filter.py b/quantcdn/models/query_vector_collection_request_filter.py index cde3431..cb9a73d 100644 --- a/quantcdn/models/query_vector_collection_request_filter.py +++ b/quantcdn/models/query_vector_collection_request_filter.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.9.0 + The version of the OpenAPI document: 4.12.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/quantcdn/models/scaling_policy.py b/quantcdn/models/scaling_policy.py index 9cedec3..3d07222 100644 --- a/quantcdn/models/scaling_policy.py +++ b/quantcdn/models/scaling_policy.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.9.0 + The version of the OpenAPI document: 4.12.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/quantcdn/models/spot_configuration.py b/quantcdn/models/spot_configuration.py index 79a04ea..171528c 100644 --- a/quantcdn/models/spot_configuration.py +++ b/quantcdn/models/spot_configuration.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.9.0 + The version of the OpenAPI document: 4.12.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/quantcdn/models/submit_tool_callback200_response.py b/quantcdn/models/submit_tool_callback200_response.py index 07a8969..bcef0c3 100644 --- a/quantcdn/models/submit_tool_callback200_response.py +++ b/quantcdn/models/submit_tool_callback200_response.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.9.0 + The version of the OpenAPI document: 4.12.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/quantcdn/models/submit_tool_callback_request.py b/quantcdn/models/submit_tool_callback_request.py index 4f04beb..503a2d5 100644 --- a/quantcdn/models/submit_tool_callback_request.py +++ b/quantcdn/models/submit_tool_callback_request.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.9.0 + The version of the OpenAPI document: 4.12.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/quantcdn/models/submit_tool_callback_request_tool_results_inner.py b/quantcdn/models/submit_tool_callback_request_tool_results_inner.py index ac5ccaf..ab1a87f 100644 --- a/quantcdn/models/submit_tool_callback_request_tool_results_inner.py +++ b/quantcdn/models/submit_tool_callback_request_tool_results_inner.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.9.0 + The version of the OpenAPI document: 4.12.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/quantcdn/models/sync_operation.py b/quantcdn/models/sync_operation.py index 95282ff..888b3ae 100644 --- a/quantcdn/models/sync_operation.py +++ b/quantcdn/models/sync_operation.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.9.0 + The version of the OpenAPI document: 4.12.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/quantcdn/models/sync_skill_collection200_response.py b/quantcdn/models/sync_skill_collection200_response.py new file mode 100644 index 0000000..e7861e1 --- /dev/null +++ b/quantcdn/models/sync_skill_collection200_response.py @@ -0,0 +1,97 @@ +# coding: utf-8 + +""" + QuantCDN API + + Unified API for QuantCDN Admin and QuantCloud Platform services + + The version of the OpenAPI document: 4.12.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictInt, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class SyncSkillCollection200Response(BaseModel): + """ + SyncSkillCollection200Response + """ # noqa: E501 + namespace: Optional[StrictStr] = None + synced: Optional[StrictInt] = None + created: Optional[StrictInt] = None + failed: Optional[StrictInt] = None + removed_from_source: Optional[List[StrictStr]] = Field(default=None, alias="removedFromSource") + skills: Optional[List[Dict[str, Any]]] = None + __properties: ClassVar[List[str]] = ["namespace", "synced", "created", "failed", "removedFromSource", "skills"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of SyncSkillCollection200Response from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of SyncSkillCollection200Response from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "namespace": obj.get("namespace"), + "synced": obj.get("synced"), + "created": obj.get("created"), + "failed": obj.get("failed"), + "removedFromSource": obj.get("removedFromSource"), + "skills": obj.get("skills") + }) + return _obj + + diff --git a/quantcdn/models/sync_to_environment_request.py b/quantcdn/models/sync_to_environment_request.py index 053b539..aae659c 100644 --- a/quantcdn/models/sync_to_environment_request.py +++ b/quantcdn/models/sync_to_environment_request.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.9.0 + The version of the OpenAPI document: 4.12.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/quantcdn/models/tokens_create201_response.py b/quantcdn/models/tokens_create201_response.py new file mode 100644 index 0000000..6694352 --- /dev/null +++ b/quantcdn/models/tokens_create201_response.py @@ -0,0 +1,92 @@ +# coding: utf-8 + +""" + QuantCDN API + + Unified API for QuantCDN Admin and QuantCloud Platform services + + The version of the OpenAPI document: 4.12.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from datetime import datetime +from pydantic import BaseModel, ConfigDict, Field, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class TokensCreate201Response(BaseModel): + """ + TokensCreate201Response + """ # noqa: E501 + token: Optional[StrictStr] = Field(default=None, description="The plain text token (shown once)") + name: Optional[StrictStr] = None + created_at: Optional[datetime] = None + __properties: ClassVar[List[str]] = ["token", "name", "created_at"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of TokensCreate201Response from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of TokensCreate201Response from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "token": obj.get("token"), + "name": obj.get("name"), + "created_at": obj.get("created_at") + }) + return _obj + + diff --git a/quantcdn/models/tokens_create_request.py b/quantcdn/models/tokens_create_request.py new file mode 100644 index 0000000..f781477 --- /dev/null +++ b/quantcdn/models/tokens_create_request.py @@ -0,0 +1,87 @@ +# coding: utf-8 + +""" + QuantCDN API + + Unified API for QuantCDN Admin and QuantCloud Platform services + + The version of the OpenAPI document: 4.12.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr +from typing import Any, ClassVar, Dict, List +from typing import Optional, Set +from typing_extensions import Self + +class TokensCreateRequest(BaseModel): + """ + TokensCreateRequest + """ # noqa: E501 + name: StrictStr = Field(description="Name for the token") + __properties: ClassVar[List[str]] = ["name"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of TokensCreateRequest from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of TokensCreateRequest from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "name": obj.get("name") + }) + return _obj + + diff --git a/quantcdn/models/tokens_delete200_response.py b/quantcdn/models/tokens_delete200_response.py new file mode 100644 index 0000000..a74b386 --- /dev/null +++ b/quantcdn/models/tokens_delete200_response.py @@ -0,0 +1,87 @@ +# coding: utf-8 + +""" + QuantCDN API + + Unified API for QuantCDN Admin and QuantCloud Platform services + + The version of the OpenAPI document: 4.12.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class TokensDelete200Response(BaseModel): + """ + TokensDelete200Response + """ # noqa: E501 + message: Optional[StrictStr] = None + __properties: ClassVar[List[str]] = ["message"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of TokensDelete200Response from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of TokensDelete200Response from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "message": obj.get("message") + }) + return _obj + + diff --git a/quantcdn/models/tokens_list200_response_inner.py b/quantcdn/models/tokens_list200_response_inner.py new file mode 100644 index 0000000..6d8272b --- /dev/null +++ b/quantcdn/models/tokens_list200_response_inner.py @@ -0,0 +1,99 @@ +# coding: utf-8 + +""" + QuantCDN API + + Unified API for QuantCDN Admin and QuantCloud Platform services + + The version of the OpenAPI document: 4.12.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from datetime import datetime +from pydantic import BaseModel, ConfigDict, StrictInt, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class TokensList200ResponseInner(BaseModel): + """ + TokensList200ResponseInner + """ # noqa: E501 + id: Optional[StrictInt] = None + name: Optional[StrictStr] = None + last_used: Optional[datetime] = None + created_at: Optional[datetime] = None + __properties: ClassVar[List[str]] = ["id", "name", "last_used", "created_at"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of TokensList200ResponseInner from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # set to None if last_used (nullable) is None + # and model_fields_set contains the field + if self.last_used is None and "last_used" in self.model_fields_set: + _dict['last_used'] = None + + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of TokensList200ResponseInner from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "id": obj.get("id"), + "name": obj.get("name"), + "last_used": obj.get("last_used"), + "created_at": obj.get("created_at") + }) + return _obj + + diff --git a/quantcdn/models/update_ai_agent200_response.py b/quantcdn/models/update_ai_agent200_response.py index c386dc4..5714555 100644 --- a/quantcdn/models/update_ai_agent200_response.py +++ b/quantcdn/models/update_ai_agent200_response.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.9.0 + The version of the OpenAPI document: 4.12.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/quantcdn/models/update_ai_agent_request.py b/quantcdn/models/update_ai_agent_request.py index 6c33ac5..eaf9974 100644 --- a/quantcdn/models/update_ai_agent_request.py +++ b/quantcdn/models/update_ai_agent_request.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.9.0 + The version of the OpenAPI document: 4.12.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/quantcdn/models/update_ai_session200_response.py b/quantcdn/models/update_ai_session200_response.py index 52c30ff..53ffe65 100644 --- a/quantcdn/models/update_ai_session200_response.py +++ b/quantcdn/models/update_ai_session200_response.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.9.0 + The version of the OpenAPI document: 4.12.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/quantcdn/models/update_ai_session_request.py b/quantcdn/models/update_ai_session_request.py index 80617e0..a6b35f3 100644 --- a/quantcdn/models/update_ai_session_request.py +++ b/quantcdn/models/update_ai_session_request.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.9.0 + The version of the OpenAPI document: 4.12.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/quantcdn/models/update_ai_session_request_new_messages_inner.py b/quantcdn/models/update_ai_session_request_new_messages_inner.py index b66a53e..ab47342 100644 --- a/quantcdn/models/update_ai_session_request_new_messages_inner.py +++ b/quantcdn/models/update_ai_session_request_new_messages_inner.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.9.0 + The version of the OpenAPI document: 4.12.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/quantcdn/models/update_cron_job_request.py b/quantcdn/models/update_cron_job_request.py index 63665fa..001fa7d 100644 --- a/quantcdn/models/update_cron_job_request.py +++ b/quantcdn/models/update_cron_job_request.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.9.0 + The version of the OpenAPI document: 4.12.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/quantcdn/models/update_environment_request.py b/quantcdn/models/update_environment_request.py index 2c07587..02d70d5 100644 --- a/quantcdn/models/update_environment_request.py +++ b/quantcdn/models/update_environment_request.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.9.0 + The version of the OpenAPI document: 4.12.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/quantcdn/models/update_environment_state_request.py b/quantcdn/models/update_environment_state_request.py index f29a5d7..60bb36d 100644 --- a/quantcdn/models/update_environment_state_request.py +++ b/quantcdn/models/update_environment_state_request.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.9.0 + The version of the OpenAPI document: 4.12.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/quantcdn/models/update_environment_variable_request.py b/quantcdn/models/update_environment_variable_request.py index f36e556..b49c327 100644 --- a/quantcdn/models/update_environment_variable_request.py +++ b/quantcdn/models/update_environment_variable_request.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.9.0 + The version of the OpenAPI document: 4.12.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/quantcdn/models/update_skill200_response.py b/quantcdn/models/update_skill200_response.py new file mode 100644 index 0000000..4106394 --- /dev/null +++ b/quantcdn/models/update_skill200_response.py @@ -0,0 +1,91 @@ +# coding: utf-8 + +""" + QuantCDN API + + Unified API for QuantCDN Admin and QuantCloud Platform services + + The version of the OpenAPI document: 4.12.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, StrictBool, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class UpdateSkill200Response(BaseModel): + """ + UpdateSkill200Response + """ # noqa: E501 + success: Optional[StrictBool] = None + skill: Optional[Dict[str, Any]] = None + message: Optional[StrictStr] = None + __properties: ClassVar[List[str]] = ["success", "skill", "message"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of UpdateSkill200Response from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of UpdateSkill200Response from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "success": obj.get("success"), + "skill": obj.get("skill"), + "message": obj.get("message") + }) + return _obj + + diff --git a/quantcdn/models/update_skill_request.py b/quantcdn/models/update_skill_request.py new file mode 100644 index 0000000..625e1bb --- /dev/null +++ b/quantcdn/models/update_skill_request.py @@ -0,0 +1,107 @@ +# coding: utf-8 + +""" + QuantCDN API + + Unified API for QuantCDN Admin and QuantCloud Platform services + + The version of the OpenAPI document: 4.12.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class UpdateSkillRequest(BaseModel): + """ + UpdateSkillRequest + """ # noqa: E501 + name: Optional[StrictStr] = None + description: Optional[StrictStr] = None + content: Optional[StrictStr] = None + trigger_condition: Optional[StrictStr] = Field(default=None, alias="triggerCondition") + tags: Optional[List[StrictStr]] = None + required_tools: Optional[List[StrictStr]] = Field(default=None, alias="requiredTools") + source: Optional[Dict[str, Any]] = None + files: Optional[Dict[str, Any]] = None + disable_model_invocation: Optional[StrictBool] = Field(default=None, alias="disableModelInvocation") + allowed_tools: Optional[List[StrictStr]] = Field(default=None, alias="allowedTools") + namespace: Optional[StrictStr] = None + __properties: ClassVar[List[str]] = ["name", "description", "content", "triggerCondition", "tags", "requiredTools", "source", "files", "disableModelInvocation", "allowedTools", "namespace"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of UpdateSkillRequest from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of UpdateSkillRequest from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "name": obj.get("name"), + "description": obj.get("description"), + "content": obj.get("content"), + "triggerCondition": obj.get("triggerCondition"), + "tags": obj.get("tags"), + "requiredTools": obj.get("requiredTools"), + "source": obj.get("source"), + "files": obj.get("files"), + "disableModelInvocation": obj.get("disableModelInvocation"), + "allowedTools": obj.get("allowedTools"), + "namespace": obj.get("namespace") + }) + return _obj + + diff --git a/quantcdn/models/update_task200_response.py b/quantcdn/models/update_task200_response.py index 218f84a..b535fd1 100644 --- a/quantcdn/models/update_task200_response.py +++ b/quantcdn/models/update_task200_response.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.9.0 + The version of the OpenAPI document: 4.12.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/quantcdn/models/update_task_request.py b/quantcdn/models/update_task_request.py index 8aebe47..0e38b28 100644 --- a/quantcdn/models/update_task_request.py +++ b/quantcdn/models/update_task_request.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.9.0 + The version of the OpenAPI document: 4.12.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/quantcdn/models/upload_file201_response.py b/quantcdn/models/upload_file201_response.py index afa2d0f..bad8e8e 100644 --- a/quantcdn/models/upload_file201_response.py +++ b/quantcdn/models/upload_file201_response.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.9.0 + The version of the OpenAPI document: 4.12.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/quantcdn/models/upload_file_request.py b/quantcdn/models/upload_file_request.py index b57e6af..68f92e4 100644 --- a/quantcdn/models/upload_file_request.py +++ b/quantcdn/models/upload_file_request.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.9.0 + The version of the OpenAPI document: 4.12.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/quantcdn/models/upload_vector_documents200_response.py b/quantcdn/models/upload_vector_documents200_response.py index 8a235d0..92f3803 100644 --- a/quantcdn/models/upload_vector_documents200_response.py +++ b/quantcdn/models/upload_vector_documents200_response.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.9.0 + The version of the OpenAPI document: 4.12.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/quantcdn/models/upload_vector_documents_request.py b/quantcdn/models/upload_vector_documents_request.py index 876d6bf..5dd7fd7 100644 --- a/quantcdn/models/upload_vector_documents_request.py +++ b/quantcdn/models/upload_vector_documents_request.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.9.0 + The version of the OpenAPI document: 4.12.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/quantcdn/models/upload_vector_documents_request_documents_inner.py b/quantcdn/models/upload_vector_documents_request_documents_inner.py index a7ecf49..a34d172 100644 --- a/quantcdn/models/upload_vector_documents_request_documents_inner.py +++ b/quantcdn/models/upload_vector_documents_request_documents_inner.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.9.0 + The version of the OpenAPI document: 4.12.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/quantcdn/models/upload_vector_documents_request_documents_inner_metadata.py b/quantcdn/models/upload_vector_documents_request_documents_inner_metadata.py index 6509c38..e2d7997 100644 --- a/quantcdn/models/upload_vector_documents_request_documents_inner_metadata.py +++ b/quantcdn/models/upload_vector_documents_request_documents_inner_metadata.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.9.0 + The version of the OpenAPI document: 4.12.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/quantcdn/models/v1_content_item.py b/quantcdn/models/v1_content_item.py index 69744ab..ac6d833 100644 --- a/quantcdn/models/v1_content_item.py +++ b/quantcdn/models/v1_content_item.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.9.0 + The version of the OpenAPI document: 4.12.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/quantcdn/models/v1_content_list_response.py b/quantcdn/models/v1_content_list_response.py index 5a38b95..469e892 100644 --- a/quantcdn/models/v1_content_list_response.py +++ b/quantcdn/models/v1_content_list_response.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.9.0 + The version of the OpenAPI document: 4.12.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/quantcdn/models/v1_content_request.py b/quantcdn/models/v1_content_request.py index ec8e187..1533ff1 100644 --- a/quantcdn/models/v1_content_request.py +++ b/quantcdn/models/v1_content_request.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.9.0 + The version of the OpenAPI document: 4.12.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/quantcdn/models/v1_delete_response.py b/quantcdn/models/v1_delete_response.py index 8395fe6..4748500 100644 --- a/quantcdn/models/v1_delete_response.py +++ b/quantcdn/models/v1_delete_response.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.9.0 + The version of the OpenAPI document: 4.12.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/quantcdn/models/v1_error.py b/quantcdn/models/v1_error.py index f77e6c0..3a063e5 100644 --- a/quantcdn/models/v1_error.py +++ b/quantcdn/models/v1_error.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.9.0 + The version of the OpenAPI document: 4.12.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/quantcdn/models/v1_form_submission_item.py b/quantcdn/models/v1_form_submission_item.py index 7166fc7..03f8274 100644 --- a/quantcdn/models/v1_form_submission_item.py +++ b/quantcdn/models/v1_form_submission_item.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.9.0 + The version of the OpenAPI document: 4.12.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/quantcdn/models/v1_form_submission_list_response.py b/quantcdn/models/v1_form_submission_list_response.py index 54d73ee..fc2fb20 100644 --- a/quantcdn/models/v1_form_submission_list_response.py +++ b/quantcdn/models/v1_form_submission_list_response.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.9.0 + The version of the OpenAPI document: 4.12.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/quantcdn/models/v1_get_metric_series_response.py b/quantcdn/models/v1_get_metric_series_response.py index b9b125c..65f4e63 100644 --- a/quantcdn/models/v1_get_metric_series_response.py +++ b/quantcdn/models/v1_get_metric_series_response.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.9.0 + The version of the OpenAPI document: 4.12.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/quantcdn/models/v1_get_metric_series_response_data.py b/quantcdn/models/v1_get_metric_series_response_data.py index 15e52a4..e5dad18 100644 --- a/quantcdn/models/v1_get_metric_series_response_data.py +++ b/quantcdn/models/v1_get_metric_series_response_data.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.9.0 + The version of the OpenAPI document: 4.12.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/quantcdn/models/v1_get_metrics_response.py b/quantcdn/models/v1_get_metrics_response.py index ee14b7a..1177972 100644 --- a/quantcdn/models/v1_get_metrics_response.py +++ b/quantcdn/models/v1_get_metrics_response.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.9.0 + The version of the OpenAPI document: 4.12.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/quantcdn/models/v1_get_metrics_response_data.py b/quantcdn/models/v1_get_metrics_response_data.py index b519c29..a524f6d 100644 --- a/quantcdn/models/v1_get_metrics_response_data.py +++ b/quantcdn/models/v1_get_metrics_response_data.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.9.0 + The version of the OpenAPI document: 4.12.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/quantcdn/models/v1_global_meta_response.py b/quantcdn/models/v1_global_meta_response.py index 6ec78ec..b64e0f7 100644 --- a/quantcdn/models/v1_global_meta_response.py +++ b/quantcdn/models/v1_global_meta_response.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.9.0 + The version of the OpenAPI document: 4.12.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/quantcdn/models/v1_global_meta_response_global_meta.py b/quantcdn/models/v1_global_meta_response_global_meta.py index 4e1c20c..a317096 100644 --- a/quantcdn/models/v1_global_meta_response_global_meta.py +++ b/quantcdn/models/v1_global_meta_response_global_meta.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.9.0 + The version of the OpenAPI document: 4.12.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/quantcdn/models/v1_info.py b/quantcdn/models/v1_info.py index d778476..6ade8b5 100644 --- a/quantcdn/models/v1_info.py +++ b/quantcdn/models/v1_info.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.9.0 + The version of the OpenAPI document: 4.12.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/quantcdn/models/v1_meta.py b/quantcdn/models/v1_meta.py index 52dfcfa..71966cf 100644 --- a/quantcdn/models/v1_meta.py +++ b/quantcdn/models/v1_meta.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.9.0 + The version of the OpenAPI document: 4.12.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/quantcdn/models/v1_metric_day_stats.py b/quantcdn/models/v1_metric_day_stats.py index 130c8a1..cfd05e2 100644 --- a/quantcdn/models/v1_metric_day_stats.py +++ b/quantcdn/models/v1_metric_day_stats.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.9.0 + The version of the OpenAPI document: 4.12.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/quantcdn/models/v1_metric_minute_stats.py b/quantcdn/models/v1_metric_minute_stats.py index c416f89..08160e9 100644 --- a/quantcdn/models/v1_metric_minute_stats.py +++ b/quantcdn/models/v1_metric_minute_stats.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.9.0 + The version of the OpenAPI document: 4.12.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/quantcdn/models/v1_metric_month_stats.py b/quantcdn/models/v1_metric_month_stats.py index 06d89ff..10fe328 100644 --- a/quantcdn/models/v1_metric_month_stats.py +++ b/quantcdn/models/v1_metric_month_stats.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.9.0 + The version of the OpenAPI document: 4.12.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/quantcdn/models/v1_ping_response.py b/quantcdn/models/v1_ping_response.py index ee94889..8afca65 100644 --- a/quantcdn/models/v1_ping_response.py +++ b/quantcdn/models/v1_ping_response.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.9.0 + The version of the OpenAPI document: 4.12.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/quantcdn/models/v1_proxy_item.py b/quantcdn/models/v1_proxy_item.py index c8074e3..284d432 100644 --- a/quantcdn/models/v1_proxy_item.py +++ b/quantcdn/models/v1_proxy_item.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.9.0 + The version of the OpenAPI document: 4.12.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/quantcdn/models/v1_proxy_list_response.py b/quantcdn/models/v1_proxy_list_response.py index 6f4c082..ea4a72a 100644 --- a/quantcdn/models/v1_proxy_list_response.py +++ b/quantcdn/models/v1_proxy_list_response.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.9.0 + The version of the OpenAPI document: 4.12.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/quantcdn/models/v1_redirect_item.py b/quantcdn/models/v1_redirect_item.py index 52d89b0..18f9b13 100644 --- a/quantcdn/models/v1_redirect_item.py +++ b/quantcdn/models/v1_redirect_item.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.9.0 + The version of the OpenAPI document: 4.12.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/quantcdn/models/v1_redirect_list_response.py b/quantcdn/models/v1_redirect_list_response.py index c36ec65..1836f26 100644 --- a/quantcdn/models/v1_redirect_list_response.py +++ b/quantcdn/models/v1_redirect_list_response.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.9.0 + The version of the OpenAPI document: 4.12.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/quantcdn/models/v1_redirect_request.py b/quantcdn/models/v1_redirect_request.py index 656057f..ef3c8f8 100644 --- a/quantcdn/models/v1_redirect_request.py +++ b/quantcdn/models/v1_redirect_request.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.9.0 + The version of the OpenAPI document: 4.12.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/quantcdn/models/v1_redirect_response.py b/quantcdn/models/v1_redirect_response.py index 8797aa2..4ac6420 100644 --- a/quantcdn/models/v1_redirect_response.py +++ b/quantcdn/models/v1_redirect_response.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.9.0 + The version of the OpenAPI document: 4.12.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/quantcdn/models/v1_revision.py b/quantcdn/models/v1_revision.py index 77e849e..c98e524 100644 --- a/quantcdn/models/v1_revision.py +++ b/quantcdn/models/v1_revision.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.9.0 + The version of the OpenAPI document: 4.12.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/quantcdn/models/v1_revisions_response.py b/quantcdn/models/v1_revisions_response.py index 3930e66..6212479 100644 --- a/quantcdn/models/v1_revisions_response.py +++ b/quantcdn/models/v1_revisions_response.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.9.0 + The version of the OpenAPI document: 4.12.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/quantcdn/models/v1_search_hit.py b/quantcdn/models/v1_search_hit.py index 1454861..dcbcb74 100644 --- a/quantcdn/models/v1_search_hit.py +++ b/quantcdn/models/v1_search_hit.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.9.0 + The version of the OpenAPI document: 4.12.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/quantcdn/models/v1_search_items_response.py b/quantcdn/models/v1_search_items_response.py index 1faa40c..2b275a3 100644 --- a/quantcdn/models/v1_search_items_response.py +++ b/quantcdn/models/v1_search_items_response.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.9.0 + The version of the OpenAPI document: 4.12.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/quantcdn/models/v1_search_mutation_response.py b/quantcdn/models/v1_search_mutation_response.py index 623485c..00b69fc 100644 --- a/quantcdn/models/v1_search_mutation_response.py +++ b/quantcdn/models/v1_search_mutation_response.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.9.0 + The version of the OpenAPI document: 4.12.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/quantcdn/models/v1_search_record.py b/quantcdn/models/v1_search_record.py index 9d708f9..cf3d852 100644 --- a/quantcdn/models/v1_search_record.py +++ b/quantcdn/models/v1_search_record.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.9.0 + The version of the OpenAPI document: 4.12.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/quantcdn/models/v1_search_response.py b/quantcdn/models/v1_search_response.py index 0e6d259..933fd09 100644 --- a/quantcdn/models/v1_search_response.py +++ b/quantcdn/models/v1_search_response.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.9.0 + The version of the OpenAPI document: 4.12.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/quantcdn/models/v1_series_point_day.py b/quantcdn/models/v1_series_point_day.py index 2365afb..a347ada 100644 --- a/quantcdn/models/v1_series_point_day.py +++ b/quantcdn/models/v1_series_point_day.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.9.0 + The version of the OpenAPI document: 4.12.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/quantcdn/models/v1_series_point_month.py b/quantcdn/models/v1_series_point_month.py index 7014c12..f36561d 100644 --- a/quantcdn/models/v1_series_point_month.py +++ b/quantcdn/models/v1_series_point_month.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.9.0 + The version of the OpenAPI document: 4.12.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/quantcdn/models/v1_transition.py b/quantcdn/models/v1_transition.py index 1d29543..740f4f9 100644 --- a/quantcdn/models/v1_transition.py +++ b/quantcdn/models/v1_transition.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.9.0 + The version of the OpenAPI document: 4.12.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/quantcdn/models/v1_upload_response.py b/quantcdn/models/v1_upload_response.py index 80e0e7d..b9ad48d 100644 --- a/quantcdn/models/v1_upload_response.py +++ b/quantcdn/models/v1_upload_response.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.9.0 + The version of the OpenAPI document: 4.12.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/quantcdn/models/v1_url_meta_request.py b/quantcdn/models/v1_url_meta_request.py index aaa39ed..438139f 100644 --- a/quantcdn/models/v1_url_meta_request.py +++ b/quantcdn/models/v1_url_meta_request.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.9.0 + The version of the OpenAPI document: 4.12.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/quantcdn/models/v1_url_meta_response.py b/quantcdn/models/v1_url_meta_response.py index 9333c40..4d4688c 100644 --- a/quantcdn/models/v1_url_meta_response.py +++ b/quantcdn/models/v1_url_meta_response.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.9.0 + The version of the OpenAPI document: 4.12.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/quantcdn/models/v1_waf_log_item.py b/quantcdn/models/v1_waf_log_item.py index 1f8fa39..df174e8 100644 --- a/quantcdn/models/v1_waf_log_item.py +++ b/quantcdn/models/v1_waf_log_item.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.9.0 + The version of the OpenAPI document: 4.12.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/quantcdn/models/v1_waf_log_list_response.py b/quantcdn/models/v1_waf_log_list_response.py index c30c798..a62a42d 100644 --- a/quantcdn/models/v1_waf_log_list_response.py +++ b/quantcdn/models/v1_waf_log_list_response.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.9.0 + The version of the OpenAPI document: 4.12.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/quantcdn/models/v2_crawler.py b/quantcdn/models/v2_crawler.py index f9c10ac..9ba482d 100644 --- a/quantcdn/models/v2_crawler.py +++ b/quantcdn/models/v2_crawler.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.9.0 + The version of the OpenAPI document: 4.12.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/quantcdn/models/v2_crawler_assets.py b/quantcdn/models/v2_crawler_assets.py index 1dcf8c3..7f4d797 100644 --- a/quantcdn/models/v2_crawler_assets.py +++ b/quantcdn/models/v2_crawler_assets.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.9.0 + The version of the OpenAPI document: 4.12.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/quantcdn/models/v2_crawler_assets_network_intercept.py b/quantcdn/models/v2_crawler_assets_network_intercept.py index 39fc803..74584e0 100644 --- a/quantcdn/models/v2_crawler_assets_network_intercept.py +++ b/quantcdn/models/v2_crawler_assets_network_intercept.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.9.0 + The version of the OpenAPI document: 4.12.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/quantcdn/models/v2_crawler_assets_parser.py b/quantcdn/models/v2_crawler_assets_parser.py index e2cf8a4..681aee0 100644 --- a/quantcdn/models/v2_crawler_assets_parser.py +++ b/quantcdn/models/v2_crawler_assets_parser.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.9.0 + The version of the OpenAPI document: 4.12.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/quantcdn/models/v2_crawler_request.py b/quantcdn/models/v2_crawler_request.py index 9eddb4e..8bb1a3a 100644 --- a/quantcdn/models/v2_crawler_request.py +++ b/quantcdn/models/v2_crawler_request.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.9.0 + The version of the OpenAPI document: 4.12.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/quantcdn/models/v2_crawler_run.py b/quantcdn/models/v2_crawler_run.py index 8aea434..a0d396e 100644 --- a/quantcdn/models/v2_crawler_run.py +++ b/quantcdn/models/v2_crawler_run.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.9.0 + The version of the OpenAPI document: 4.12.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/quantcdn/models/v2_crawler_schedule.py b/quantcdn/models/v2_crawler_schedule.py index 99e7308..257246c 100644 --- a/quantcdn/models/v2_crawler_schedule.py +++ b/quantcdn/models/v2_crawler_schedule.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.9.0 + The version of the OpenAPI document: 4.12.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -33,7 +33,7 @@ class V2CrawlerSchedule(BaseModel): crawler_uuid: Optional[StrictStr] = Field(default=None, description="Crawler UUID") project_id: StrictInt = Field(description="Project ID") crawler_last_run_id: StrictInt = Field(description="Last run ID") - schedule_cron_string: StrictStr = Field(description="Cron schedule string") + schedule_cron_string: StrictStr = Field(description="Standard Unix cron expression with 5 space-separated fields: minute, hour, day-of-month, month, day-of-week. Example: 0 2 * * * runs daily at 2 AM.") created_at: Optional[datetime] = Field(default=None, description="Creation timestamp") updated_at: Optional[datetime] = Field(default=None, description="Last update timestamp") __properties: ClassVar[List[str]] = ["id", "name", "crawler_config_id", "crawler_uuid", "project_id", "crawler_last_run_id", "schedule_cron_string", "created_at", "updated_at"] diff --git a/quantcdn/models/v2_crawler_schedule_request.py b/quantcdn/models/v2_crawler_schedule_request.py index cb99131..ddd1a58 100644 --- a/quantcdn/models/v2_crawler_schedule_request.py +++ b/quantcdn/models/v2_crawler_schedule_request.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.9.0 + The version of the OpenAPI document: 4.12.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -18,7 +18,7 @@ import json from pydantic import BaseModel, ConfigDict, Field, StrictStr -from typing import Any, ClassVar, Dict, List +from typing import Any, ClassVar, Dict, List, Optional from typing import Optional, Set from typing_extensions import Self @@ -26,8 +26,8 @@ class V2CrawlerScheduleRequest(BaseModel): """ V2CrawlerScheduleRequest """ # noqa: E501 - name: StrictStr = Field(description="Schedule name") - schedule_cron_string: StrictStr = Field(description="Cron schedule string") + name: Optional[StrictStr] = Field(default=None, description="Schedule name. If not provided, defaults to 'Schedule {crawler_name}'.") + schedule_cron_string: StrictStr = Field(description="Standard Unix cron expression with 5 space-separated fields: minute, hour, day-of-month, month, day-of-week. Example: 0 2 * * * for daily at 2 AM.") __properties: ClassVar[List[str]] = ["name", "schedule_cron_string"] model_config = ConfigDict( diff --git a/quantcdn/models/v2_crawler_sitemap_inner.py b/quantcdn/models/v2_crawler_sitemap_inner.py index 93b798d..5f033e1 100644 --- a/quantcdn/models/v2_crawler_sitemap_inner.py +++ b/quantcdn/models/v2_crawler_sitemap_inner.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.9.0 + The version of the OpenAPI document: 4.12.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/quantcdn/models/v2_custom_header_request.py b/quantcdn/models/v2_custom_header_request.py index 233e71f..ae619f6 100644 --- a/quantcdn/models/v2_custom_header_request.py +++ b/quantcdn/models/v2_custom_header_request.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.9.0 + The version of the OpenAPI document: 4.12.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/quantcdn/models/v2_domain.py b/quantcdn/models/v2_domain.py index d8e6f89..fc6bd55 100644 --- a/quantcdn/models/v2_domain.py +++ b/quantcdn/models/v2_domain.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.9.0 + The version of the OpenAPI document: 4.12.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/quantcdn/models/v2_domain_dns_go_live_records_inner.py b/quantcdn/models/v2_domain_dns_go_live_records_inner.py index c3c1fdd..0c5d575 100644 --- a/quantcdn/models/v2_domain_dns_go_live_records_inner.py +++ b/quantcdn/models/v2_domain_dns_go_live_records_inner.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.9.0 + The version of the OpenAPI document: 4.12.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/quantcdn/models/v2_domain_dns_validation_records_inner.py b/quantcdn/models/v2_domain_dns_validation_records_inner.py index 870540c..c49941b 100644 --- a/quantcdn/models/v2_domain_dns_validation_records_inner.py +++ b/quantcdn/models/v2_domain_dns_validation_records_inner.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.9.0 + The version of the OpenAPI document: 4.12.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/quantcdn/models/v2_domain_request.py b/quantcdn/models/v2_domain_request.py index 2337b63..727907e 100644 --- a/quantcdn/models/v2_domain_request.py +++ b/quantcdn/models/v2_domain_request.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.9.0 + The version of the OpenAPI document: 4.12.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/quantcdn/models/v2_error.py b/quantcdn/models/v2_error.py index 261ddc4..68dbbc4 100644 --- a/quantcdn/models/v2_error.py +++ b/quantcdn/models/v2_error.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.9.0 + The version of the OpenAPI document: 4.12.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/quantcdn/models/v2_metric_data.py b/quantcdn/models/v2_metric_data.py new file mode 100644 index 0000000..523bee2 --- /dev/null +++ b/quantcdn/models/v2_metric_data.py @@ -0,0 +1,101 @@ +# coding: utf-8 + +""" + QuantCDN API + + Unified API for QuantCDN Admin and QuantCloud Platform services + + The version of the OpenAPI document: 4.12.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictFloat, StrictInt +from typing import Any, ClassVar, Dict, List, Union +from quantcdn.models.v2_metric_data_point import V2MetricDataPoint +from typing import Optional, Set +from typing_extensions import Self + +class V2MetricData(BaseModel): + """ + V2MetricData + """ # noqa: E501 + series: List[V2MetricDataPoint] = Field(description="Time series data points") + period_total: Union[StrictFloat, StrictInt] = Field(description="Total value for the period") + all_time_total: Union[StrictFloat, StrictInt] = Field(description="All-time total value") + period_average: Union[StrictFloat, StrictInt] = Field(description="Average value per time unit in the period") + __properties: ClassVar[List[str]] = ["series", "period_total", "all_time_total", "period_average"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V2MetricData from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of each item in series (list) + _items = [] + if self.series: + for _item_series in self.series: + if _item_series: + _items.append(_item_series.to_dict()) + _dict['series'] = _items + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V2MetricData from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "series": [V2MetricDataPoint.from_dict(_item) for _item in obj["series"]] if obj.get("series") is not None else None, + "period_total": obj.get("period_total"), + "all_time_total": obj.get("all_time_total"), + "period_average": obj.get("period_average") + }) + return _obj + + diff --git a/quantcdn/models/v2_metric_data_point.py b/quantcdn/models/v2_metric_data_point.py new file mode 100644 index 0000000..fae070e --- /dev/null +++ b/quantcdn/models/v2_metric_data_point.py @@ -0,0 +1,93 @@ +# coding: utf-8 + +""" + QuantCDN API + + Unified API for QuantCDN Admin and QuantCloud Platform services + + The version of the OpenAPI document: 4.12.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictFloat, StrictInt +from typing import Any, ClassVar, Dict, List, Union +from quantcdn.models.v2_metric_data_point_timestamp import V2MetricDataPointTimestamp +from typing import Optional, Set +from typing_extensions import Self + +class V2MetricDataPoint(BaseModel): + """ + V2MetricDataPoint + """ # noqa: E501 + timestamp: V2MetricDataPointTimestamp + value: Union[StrictFloat, StrictInt] = Field(description="Metric value at this timestamp") + __properties: ClassVar[List[str]] = ["timestamp", "value"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V2MetricDataPoint from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of timestamp + if self.timestamp: + _dict['timestamp'] = self.timestamp.to_dict() + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V2MetricDataPoint from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "timestamp": V2MetricDataPointTimestamp.from_dict(obj["timestamp"]) if obj.get("timestamp") is not None else None, + "value": obj.get("value") + }) + return _obj + + diff --git a/quantcdn/models/v2_metric_data_point_timestamp.py b/quantcdn/models/v2_metric_data_point_timestamp.py new file mode 100644 index 0000000..933f17a --- /dev/null +++ b/quantcdn/models/v2_metric_data_point_timestamp.py @@ -0,0 +1,144 @@ +# coding: utf-8 + +""" + QuantCDN API + + Unified API for QuantCDN Admin and QuantCloud Platform services + + The version of the OpenAPI document: 4.12.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import json +import pprint +from datetime import datetime +from pydantic import BaseModel, ConfigDict, Field, StrictInt, StrictStr, ValidationError, field_validator +from typing import Any, List, Optional +from pydantic import StrictStr, Field +from typing import Union, List, Set, Optional, Dict +from typing_extensions import Literal, Self + +V2METRICDATAPOINTTIMESTAMP_ONE_OF_SCHEMAS = ["datetime", "int"] + +class V2MetricDataPointTimestamp(BaseModel): + """ + Timestamp for this data point (format depends on timestamp_format parameter) + """ + # data type: datetime + oneof_schema_1_validator: Optional[datetime] = Field(default=None, description="ISO8601 timestamp") + # data type: int + oneof_schema_2_validator: Optional[StrictInt] = Field(default=None, description="Unix timestamp") + actual_instance: Optional[Union[datetime, int]] = None + one_of_schemas: Set[str] = { "datetime", "int" } + + model_config = ConfigDict( + validate_assignment=True, + protected_namespaces=(), + ) + + + def __init__(self, *args, **kwargs) -> None: + if args: + if len(args) > 1: + raise ValueError("If a position argument is used, only 1 is allowed to set `actual_instance`") + if kwargs: + raise ValueError("If a position argument is used, keyword arguments cannot be used.") + super().__init__(actual_instance=args[0]) + else: + super().__init__(**kwargs) + + @field_validator('actual_instance') + def actual_instance_must_validate_oneof(cls, v): + instance = V2MetricDataPointTimestamp.model_construct() + error_messages = [] + match = 0 + # validate data type: datetime + try: + instance.oneof_schema_1_validator = v + match += 1 + except (ValidationError, ValueError) as e: + error_messages.append(str(e)) + # validate data type: int + try: + instance.oneof_schema_2_validator = v + match += 1 + except (ValidationError, ValueError) as e: + error_messages.append(str(e)) + if match > 1: + # more than 1 match + raise ValueError("Multiple matches found when setting `actual_instance` in V2MetricDataPointTimestamp with oneOf schemas: datetime, int. Details: " + ", ".join(error_messages)) + elif match == 0: + # no match + raise ValueError("No match found when setting `actual_instance` in V2MetricDataPointTimestamp with oneOf schemas: datetime, int. Details: " + ", ".join(error_messages)) + else: + return v + + @classmethod + def from_dict(cls, obj: Union[str, Dict[str, Any]]) -> Self: + return cls.from_json(json.dumps(obj)) + + @classmethod + def from_json(cls, json_str: str) -> Self: + """Returns the object represented by the json string""" + instance = cls.model_construct() + error_messages = [] + match = 0 + + # deserialize data into datetime + try: + # validation + instance.oneof_schema_1_validator = json.loads(json_str) + # assign value to actual_instance + instance.actual_instance = instance.oneof_schema_1_validator + match += 1 + except (ValidationError, ValueError) as e: + error_messages.append(str(e)) + # deserialize data into int + try: + # validation + instance.oneof_schema_2_validator = json.loads(json_str) + # assign value to actual_instance + instance.actual_instance = instance.oneof_schema_2_validator + match += 1 + except (ValidationError, ValueError) as e: + error_messages.append(str(e)) + + if match > 1: + # more than 1 match + raise ValueError("Multiple matches found when deserializing the JSON string into V2MetricDataPointTimestamp with oneOf schemas: datetime, int. Details: " + ", ".join(error_messages)) + elif match == 0: + # no match + raise ValueError("No match found when deserializing the JSON string into V2MetricDataPointTimestamp with oneOf schemas: datetime, int. Details: " + ", ".join(error_messages)) + else: + return instance + + def to_json(self) -> str: + """Returns the JSON representation of the actual instance""" + if self.actual_instance is None: + return "null" + + if hasattr(self.actual_instance, "to_json") and callable(self.actual_instance.to_json): + return self.actual_instance.to_json() + else: + return json.dumps(self.actual_instance) + + def to_dict(self) -> Optional[Union[Dict[str, Any], datetime, int]]: + """Returns the dict representation of the actual instance""" + if self.actual_instance is None: + return None + + if hasattr(self.actual_instance, "to_dict") and callable(self.actual_instance.to_dict): + return self.actual_instance.to_dict() + else: + # primitive type + return self.actual_instance + + def to_str(self) -> str: + """Returns the string representation of the actual instance""" + return pprint.pformat(self.model_dump()) + + diff --git a/quantcdn/models/v2_metrics_meta.py b/quantcdn/models/v2_metrics_meta.py new file mode 100644 index 0000000..7c06484 --- /dev/null +++ b/quantcdn/models/v2_metrics_meta.py @@ -0,0 +1,116 @@ +# coding: utf-8 + +""" + QuantCDN API + + Unified API for QuantCDN Admin and QuantCloud Platform services + + The version of the OpenAPI document: 4.12.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr, field_validator +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class V2MetricsMeta(BaseModel): + """ + V2MetricsMeta + """ # noqa: E501 + period: StrictStr = Field(description="The period type for this data") + granularity: StrictStr = Field(description="The granularity of data points") + start_time: StrictStr = Field(description="Start time of the data range (ISO8601 or Unix timestamp based on timestamp_format parameter)") + end_time: StrictStr = Field(description="End time of the data range (ISO8601 or Unix timestamp based on timestamp_format parameter)") + metrics: List[StrictStr] = Field(description="List of metrics included in the response") + domain: Optional[StrictStr] = Field(default=None, description="Domain filter applied (if any)") + __properties: ClassVar[List[str]] = ["period", "granularity", "start_time", "end_time", "metrics", "domain"] + + @field_validator('period') + def period_validate_enum(cls, value): + """Validates the enum""" + if value not in set(['hourly', 'daily', 'monthly']): + raise ValueError("must be one of enum values ('hourly', 'daily', 'monthly')") + return value + + @field_validator('granularity') + def granularity_validate_enum(cls, value): + """Validates the enum""" + if value not in set(['minute', 'day', 'month']): + raise ValueError("must be one of enum values ('minute', 'day', 'month')") + return value + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V2MetricsMeta from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # set to None if domain (nullable) is None + # and model_fields_set contains the field + if self.domain is None and "domain" in self.model_fields_set: + _dict['domain'] = None + + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V2MetricsMeta from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "period": obj.get("period"), + "granularity": obj.get("granularity"), + "start_time": obj.get("start_time"), + "end_time": obj.get("end_time"), + "metrics": obj.get("metrics"), + "domain": obj.get("domain") + }) + return _obj + + diff --git a/quantcdn/models/v2_metrics_response.py b/quantcdn/models/v2_metrics_response.py new file mode 100644 index 0000000..23e1e6b --- /dev/null +++ b/quantcdn/models/v2_metrics_response.py @@ -0,0 +1,106 @@ +# coding: utf-8 + +""" + QuantCDN API + + Unified API for QuantCDN Admin and QuantCloud Platform services + + The version of the OpenAPI document: 4.12.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field +from typing import Any, ClassVar, Dict, List +from quantcdn.models.v2_metric_data import V2MetricData +from quantcdn.models.v2_metrics_meta import V2MetricsMeta +from typing import Optional, Set +from typing_extensions import Self + +class V2MetricsResponse(BaseModel): + """ + V2MetricsResponse + """ # noqa: E501 + meta: V2MetricsMeta + data: Dict[str, V2MetricData] = Field(description="Metrics data keyed by metric name") + __properties: ClassVar[List[str]] = ["meta", "data"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V2MetricsResponse from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of meta + if self.meta: + _dict['meta'] = self.meta.to_dict() + # override the default output from pydantic by calling `to_dict()` of each value in data (dict) + _field_dict = {} + if self.data: + for _key_data in self.data: + if self.data[_key_data]: + _field_dict[_key_data] = self.data[_key_data].to_dict() + _dict['data'] = _field_dict + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V2MetricsResponse from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "meta": V2MetricsMeta.from_dict(obj["meta"]) if obj.get("meta") is not None else None, + "data": dict( + (_k, V2MetricData.from_dict(_v)) + for _k, _v in obj["data"].items() + ) + if obj.get("data") is not None + else None + }) + return _obj + + diff --git a/quantcdn/models/v2_organization.py b/quantcdn/models/v2_organization.py index a10455a..9cebfbf 100644 --- a/quantcdn/models/v2_organization.py +++ b/quantcdn/models/v2_organization.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.9.0 + The version of the OpenAPI document: 4.12.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/quantcdn/models/v2_organization_request.py b/quantcdn/models/v2_organization_request.py index b559cba..0684589 100644 --- a/quantcdn/models/v2_organization_request.py +++ b/quantcdn/models/v2_organization_request.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.9.0 + The version of the OpenAPI document: 4.12.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/quantcdn/models/v2_project.py b/quantcdn/models/v2_project.py index f0b36fd..1b9e09b 100644 --- a/quantcdn/models/v2_project.py +++ b/quantcdn/models/v2_project.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.9.0 + The version of the OpenAPI document: 4.12.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/quantcdn/models/v2_project_request.py b/quantcdn/models/v2_project_request.py index 54b1bc9..9c30820 100644 --- a/quantcdn/models/v2_project_request.py +++ b/quantcdn/models/v2_project_request.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.9.0 + The version of the OpenAPI document: 4.12.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/quantcdn/models/v2_rule.py b/quantcdn/models/v2_rule.py index da59caf..9c80682 100644 --- a/quantcdn/models/v2_rule.py +++ b/quantcdn/models/v2_rule.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.9.0 + The version of the OpenAPI document: 4.12.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/quantcdn/models/v2_rule_auth.py b/quantcdn/models/v2_rule_auth.py index c3a8e58..198c98c 100644 --- a/quantcdn/models/v2_rule_auth.py +++ b/quantcdn/models/v2_rule_auth.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.9.0 + The version of the OpenAPI document: 4.12.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/quantcdn/models/v2_rule_auth_action.py b/quantcdn/models/v2_rule_auth_action.py index d20aa28..4853855 100644 --- a/quantcdn/models/v2_rule_auth_action.py +++ b/quantcdn/models/v2_rule_auth_action.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.9.0 + The version of the OpenAPI document: 4.12.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/quantcdn/models/v2_rule_auth_request.py b/quantcdn/models/v2_rule_auth_request.py index 9930d9b..03164e5 100644 --- a/quantcdn/models/v2_rule_auth_request.py +++ b/quantcdn/models/v2_rule_auth_request.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.9.0 + The version of the OpenAPI document: 4.12.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/quantcdn/models/v2_rule_bot_challenge.py b/quantcdn/models/v2_rule_bot_challenge.py index b3828ec..4daf0fc 100644 --- a/quantcdn/models/v2_rule_bot_challenge.py +++ b/quantcdn/models/v2_rule_bot_challenge.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.9.0 + The version of the OpenAPI document: 4.12.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/quantcdn/models/v2_rule_bot_challenge_action.py b/quantcdn/models/v2_rule_bot_challenge_action.py index 403d0fd..4fc1299 100644 --- a/quantcdn/models/v2_rule_bot_challenge_action.py +++ b/quantcdn/models/v2_rule_bot_challenge_action.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.9.0 + The version of the OpenAPI document: 4.12.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/quantcdn/models/v2_rule_bot_challenge_request.py b/quantcdn/models/v2_rule_bot_challenge_request.py index d40e59b..eabf89a 100644 --- a/quantcdn/models/v2_rule_bot_challenge_request.py +++ b/quantcdn/models/v2_rule_bot_challenge_request.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.9.0 + The version of the OpenAPI document: 4.12.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/quantcdn/models/v2_rule_content_filter.py b/quantcdn/models/v2_rule_content_filter.py index b98d17a..16d408b 100644 --- a/quantcdn/models/v2_rule_content_filter.py +++ b/quantcdn/models/v2_rule_content_filter.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.9.0 + The version of the OpenAPI document: 4.12.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/quantcdn/models/v2_rule_content_filter_action.py b/quantcdn/models/v2_rule_content_filter_action.py index 763ce88..d6c6b53 100644 --- a/quantcdn/models/v2_rule_content_filter_action.py +++ b/quantcdn/models/v2_rule_content_filter_action.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.9.0 + The version of the OpenAPI document: 4.12.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/quantcdn/models/v2_rule_content_filter_request.py b/quantcdn/models/v2_rule_content_filter_request.py index 48fc081..b7547de 100644 --- a/quantcdn/models/v2_rule_content_filter_request.py +++ b/quantcdn/models/v2_rule_content_filter_request.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.9.0 + The version of the OpenAPI document: 4.12.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/quantcdn/models/v2_rule_custom_response.py b/quantcdn/models/v2_rule_custom_response.py index c00bbf6..a3ce04e 100644 --- a/quantcdn/models/v2_rule_custom_response.py +++ b/quantcdn/models/v2_rule_custom_response.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.9.0 + The version of the OpenAPI document: 4.12.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/quantcdn/models/v2_rule_custom_response_action.py b/quantcdn/models/v2_rule_custom_response_action.py index 52b4352..ee9dbdd 100644 --- a/quantcdn/models/v2_rule_custom_response_action.py +++ b/quantcdn/models/v2_rule_custom_response_action.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.9.0 + The version of the OpenAPI document: 4.12.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/quantcdn/models/v2_rule_custom_response_request.py b/quantcdn/models/v2_rule_custom_response_request.py index ec64eb1..a7a286d 100644 --- a/quantcdn/models/v2_rule_custom_response_request.py +++ b/quantcdn/models/v2_rule_custom_response_request.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.9.0 + The version of the OpenAPI document: 4.12.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/quantcdn/models/v2_rule_function.py b/quantcdn/models/v2_rule_function.py index 1d79e2f..cbdb234 100644 --- a/quantcdn/models/v2_rule_function.py +++ b/quantcdn/models/v2_rule_function.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.9.0 + The version of the OpenAPI document: 4.12.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/quantcdn/models/v2_rule_function_action.py b/quantcdn/models/v2_rule_function_action.py index 4ffbd58..f412187 100644 --- a/quantcdn/models/v2_rule_function_action.py +++ b/quantcdn/models/v2_rule_function_action.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.9.0 + The version of the OpenAPI document: 4.12.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/quantcdn/models/v2_rule_function_request.py b/quantcdn/models/v2_rule_function_request.py index 531cabf..6c391ce 100644 --- a/quantcdn/models/v2_rule_function_request.py +++ b/quantcdn/models/v2_rule_function_request.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.9.0 + The version of the OpenAPI document: 4.12.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/quantcdn/models/v2_rule_header.py b/quantcdn/models/v2_rule_header.py index 6123552..8309aea 100644 --- a/quantcdn/models/v2_rule_header.py +++ b/quantcdn/models/v2_rule_header.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.9.0 + The version of the OpenAPI document: 4.12.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/quantcdn/models/v2_rule_header_action.py b/quantcdn/models/v2_rule_header_action.py index 9fbf4ef..3385cfc 100644 --- a/quantcdn/models/v2_rule_header_action.py +++ b/quantcdn/models/v2_rule_header_action.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.9.0 + The version of the OpenAPI document: 4.12.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/quantcdn/models/v2_rule_header_request.py b/quantcdn/models/v2_rule_header_request.py index 1422f00..7e7c8f6 100644 --- a/quantcdn/models/v2_rule_header_request.py +++ b/quantcdn/models/v2_rule_header_request.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.9.0 + The version of the OpenAPI document: 4.12.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/quantcdn/models/v2_rule_proxy.py b/quantcdn/models/v2_rule_proxy.py index 2cb9dbc..00aebbd 100644 --- a/quantcdn/models/v2_rule_proxy.py +++ b/quantcdn/models/v2_rule_proxy.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.9.0 + The version of the OpenAPI document: 4.12.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/quantcdn/models/v2_rule_proxy_action.py b/quantcdn/models/v2_rule_proxy_action.py index f3782f3..f8a4e73 100644 --- a/quantcdn/models/v2_rule_proxy_action.py +++ b/quantcdn/models/v2_rule_proxy_action.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.9.0 + The version of the OpenAPI document: 4.12.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/quantcdn/models/v2_rule_proxy_action_notify_config.py b/quantcdn/models/v2_rule_proxy_action_notify_config.py index 8f1b87a..f47bdeb 100644 --- a/quantcdn/models/v2_rule_proxy_action_notify_config.py +++ b/quantcdn/models/v2_rule_proxy_action_notify_config.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.9.0 + The version of the OpenAPI document: 4.12.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/quantcdn/models/v2_rule_proxy_action_quant_cloud_selection.py b/quantcdn/models/v2_rule_proxy_action_quant_cloud_selection.py index 7cc2a57..c268c84 100644 --- a/quantcdn/models/v2_rule_proxy_action_quant_cloud_selection.py +++ b/quantcdn/models/v2_rule_proxy_action_quant_cloud_selection.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.9.0 + The version of the OpenAPI document: 4.12.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/quantcdn/models/v2_rule_proxy_request.py b/quantcdn/models/v2_rule_proxy_request.py index 309c488..e12b646 100644 --- a/quantcdn/models/v2_rule_proxy_request.py +++ b/quantcdn/models/v2_rule_proxy_request.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.9.0 + The version of the OpenAPI document: 4.12.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/quantcdn/models/v2_rule_redirect.py b/quantcdn/models/v2_rule_redirect.py index 4983488..c33cc47 100644 --- a/quantcdn/models/v2_rule_redirect.py +++ b/quantcdn/models/v2_rule_redirect.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.9.0 + The version of the OpenAPI document: 4.12.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/quantcdn/models/v2_rule_redirect_action.py b/quantcdn/models/v2_rule_redirect_action.py index b17a02f..8fba7b9 100644 --- a/quantcdn/models/v2_rule_redirect_action.py +++ b/quantcdn/models/v2_rule_redirect_action.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.9.0 + The version of the OpenAPI document: 4.12.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/quantcdn/models/v2_rule_redirect_request.py b/quantcdn/models/v2_rule_redirect_request.py index 4d2a70e..49f6938 100644 --- a/quantcdn/models/v2_rule_redirect_request.py +++ b/quantcdn/models/v2_rule_redirect_request.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.9.0 + The version of the OpenAPI document: 4.12.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/quantcdn/models/v2_rule_request.py b/quantcdn/models/v2_rule_request.py index b1a51fb..5d674b3 100644 --- a/quantcdn/models/v2_rule_request.py +++ b/quantcdn/models/v2_rule_request.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.9.0 + The version of the OpenAPI document: 4.12.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/quantcdn/models/v2_rule_serve_static.py b/quantcdn/models/v2_rule_serve_static.py index 487f4fe..5740a79 100644 --- a/quantcdn/models/v2_rule_serve_static.py +++ b/quantcdn/models/v2_rule_serve_static.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.9.0 + The version of the OpenAPI document: 4.12.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/quantcdn/models/v2_rule_serve_static_action.py b/quantcdn/models/v2_rule_serve_static_action.py index c9943ee..0f8c482 100644 --- a/quantcdn/models/v2_rule_serve_static_action.py +++ b/quantcdn/models/v2_rule_serve_static_action.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.9.0 + The version of the OpenAPI document: 4.12.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/quantcdn/models/v2_rule_serve_static_request.py b/quantcdn/models/v2_rule_serve_static_request.py index 39f22d0..0f1a232 100644 --- a/quantcdn/models/v2_rule_serve_static_request.py +++ b/quantcdn/models/v2_rule_serve_static_request.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.9.0 + The version of the OpenAPI document: 4.12.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/quantcdn/models/v2_secret_store.py b/quantcdn/models/v2_secret_store.py index 73e4056..2430395 100644 --- a/quantcdn/models/v2_secret_store.py +++ b/quantcdn/models/v2_secret_store.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.9.0 + The version of the OpenAPI document: 4.12.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/quantcdn/models/v2_secret_store_request.py b/quantcdn/models/v2_secret_store_request.py index 2858139..fe4e6c9 100644 --- a/quantcdn/models/v2_secret_store_request.py +++ b/quantcdn/models/v2_secret_store_request.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.9.0 + The version of the OpenAPI document: 4.12.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/quantcdn/models/v2_store.py b/quantcdn/models/v2_store.py index 9e1b7cd..5352a01 100644 --- a/quantcdn/models/v2_store.py +++ b/quantcdn/models/v2_store.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.9.0 + The version of the OpenAPI document: 4.12.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/quantcdn/models/v2_store_item.py b/quantcdn/models/v2_store_item.py index ddac216..d6e1804 100644 --- a/quantcdn/models/v2_store_item.py +++ b/quantcdn/models/v2_store_item.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.9.0 + The version of the OpenAPI document: 4.12.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/quantcdn/models/v2_store_item_request.py b/quantcdn/models/v2_store_item_request.py index b4445e0..46dcc41 100644 --- a/quantcdn/models/v2_store_item_request.py +++ b/quantcdn/models/v2_store_item_request.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.9.0 + The version of the OpenAPI document: 4.12.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/quantcdn/models/v2_store_item_update_request.py b/quantcdn/models/v2_store_item_update_request.py index d8f780e..758bc9d 100644 --- a/quantcdn/models/v2_store_item_update_request.py +++ b/quantcdn/models/v2_store_item_update_request.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.9.0 + The version of the OpenAPI document: 4.12.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/quantcdn/models/v2_store_items_list_response.py b/quantcdn/models/v2_store_items_list_response.py index 808270b..f2034ee 100644 --- a/quantcdn/models/v2_store_items_list_response.py +++ b/quantcdn/models/v2_store_items_list_response.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.9.0 + The version of the OpenAPI document: 4.12.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/quantcdn/models/v2_store_request.py b/quantcdn/models/v2_store_request.py index 5fc5ce9..e4a2bb4 100644 --- a/quantcdn/models/v2_store_request.py +++ b/quantcdn/models/v2_store_request.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.9.0 + The version of the OpenAPI document: 4.12.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/quantcdn/models/validate_compose200_response.py b/quantcdn/models/validate_compose200_response.py index 165ee3e..8228541 100644 --- a/quantcdn/models/validate_compose200_response.py +++ b/quantcdn/models/validate_compose200_response.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.9.0 + The version of the OpenAPI document: 4.12.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/quantcdn/models/validate_compose422_response.py b/quantcdn/models/validate_compose422_response.py index 254ca7f..d61e57d 100644 --- a/quantcdn/models/validate_compose422_response.py +++ b/quantcdn/models/validate_compose422_response.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.9.0 + The version of the OpenAPI document: 4.12.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/quantcdn/models/validate_compose_request.py b/quantcdn/models/validate_compose_request.py index 6fdd3bc..195b515 100644 --- a/quantcdn/models/validate_compose_request.py +++ b/quantcdn/models/validate_compose_request.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.9.0 + The version of the OpenAPI document: 4.12.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/quantcdn/models/variable.py b/quantcdn/models/variable.py index 313d250..684e51c 100644 --- a/quantcdn/models/variable.py +++ b/quantcdn/models/variable.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.9.0 + The version of the OpenAPI document: 4.12.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/quantcdn/models/volume.py b/quantcdn/models/volume.py index c8f6f2b..87cc0bc 100644 --- a/quantcdn/models/volume.py +++ b/quantcdn/models/volume.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.9.0 + The version of the OpenAPI document: 4.12.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/quantcdn/models/waf_config.py b/quantcdn/models/waf_config.py index d67d39d..bfc8e97 100644 --- a/quantcdn/models/waf_config.py +++ b/quantcdn/models/waf_config.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.9.0 + The version of the OpenAPI document: 4.12.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/quantcdn/models/waf_config_block_lists.py b/quantcdn/models/waf_config_block_lists.py index 84f2361..43a78f0 100644 --- a/quantcdn/models/waf_config_block_lists.py +++ b/quantcdn/models/waf_config_block_lists.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.9.0 + The version of the OpenAPI document: 4.12.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/quantcdn/models/waf_config_httpbl.py b/quantcdn/models/waf_config_httpbl.py index d3fed9b..b11ff07 100644 --- a/quantcdn/models/waf_config_httpbl.py +++ b/quantcdn/models/waf_config_httpbl.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.9.0 + The version of the OpenAPI document: 4.12.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/quantcdn/models/waf_config_thresholds_inner.py b/quantcdn/models/waf_config_thresholds_inner.py index 2cb6929..ad10060 100644 --- a/quantcdn/models/waf_config_thresholds_inner.py +++ b/quantcdn/models/waf_config_thresholds_inner.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.9.0 + The version of the OpenAPI document: 4.12.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/quantcdn/rest.py b/quantcdn/rest.py index 9269c3d..23fe991 100644 --- a/quantcdn/rest.py +++ b/quantcdn/rest.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.9.0 + The version of the OpenAPI document: 4.12.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/setup.py b/setup.py index 5e8461b..43f5180 100644 --- a/setup.py +++ b/setup.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.9.0 + The version of the OpenAPI document: 4.12.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -21,7 +21,7 @@ # prerequisite: setuptools # http://pypi.python.org/pypi/setuptools NAME = "quantcdn-client" -VERSION = "4.9.0" +VERSION = "4.12.0" PYTHON_REQUIRES = ">= 3.9" REQUIRES = [ "urllib3 >= 2.1.0, < 3.0.0", diff --git a/test/test_ai_agents_api.py b/test/test_ai_agents_api.py index 32c0d6a..8bf3062 100644 --- a/test/test_ai_agents_api.py +++ b/test/test_ai_agents_api.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.9.0 + The version of the OpenAPI document: 4.12.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_ai_custom_tools_api.py b/test/test_ai_custom_tools_api.py index ccc184a..4f5485e 100644 --- a/test/test_ai_custom_tools_api.py +++ b/test/test_ai_custom_tools_api.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.9.0 + The version of the OpenAPI document: 4.12.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_ai_file_storage_api.py b/test/test_ai_file_storage_api.py index ca714ed..d09c076 100644 --- a/test/test_ai_file_storage_api.py +++ b/test/test_ai_file_storage_api.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.9.0 + The version of the OpenAPI document: 4.12.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_ai_inference_api.py b/test/test_ai_inference_api.py index 941fd74..bea86f7 100644 --- a/test/test_ai_inference_api.py +++ b/test/test_ai_inference_api.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.9.0 + The version of the OpenAPI document: 4.12.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_ai_models_api.py b/test/test_ai_models_api.py index 9ca7892..d648e54 100644 --- a/test/test_ai_models_api.py +++ b/test/test_ai_models_api.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.9.0 + The version of the OpenAPI document: 4.12.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_ai_monitoring_api.py b/test/test_ai_monitoring_api.py index d589590..765d521 100644 --- a/test/test_ai_monitoring_api.py +++ b/test/test_ai_monitoring_api.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.9.0 + The version of the OpenAPI document: 4.12.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_ai_orchestrations_api.py b/test/test_ai_orchestrations_api.py new file mode 100644 index 0000000..9da4930 --- /dev/null +++ b/test/test_ai_orchestrations_api.py @@ -0,0 +1,94 @@ +# coding: utf-8 + +""" + QuantCDN API + + Unified API for QuantCDN Admin and QuantCloud Platform services + + The version of the OpenAPI document: 4.12.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from quantcdn.api.ai_orchestrations_api import AIOrchestrationsApi + + +class TestAIOrchestrationsApi(unittest.TestCase): + """AIOrchestrationsApi unit test stubs""" + + def setUp(self) -> None: + self.api = AIOrchestrationsApi() + + def tearDown(self) -> None: + pass + + def test_cancel_orchestration(self) -> None: + """Test case for cancel_orchestration + + Cancel Durable Orchestration + """ + pass + + def test_create_orchestration(self) -> None: + """Test case for create_orchestration + + Create Durable Orchestration + """ + pass + + def test_delete_orchestration(self) -> None: + """Test case for delete_orchestration + + Delete Durable Orchestration + """ + pass + + def test_get_orchestration(self) -> None: + """Test case for get_orchestration + + Get Durable Orchestration + """ + pass + + def test_list_orchestration_batches(self) -> None: + """Test case for list_orchestration_batches + + List Orchestration Batches + """ + pass + + def test_list_orchestrations(self) -> None: + """Test case for list_orchestrations + + List Durable Orchestrations + """ + pass + + def test_pause_orchestration(self) -> None: + """Test case for pause_orchestration + + Pause Durable Orchestration + """ + pass + + def test_resume_orchestration(self) -> None: + """Test case for resume_orchestration + + Resume Durable Orchestration + """ + pass + + def test_start_orchestration(self) -> None: + """Test case for start_orchestration + + Start Durable Orchestration + """ + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_ai_sessions_api.py b/test/test_ai_sessions_api.py index 4e888e6..1e6f8ca 100644 --- a/test/test_ai_sessions_api.py +++ b/test/test_ai_sessions_api.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.9.0 + The version of the OpenAPI document: 4.12.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_ai_skills_api.py b/test/test_ai_skills_api.py new file mode 100644 index 0000000..b780ebb --- /dev/null +++ b/test/test_ai_skills_api.py @@ -0,0 +1,108 @@ +# coding: utf-8 + +""" + QuantCDN API + + Unified API for QuantCDN Admin and QuantCloud Platform services + + The version of the OpenAPI document: 4.12.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from quantcdn.api.ai_skills_api import AISkillsApi + + +class TestAISkillsApi(unittest.TestCase): + """AISkillsApi unit test stubs""" + + def setUp(self) -> None: + self.api = AISkillsApi() + + def tearDown(self) -> None: + pass + + def test_create_skill(self) -> None: + """Test case for create_skill + + Create Inline Skill + """ + pass + + def test_delete_skill(self) -> None: + """Test case for delete_skill + + Delete Skill + """ + pass + + def test_delete_skill_collection(self) -> None: + """Test case for delete_skill_collection + + Delete Skill Collection + """ + pass + + def test_get_skill(self) -> None: + """Test case for get_skill + + Get Skill Details + """ + pass + + def test_import_skill(self) -> None: + """Test case for import_skill + + Import Skill from External Source + """ + pass + + def test_import_skill_collection(self) -> None: + """Test case for import_skill_collection + + Import Skill Collection from GitHub + """ + pass + + def test_list_skill_collections(self) -> None: + """Test case for list_skill_collections + + List Skill Collections + """ + pass + + def test_list_skills(self) -> None: + """Test case for list_skills + + List Organization's Skills + """ + pass + + def test_sync_skill(self) -> None: + """Test case for sync_skill + + Sync Skill from Source + """ + pass + + def test_sync_skill_collection(self) -> None: + """Test case for sync_skill_collection + + Sync Skill Collection + """ + pass + + def test_update_skill(self) -> None: + """Test case for update_skill + + Update Skill + """ + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_ai_task_management_api.py b/test/test_ai_task_management_api.py index 0402fb1..f9c345a 100644 --- a/test/test_ai_task_management_api.py +++ b/test/test_ai_task_management_api.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.9.0 + The version of the OpenAPI document: 4.12.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_ai_tools_api.py b/test/test_ai_tools_api.py index 7cae802..7076b67 100644 --- a/test/test_ai_tools_api.py +++ b/test/test_ai_tools_api.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.9.0 + The version of the OpenAPI document: 4.12.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -29,7 +29,7 @@ def tearDown(self) -> None: def test_get_ai_orchestration_status(self) -> None: """Test case for get_ai_orchestration_status - Get Orchestration Status + Get Tool Orchestration Status (Async Tool Polling) """ pass diff --git a/test/test_ai_vector_database_api.py b/test/test_ai_vector_database_api.py index ca10ff6..a6a1af4 100644 --- a/test/test_ai_vector_database_api.py +++ b/test/test_ai_vector_database_api.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.9.0 + The version of the OpenAPI document: 4.12.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -40,6 +40,13 @@ def test_delete_vector_collection(self) -> None: """ pass + def test_delete_vector_documents(self) -> None: + """Test case for delete_vector_documents + + Delete Documents from Collection + """ + pass + def test_get_vector_collection(self) -> None: """Test case for get_vector_collection diff --git a/test/test_application.py b/test/test_application.py index 0d6e55a..e1367a5 100644 --- a/test/test_application.py +++ b/test/test_application.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.9.0 + The version of the OpenAPI document: 4.12.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_application_database.py b/test/test_application_database.py index 60d5873..3d03c78 100644 --- a/test/test_application_database.py +++ b/test/test_application_database.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.9.0 + The version of the OpenAPI document: 4.12.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_application_deployment_information_inner.py b/test/test_application_deployment_information_inner.py index 70862aa..4e416fe 100644 --- a/test/test_application_deployment_information_inner.py +++ b/test/test_application_deployment_information_inner.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.9.0 + The version of the OpenAPI document: 4.12.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_application_environments_inner.py b/test/test_application_environments_inner.py index 0cb50a8..1bce994 100644 --- a/test/test_application_environments_inner.py +++ b/test/test_application_environments_inner.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.9.0 + The version of the OpenAPI document: 4.12.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_application_filesystem.py b/test/test_application_filesystem.py index 74ee292..c9dc4b0 100644 --- a/test/test_application_filesystem.py +++ b/test/test_application_filesystem.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.9.0 + The version of the OpenAPI document: 4.12.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_application_image_reference.py b/test/test_application_image_reference.py index 6309ed5..5b086ca 100644 --- a/test/test_application_image_reference.py +++ b/test/test_application_image_reference.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.9.0 + The version of the OpenAPI document: 4.12.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_applications_api.py b/test/test_applications_api.py index 1ee18a9..2250fed 100644 --- a/test/test_applications_api.py +++ b/test/test_applications_api.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.9.0 + The version of the OpenAPI document: 4.12.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_backup_management_api.py b/test/test_backup_management_api.py index c0d7a92..c7d142f 100644 --- a/test/test_backup_management_api.py +++ b/test/test_backup_management_api.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.9.0 + The version of the OpenAPI document: 4.12.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_bulk_set_environment_variables_request.py b/test/test_bulk_set_environment_variables_request.py index 7adeebd..7cfdccb 100644 --- a/test/test_bulk_set_environment_variables_request.py +++ b/test/test_bulk_set_environment_variables_request.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.9.0 + The version of the OpenAPI document: 4.12.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_bulk_set_environment_variables_request_environment_inner.py b/test/test_bulk_set_environment_variables_request_environment_inner.py index afbf444..264b307 100644 --- a/test/test_bulk_set_environment_variables_request_environment_inner.py +++ b/test/test_bulk_set_environment_variables_request_environment_inner.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.9.0 + The version of the OpenAPI document: 4.12.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_cdn_metrics_api.py b/test/test_cdn_metrics_api.py new file mode 100644 index 0000000..7d2657a --- /dev/null +++ b/test/test_cdn_metrics_api.py @@ -0,0 +1,52 @@ +# coding: utf-8 + +""" + QuantCDN API + + Unified API for QuantCDN Admin and QuantCloud Platform services + + The version of the OpenAPI document: 4.12.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from quantcdn.api.cdn_metrics_api import CDNMetricsApi + + +class TestCDNMetricsApi(unittest.TestCase): + """CDNMetricsApi unit test stubs""" + + def setUp(self) -> None: + self.api = CDNMetricsApi() + + def tearDown(self) -> None: + pass + + def test_get_daily_metrics(self) -> None: + """Test case for get_daily_metrics + + Get daily metrics + """ + pass + + def test_get_hourly_metrics(self) -> None: + """Test case for get_hourly_metrics + + Get hourly metrics + """ + pass + + def test_get_monthly_metrics(self) -> None: + """Test case for get_monthly_metrics + + Get monthly metrics + """ + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_chat_inference200_response.py b/test/test_chat_inference200_response.py index 1eff608..e424be1 100644 --- a/test/test_chat_inference200_response.py +++ b/test/test_chat_inference200_response.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.9.0 + The version of the OpenAPI document: 4.12.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_chat_inference200_response_response.py b/test/test_chat_inference200_response_response.py index 14f627a..f5a01c9 100644 --- a/test/test_chat_inference200_response_response.py +++ b/test/test_chat_inference200_response_response.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.9.0 + The version of the OpenAPI document: 4.12.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_chat_inference200_response_response_tool_use.py b/test/test_chat_inference200_response_response_tool_use.py index 39b6652..d9e08ba 100644 --- a/test/test_chat_inference200_response_response_tool_use.py +++ b/test/test_chat_inference200_response_response_tool_use.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.9.0 + The version of the OpenAPI document: 4.12.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_chat_inference200_response_response_tool_use_one_of.py b/test/test_chat_inference200_response_response_tool_use_one_of.py index 7996fd6..a1d6e66 100644 --- a/test/test_chat_inference200_response_response_tool_use_one_of.py +++ b/test/test_chat_inference200_response_response_tool_use_one_of.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.9.0 + The version of the OpenAPI document: 4.12.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_chat_inference200_response_response_tool_use_one_of1_inner.py b/test/test_chat_inference200_response_response_tool_use_one_of1_inner.py index 1e49696..cc50b8b 100644 --- a/test/test_chat_inference200_response_response_tool_use_one_of1_inner.py +++ b/test/test_chat_inference200_response_response_tool_use_one_of1_inner.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.9.0 + The version of the OpenAPI document: 4.12.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_chat_inference200_response_response_tool_use_one_of_result.py b/test/test_chat_inference200_response_response_tool_use_one_of_result.py index f25cb3d..1162623 100644 --- a/test/test_chat_inference200_response_response_tool_use_one_of_result.py +++ b/test/test_chat_inference200_response_response_tool_use_one_of_result.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.9.0 + The version of the OpenAPI document: 4.12.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_chat_inference200_response_usage.py b/test/test_chat_inference200_response_usage.py index 92a6ce4..6528c70 100644 --- a/test/test_chat_inference200_response_usage.py +++ b/test/test_chat_inference200_response_usage.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.9.0 + The version of the OpenAPI document: 4.12.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_chat_inference202_response.py b/test/test_chat_inference202_response.py index 3bea1ec..5389fb9 100644 --- a/test/test_chat_inference202_response.py +++ b/test/test_chat_inference202_response.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.9.0 + The version of the OpenAPI document: 4.12.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_chat_inference_request.py b/test/test_chat_inference_request.py index af5dcbc..8235f0a 100644 --- a/test/test_chat_inference_request.py +++ b/test/test_chat_inference_request.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.9.0 + The version of the OpenAPI document: 4.12.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -66,7 +66,13 @@ def make_instance(self, include_optional) -> ChatInferenceRequest: '' ], ), session_id = '', - var_async = True + var_async = True, + allowed_tools = ["get_weather","generate_image"], + guardrails = quantcdn.models.chat_inference_request_guardrails.chatInference_request_guardrails( + guardrail_identifier = '', + guardrail_version = '', + trace = 'enabled', ), + long_context = True ) else: return ChatInferenceRequest( diff --git a/test/test_chat_inference_request_guardrails.py b/test/test_chat_inference_request_guardrails.py new file mode 100644 index 0000000..9935bd2 --- /dev/null +++ b/test/test_chat_inference_request_guardrails.py @@ -0,0 +1,53 @@ +# coding: utf-8 + +""" + QuantCDN API + + Unified API for QuantCDN Admin and QuantCloud Platform services + + The version of the OpenAPI document: 4.12.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from quantcdn.models.chat_inference_request_guardrails import ChatInferenceRequestGuardrails + +class TestChatInferenceRequestGuardrails(unittest.TestCase): + """ChatInferenceRequestGuardrails unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> ChatInferenceRequestGuardrails: + """Test ChatInferenceRequestGuardrails + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `ChatInferenceRequestGuardrails` + """ + model = ChatInferenceRequestGuardrails() + if include_optional: + return ChatInferenceRequestGuardrails( + guardrail_identifier = '', + guardrail_version = '', + trace = 'enabled' + ) + else: + return ChatInferenceRequestGuardrails( + ) + """ + + def testChatInferenceRequestGuardrails(self): + """Test ChatInferenceRequestGuardrails""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_chat_inference_request_messages_inner.py b/test/test_chat_inference_request_messages_inner.py index 7fc04d9..8336497 100644 --- a/test/test_chat_inference_request_messages_inner.py +++ b/test/test_chat_inference_request_messages_inner.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.9.0 + The version of the OpenAPI document: 4.12.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_chat_inference_request_messages_inner_content.py b/test/test_chat_inference_request_messages_inner_content.py index 1eeee40..be243a9 100644 --- a/test/test_chat_inference_request_messages_inner_content.py +++ b/test/test_chat_inference_request_messages_inner_content.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.9.0 + The version of the OpenAPI document: 4.12.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_chat_inference_request_messages_inner_content_one_of_inner.py b/test/test_chat_inference_request_messages_inner_content_one_of_inner.py index 14d36e4..ef311fa 100644 --- a/test/test_chat_inference_request_messages_inner_content_one_of_inner.py +++ b/test/test_chat_inference_request_messages_inner_content_one_of_inner.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.9.0 + The version of the OpenAPI document: 4.12.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_chat_inference_request_messages_inner_content_one_of_inner_one_of.py b/test/test_chat_inference_request_messages_inner_content_one_of_inner_one_of.py index 5bc6441..424f5d4 100644 --- a/test/test_chat_inference_request_messages_inner_content_one_of_inner_one_of.py +++ b/test/test_chat_inference_request_messages_inner_content_one_of_inner_one_of.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.9.0 + The version of the OpenAPI document: 4.12.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_chat_inference_request_messages_inner_content_one_of_inner_one_of1.py b/test/test_chat_inference_request_messages_inner_content_one_of_inner_one_of1.py index deec9cf..70850ee 100644 --- a/test/test_chat_inference_request_messages_inner_content_one_of_inner_one_of1.py +++ b/test/test_chat_inference_request_messages_inner_content_one_of_inner_one_of1.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.9.0 + The version of the OpenAPI document: 4.12.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_chat_inference_request_messages_inner_content_one_of_inner_one_of1_image.py b/test/test_chat_inference_request_messages_inner_content_one_of_inner_one_of1_image.py index 1bba4d3..6838a33 100644 --- a/test/test_chat_inference_request_messages_inner_content_one_of_inner_one_of1_image.py +++ b/test/test_chat_inference_request_messages_inner_content_one_of_inner_one_of1_image.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.9.0 + The version of the OpenAPI document: 4.12.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_chat_inference_request_messages_inner_content_one_of_inner_one_of1_image_source.py b/test/test_chat_inference_request_messages_inner_content_one_of_inner_one_of1_image_source.py index 78babc5..66a7d0e 100644 --- a/test/test_chat_inference_request_messages_inner_content_one_of_inner_one_of1_image_source.py +++ b/test/test_chat_inference_request_messages_inner_content_one_of_inner_one_of1_image_source.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.9.0 + The version of the OpenAPI document: 4.12.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_chat_inference_request_messages_inner_content_one_of_inner_one_of2.py b/test/test_chat_inference_request_messages_inner_content_one_of_inner_one_of2.py index 2d6cc94..6039a56 100644 --- a/test/test_chat_inference_request_messages_inner_content_one_of_inner_one_of2.py +++ b/test/test_chat_inference_request_messages_inner_content_one_of_inner_one_of2.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.9.0 + The version of the OpenAPI document: 4.12.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_chat_inference_request_messages_inner_content_one_of_inner_one_of2_video.py b/test/test_chat_inference_request_messages_inner_content_one_of_inner_one_of2_video.py index 8f37d1b..0213649 100644 --- a/test/test_chat_inference_request_messages_inner_content_one_of_inner_one_of2_video.py +++ b/test/test_chat_inference_request_messages_inner_content_one_of_inner_one_of2_video.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.9.0 + The version of the OpenAPI document: 4.12.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_chat_inference_request_messages_inner_content_one_of_inner_one_of2_video_source.py b/test/test_chat_inference_request_messages_inner_content_one_of_inner_one_of2_video_source.py index 1a6bac4..f34a7b1 100644 --- a/test/test_chat_inference_request_messages_inner_content_one_of_inner_one_of2_video_source.py +++ b/test/test_chat_inference_request_messages_inner_content_one_of_inner_one_of2_video_source.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.9.0 + The version of the OpenAPI document: 4.12.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_chat_inference_request_messages_inner_content_one_of_inner_one_of3.py b/test/test_chat_inference_request_messages_inner_content_one_of_inner_one_of3.py index b02c9d7..88dee25 100644 --- a/test/test_chat_inference_request_messages_inner_content_one_of_inner_one_of3.py +++ b/test/test_chat_inference_request_messages_inner_content_one_of_inner_one_of3.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.9.0 + The version of the OpenAPI document: 4.12.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_chat_inference_request_messages_inner_content_one_of_inner_one_of3_document.py b/test/test_chat_inference_request_messages_inner_content_one_of_inner_one_of3_document.py index 0f3c5f6..1c7e3ea 100644 --- a/test/test_chat_inference_request_messages_inner_content_one_of_inner_one_of3_document.py +++ b/test/test_chat_inference_request_messages_inner_content_one_of_inner_one_of3_document.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.9.0 + The version of the OpenAPI document: 4.12.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_chat_inference_request_messages_inner_content_one_of_inner_one_of3_document_source.py b/test/test_chat_inference_request_messages_inner_content_one_of_inner_one_of3_document_source.py index 405e8d6..af0fa35 100644 --- a/test/test_chat_inference_request_messages_inner_content_one_of_inner_one_of3_document_source.py +++ b/test/test_chat_inference_request_messages_inner_content_one_of_inner_one_of3_document_source.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.9.0 + The version of the OpenAPI document: 4.12.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_chat_inference_request_response_format.py b/test/test_chat_inference_request_response_format.py index 603b8d0..4d0e4d4 100644 --- a/test/test_chat_inference_request_response_format.py +++ b/test/test_chat_inference_request_response_format.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.9.0 + The version of the OpenAPI document: 4.12.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_chat_inference_request_tool_config.py b/test/test_chat_inference_request_tool_config.py index f5d13e3..7123dd5 100644 --- a/test/test_chat_inference_request_tool_config.py +++ b/test/test_chat_inference_request_tool_config.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.9.0 + The version of the OpenAPI document: 4.12.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_chat_inference_request_tool_config_tools_inner.py b/test/test_chat_inference_request_tool_config_tools_inner.py index a43b828..d73c66c 100644 --- a/test/test_chat_inference_request_tool_config_tools_inner.py +++ b/test/test_chat_inference_request_tool_config_tools_inner.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.9.0 + The version of the OpenAPI document: 4.12.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_chat_inference_request_tool_config_tools_inner_tool_spec.py b/test/test_chat_inference_request_tool_config_tools_inner_tool_spec.py index a9d4b2e..55e2c53 100644 --- a/test/test_chat_inference_request_tool_config_tools_inner_tool_spec.py +++ b/test/test_chat_inference_request_tool_config_tools_inner_tool_spec.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.9.0 + The version of the OpenAPI document: 4.12.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_chat_inference_request_tool_config_tools_inner_tool_spec_input_schema.py b/test/test_chat_inference_request_tool_config_tools_inner_tool_spec_input_schema.py index cdcd594..327e4a4 100644 --- a/test/test_chat_inference_request_tool_config_tools_inner_tool_spec_input_schema.py +++ b/test/test_chat_inference_request_tool_config_tools_inner_tool_spec_input_schema.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.9.0 + The version of the OpenAPI document: 4.12.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_chat_inference_stream_request.py b/test/test_chat_inference_stream_request.py index e548f59..32c3e6e 100644 --- a/test/test_chat_inference_stream_request.py +++ b/test/test_chat_inference_stream_request.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.9.0 + The version of the OpenAPI document: 4.12.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -65,7 +65,13 @@ def make_instance(self, include_optional) -> ChatInferenceStreamRequest: '' ], ), session_id = '', - var_async = True + var_async = True, + allowed_tools = ["get_weather","generate_image"], + guardrails = quantcdn.models.chat_inference_request_guardrails.chatInference_request_guardrails( + guardrail_identifier = '', + guardrail_version = '', + trace = 'enabled', ), + long_context = True ) else: return ChatInferenceStreamRequest( diff --git a/test/test_chat_inference_stream_request_messages_inner.py b/test/test_chat_inference_stream_request_messages_inner.py index b0d58a7..24c2819 100644 --- a/test/test_chat_inference_stream_request_messages_inner.py +++ b/test/test_chat_inference_stream_request_messages_inner.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.9.0 + The version of the OpenAPI document: 4.12.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_chat_inference_stream_request_messages_inner_content.py b/test/test_chat_inference_stream_request_messages_inner_content.py index b1e717e..bd36383 100644 --- a/test/test_chat_inference_stream_request_messages_inner_content.py +++ b/test/test_chat_inference_stream_request_messages_inner_content.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.9.0 + The version of the OpenAPI document: 4.12.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_chat_with_ai_agent200_response.py b/test/test_chat_with_ai_agent200_response.py index ab9aa26..dcef661 100644 --- a/test/test_chat_with_ai_agent200_response.py +++ b/test/test_chat_with_ai_agent200_response.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.9.0 + The version of the OpenAPI document: 4.12.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_chat_with_ai_agent200_response_response.py b/test/test_chat_with_ai_agent200_response_response.py index 3ede808..e690438 100644 --- a/test/test_chat_with_ai_agent200_response_response.py +++ b/test/test_chat_with_ai_agent200_response_response.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.9.0 + The version of the OpenAPI document: 4.12.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_chat_with_ai_agent200_response_response_usage.py b/test/test_chat_with_ai_agent200_response_response_usage.py index ca867d6..40b8fba 100644 --- a/test/test_chat_with_ai_agent200_response_response_usage.py +++ b/test/test_chat_with_ai_agent200_response_response_usage.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.9.0 + The version of the OpenAPI document: 4.12.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_chat_with_ai_agent202_response.py b/test/test_chat_with_ai_agent202_response.py index b283fde..22aaab0 100644 --- a/test/test_chat_with_ai_agent202_response.py +++ b/test/test_chat_with_ai_agent202_response.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.9.0 + The version of the OpenAPI document: 4.12.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_chat_with_ai_agent_request.py b/test/test_chat_with_ai_agent_request.py index 1d4f3d0..4dc5d3d 100644 --- a/test/test_chat_with_ai_agent_request.py +++ b/test/test_chat_with_ai_agent_request.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.9.0 + The version of the OpenAPI document: 4.12.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_command.py b/test/test_command.py index 977434e..3dc220e 100644 --- a/test/test_command.py +++ b/test/test_command.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.9.0 + The version of the OpenAPI document: 4.12.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_commands_api.py b/test/test_commands_api.py index c44678c..bc92fbe 100644 --- a/test/test_commands_api.py +++ b/test/test_commands_api.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.9.0 + The version of the OpenAPI document: 4.12.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_compose.py b/test/test_compose.py index 254737b..83e4bf5 100644 --- a/test/test_compose.py +++ b/test/test_compose.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.9.0 + The version of the OpenAPI document: 4.12.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_compose_api.py b/test/test_compose_api.py index 271cd8a..193b8bd 100644 --- a/test/test_compose_api.py +++ b/test/test_compose_api.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.9.0 + The version of the OpenAPI document: 4.12.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_container.py b/test/test_container.py index 26ef7b3..40dfd72 100644 --- a/test/test_container.py +++ b/test/test_container.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.9.0 + The version of the OpenAPI document: 4.12.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_container_depends_on_inner.py b/test/test_container_depends_on_inner.py index 82fc066..b42c28d 100644 --- a/test/test_container_depends_on_inner.py +++ b/test/test_container_depends_on_inner.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.9.0 + The version of the OpenAPI document: 4.12.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_container_environment_inner.py b/test/test_container_environment_inner.py index 3e42d17..21e3513 100644 --- a/test/test_container_environment_inner.py +++ b/test/test_container_environment_inner.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.9.0 + The version of the OpenAPI document: 4.12.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_container_health_check.py b/test/test_container_health_check.py index 8b53e5a..3378006 100644 --- a/test/test_container_health_check.py +++ b/test/test_container_health_check.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.9.0 + The version of the OpenAPI document: 4.12.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_container_image_reference.py b/test/test_container_image_reference.py index b9e4488..6ffdc3b 100644 --- a/test/test_container_image_reference.py +++ b/test/test_container_image_reference.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.9.0 + The version of the OpenAPI document: 4.12.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_container_mount_points_inner.py b/test/test_container_mount_points_inner.py index 1189cf7..fe27aab 100644 --- a/test/test_container_mount_points_inner.py +++ b/test/test_container_mount_points_inner.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.9.0 + The version of the OpenAPI document: 4.12.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_container_origin_protection_config.py b/test/test_container_origin_protection_config.py index 19b4c4b..aa37d51 100644 --- a/test/test_container_origin_protection_config.py +++ b/test/test_container_origin_protection_config.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.9.0 + The version of the OpenAPI document: 4.12.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_container_secrets_inner.py b/test/test_container_secrets_inner.py index d97081e..b429178 100644 --- a/test/test_container_secrets_inner.py +++ b/test/test_container_secrets_inner.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.9.0 + The version of the OpenAPI document: 4.12.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_containers_api.py b/test/test_containers_api.py index 7d24ed1..354c525 100644 --- a/test/test_containers_api.py +++ b/test/test_containers_api.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.9.0 + The version of the OpenAPI document: 4.12.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_crawler_schedules_api.py b/test/test_crawler_schedules_api.py index 1335164..ea92b6b 100644 --- a/test/test_crawler_schedules_api.py +++ b/test/test_crawler_schedules_api.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.9.0 + The version of the OpenAPI document: 4.12.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_crawlers_api.py b/test/test_crawlers_api.py index 625fb89..6eb27ff 100644 --- a/test/test_crawlers_api.py +++ b/test/test_crawlers_api.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.9.0 + The version of the OpenAPI document: 4.12.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_crawlers_run200_response.py b/test/test_crawlers_run200_response.py index 7105974..84b70be 100644 --- a/test/test_crawlers_run200_response.py +++ b/test/test_crawlers_run200_response.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.9.0 + The version of the OpenAPI document: 4.12.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_crawlers_run_request.py b/test/test_crawlers_run_request.py index 739cecb..da33dc7 100644 --- a/test/test_crawlers_run_request.py +++ b/test/test_crawlers_run_request.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.9.0 + The version of the OpenAPI document: 4.12.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_create_ai_agent201_response.py b/test/test_create_ai_agent201_response.py index 3187c25..2b84881 100644 --- a/test/test_create_ai_agent201_response.py +++ b/test/test_create_ai_agent201_response.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.9.0 + The version of the OpenAPI document: 4.12.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_create_ai_agent_request.py b/test/test_create_ai_agent_request.py index cd55b39..2d06081 100644 --- a/test/test_create_ai_agent_request.py +++ b/test/test_create_ai_agent_request.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.9.0 + The version of the OpenAPI document: 4.12.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_create_ai_session201_response.py b/test/test_create_ai_session201_response.py index d41f6a8..4e6a8b1 100644 --- a/test/test_create_ai_session201_response.py +++ b/test/test_create_ai_session201_response.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.9.0 + The version of the OpenAPI document: 4.12.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_create_ai_session_request.py b/test/test_create_ai_session_request.py index 4c02ba8..e0ffdda 100644 --- a/test/test_create_ai_session_request.py +++ b/test/test_create_ai_session_request.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.9.0 + The version of the OpenAPI document: 4.12.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_create_ai_session_request_initial_messages_inner.py b/test/test_create_ai_session_request_initial_messages_inner.py index bdd58c2..c974e3b 100644 --- a/test/test_create_ai_session_request_initial_messages_inner.py +++ b/test/test_create_ai_session_request_initial_messages_inner.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.9.0 + The version of the OpenAPI document: 4.12.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_create_application403_response.py b/test/test_create_application403_response.py index f409086..a9dd3b1 100644 --- a/test/test_create_application403_response.py +++ b/test/test_create_application403_response.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.9.0 + The version of the OpenAPI document: 4.12.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_create_application_request.py b/test/test_create_application_request.py index e1a6d9b..5bc85a1 100644 --- a/test/test_create_application_request.py +++ b/test/test_create_application_request.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.9.0 + The version of the OpenAPI document: 4.12.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_create_application_request_database.py b/test/test_create_application_request_database.py index 03cc5ca..0b0b84d 100644 --- a/test/test_create_application_request_database.py +++ b/test/test_create_application_request_database.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.9.0 + The version of the OpenAPI document: 4.12.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_create_application_request_environment_inner.py b/test/test_create_application_request_environment_inner.py index 322854d..94c2574 100644 --- a/test/test_create_application_request_environment_inner.py +++ b/test/test_create_application_request_environment_inner.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.9.0 + The version of the OpenAPI document: 4.12.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_create_application_request_filesystem.py b/test/test_create_application_request_filesystem.py index 98b66bb..66b76f0 100644 --- a/test/test_create_application_request_filesystem.py +++ b/test/test_create_application_request_filesystem.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.9.0 + The version of the OpenAPI document: 4.12.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_create_backup202_response.py b/test/test_create_backup202_response.py index b0ca230..b58bbed 100644 --- a/test/test_create_backup202_response.py +++ b/test/test_create_backup202_response.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.9.0 + The version of the OpenAPI document: 4.12.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_create_backup_request.py b/test/test_create_backup_request.py index 7c2e24b..1e138d7 100644 --- a/test/test_create_backup_request.py +++ b/test/test_create_backup_request.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.9.0 + The version of the OpenAPI document: 4.12.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_create_command_request.py b/test/test_create_command_request.py index 221f2b7..0d60ede 100644 --- a/test/test_create_command_request.py +++ b/test/test_create_command_request.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.9.0 + The version of the OpenAPI document: 4.12.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_create_cron_job_request.py b/test/test_create_cron_job_request.py index 3922166..81ef5bd 100644 --- a/test/test_create_cron_job_request.py +++ b/test/test_create_cron_job_request.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.9.0 + The version of the OpenAPI document: 4.12.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_create_custom_tool201_response.py b/test/test_create_custom_tool201_response.py index 9d9ed48..cb046fb 100644 --- a/test/test_create_custom_tool201_response.py +++ b/test/test_create_custom_tool201_response.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.9.0 + The version of the OpenAPI document: 4.12.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_create_custom_tool_request.py b/test/test_create_custom_tool_request.py index babba14..ef9a04d 100644 --- a/test/test_create_custom_tool_request.py +++ b/test/test_create_custom_tool_request.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.9.0 + The version of the OpenAPI document: 4.12.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_create_environment403_response.py b/test/test_create_environment403_response.py index 94cb891..d6d645d 100644 --- a/test/test_create_environment403_response.py +++ b/test/test_create_environment403_response.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.9.0 + The version of the OpenAPI document: 4.12.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_create_environment_request.py b/test/test_create_environment_request.py index c227484..1ed89c8 100644 --- a/test/test_create_environment_request.py +++ b/test/test_create_environment_request.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.9.0 + The version of the OpenAPI document: 4.12.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_create_environment_request_environment_inner.py b/test/test_create_environment_request_environment_inner.py index e75388f..268623d 100644 --- a/test/test_create_environment_request_environment_inner.py +++ b/test/test_create_environment_request_environment_inner.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.9.0 + The version of the OpenAPI document: 4.12.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_create_orchestration_request.py b/test/test_create_orchestration_request.py new file mode 100644 index 0000000..e6eef85 --- /dev/null +++ b/test/test_create_orchestration_request.py @@ -0,0 +1,81 @@ +# coding: utf-8 + +""" + QuantCDN API + + Unified API for QuantCDN Admin and QuantCloud Platform services + + The version of the OpenAPI document: 4.12.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from quantcdn.models.create_orchestration_request import CreateOrchestrationRequest + +class TestCreateOrchestrationRequest(unittest.TestCase): + """CreateOrchestrationRequest unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> CreateOrchestrationRequest: + """Test CreateOrchestrationRequest + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `CreateOrchestrationRequest` + """ + model = CreateOrchestrationRequest() + if include_optional: + return CreateOrchestrationRequest( + name = 'Process batch documents', + description = '', + agent_id = '', + tool_id = '', + workflow_id = '', + input_source = quantcdn.models.create_orchestration_request_input_source.createOrchestration_request_inputSource( + type = 'static', + items = [ + None + ], + task_query = quantcdn.models.task_query.taskQuery(), + generator_prompt = '', ), + batch_size = 1, + concurrency = 1, + stop_condition = quantcdn.models.create_orchestration_request_stop_condition.createOrchestration_request_stopCondition( + type = 'all_complete', + max_iterations = 1, + condition_prompt = '', ), + assigned_skills = [ + '' + ], + context = None, + auto_start = True + ) + else: + return CreateOrchestrationRequest( + name = 'Process batch documents', + input_source = quantcdn.models.create_orchestration_request_input_source.createOrchestration_request_inputSource( + type = 'static', + items = [ + None + ], + task_query = quantcdn.models.task_query.taskQuery(), + generator_prompt = '', ), + ) + """ + + def testCreateOrchestrationRequest(self): + """Test CreateOrchestrationRequest""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_create_orchestration_request_input_source.py b/test/test_create_orchestration_request_input_source.py new file mode 100644 index 0000000..d0f63f7 --- /dev/null +++ b/test/test_create_orchestration_request_input_source.py @@ -0,0 +1,57 @@ +# coding: utf-8 + +""" + QuantCDN API + + Unified API for QuantCDN Admin and QuantCloud Platform services + + The version of the OpenAPI document: 4.12.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from quantcdn.models.create_orchestration_request_input_source import CreateOrchestrationRequestInputSource + +class TestCreateOrchestrationRequestInputSource(unittest.TestCase): + """CreateOrchestrationRequestInputSource unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> CreateOrchestrationRequestInputSource: + """Test CreateOrchestrationRequestInputSource + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `CreateOrchestrationRequestInputSource` + """ + model = CreateOrchestrationRequestInputSource() + if include_optional: + return CreateOrchestrationRequestInputSource( + type = 'static', + items = [ + None + ], + task_query = None, + generator_prompt = '' + ) + else: + return CreateOrchestrationRequestInputSource( + type = 'static', + ) + """ + + def testCreateOrchestrationRequestInputSource(self): + """Test CreateOrchestrationRequestInputSource""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_create_orchestration_request_stop_condition.py b/test/test_create_orchestration_request_stop_condition.py new file mode 100644 index 0000000..7435651 --- /dev/null +++ b/test/test_create_orchestration_request_stop_condition.py @@ -0,0 +1,53 @@ +# coding: utf-8 + +""" + QuantCDN API + + Unified API for QuantCDN Admin and QuantCloud Platform services + + The version of the OpenAPI document: 4.12.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from quantcdn.models.create_orchestration_request_stop_condition import CreateOrchestrationRequestStopCondition + +class TestCreateOrchestrationRequestStopCondition(unittest.TestCase): + """CreateOrchestrationRequestStopCondition unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> CreateOrchestrationRequestStopCondition: + """Test CreateOrchestrationRequestStopCondition + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `CreateOrchestrationRequestStopCondition` + """ + model = CreateOrchestrationRequestStopCondition() + if include_optional: + return CreateOrchestrationRequestStopCondition( + type = 'all_complete', + max_iterations = 1, + condition_prompt = '' + ) + else: + return CreateOrchestrationRequestStopCondition( + ) + """ + + def testCreateOrchestrationRequestStopCondition(self): + """Test CreateOrchestrationRequestStopCondition""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_create_skill201_response.py b/test/test_create_skill201_response.py new file mode 100644 index 0000000..86ef669 --- /dev/null +++ b/test/test_create_skill201_response.py @@ -0,0 +1,53 @@ +# coding: utf-8 + +""" + QuantCDN API + + Unified API for QuantCDN Admin and QuantCloud Platform services + + The version of the OpenAPI document: 4.12.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from quantcdn.models.create_skill201_response import CreateSkill201Response + +class TestCreateSkill201Response(unittest.TestCase): + """CreateSkill201Response unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> CreateSkill201Response: + """Test CreateSkill201Response + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `CreateSkill201Response` + """ + model = CreateSkill201Response() + if include_optional: + return CreateSkill201Response( + success = True, + skill = None, + message = 'Skill created successfully' + ) + else: + return CreateSkill201Response( + ) + """ + + def testCreateSkill201Response(self): + """Test CreateSkill201Response""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_create_skill_request.py b/test/test_create_skill_request.py new file mode 100644 index 0000000..ad4697f --- /dev/null +++ b/test/test_create_skill_request.py @@ -0,0 +1,70 @@ +# coding: utf-8 + +""" + QuantCDN API + + Unified API for QuantCDN Admin and QuantCloud Platform services + + The version of the OpenAPI document: 4.12.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from quantcdn.models.create_skill_request import CreateSkillRequest + +class TestCreateSkillRequest(unittest.TestCase): + """CreateSkillRequest unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> CreateSkillRequest: + """Test CreateSkillRequest + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `CreateSkillRequest` + """ + model = CreateSkillRequest() + if include_optional: + return CreateSkillRequest( + name = 'code-review', + description = 'Expert code review with security analysis', + content = 'You are an expert code reviewer...', + trigger_condition = 'When the user asks for code review', + tags = [ + '' + ], + required_tools = [ + '' + ], + namespace = '', + files = None, + disable_model_invocation = True, + allowed_tools = [ + '' + ], + installed_by = '' + ) + else: + return CreateSkillRequest( + name = 'code-review', + content = 'You are an expert code reviewer...', + trigger_condition = 'When the user asks for code review', + ) + """ + + def testCreateSkillRequest(self): + """Test CreateSkillRequest""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_create_task201_response.py b/test/test_create_task201_response.py index 41cf7b3..9a4a4d0 100644 --- a/test/test_create_task201_response.py +++ b/test/test_create_task201_response.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.9.0 + The version of the OpenAPI document: 4.12.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_create_task_request.py b/test/test_create_task_request.py index d62ccc1..24cea10 100644 --- a/test/test_create_task_request.py +++ b/test/test_create_task_request.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.9.0 + The version of the OpenAPI document: 4.12.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_create_vector_collection201_response.py b/test/test_create_vector_collection201_response.py index 425118c..5ccade7 100644 --- a/test/test_create_vector_collection201_response.py +++ b/test/test_create_vector_collection201_response.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.9.0 + The version of the OpenAPI document: 4.12.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_create_vector_collection201_response_collection.py b/test/test_create_vector_collection201_response_collection.py index 7e55f46..05c01d8 100644 --- a/test/test_create_vector_collection201_response_collection.py +++ b/test/test_create_vector_collection201_response_collection.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.9.0 + The version of the OpenAPI document: 4.12.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_create_vector_collection_request.py b/test/test_create_vector_collection_request.py index 3ece7cb..882768f 100644 --- a/test/test_create_vector_collection_request.py +++ b/test/test_create_vector_collection_request.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.9.0 + The version of the OpenAPI document: 4.12.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_create_volume_request.py b/test/test_create_volume_request.py index 8ca2d34..a4e84f2 100644 --- a/test/test_create_volume_request.py +++ b/test/test_create_volume_request.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.9.0 + The version of the OpenAPI document: 4.12.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_cron.py b/test/test_cron.py index e7e9d4b..9c384ae 100644 --- a/test/test_cron.py +++ b/test/test_cron.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.9.0 + The version of the OpenAPI document: 4.12.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_cron_api.py b/test/test_cron_api.py index e4bdc3c..cce37ae 100644 --- a/test/test_cron_api.py +++ b/test/test_cron_api.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.9.0 + The version of the OpenAPI document: 4.12.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_cron_run.py b/test/test_cron_run.py index 601d077..5a43681 100644 --- a/test/test_cron_run.py +++ b/test/test_cron_run.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.9.0 + The version of the OpenAPI document: 4.12.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_delete_ai_agent200_response.py b/test/test_delete_ai_agent200_response.py index e19835a..b5a7c05 100644 --- a/test/test_delete_ai_agent200_response.py +++ b/test/test_delete_ai_agent200_response.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.9.0 + The version of the OpenAPI document: 4.12.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_delete_ai_session200_response.py b/test/test_delete_ai_session200_response.py index ba926cc..4affed2 100644 --- a/test/test_delete_ai_session200_response.py +++ b/test/test_delete_ai_session200_response.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.9.0 + The version of the OpenAPI document: 4.12.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_delete_backup200_response.py b/test/test_delete_backup200_response.py index 0062858..fdc93dc 100644 --- a/test/test_delete_backup200_response.py +++ b/test/test_delete_backup200_response.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.9.0 + The version of the OpenAPI document: 4.12.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_delete_custom_tool200_response.py b/test/test_delete_custom_tool200_response.py index f07d1a7..6aefaae 100644 --- a/test/test_delete_custom_tool200_response.py +++ b/test/test_delete_custom_tool200_response.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.9.0 + The version of the OpenAPI document: 4.12.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_delete_file200_response.py b/test/test_delete_file200_response.py index 6cb0cbb..afa5388 100644 --- a/test/test_delete_file200_response.py +++ b/test/test_delete_file200_response.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.9.0 + The version of the OpenAPI document: 4.12.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_delete_skill200_response.py b/test/test_delete_skill200_response.py new file mode 100644 index 0000000..e39cdcd --- /dev/null +++ b/test/test_delete_skill200_response.py @@ -0,0 +1,52 @@ +# coding: utf-8 + +""" + QuantCDN API + + Unified API for QuantCDN Admin and QuantCloud Platform services + + The version of the OpenAPI document: 4.12.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from quantcdn.models.delete_skill200_response import DeleteSkill200Response + +class TestDeleteSkill200Response(unittest.TestCase): + """DeleteSkill200Response unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> DeleteSkill200Response: + """Test DeleteSkill200Response + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `DeleteSkill200Response` + """ + model = DeleteSkill200Response() + if include_optional: + return DeleteSkill200Response( + success = True, + message = 'Skill deleted successfully' + ) + else: + return DeleteSkill200Response( + ) + """ + + def testDeleteSkill200Response(self): + """Test DeleteSkill200Response""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_delete_vector_collection200_response.py b/test/test_delete_skill_collection200_response.py similarity index 53% rename from test/test_delete_vector_collection200_response.py rename to test/test_delete_skill_collection200_response.py index 65fc64c..c060158 100644 --- a/test/test_delete_vector_collection200_response.py +++ b/test/test_delete_skill_collection200_response.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.9.0 + The version of the OpenAPI document: 4.12.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -14,10 +14,10 @@ import unittest -from quantcdn.models.delete_vector_collection200_response import DeleteVectorCollection200Response +from quantcdn.models.delete_skill_collection200_response import DeleteSkillCollection200Response -class TestDeleteVectorCollection200Response(unittest.TestCase): - """DeleteVectorCollection200Response unit test stubs""" +class TestDeleteSkillCollection200Response(unittest.TestCase): + """DeleteSkillCollection200Response unit test stubs""" def setUp(self): pass @@ -25,26 +25,26 @@ def setUp(self): def tearDown(self): pass - def make_instance(self, include_optional) -> DeleteVectorCollection200Response: - """Test DeleteVectorCollection200Response + def make_instance(self, include_optional) -> DeleteSkillCollection200Response: + """Test DeleteSkillCollection200Response include_optional is a boolean, when False only required params are included, when True both required and optional params are included """ - # uncomment below to create an instance of `DeleteVectorCollection200Response` + # uncomment below to create an instance of `DeleteSkillCollection200Response` """ - model = DeleteVectorCollection200Response() + model = DeleteSkillCollection200Response() if include_optional: - return DeleteVectorCollection200Response( + return DeleteSkillCollection200Response( success = True, message = 'Collection deleted successfully' ) else: - return DeleteVectorCollection200Response( + return DeleteSkillCollection200Response( ) """ - def testDeleteVectorCollection200Response(self): - """Test DeleteVectorCollection200Response""" + def testDeleteSkillCollection200Response(self): + """Test DeleteSkillCollection200Response""" # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) diff --git a/test/test_delete_task200_response.py b/test/test_delete_task200_response.py index 2603759..0b0e9dc 100644 --- a/test/test_delete_task200_response.py +++ b/test/test_delete_task200_response.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.9.0 + The version of the OpenAPI document: 4.12.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_delete_task409_response.py b/test/test_delete_task409_response.py index 2a1450b..2ef05c0 100644 --- a/test/test_delete_task409_response.py +++ b/test/test_delete_task409_response.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.9.0 + The version of the OpenAPI document: 4.12.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_delete_vector_documents200_response.py b/test/test_delete_vector_documents200_response.py new file mode 100644 index 0000000..bd40a71 --- /dev/null +++ b/test/test_delete_vector_documents200_response.py @@ -0,0 +1,53 @@ +# coding: utf-8 + +""" + QuantCDN API + + Unified API for QuantCDN Admin and QuantCloud Platform services + + The version of the OpenAPI document: 4.12.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from quantcdn.models.delete_vector_documents200_response import DeleteVectorDocuments200Response + +class TestDeleteVectorDocuments200Response(unittest.TestCase): + """DeleteVectorDocuments200Response unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> DeleteVectorDocuments200Response: + """Test DeleteVectorDocuments200Response + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `DeleteVectorDocuments200Response` + """ + model = DeleteVectorDocuments200Response() + if include_optional: + return DeleteVectorDocuments200Response( + message = '', + collection_id = '', + deleted_count = 56 + ) + else: + return DeleteVectorDocuments200Response( + ) + """ + + def testDeleteVectorDocuments200Response(self): + """Test DeleteVectorDocuments200Response""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_delete_vector_documents_request.py b/test/test_delete_vector_documents_request.py new file mode 100644 index 0000000..e6df1c8 --- /dev/null +++ b/test/test_delete_vector_documents_request.py @@ -0,0 +1,59 @@ +# coding: utf-8 + +""" + QuantCDN API + + Unified API for QuantCDN Admin and QuantCloud Platform services + + The version of the OpenAPI document: 4.12.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from quantcdn.models.delete_vector_documents_request import DeleteVectorDocumentsRequest + +class TestDeleteVectorDocumentsRequest(unittest.TestCase): + """DeleteVectorDocumentsRequest unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> DeleteVectorDocumentsRequest: + """Test DeleteVectorDocumentsRequest + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `DeleteVectorDocumentsRequest` + """ + model = DeleteVectorDocumentsRequest() + if include_optional: + return DeleteVectorDocumentsRequest( + purge_all = True, + document_ids = [ + '' + ], + metadata = quantcdn.models.delete_vector_documents_request_metadata.deleteVectorDocuments_request_metadata( + field = '', + values = [ + '' + ], ) + ) + else: + return DeleteVectorDocumentsRequest( + ) + """ + + def testDeleteVectorDocumentsRequest(self): + """Test DeleteVectorDocumentsRequest""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_delete_vector_documents_request_metadata.py b/test/test_delete_vector_documents_request_metadata.py new file mode 100644 index 0000000..ce3b0d8 --- /dev/null +++ b/test/test_delete_vector_documents_request_metadata.py @@ -0,0 +1,54 @@ +# coding: utf-8 + +""" + QuantCDN API + + Unified API for QuantCDN Admin and QuantCloud Platform services + + The version of the OpenAPI document: 4.12.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from quantcdn.models.delete_vector_documents_request_metadata import DeleteVectorDocumentsRequestMetadata + +class TestDeleteVectorDocumentsRequestMetadata(unittest.TestCase): + """DeleteVectorDocumentsRequestMetadata unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> DeleteVectorDocumentsRequestMetadata: + """Test DeleteVectorDocumentsRequestMetadata + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `DeleteVectorDocumentsRequestMetadata` + """ + model = DeleteVectorDocumentsRequestMetadata() + if include_optional: + return DeleteVectorDocumentsRequestMetadata( + var_field = '', + values = [ + '' + ] + ) + else: + return DeleteVectorDocumentsRequestMetadata( + ) + """ + + def testDeleteVectorDocumentsRequestMetadata(self): + """Test DeleteVectorDocumentsRequestMetadata""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_domains_api.py b/test/test_domains_api.py index c971298..752434d 100644 --- a/test/test_domains_api.py +++ b/test/test_domains_api.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.9.0 + The version of the OpenAPI document: 4.12.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_download_backup200_response.py b/test/test_download_backup200_response.py index 88bb40a..86958a7 100644 --- a/test/test_download_backup200_response.py +++ b/test/test_download_backup200_response.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.9.0 + The version of the OpenAPI document: 4.12.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_embeddings200_response.py b/test/test_embeddings200_response.py index 99b5f12..07b521f 100644 --- a/test/test_embeddings200_response.py +++ b/test/test_embeddings200_response.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.9.0 + The version of the OpenAPI document: 4.12.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_embeddings200_response_embeddings.py b/test/test_embeddings200_response_embeddings.py index 44d405a..9ddbfe9 100644 --- a/test/test_embeddings200_response_embeddings.py +++ b/test/test_embeddings200_response_embeddings.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.9.0 + The version of the OpenAPI document: 4.12.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_embeddings200_response_usage.py b/test/test_embeddings200_response_usage.py index b8de7f4..9abc94b 100644 --- a/test/test_embeddings200_response_usage.py +++ b/test/test_embeddings200_response_usage.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.9.0 + The version of the OpenAPI document: 4.12.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_embeddings_request.py b/test/test_embeddings_request.py index 510a2c4..e946c96 100644 --- a/test/test_embeddings_request.py +++ b/test/test_embeddings_request.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.9.0 + The version of the OpenAPI document: 4.12.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_embeddings_request_input.py b/test/test_embeddings_request_input.py index 930ae7c..61c78e7 100644 --- a/test/test_embeddings_request_input.py +++ b/test/test_embeddings_request_input.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.9.0 + The version of the OpenAPI document: 4.12.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_environment.py b/test/test_environment.py index b780cd5..8c19f75 100644 --- a/test/test_environment.py +++ b/test/test_environment.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.9.0 + The version of the OpenAPI document: 4.12.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_environment_response.py b/test/test_environment_response.py index f4eaad9..3112ac3 100644 --- a/test/test_environment_response.py +++ b/test/test_environment_response.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.9.0 + The version of the OpenAPI document: 4.12.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_environment_summary.py b/test/test_environment_summary.py index 6be0d16..0468b61 100644 --- a/test/test_environment_summary.py +++ b/test/test_environment_summary.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.9.0 + The version of the OpenAPI document: 4.12.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_environments_api.py b/test/test_environments_api.py index 3ea91b0..189b658 100644 --- a/test/test_environments_api.py +++ b/test/test_environments_api.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.9.0 + The version of the OpenAPI document: 4.12.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_extend_ai_session200_response.py b/test/test_extend_ai_session200_response.py index 2520e30..1247c47 100644 --- a/test/test_extend_ai_session200_response.py +++ b/test/test_extend_ai_session200_response.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.9.0 + The version of the OpenAPI document: 4.12.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_extend_ai_session_request.py b/test/test_extend_ai_session_request.py index 9cb9b59..e2995c7 100644 --- a/test/test_extend_ai_session_request.py +++ b/test/test_extend_ai_session_request.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.9.0 + The version of the OpenAPI document: 4.12.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_get_ai_agent200_response.py b/test/test_get_ai_agent200_response.py index 075d99a..783a91d 100644 --- a/test/test_get_ai_agent200_response.py +++ b/test/test_get_ai_agent200_response.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.9.0 + The version of the OpenAPI document: 4.12.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_get_ai_agent200_response_agent.py b/test/test_get_ai_agent200_response_agent.py index 7e42022..dff75f5 100644 --- a/test/test_get_ai_agent200_response_agent.py +++ b/test/test_get_ai_agent200_response_agent.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.9.0 + The version of the OpenAPI document: 4.12.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_get_ai_model200_response.py b/test/test_get_ai_model200_response.py index 615d8cd..b628b3c 100644 --- a/test/test_get_ai_model200_response.py +++ b/test/test_get_ai_model200_response.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.9.0 + The version of the OpenAPI document: 4.12.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_get_ai_model200_response_capabilities.py b/test/test_get_ai_model200_response_capabilities.py index 90df811..638c10b 100644 --- a/test/test_get_ai_model200_response_capabilities.py +++ b/test/test_get_ai_model200_response_capabilities.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.9.0 + The version of the OpenAPI document: 4.12.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_get_ai_model200_response_pricing.py b/test/test_get_ai_model200_response_pricing.py index 20da82d..d8c7d2d 100644 --- a/test/test_get_ai_model200_response_pricing.py +++ b/test/test_get_ai_model200_response_pricing.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.9.0 + The version of the OpenAPI document: 4.12.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_get_ai_model404_response.py b/test/test_get_ai_model404_response.py index 2110a3c..6c8f8ad 100644 --- a/test/test_get_ai_model404_response.py +++ b/test/test_get_ai_model404_response.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.9.0 + The version of the OpenAPI document: 4.12.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_get_ai_orchestration_status200_response.py b/test/test_get_ai_orchestration_status200_response.py index 27e37c6..328e1ce 100644 --- a/test/test_get_ai_orchestration_status200_response.py +++ b/test/test_get_ai_orchestration_status200_response.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.9.0 + The version of the OpenAPI document: 4.12.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_get_ai_orchestration_status200_response_tools_inner.py b/test/test_get_ai_orchestration_status200_response_tools_inner.py index 3d42937..ef24e46 100644 --- a/test/test_get_ai_orchestration_status200_response_tools_inner.py +++ b/test/test_get_ai_orchestration_status200_response_tools_inner.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.9.0 + The version of the OpenAPI document: 4.12.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_get_ai_orchestration_status404_response.py b/test/test_get_ai_orchestration_status404_response.py index 15756ba..dc8d5c4 100644 --- a/test/test_get_ai_orchestration_status404_response.py +++ b/test/test_get_ai_orchestration_status404_response.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.9.0 + The version of the OpenAPI document: 4.12.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_get_ai_session200_response.py b/test/test_get_ai_session200_response.py index b5ae658..ff93875 100644 --- a/test/test_get_ai_session200_response.py +++ b/test/test_get_ai_session200_response.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.9.0 + The version of the OpenAPI document: 4.12.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_get_ai_tool_execution_status200_response.py b/test/test_get_ai_tool_execution_status200_response.py index 5cc3983..42106e7 100644 --- a/test/test_get_ai_tool_execution_status200_response.py +++ b/test/test_get_ai_tool_execution_status200_response.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.9.0 + The version of the OpenAPI document: 4.12.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_get_ai_tool_execution_status200_response_result.py b/test/test_get_ai_tool_execution_status200_response_result.py index 85444fc..51a73cc 100644 --- a/test/test_get_ai_tool_execution_status200_response_result.py +++ b/test/test_get_ai_tool_execution_status200_response_result.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.9.0 + The version of the OpenAPI document: 4.12.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_get_ai_tool_execution_status404_response.py b/test/test_get_ai_tool_execution_status404_response.py index 5801031..ec87033 100644 --- a/test/test_get_ai_tool_execution_status404_response.py +++ b/test/test_get_ai_tool_execution_status404_response.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.9.0 + The version of the OpenAPI document: 4.12.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_get_ai_usage_stats200_response.py b/test/test_get_ai_usage_stats200_response.py index 1985b81..140dc29 100644 --- a/test/test_get_ai_usage_stats200_response.py +++ b/test/test_get_ai_usage_stats200_response.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.9.0 + The version of the OpenAPI document: 4.12.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_get_ai_usage_stats200_response_by_model_value.py b/test/test_get_ai_usage_stats200_response_by_model_value.py index 8bbf1fd..b853a54 100644 --- a/test/test_get_ai_usage_stats200_response_by_model_value.py +++ b/test/test_get_ai_usage_stats200_response_by_model_value.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.9.0 + The version of the OpenAPI document: 4.12.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_get_dependency_graph200_response.py b/test/test_get_dependency_graph200_response.py index c39900c..e00ca56 100644 --- a/test/test_get_dependency_graph200_response.py +++ b/test/test_get_dependency_graph200_response.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.9.0 + The version of the OpenAPI document: 4.12.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_get_durable_execution_status200_response.py b/test/test_get_durable_execution_status200_response.py index 37b8fef..393c206 100644 --- a/test/test_get_durable_execution_status200_response.py +++ b/test/test_get_durable_execution_status200_response.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.9.0 + The version of the OpenAPI document: 4.12.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_get_durable_execution_status200_response_error.py b/test/test_get_durable_execution_status200_response_error.py index 5242895..42a16b0 100644 --- a/test/test_get_durable_execution_status200_response_error.py +++ b/test/test_get_durable_execution_status200_response_error.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.9.0 + The version of the OpenAPI document: 4.12.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_get_durable_execution_status200_response_pending_tools_inner.py b/test/test_get_durable_execution_status200_response_pending_tools_inner.py index 093faeb..62048bb 100644 --- a/test/test_get_durable_execution_status200_response_pending_tools_inner.py +++ b/test/test_get_durable_execution_status200_response_pending_tools_inner.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.9.0 + The version of the OpenAPI document: 4.12.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_get_durable_execution_status200_response_result.py b/test/test_get_durable_execution_status200_response_result.py index de27299..b70257f 100644 --- a/test/test_get_durable_execution_status200_response_result.py +++ b/test/test_get_durable_execution_status200_response_result.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.9.0 + The version of the OpenAPI document: 4.12.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_get_durable_execution_status200_response_result_response.py b/test/test_get_durable_execution_status200_response_result_response.py index b1e34e1..3cfc26f 100644 --- a/test/test_get_durable_execution_status200_response_result_response.py +++ b/test/test_get_durable_execution_status200_response_result_response.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.9.0 + The version of the OpenAPI document: 4.12.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_get_durable_execution_status200_response_result_usage.py b/test/test_get_durable_execution_status200_response_result_usage.py index 2d89f48..d7ed86c 100644 --- a/test/test_get_durable_execution_status200_response_result_usage.py +++ b/test/test_get_durable_execution_status200_response_result_usage.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.9.0 + The version of the OpenAPI document: 4.12.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_get_ecr_login_credentials200_response.py b/test/test_get_ecr_login_credentials200_response.py index 248e196..802d97d 100644 --- a/test/test_get_ecr_login_credentials200_response.py +++ b/test/test_get_ecr_login_credentials200_response.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.9.0 + The version of the OpenAPI document: 4.12.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_get_environment_logs200_response.py b/test/test_get_environment_logs200_response.py index ec6bd18..b99c458 100644 --- a/test/test_get_environment_logs200_response.py +++ b/test/test_get_environment_logs200_response.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.9.0 + The version of the OpenAPI document: 4.12.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_get_environment_logs200_response_log_events_inner.py b/test/test_get_environment_logs200_response_log_events_inner.py index 3187a8e..6f156fb 100644 --- a/test/test_get_environment_logs200_response_log_events_inner.py +++ b/test/test_get_environment_logs200_response_log_events_inner.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.9.0 + The version of the OpenAPI document: 4.12.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_get_file200_response.py b/test/test_get_file200_response.py index d09cf11..8278a11 100644 --- a/test/test_get_file200_response.py +++ b/test/test_get_file200_response.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.9.0 + The version of the OpenAPI document: 4.12.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_get_skill200_response.py b/test/test_get_skill200_response.py new file mode 100644 index 0000000..86acf89 --- /dev/null +++ b/test/test_get_skill200_response.py @@ -0,0 +1,71 @@ +# coding: utf-8 + +""" + QuantCDN API + + Unified API for QuantCDN Admin and QuantCloud Platform services + + The version of the OpenAPI document: 4.12.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from quantcdn.models.get_skill200_response import GetSkill200Response + +class TestGetSkill200Response(unittest.TestCase): + """GetSkill200Response unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> GetSkill200Response: + """Test GetSkill200Response + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `GetSkill200Response` + """ + model = GetSkill200Response() + if include_optional: + return GetSkill200Response( + skill = quantcdn.models.get_skill_200_response_skill.getSkill_200_response_skill( + skill_id = '', + name = '', + description = '', + content = '', + trigger_condition = '', + tags = [ + '' + ], + source = quantcdn.models.source.source(), + required_tools = [ + '' + ], + files = quantcdn.models.files.files(), + namespace = '', + disable_model_invocation = True, + allowed_tools = [ + '' + ], + installed_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), + updated_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), ) + ) + else: + return GetSkill200Response( + ) + """ + + def testGetSkill200Response(self): + """Test GetSkill200Response""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_get_skill200_response_skill.py b/test/test_get_skill200_response_skill.py new file mode 100644 index 0000000..34eb8fe --- /dev/null +++ b/test/test_get_skill200_response_skill.py @@ -0,0 +1,70 @@ +# coding: utf-8 + +""" + QuantCDN API + + Unified API for QuantCDN Admin and QuantCloud Platform services + + The version of the OpenAPI document: 4.12.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from quantcdn.models.get_skill200_response_skill import GetSkill200ResponseSkill + +class TestGetSkill200ResponseSkill(unittest.TestCase): + """GetSkill200ResponseSkill unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> GetSkill200ResponseSkill: + """Test GetSkill200ResponseSkill + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `GetSkill200ResponseSkill` + """ + model = GetSkill200ResponseSkill() + if include_optional: + return GetSkill200ResponseSkill( + skill_id = '', + name = '', + description = '', + content = '', + trigger_condition = '', + tags = [ + '' + ], + source = None, + required_tools = [ + '' + ], + files = None, + namespace = '', + disable_model_invocation = True, + allowed_tools = [ + '' + ], + installed_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), + updated_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f') + ) + else: + return GetSkill200ResponseSkill( + ) + """ + + def testGetSkill200ResponseSkill(self): + """Test GetSkill200ResponseSkill""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_get_ssh_access_credentials200_response.py b/test/test_get_ssh_access_credentials200_response.py index 2fa7358..ad3941a 100644 --- a/test/test_get_ssh_access_credentials200_response.py +++ b/test/test_get_ssh_access_credentials200_response.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.9.0 + The version of the OpenAPI document: 4.12.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_get_ssh_access_credentials200_response_credentials.py b/test/test_get_ssh_access_credentials200_response_credentials.py index 01cfa10..d0ce04b 100644 --- a/test/test_get_ssh_access_credentials200_response_credentials.py +++ b/test/test_get_ssh_access_credentials200_response_credentials.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.9.0 + The version of the OpenAPI document: 4.12.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_get_task200_response.py b/test/test_get_task200_response.py index 0c67634..2782ced 100644 --- a/test/test_get_task200_response.py +++ b/test/test_get_task200_response.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.9.0 + The version of the OpenAPI document: 4.12.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_get_vector_collection200_response.py b/test/test_get_vector_collection200_response.py index 26f55f3..0685031 100644 --- a/test/test_get_vector_collection200_response.py +++ b/test/test_get_vector_collection200_response.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.9.0 + The version of the OpenAPI document: 4.12.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_get_vector_collection200_response_collection.py b/test/test_get_vector_collection200_response_collection.py index 772e419..50de6e9 100644 --- a/test/test_get_vector_collection200_response_collection.py +++ b/test/test_get_vector_collection200_response_collection.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.9.0 + The version of the OpenAPI document: 4.12.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_headers_api.py b/test/test_headers_api.py index 0d0feee..ca0c481 100644 --- a/test/test_headers_api.py +++ b/test/test_headers_api.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.9.0 + The version of the OpenAPI document: 4.12.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_image_generation200_response.py b/test/test_image_generation200_response.py index f3294bf..11246f4 100644 --- a/test/test_image_generation200_response.py +++ b/test/test_image_generation200_response.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.9.0 + The version of the OpenAPI document: 4.12.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_image_generation_request.py b/test/test_image_generation_request.py index 498443c..f8d361f 100644 --- a/test/test_image_generation_request.py +++ b/test/test_image_generation_request.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.9.0 + The version of the OpenAPI document: 4.12.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_image_generation_request_background_removal_params.py b/test/test_image_generation_request_background_removal_params.py index b053bee..2e73d01 100644 --- a/test/test_image_generation_request_background_removal_params.py +++ b/test/test_image_generation_request_background_removal_params.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.9.0 + The version of the OpenAPI document: 4.12.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_image_generation_request_color_guided_generation_params.py b/test/test_image_generation_request_color_guided_generation_params.py index 0a6316c..a5777a7 100644 --- a/test/test_image_generation_request_color_guided_generation_params.py +++ b/test/test_image_generation_request_color_guided_generation_params.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.9.0 + The version of the OpenAPI document: 4.12.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_image_generation_request_image_generation_config.py b/test/test_image_generation_request_image_generation_config.py index bf4f2f9..dcc1b05 100644 --- a/test/test_image_generation_request_image_generation_config.py +++ b/test/test_image_generation_request_image_generation_config.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.9.0 + The version of the OpenAPI document: 4.12.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_image_generation_request_image_variation_params.py b/test/test_image_generation_request_image_variation_params.py index 0b8ea42..029cb93 100644 --- a/test/test_image_generation_request_image_variation_params.py +++ b/test/test_image_generation_request_image_variation_params.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.9.0 + The version of the OpenAPI document: 4.12.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_image_generation_request_in_painting_params.py b/test/test_image_generation_request_in_painting_params.py index c91f1d6..c7b1529 100644 --- a/test/test_image_generation_request_in_painting_params.py +++ b/test/test_image_generation_request_in_painting_params.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.9.0 + The version of the OpenAPI document: 4.12.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_image_generation_request_out_painting_params.py b/test/test_image_generation_request_out_painting_params.py index 1220c7b..a33f77f 100644 --- a/test/test_image_generation_request_out_painting_params.py +++ b/test/test_image_generation_request_out_painting_params.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.9.0 + The version of the OpenAPI document: 4.12.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_image_generation_request_text_to_image_params.py b/test/test_image_generation_request_text_to_image_params.py index 51a5cdb..9970a62 100644 --- a/test/test_image_generation_request_text_to_image_params.py +++ b/test/test_image_generation_request_text_to_image_params.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.9.0 + The version of the OpenAPI document: 4.12.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_import_skill201_response.py b/test/test_import_skill201_response.py new file mode 100644 index 0000000..3856ff4 --- /dev/null +++ b/test/test_import_skill201_response.py @@ -0,0 +1,52 @@ +# coding: utf-8 + +""" + QuantCDN API + + Unified API for QuantCDN Admin and QuantCloud Platform services + + The version of the OpenAPI document: 4.12.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from quantcdn.models.import_skill201_response import ImportSkill201Response + +class TestImportSkill201Response(unittest.TestCase): + """ImportSkill201Response unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> ImportSkill201Response: + """Test ImportSkill201Response + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `ImportSkill201Response` + """ + model = ImportSkill201Response() + if include_optional: + return ImportSkill201Response( + skill = None, + message = '' + ) + else: + return ImportSkill201Response( + ) + """ + + def testImportSkill201Response(self): + """Test ImportSkill201Response""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_import_skill_collection201_response.py b/test/test_import_skill_collection201_response.py new file mode 100644 index 0000000..6299ec8 --- /dev/null +++ b/test/test_import_skill_collection201_response.py @@ -0,0 +1,59 @@ +# coding: utf-8 + +""" + QuantCDN API + + Unified API for QuantCDN Admin and QuantCloud Platform services + + The version of the OpenAPI document: 4.12.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from quantcdn.models.import_skill_collection201_response import ImportSkillCollection201Response + +class TestImportSkillCollection201Response(unittest.TestCase): + """ImportSkillCollection201Response unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> ImportSkillCollection201Response: + """Test ImportSkillCollection201Response + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `ImportSkillCollection201Response` + """ + model = ImportSkillCollection201Response() + if include_optional: + return ImportSkillCollection201Response( + namespace = '', + imported = 56, + failed = 56, + skills = [ + None + ], + errors = [ + None + ] + ) + else: + return ImportSkillCollection201Response( + ) + """ + + def testImportSkillCollection201Response(self): + """Test ImportSkillCollection201Response""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_import_skill_collection_request.py b/test/test_import_skill_collection_request.py new file mode 100644 index 0000000..1a4e695 --- /dev/null +++ b/test/test_import_skill_collection_request.py @@ -0,0 +1,66 @@ +# coding: utf-8 + +""" + QuantCDN API + + Unified API for QuantCDN Admin and QuantCloud Platform services + + The version of the OpenAPI document: 4.12.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from quantcdn.models.import_skill_collection_request import ImportSkillCollectionRequest + +class TestImportSkillCollectionRequest(unittest.TestCase): + """ImportSkillCollectionRequest unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> ImportSkillCollectionRequest: + """Test ImportSkillCollectionRequest + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `ImportSkillCollectionRequest` + """ + model = ImportSkillCollectionRequest() + if include_optional: + return ImportSkillCollectionRequest( + namespace = 'superpowers', + source = quantcdn.models.import_skill_collection_request_source.importSkillCollection_request_source( + type = 'github', + repo = 'obra/superpowers', + path = 'skills', + version = 'main', ), + tags = [ + '' + ], + installed_by = '' + ) + else: + return ImportSkillCollectionRequest( + namespace = 'superpowers', + source = quantcdn.models.import_skill_collection_request_source.importSkillCollection_request_source( + type = 'github', + repo = 'obra/superpowers', + path = 'skills', + version = 'main', ), + ) + """ + + def testImportSkillCollectionRequest(self): + """Test ImportSkillCollectionRequest""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_import_skill_collection_request_source.py b/test/test_import_skill_collection_request_source.py new file mode 100644 index 0000000..1ca246c --- /dev/null +++ b/test/test_import_skill_collection_request_source.py @@ -0,0 +1,56 @@ +# coding: utf-8 + +""" + QuantCDN API + + Unified API for QuantCDN Admin and QuantCloud Platform services + + The version of the OpenAPI document: 4.12.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from quantcdn.models.import_skill_collection_request_source import ImportSkillCollectionRequestSource + +class TestImportSkillCollectionRequestSource(unittest.TestCase): + """ImportSkillCollectionRequestSource unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> ImportSkillCollectionRequestSource: + """Test ImportSkillCollectionRequestSource + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `ImportSkillCollectionRequestSource` + """ + model = ImportSkillCollectionRequestSource() + if include_optional: + return ImportSkillCollectionRequestSource( + type = 'github', + repo = 'obra/superpowers', + path = 'skills', + version = 'main' + ) + else: + return ImportSkillCollectionRequestSource( + type = 'github', + repo = 'obra/superpowers', + ) + """ + + def testImportSkillCollectionRequestSource(self): + """Test ImportSkillCollectionRequestSource""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_import_skill_request.py b/test/test_import_skill_request.py new file mode 100644 index 0000000..e0aaebc --- /dev/null +++ b/test/test_import_skill_request.py @@ -0,0 +1,76 @@ +# coding: utf-8 + +""" + QuantCDN API + + Unified API for QuantCDN Admin and QuantCloud Platform services + + The version of the OpenAPI document: 4.12.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from quantcdn.models.import_skill_request import ImportSkillRequest + +class TestImportSkillRequest(unittest.TestCase): + """ImportSkillRequest unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> ImportSkillRequest: + """Test ImportSkillRequest + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `ImportSkillRequest` + """ + model = ImportSkillRequest() + if include_optional: + return ImportSkillRequest( + source = quantcdn.models.import_skill_request_source.importSkill_request_source( + type = 'skills.sh', + url = '', + repo = '', + path = '', + version = '', ), + name = '', + description = '', + tags = [ + '' + ], + trigger_condition = '', + required_tools = [ + '' + ], + disable_model_invocation = True, + allowed_tools = [ + '' + ], + installed_by = '' + ) + else: + return ImportSkillRequest( + source = quantcdn.models.import_skill_request_source.importSkill_request_source( + type = 'skills.sh', + url = '', + repo = '', + path = '', + version = '', ), + ) + """ + + def testImportSkillRequest(self): + """Test ImportSkillRequest""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_import_skill_request_source.py b/test/test_import_skill_request_source.py new file mode 100644 index 0000000..bde456b --- /dev/null +++ b/test/test_import_skill_request_source.py @@ -0,0 +1,56 @@ +# coding: utf-8 + +""" + QuantCDN API + + Unified API for QuantCDN Admin and QuantCloud Platform services + + The version of the OpenAPI document: 4.12.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from quantcdn.models.import_skill_request_source import ImportSkillRequestSource + +class TestImportSkillRequestSource(unittest.TestCase): + """ImportSkillRequestSource unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> ImportSkillRequestSource: + """Test ImportSkillRequestSource + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `ImportSkillRequestSource` + """ + model = ImportSkillRequestSource() + if include_optional: + return ImportSkillRequestSource( + type = 'skills.sh', + url = '', + repo = '', + path = '', + version = '' + ) + else: + return ImportSkillRequestSource( + type = 'skills.sh', + ) + """ + + def testImportSkillRequestSource(self): + """Test ImportSkillRequestSource""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_kv_api.py b/test/test_kv_api.py index fecfcf8..ee8bbda 100644 --- a/test/test_kv_api.py +++ b/test/test_kv_api.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.9.0 + The version of the OpenAPI document: 4.12.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -75,6 +75,13 @@ def test_k_v_items_update(self) -> None: """ pass + def test_k_v_link_to_project(self) -> None: + """Test case for k_v_link_to_project + + Link a KV store to another project + """ + pass + def test_k_v_list(self) -> None: """Test case for k_v_list @@ -89,6 +96,13 @@ def test_k_v_show(self) -> None: """ pass + def test_k_v_unlink_from_project(self) -> None: + """Test case for k_v_unlink_from_project + + Unlink a KV store from this project + """ + pass + if __name__ == '__main__': unittest.main() diff --git a/test/test_kv_items_create200_response.py b/test/test_kv_items_create200_response.py index 3fbac1c..b941b55 100644 --- a/test/test_kv_items_create200_response.py +++ b/test/test_kv_items_create200_response.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.9.0 + The version of the OpenAPI document: 4.12.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_kv_items_delete200_response.py b/test/test_kv_items_delete200_response.py index b764098..8d69438 100644 --- a/test/test_kv_items_delete200_response.py +++ b/test/test_kv_items_delete200_response.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.9.0 + The version of the OpenAPI document: 4.12.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_kv_items_show200_response.py b/test/test_kv_items_show200_response.py index 0f60780..2518d96 100644 --- a/test/test_kv_items_show200_response.py +++ b/test/test_kv_items_show200_response.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.9.0 + The version of the OpenAPI document: 4.12.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_kv_items_show200_response_value.py b/test/test_kv_items_show200_response_value.py index df52e08..1dd1d23 100644 --- a/test/test_kv_items_show200_response_value.py +++ b/test/test_kv_items_show200_response_value.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.9.0 + The version of the OpenAPI document: 4.12.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_kv_link_to_project200_response.py b/test/test_kv_link_to_project200_response.py new file mode 100644 index 0000000..6aeb96b --- /dev/null +++ b/test/test_kv_link_to_project200_response.py @@ -0,0 +1,52 @@ +# coding: utf-8 + +""" + QuantCDN API + + Unified API for QuantCDN Admin and QuantCloud Platform services + + The version of the OpenAPI document: 4.12.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from quantcdn.models.kv_link_to_project200_response import KVLinkToProject200Response + +class TestKVLinkToProject200Response(unittest.TestCase): + """KVLinkToProject200Response unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> KVLinkToProject200Response: + """Test KVLinkToProject200Response + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `KVLinkToProject200Response` + """ + model = KVLinkToProject200Response() + if include_optional: + return KVLinkToProject200Response( + success = True, + message = '' + ) + else: + return KVLinkToProject200Response( + ) + """ + + def testKVLinkToProject200Response(self): + """Test KVLinkToProject200Response""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_kv_link_to_project_request.py b/test/test_kv_link_to_project_request.py new file mode 100644 index 0000000..e74769a --- /dev/null +++ b/test/test_kv_link_to_project_request.py @@ -0,0 +1,52 @@ +# coding: utf-8 + +""" + QuantCDN API + + Unified API for QuantCDN Admin and QuantCloud Platform services + + The version of the OpenAPI document: 4.12.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from quantcdn.models.kv_link_to_project_request import KVLinkToProjectRequest + +class TestKVLinkToProjectRequest(unittest.TestCase): + """KVLinkToProjectRequest unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> KVLinkToProjectRequest: + """Test KVLinkToProjectRequest + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `KVLinkToProjectRequest` + """ + model = KVLinkToProjectRequest() + if include_optional: + return KVLinkToProjectRequest( + project_id = 56 + ) + else: + return KVLinkToProjectRequest( + project_id = 56, + ) + """ + + def testKVLinkToProjectRequest(self): + """Test KVLinkToProjectRequest""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_list_ai_agents200_response.py b/test/test_list_ai_agents200_response.py index f5c97b7..b8fc014 100644 --- a/test/test_list_ai_agents200_response.py +++ b/test/test_list_ai_agents200_response.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.9.0 + The version of the OpenAPI document: 4.12.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_list_ai_agents200_response_agents_inner.py b/test/test_list_ai_agents200_response_agents_inner.py index 45ccae5..cc5923e 100644 --- a/test/test_list_ai_agents200_response_agents_inner.py +++ b/test/test_list_ai_agents200_response_agents_inner.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.9.0 + The version of the OpenAPI document: 4.12.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_list_ai_models200_response.py b/test/test_list_ai_models200_response.py index 7999c8b..3b5efb0 100644 --- a/test/test_list_ai_models200_response.py +++ b/test/test_list_ai_models200_response.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.9.0 + The version of the OpenAPI document: 4.12.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_list_ai_models200_response_models_inner.py b/test/test_list_ai_models200_response_models_inner.py index 23ffdd5..d5376ba 100644 --- a/test/test_list_ai_models200_response_models_inner.py +++ b/test/test_list_ai_models200_response_models_inner.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.9.0 + The version of the OpenAPI document: 4.12.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_list_ai_models200_response_models_inner_capabilities.py b/test/test_list_ai_models200_response_models_inner_capabilities.py index 9f77829..5e196ad 100644 --- a/test/test_list_ai_models200_response_models_inner_capabilities.py +++ b/test/test_list_ai_models200_response_models_inner_capabilities.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.9.0 + The version of the OpenAPI document: 4.12.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_list_ai_sessions200_response_inner.py b/test/test_list_ai_sessions200_response_inner.py index 313ed30..4a21b45 100644 --- a/test/test_list_ai_sessions200_response_inner.py +++ b/test/test_list_ai_sessions200_response_inner.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.9.0 + The version of the OpenAPI document: 4.12.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_list_ai_tool_executions200_response.py b/test/test_list_ai_tool_executions200_response.py index 848968e..08e4e38 100644 --- a/test/test_list_ai_tool_executions200_response.py +++ b/test/test_list_ai_tool_executions200_response.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.9.0 + The version of the OpenAPI document: 4.12.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_list_ai_tool_executions200_response_executions_inner.py b/test/test_list_ai_tool_executions200_response_executions_inner.py index 03f8ef4..6686417 100644 --- a/test/test_list_ai_tool_executions200_response_executions_inner.py +++ b/test/test_list_ai_tool_executions200_response_executions_inner.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.9.0 + The version of the OpenAPI document: 4.12.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_list_ai_tool_names200_response.py b/test/test_list_ai_tool_names200_response.py index 1f501c9..74a8d11 100644 --- a/test/test_list_ai_tool_names200_response.py +++ b/test/test_list_ai_tool_names200_response.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.9.0 + The version of the OpenAPI document: 4.12.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_list_ai_tools200_response.py b/test/test_list_ai_tools200_response.py index eaf8706..d471475 100644 --- a/test/test_list_ai_tools200_response.py +++ b/test/test_list_ai_tools200_response.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.9.0 + The version of the OpenAPI document: 4.12.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_list_ai_tools200_response_tools_inner.py b/test/test_list_ai_tools200_response_tools_inner.py index 1e90114..43e8617 100644 --- a/test/test_list_ai_tools200_response_tools_inner.py +++ b/test/test_list_ai_tools200_response_tools_inner.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.9.0 + The version of the OpenAPI document: 4.12.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_list_ai_tools200_response_tools_inner_tool_spec.py b/test/test_list_ai_tools200_response_tools_inner_tool_spec.py index 3ef7e7a..6ffceae 100644 --- a/test/test_list_ai_tools200_response_tools_inner_tool_spec.py +++ b/test/test_list_ai_tools200_response_tools_inner_tool_spec.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.9.0 + The version of the OpenAPI document: 4.12.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_list_ai_tools200_response_tools_inner_tool_spec_input_schema.py b/test/test_list_ai_tools200_response_tools_inner_tool_spec_input_schema.py index dd8836c..d62e985 100644 --- a/test/test_list_ai_tools200_response_tools_inner_tool_spec_input_schema.py +++ b/test/test_list_ai_tools200_response_tools_inner_tool_spec_input_schema.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.9.0 + The version of the OpenAPI document: 4.12.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_list_backups200_response.py b/test/test_list_backups200_response.py index fd85ce1..75779b2 100644 --- a/test/test_list_backups200_response.py +++ b/test/test_list_backups200_response.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.9.0 + The version of the OpenAPI document: 4.12.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_list_backups200_response_backups_inner.py b/test/test_list_backups200_response_backups_inner.py index 3d0d0fc..3694d47 100644 --- a/test/test_list_backups200_response_backups_inner.py +++ b/test/test_list_backups200_response_backups_inner.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.9.0 + The version of the OpenAPI document: 4.12.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_list_backups422_response.py b/test/test_list_backups422_response.py index abb8f90..960f7b7 100644 --- a/test/test_list_backups422_response.py +++ b/test/test_list_backups422_response.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.9.0 + The version of the OpenAPI document: 4.12.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_list_custom_tools200_response.py b/test/test_list_custom_tools200_response.py index 0cd2c62..79229b6 100644 --- a/test/test_list_custom_tools200_response.py +++ b/test/test_list_custom_tools200_response.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.9.0 + The version of the OpenAPI document: 4.12.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_list_custom_tools200_response_tools_inner.py b/test/test_list_custom_tools200_response_tools_inner.py index 8c446d5..7124765 100644 --- a/test/test_list_custom_tools200_response_tools_inner.py +++ b/test/test_list_custom_tools200_response_tools_inner.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.9.0 + The version of the OpenAPI document: 4.12.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_list_files200_response.py b/test/test_list_files200_response.py index 83a961a..2bf9c30 100644 --- a/test/test_list_files200_response.py +++ b/test/test_list_files200_response.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.9.0 + The version of the OpenAPI document: 4.12.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_list_files200_response_files_inner.py b/test/test_list_files200_response_files_inner.py index 9db4650..7bdf8b0 100644 --- a/test/test_list_files200_response_files_inner.py +++ b/test/test_list_files200_response_files_inner.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.9.0 + The version of the OpenAPI document: 4.12.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_list_orchestration_batches200_response.py b/test/test_list_orchestration_batches200_response.py new file mode 100644 index 0000000..df62c8c --- /dev/null +++ b/test/test_list_orchestration_batches200_response.py @@ -0,0 +1,64 @@ +# coding: utf-8 + +""" + QuantCDN API + + Unified API for QuantCDN Admin and QuantCloud Platform services + + The version of the OpenAPI document: 4.12.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from quantcdn.models.list_orchestration_batches200_response import ListOrchestrationBatches200Response + +class TestListOrchestrationBatches200Response(unittest.TestCase): + """ListOrchestrationBatches200Response unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> ListOrchestrationBatches200Response: + """Test ListOrchestrationBatches200Response + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `ListOrchestrationBatches200Response` + """ + model = ListOrchestrationBatches200Response() + if include_optional: + return ListOrchestrationBatches200Response( + batches = [ + quantcdn.models.list_orchestration_batches_200_response_batches_inner.listOrchestrationBatches_200_response_batches_inner( + batch_id = '', + orchestration_id = '', + iteration = 56, + item_count = 56, + completed_count = 56, + failed_count = 56, + status = 'pending', + started_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), + completed_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), + error = '', ) + ], + next_cursor = '' + ) + else: + return ListOrchestrationBatches200Response( + ) + """ + + def testListOrchestrationBatches200Response(self): + """Test ListOrchestrationBatches200Response""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_list_orchestration_batches200_response_batches_inner.py b/test/test_list_orchestration_batches200_response_batches_inner.py new file mode 100644 index 0000000..93e9bcd --- /dev/null +++ b/test/test_list_orchestration_batches200_response_batches_inner.py @@ -0,0 +1,60 @@ +# coding: utf-8 + +""" + QuantCDN API + + Unified API for QuantCDN Admin and QuantCloud Platform services + + The version of the OpenAPI document: 4.12.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from quantcdn.models.list_orchestration_batches200_response_batches_inner import ListOrchestrationBatches200ResponseBatchesInner + +class TestListOrchestrationBatches200ResponseBatchesInner(unittest.TestCase): + """ListOrchestrationBatches200ResponseBatchesInner unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> ListOrchestrationBatches200ResponseBatchesInner: + """Test ListOrchestrationBatches200ResponseBatchesInner + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `ListOrchestrationBatches200ResponseBatchesInner` + """ + model = ListOrchestrationBatches200ResponseBatchesInner() + if include_optional: + return ListOrchestrationBatches200ResponseBatchesInner( + batch_id = '', + orchestration_id = '', + iteration = 56, + item_count = 56, + completed_count = 56, + failed_count = 56, + status = 'pending', + started_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), + completed_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), + error = '' + ) + else: + return ListOrchestrationBatches200ResponseBatchesInner( + ) + """ + + def testListOrchestrationBatches200ResponseBatchesInner(self): + """Test ListOrchestrationBatches200ResponseBatchesInner""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_list_orchestrations200_response.py b/test/test_list_orchestrations200_response.py new file mode 100644 index 0000000..e7beb31 --- /dev/null +++ b/test/test_list_orchestrations200_response.py @@ -0,0 +1,54 @@ +# coding: utf-8 + +""" + QuantCDN API + + Unified API for QuantCDN Admin and QuantCloud Platform services + + The version of the OpenAPI document: 4.12.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from quantcdn.models.list_orchestrations200_response import ListOrchestrations200Response + +class TestListOrchestrations200Response(unittest.TestCase): + """ListOrchestrations200Response unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> ListOrchestrations200Response: + """Test ListOrchestrations200Response + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `ListOrchestrations200Response` + """ + model = ListOrchestrations200Response() + if include_optional: + return ListOrchestrations200Response( + orchestrations = [ + None + ], + next_cursor = '' + ) + else: + return ListOrchestrations200Response( + ) + """ + + def testListOrchestrations200Response(self): + """Test ListOrchestrations200Response""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_list_skill_collections200_response.py b/test/test_list_skill_collections200_response.py new file mode 100644 index 0000000..3a875d9 --- /dev/null +++ b/test/test_list_skill_collections200_response.py @@ -0,0 +1,58 @@ +# coding: utf-8 + +""" + QuantCDN API + + Unified API for QuantCDN Admin and QuantCloud Platform services + + The version of the OpenAPI document: 4.12.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from quantcdn.models.list_skill_collections200_response import ListSkillCollections200Response + +class TestListSkillCollections200Response(unittest.TestCase): + """ListSkillCollections200Response unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> ListSkillCollections200Response: + """Test ListSkillCollections200Response + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `ListSkillCollections200Response` + """ + model = ListSkillCollections200Response() + if include_optional: + return ListSkillCollections200Response( + collections = [ + quantcdn.models.list_skill_collections_200_response_collections_inner.listSkillCollections_200_response_collections_inner( + namespace = 'superpowers', + count = 14, + skills = [ + '' + ], ) + ] + ) + else: + return ListSkillCollections200Response( + ) + """ + + def testListSkillCollections200Response(self): + """Test ListSkillCollections200Response""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_list_skill_collections200_response_collections_inner.py b/test/test_list_skill_collections200_response_collections_inner.py new file mode 100644 index 0000000..6bdf309 --- /dev/null +++ b/test/test_list_skill_collections200_response_collections_inner.py @@ -0,0 +1,55 @@ +# coding: utf-8 + +""" + QuantCDN API + + Unified API for QuantCDN Admin and QuantCloud Platform services + + The version of the OpenAPI document: 4.12.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from quantcdn.models.list_skill_collections200_response_collections_inner import ListSkillCollections200ResponseCollectionsInner + +class TestListSkillCollections200ResponseCollectionsInner(unittest.TestCase): + """ListSkillCollections200ResponseCollectionsInner unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> ListSkillCollections200ResponseCollectionsInner: + """Test ListSkillCollections200ResponseCollectionsInner + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `ListSkillCollections200ResponseCollectionsInner` + """ + model = ListSkillCollections200ResponseCollectionsInner() + if include_optional: + return ListSkillCollections200ResponseCollectionsInner( + namespace = 'superpowers', + count = 14, + skills = [ + '' + ] + ) + else: + return ListSkillCollections200ResponseCollectionsInner( + ) + """ + + def testListSkillCollections200ResponseCollectionsInner(self): + """Test ListSkillCollections200ResponseCollectionsInner""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_list_skills200_response.py b/test/test_list_skills200_response.py new file mode 100644 index 0000000..d1252e7 --- /dev/null +++ b/test/test_list_skills200_response.py @@ -0,0 +1,65 @@ +# coding: utf-8 + +""" + QuantCDN API + + Unified API for QuantCDN Admin and QuantCloud Platform services + + The version of the OpenAPI document: 4.12.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from quantcdn.models.list_skills200_response import ListSkills200Response + +class TestListSkills200Response(unittest.TestCase): + """ListSkills200Response unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> ListSkills200Response: + """Test ListSkills200Response + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `ListSkills200Response` + """ + model = ListSkills200Response() + if include_optional: + return ListSkills200Response( + skills = [ + quantcdn.models.list_skills_200_response_skills_inner.listSkills_200_response_skills_inner( + skill_id = '', + name = '', + description = '', + tags = [ + '' + ], + source = quantcdn.models.source.source(), + trigger_condition = '', + namespace = '', + installed_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), + updated_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), ) + ], + count = 56 + ) + else: + return ListSkills200Response( + ) + """ + + def testListSkills200Response(self): + """Test ListSkills200Response""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_list_skills200_response_skills_inner.py b/test/test_list_skills200_response_skills_inner.py new file mode 100644 index 0000000..e6ec59c --- /dev/null +++ b/test/test_list_skills200_response_skills_inner.py @@ -0,0 +1,61 @@ +# coding: utf-8 + +""" + QuantCDN API + + Unified API for QuantCDN Admin and QuantCloud Platform services + + The version of the OpenAPI document: 4.12.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from quantcdn.models.list_skills200_response_skills_inner import ListSkills200ResponseSkillsInner + +class TestListSkills200ResponseSkillsInner(unittest.TestCase): + """ListSkills200ResponseSkillsInner unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> ListSkills200ResponseSkillsInner: + """Test ListSkills200ResponseSkillsInner + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `ListSkills200ResponseSkillsInner` + """ + model = ListSkills200ResponseSkillsInner() + if include_optional: + return ListSkills200ResponseSkillsInner( + skill_id = '', + name = '', + description = '', + tags = [ + '' + ], + source = None, + trigger_condition = '', + namespace = '', + installed_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), + updated_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f') + ) + else: + return ListSkills200ResponseSkillsInner( + ) + """ + + def testListSkills200ResponseSkillsInner(self): + """Test ListSkills200ResponseSkillsInner""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_list_tasks200_response.py b/test/test_list_tasks200_response.py index f5ae3e2..2195ff9 100644 --- a/test/test_list_tasks200_response.py +++ b/test/test_list_tasks200_response.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.9.0 + The version of the OpenAPI document: 4.12.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_list_tasks200_response_tasks_inner.py b/test/test_list_tasks200_response_tasks_inner.py index e569a4f..24a57fa 100644 --- a/test/test_list_tasks200_response_tasks_inner.py +++ b/test/test_list_tasks200_response_tasks_inner.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.9.0 + The version of the OpenAPI document: 4.12.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_list_vector_collections200_response.py b/test/test_list_vector_collections200_response.py index 53b28e4..b57b13e 100644 --- a/test/test_list_vector_collections200_response.py +++ b/test/test_list_vector_collections200_response.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.9.0 + The version of the OpenAPI document: 4.12.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_list_vector_collections200_response_collections_inner.py b/test/test_list_vector_collections200_response_collections_inner.py index 91f5bb5..29ef0db 100644 --- a/test/test_list_vector_collections200_response_collections_inner.py +++ b/test/test_list_vector_collections200_response_collections_inner.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.9.0 + The version of the OpenAPI document: 4.12.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_orchestration_api.py b/test/test_orchestration_api.py deleted file mode 100644 index 9f2c5ba..0000000 --- a/test/test_orchestration_api.py +++ /dev/null @@ -1,38 +0,0 @@ -# coding: utf-8 - -""" - QuantCDN API - - Unified API for QuantCDN Admin and QuantCloud Platform services - - The version of the OpenAPI document: 4.9.0 - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from quantcdn.api.orchestration_api import OrchestrationApi - - -class TestOrchestrationApi(unittest.TestCase): - """OrchestrationApi unit test stubs""" - - def setUp(self) -> None: - self.api = OrchestrationApi() - - def tearDown(self) -> None: - pass - - def test_get_ai_orchestration_status(self) -> None: - """Test case for get_ai_orchestration_status - - Get Orchestration Status - """ - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_organizations_api.py b/test/test_organizations_api.py index 5375d38..0ef3991 100644 --- a/test/test_organizations_api.py +++ b/test/test_organizations_api.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.9.0 + The version of the OpenAPI document: 4.12.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_organizations_list200_response_inner.py b/test/test_organizations_list200_response_inner.py index a762284..79933ae 100644 --- a/test/test_organizations_list200_response_inner.py +++ b/test/test_organizations_list200_response_inner.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.9.0 + The version of the OpenAPI document: 4.12.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_patch_environment_compose202_response.py b/test/test_patch_environment_compose202_response.py index 385976b..9cd2621 100644 --- a/test/test_patch_environment_compose202_response.py +++ b/test/test_patch_environment_compose202_response.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.9.0 + The version of the OpenAPI document: 4.12.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_patch_environment_compose202_response_spot_configuration.py b/test/test_patch_environment_compose202_response_spot_configuration.py index 6a07b32..cf05f8a 100644 --- a/test/test_patch_environment_compose202_response_spot_configuration.py +++ b/test/test_patch_environment_compose202_response_spot_configuration.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.9.0 + The version of the OpenAPI document: 4.12.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_patch_environment_compose400_response.py b/test/test_patch_environment_compose400_response.py index bf460bc..a49d783 100644 --- a/test/test_patch_environment_compose400_response.py +++ b/test/test_patch_environment_compose400_response.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.9.0 + The version of the OpenAPI document: 4.12.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_patch_environment_compose_request.py b/test/test_patch_environment_compose_request.py index b2ba78b..c2ba2ee 100644 --- a/test/test_patch_environment_compose_request.py +++ b/test/test_patch_environment_compose_request.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.9.0 + The version of the OpenAPI document: 4.12.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_patch_environment_compose_request_spot_configuration.py b/test/test_patch_environment_compose_request_spot_configuration.py index bd0eb3d..4967fbe 100644 --- a/test/test_patch_environment_compose_request_spot_configuration.py +++ b/test/test_patch_environment_compose_request_spot_configuration.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.9.0 + The version of the OpenAPI document: 4.12.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_projects_api.py b/test/test_projects_api.py index 0fe58ed..464f5dd 100644 --- a/test/test_projects_api.py +++ b/test/test_projects_api.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.9.0 + The version of the OpenAPI document: 4.12.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_purge_api.py b/test/test_purge_api.py index 336fccb..056032b 100644 --- a/test/test_purge_api.py +++ b/test/test_purge_api.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.9.0 + The version of the OpenAPI document: 4.12.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_purge_create_request.py b/test/test_purge_create_request.py index f25ab80..14cda8b 100644 --- a/test/test_purge_create_request.py +++ b/test/test_purge_create_request.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.9.0 + The version of the OpenAPI document: 4.12.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_query_vector_collection200_response.py b/test/test_query_vector_collection200_response.py index 759ac19..898984d 100644 --- a/test/test_query_vector_collection200_response.py +++ b/test/test_query_vector_collection200_response.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.9.0 + The version of the OpenAPI document: 4.12.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_query_vector_collection200_response_pagination.py b/test/test_query_vector_collection200_response_pagination.py index 53c4c93..26cfe00 100644 --- a/test/test_query_vector_collection200_response_pagination.py +++ b/test/test_query_vector_collection200_response_pagination.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.9.0 + The version of the OpenAPI document: 4.12.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_query_vector_collection200_response_results_inner.py b/test/test_query_vector_collection200_response_results_inner.py index 136ad42..ff9b893 100644 --- a/test/test_query_vector_collection200_response_results_inner.py +++ b/test/test_query_vector_collection200_response_results_inner.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.9.0 + The version of the OpenAPI document: 4.12.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_query_vector_collection_request.py b/test/test_query_vector_collection_request.py index 748d4e2..4705c64 100644 --- a/test/test_query_vector_collection_request.py +++ b/test/test_query_vector_collection_request.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.9.0 + The version of the OpenAPI document: 4.12.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_query_vector_collection_request_filter.py b/test/test_query_vector_collection_request_filter.py index 23cab6e..f381544 100644 --- a/test/test_query_vector_collection_request_filter.py +++ b/test/test_query_vector_collection_request_filter.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.9.0 + The version of the OpenAPI document: 4.12.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_rules_api.py b/test/test_rules_api.py index ae59ff9..ff0a3af 100644 --- a/test/test_rules_api.py +++ b/test/test_rules_api.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.9.0 + The version of the OpenAPI document: 4.12.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_scaling_policy.py b/test/test_scaling_policy.py index a7edf13..1f72e69 100644 --- a/test/test_scaling_policy.py +++ b/test/test_scaling_policy.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.9.0 + The version of the OpenAPI document: 4.12.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_scaling_policy_api.py b/test/test_scaling_policy_api.py index f7782c9..bba3092 100644 --- a/test/test_scaling_policy_api.py +++ b/test/test_scaling_policy_api.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.9.0 + The version of the OpenAPI document: 4.12.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_spot_configuration.py b/test/test_spot_configuration.py index 6aec582..4c19234 100644 --- a/test/test_spot_configuration.py +++ b/test/test_spot_configuration.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.9.0 + The version of the OpenAPI document: 4.12.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_ssh_access_api.py b/test/test_ssh_access_api.py index 92c1574..be07bc6 100644 --- a/test/test_ssh_access_api.py +++ b/test/test_ssh_access_api.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.9.0 + The version of the OpenAPI document: 4.12.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_submit_tool_callback200_response.py b/test/test_submit_tool_callback200_response.py index d1d2558..56499e8 100644 --- a/test/test_submit_tool_callback200_response.py +++ b/test/test_submit_tool_callback200_response.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.9.0 + The version of the OpenAPI document: 4.12.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_submit_tool_callback_request.py b/test/test_submit_tool_callback_request.py index f282721..4d1ca4c 100644 --- a/test/test_submit_tool_callback_request.py +++ b/test/test_submit_tool_callback_request.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.9.0 + The version of the OpenAPI document: 4.12.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_submit_tool_callback_request_tool_results_inner.py b/test/test_submit_tool_callback_request_tool_results_inner.py index 89d673d..bf16eb2 100644 --- a/test/test_submit_tool_callback_request_tool_results_inner.py +++ b/test/test_submit_tool_callback_request_tool_results_inner.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.9.0 + The version of the OpenAPI document: 4.12.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_sync_operation.py b/test/test_sync_operation.py index cac07f6..cac0e50 100644 --- a/test/test_sync_operation.py +++ b/test/test_sync_operation.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.9.0 + The version of the OpenAPI document: 4.12.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_sync_skill_collection200_response.py b/test/test_sync_skill_collection200_response.py new file mode 100644 index 0000000..d8d89d4 --- /dev/null +++ b/test/test_sync_skill_collection200_response.py @@ -0,0 +1,60 @@ +# coding: utf-8 + +""" + QuantCDN API + + Unified API for QuantCDN Admin and QuantCloud Platform services + + The version of the OpenAPI document: 4.12.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from quantcdn.models.sync_skill_collection200_response import SyncSkillCollection200Response + +class TestSyncSkillCollection200Response(unittest.TestCase): + """SyncSkillCollection200Response unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> SyncSkillCollection200Response: + """Test SyncSkillCollection200Response + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `SyncSkillCollection200Response` + """ + model = SyncSkillCollection200Response() + if include_optional: + return SyncSkillCollection200Response( + namespace = '', + synced = 56, + created = 56, + failed = 56, + removed_from_source = [ + '' + ], + skills = [ + None + ] + ) + else: + return SyncSkillCollection200Response( + ) + """ + + def testSyncSkillCollection200Response(self): + """Test SyncSkillCollection200Response""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_sync_to_environment_request.py b/test/test_sync_to_environment_request.py index 7fc1bb0..02d0315 100644 --- a/test/test_sync_to_environment_request.py +++ b/test/test_sync_to_environment_request.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.9.0 + The version of the OpenAPI document: 4.12.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_tokens_api.py b/test/test_tokens_api.py new file mode 100644 index 0000000..75f7c11 --- /dev/null +++ b/test/test_tokens_api.py @@ -0,0 +1,52 @@ +# coding: utf-8 + +""" + QuantCDN API + + Unified API for QuantCDN Admin and QuantCloud Platform services + + The version of the OpenAPI document: 4.12.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from quantcdn.api.tokens_api import TokensApi + + +class TestTokensApi(unittest.TestCase): + """TokensApi unit test stubs""" + + def setUp(self) -> None: + self.api = TokensApi() + + def tearDown(self) -> None: + pass + + def test_tokens_create(self) -> None: + """Test case for tokens_create + + Create a new API token scoped to this organization + """ + pass + + def test_tokens_delete(self) -> None: + """Test case for tokens_delete + + Revoke an API token + """ + pass + + def test_tokens_list(self) -> None: + """Test case for tokens_list + + List API tokens scoped to this organization + """ + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_tokens_create201_response.py b/test/test_tokens_create201_response.py new file mode 100644 index 0000000..aafa62c --- /dev/null +++ b/test/test_tokens_create201_response.py @@ -0,0 +1,53 @@ +# coding: utf-8 + +""" + QuantCDN API + + Unified API for QuantCDN Admin and QuantCloud Platform services + + The version of the OpenAPI document: 4.12.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from quantcdn.models.tokens_create201_response import TokensCreate201Response + +class TestTokensCreate201Response(unittest.TestCase): + """TokensCreate201Response unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> TokensCreate201Response: + """Test TokensCreate201Response + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `TokensCreate201Response` + """ + model = TokensCreate201Response() + if include_optional: + return TokensCreate201Response( + token = '', + name = '', + created_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f') + ) + else: + return TokensCreate201Response( + ) + """ + + def testTokensCreate201Response(self): + """Test TokensCreate201Response""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_tokens_create_request.py b/test/test_tokens_create_request.py new file mode 100644 index 0000000..9dd1c2c --- /dev/null +++ b/test/test_tokens_create_request.py @@ -0,0 +1,52 @@ +# coding: utf-8 + +""" + QuantCDN API + + Unified API for QuantCDN Admin and QuantCloud Platform services + + The version of the OpenAPI document: 4.12.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from quantcdn.models.tokens_create_request import TokensCreateRequest + +class TestTokensCreateRequest(unittest.TestCase): + """TokensCreateRequest unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> TokensCreateRequest: + """Test TokensCreateRequest + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `TokensCreateRequest` + """ + model = TokensCreateRequest() + if include_optional: + return TokensCreateRequest( + name = 'My deploy token' + ) + else: + return TokensCreateRequest( + name = 'My deploy token', + ) + """ + + def testTokensCreateRequest(self): + """Test TokensCreateRequest""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_tokens_delete200_response.py b/test/test_tokens_delete200_response.py new file mode 100644 index 0000000..542572e --- /dev/null +++ b/test/test_tokens_delete200_response.py @@ -0,0 +1,51 @@ +# coding: utf-8 + +""" + QuantCDN API + + Unified API for QuantCDN Admin and QuantCloud Platform services + + The version of the OpenAPI document: 4.12.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from quantcdn.models.tokens_delete200_response import TokensDelete200Response + +class TestTokensDelete200Response(unittest.TestCase): + """TokensDelete200Response unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> TokensDelete200Response: + """Test TokensDelete200Response + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `TokensDelete200Response` + """ + model = TokensDelete200Response() + if include_optional: + return TokensDelete200Response( + message = 'Token revoked successfully' + ) + else: + return TokensDelete200Response( + ) + """ + + def testTokensDelete200Response(self): + """Test TokensDelete200Response""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_tokens_list200_response_inner.py b/test/test_tokens_list200_response_inner.py new file mode 100644 index 0000000..4a76523 --- /dev/null +++ b/test/test_tokens_list200_response_inner.py @@ -0,0 +1,54 @@ +# coding: utf-8 + +""" + QuantCDN API + + Unified API for QuantCDN Admin and QuantCloud Platform services + + The version of the OpenAPI document: 4.12.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from quantcdn.models.tokens_list200_response_inner import TokensList200ResponseInner + +class TestTokensList200ResponseInner(unittest.TestCase): + """TokensList200ResponseInner unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> TokensList200ResponseInner: + """Test TokensList200ResponseInner + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `TokensList200ResponseInner` + """ + model = TokensList200ResponseInner() + if include_optional: + return TokensList200ResponseInner( + id = 42, + name = 'My deploy token', + last_used = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), + created_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f') + ) + else: + return TokensList200ResponseInner( + ) + """ + + def testTokensList200ResponseInner(self): + """Test TokensList200ResponseInner""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_update_ai_agent200_response.py b/test/test_update_ai_agent200_response.py index 534550f..9393961 100644 --- a/test/test_update_ai_agent200_response.py +++ b/test/test_update_ai_agent200_response.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.9.0 + The version of the OpenAPI document: 4.12.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_update_ai_agent_request.py b/test/test_update_ai_agent_request.py index bbe2d8c..df16b77 100644 --- a/test/test_update_ai_agent_request.py +++ b/test/test_update_ai_agent_request.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.9.0 + The version of the OpenAPI document: 4.12.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_update_ai_session200_response.py b/test/test_update_ai_session200_response.py index d40f73f..f7c9991 100644 --- a/test/test_update_ai_session200_response.py +++ b/test/test_update_ai_session200_response.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.9.0 + The version of the OpenAPI document: 4.12.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_update_ai_session_request.py b/test/test_update_ai_session_request.py index f58139e..fb30954 100644 --- a/test/test_update_ai_session_request.py +++ b/test/test_update_ai_session_request.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.9.0 + The version of the OpenAPI document: 4.12.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_update_ai_session_request_new_messages_inner.py b/test/test_update_ai_session_request_new_messages_inner.py index 6c66928..3e636c7 100644 --- a/test/test_update_ai_session_request_new_messages_inner.py +++ b/test/test_update_ai_session_request_new_messages_inner.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.9.0 + The version of the OpenAPI document: 4.12.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_update_cron_job_request.py b/test/test_update_cron_job_request.py index 44b2420..29bc09a 100644 --- a/test/test_update_cron_job_request.py +++ b/test/test_update_cron_job_request.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.9.0 + The version of the OpenAPI document: 4.12.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_update_environment_request.py b/test/test_update_environment_request.py index d9a4410..7b7ace9 100644 --- a/test/test_update_environment_request.py +++ b/test/test_update_environment_request.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.9.0 + The version of the OpenAPI document: 4.12.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_update_environment_state_request.py b/test/test_update_environment_state_request.py index a0f6307..99b7c1d 100644 --- a/test/test_update_environment_state_request.py +++ b/test/test_update_environment_state_request.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.9.0 + The version of the OpenAPI document: 4.12.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_update_environment_variable_request.py b/test/test_update_environment_variable_request.py index b97289e..5f4a4c6 100644 --- a/test/test_update_environment_variable_request.py +++ b/test/test_update_environment_variable_request.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.9.0 + The version of the OpenAPI document: 4.12.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_update_skill200_response.py b/test/test_update_skill200_response.py new file mode 100644 index 0000000..7afbabb --- /dev/null +++ b/test/test_update_skill200_response.py @@ -0,0 +1,53 @@ +# coding: utf-8 + +""" + QuantCDN API + + Unified API for QuantCDN Admin and QuantCloud Platform services + + The version of the OpenAPI document: 4.12.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from quantcdn.models.update_skill200_response import UpdateSkill200Response + +class TestUpdateSkill200Response(unittest.TestCase): + """UpdateSkill200Response unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> UpdateSkill200Response: + """Test UpdateSkill200Response + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `UpdateSkill200Response` + """ + model = UpdateSkill200Response() + if include_optional: + return UpdateSkill200Response( + success = True, + skill = None, + message = 'Skill updated successfully' + ) + else: + return UpdateSkill200Response( + ) + """ + + def testUpdateSkill200Response(self): + """Test UpdateSkill200Response""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_update_skill_request.py b/test/test_update_skill_request.py new file mode 100644 index 0000000..e4d64eb --- /dev/null +++ b/test/test_update_skill_request.py @@ -0,0 +1,67 @@ +# coding: utf-8 + +""" + QuantCDN API + + Unified API for QuantCDN Admin and QuantCloud Platform services + + The version of the OpenAPI document: 4.12.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from quantcdn.models.update_skill_request import UpdateSkillRequest + +class TestUpdateSkillRequest(unittest.TestCase): + """UpdateSkillRequest unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> UpdateSkillRequest: + """Test UpdateSkillRequest + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `UpdateSkillRequest` + """ + model = UpdateSkillRequest() + if include_optional: + return UpdateSkillRequest( + name = '', + description = '', + content = '', + trigger_condition = '', + tags = [ + '' + ], + required_tools = [ + '' + ], + source = None, + files = None, + disable_model_invocation = True, + allowed_tools = [ + '' + ], + namespace = '' + ) + else: + return UpdateSkillRequest( + ) + """ + + def testUpdateSkillRequest(self): + """Test UpdateSkillRequest""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_update_task200_response.py b/test/test_update_task200_response.py index 3230acc..c158b7b 100644 --- a/test/test_update_task200_response.py +++ b/test/test_update_task200_response.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.9.0 + The version of the OpenAPI document: 4.12.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_update_task_request.py b/test/test_update_task_request.py index b3d2986..62bbd6e 100644 --- a/test/test_update_task_request.py +++ b/test/test_update_task_request.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.9.0 + The version of the OpenAPI document: 4.12.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_upload_file201_response.py b/test/test_upload_file201_response.py index 9466a80..c7b87e2 100644 --- a/test/test_upload_file201_response.py +++ b/test/test_upload_file201_response.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.9.0 + The version of the OpenAPI document: 4.12.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_upload_file_request.py b/test/test_upload_file_request.py index 591bb9f..958c1ef 100644 --- a/test/test_upload_file_request.py +++ b/test/test_upload_file_request.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.9.0 + The version of the OpenAPI document: 4.12.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_upload_vector_documents200_response.py b/test/test_upload_vector_documents200_response.py index d0876af..2fb9f14 100644 --- a/test/test_upload_vector_documents200_response.py +++ b/test/test_upload_vector_documents200_response.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.9.0 + The version of the OpenAPI document: 4.12.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_upload_vector_documents_request.py b/test/test_upload_vector_documents_request.py index cfd3730..7ec8a83 100644 --- a/test/test_upload_vector_documents_request.py +++ b/test/test_upload_vector_documents_request.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.9.0 + The version of the OpenAPI document: 4.12.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_upload_vector_documents_request_documents_inner.py b/test/test_upload_vector_documents_request_documents_inner.py index 731c397..b38d98b 100644 --- a/test/test_upload_vector_documents_request_documents_inner.py +++ b/test/test_upload_vector_documents_request_documents_inner.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.9.0 + The version of the OpenAPI document: 4.12.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_upload_vector_documents_request_documents_inner_metadata.py b/test/test_upload_vector_documents_request_documents_inner_metadata.py index 9358a41..09c593d 100644 --- a/test/test_upload_vector_documents_request_documents_inner_metadata.py +++ b/test/test_upload_vector_documents_request_documents_inner_metadata.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.9.0 + The version of the OpenAPI document: 4.12.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_v1_content_item.py b/test/test_v1_content_item.py index 16ce6b6..f8cbfcd 100644 --- a/test/test_v1_content_item.py +++ b/test/test_v1_content_item.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.9.0 + The version of the OpenAPI document: 4.12.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_v1_content_list_response.py b/test/test_v1_content_list_response.py index 8c0cea0..2aacc4d 100644 --- a/test/test_v1_content_list_response.py +++ b/test/test_v1_content_list_response.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.9.0 + The version of the OpenAPI document: 4.12.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_v1_content_request.py b/test/test_v1_content_request.py index 38af269..ba8ca5d 100644 --- a/test/test_v1_content_request.py +++ b/test/test_v1_content_request.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.9.0 + The version of the OpenAPI document: 4.12.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_v1_delete_response.py b/test/test_v1_delete_response.py index 0d63de9..a8ff779 100644 --- a/test/test_v1_delete_response.py +++ b/test/test_v1_delete_response.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.9.0 + The version of the OpenAPI document: 4.12.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_v1_error.py b/test/test_v1_error.py index 6341486..9cd82f1 100644 --- a/test/test_v1_error.py +++ b/test/test_v1_error.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.9.0 + The version of the OpenAPI document: 4.12.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_v1_form_submission_item.py b/test/test_v1_form_submission_item.py index 1bd3e5b..7c70609 100644 --- a/test/test_v1_form_submission_item.py +++ b/test/test_v1_form_submission_item.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.9.0 + The version of the OpenAPI document: 4.12.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_v1_form_submission_list_response.py b/test/test_v1_form_submission_list_response.py index e7301b8..401e8b3 100644 --- a/test/test_v1_form_submission_list_response.py +++ b/test/test_v1_form_submission_list_response.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.9.0 + The version of the OpenAPI document: 4.12.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_v1_get_metric_series_response.py b/test/test_v1_get_metric_series_response.py index 071d2d8..58b816b 100644 --- a/test/test_v1_get_metric_series_response.py +++ b/test/test_v1_get_metric_series_response.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.9.0 + The version of the OpenAPI document: 4.12.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_v1_get_metric_series_response_data.py b/test/test_v1_get_metric_series_response_data.py index 3b4fc8f..b083c86 100644 --- a/test/test_v1_get_metric_series_response_data.py +++ b/test/test_v1_get_metric_series_response_data.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.9.0 + The version of the OpenAPI document: 4.12.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_v1_get_metrics_response.py b/test/test_v1_get_metrics_response.py index 00e4880..8f48ff7 100644 --- a/test/test_v1_get_metrics_response.py +++ b/test/test_v1_get_metrics_response.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.9.0 + The version of the OpenAPI document: 4.12.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_v1_get_metrics_response_data.py b/test/test_v1_get_metrics_response_data.py index 6868bc2..f46bca0 100644 --- a/test/test_v1_get_metrics_response_data.py +++ b/test/test_v1_get_metrics_response_data.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.9.0 + The version of the OpenAPI document: 4.12.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_v1_global_meta_response.py b/test/test_v1_global_meta_response.py index 0d76f71..361117f 100644 --- a/test/test_v1_global_meta_response.py +++ b/test/test_v1_global_meta_response.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.9.0 + The version of the OpenAPI document: 4.12.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_v1_global_meta_response_global_meta.py b/test/test_v1_global_meta_response_global_meta.py index c2a686a..381ff18 100644 --- a/test/test_v1_global_meta_response_global_meta.py +++ b/test/test_v1_global_meta_response_global_meta.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.9.0 + The version of the OpenAPI document: 4.12.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_v1_info.py b/test/test_v1_info.py index b00e813..eeff951 100644 --- a/test/test_v1_info.py +++ b/test/test_v1_info.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.9.0 + The version of the OpenAPI document: 4.12.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_v1_meta.py b/test/test_v1_meta.py index 651d131..d568ccd 100644 --- a/test/test_v1_meta.py +++ b/test/test_v1_meta.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.9.0 + The version of the OpenAPI document: 4.12.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_v1_metric_day_stats.py b/test/test_v1_metric_day_stats.py index abb9628..58e659b 100644 --- a/test/test_v1_metric_day_stats.py +++ b/test/test_v1_metric_day_stats.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.9.0 + The version of the OpenAPI document: 4.12.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_v1_metric_minute_stats.py b/test/test_v1_metric_minute_stats.py index 18e49d5..b6e77b5 100644 --- a/test/test_v1_metric_minute_stats.py +++ b/test/test_v1_metric_minute_stats.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.9.0 + The version of the OpenAPI document: 4.12.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_v1_metric_month_stats.py b/test/test_v1_metric_month_stats.py index 78d13e0..a31ac3b 100644 --- a/test/test_v1_metric_month_stats.py +++ b/test/test_v1_metric_month_stats.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.9.0 + The version of the OpenAPI document: 4.12.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_v1_ping_response.py b/test/test_v1_ping_response.py index 95a2e9a..b1de5c0 100644 --- a/test/test_v1_ping_response.py +++ b/test/test_v1_ping_response.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.9.0 + The version of the OpenAPI document: 4.12.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_v1_proxy_item.py b/test/test_v1_proxy_item.py index dbf0974..5d8b6ed 100644 --- a/test/test_v1_proxy_item.py +++ b/test/test_v1_proxy_item.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.9.0 + The version of the OpenAPI document: 4.12.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_v1_proxy_list_response.py b/test/test_v1_proxy_list_response.py index 56f6782..a6310b9 100644 --- a/test/test_v1_proxy_list_response.py +++ b/test/test_v1_proxy_list_response.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.9.0 + The version of the OpenAPI document: 4.12.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_v1_redirect_item.py b/test/test_v1_redirect_item.py index c9794b1..8500a06 100644 --- a/test/test_v1_redirect_item.py +++ b/test/test_v1_redirect_item.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.9.0 + The version of the OpenAPI document: 4.12.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_v1_redirect_list_response.py b/test/test_v1_redirect_list_response.py index 6651cab..ee6b173 100644 --- a/test/test_v1_redirect_list_response.py +++ b/test/test_v1_redirect_list_response.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.9.0 + The version of the OpenAPI document: 4.12.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_v1_redirect_request.py b/test/test_v1_redirect_request.py index b37e616..ab9429a 100644 --- a/test/test_v1_redirect_request.py +++ b/test/test_v1_redirect_request.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.9.0 + The version of the OpenAPI document: 4.12.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_v1_redirect_response.py b/test/test_v1_redirect_response.py index e5c4693..5056099 100644 --- a/test/test_v1_redirect_response.py +++ b/test/test_v1_redirect_response.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.9.0 + The version of the OpenAPI document: 4.12.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_v1_revision.py b/test/test_v1_revision.py index ea9f310..0bb9c40 100644 --- a/test/test_v1_revision.py +++ b/test/test_v1_revision.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.9.0 + The version of the OpenAPI document: 4.12.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_v1_revisions_response.py b/test/test_v1_revisions_response.py index e6db565..1967eba 100644 --- a/test/test_v1_revisions_response.py +++ b/test/test_v1_revisions_response.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.9.0 + The version of the OpenAPI document: 4.12.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_v1_search_hit.py b/test/test_v1_search_hit.py index 32f45db..7b2cc01 100644 --- a/test/test_v1_search_hit.py +++ b/test/test_v1_search_hit.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.9.0 + The version of the OpenAPI document: 4.12.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_v1_search_items_response.py b/test/test_v1_search_items_response.py index ed4c624..bfdcae7 100644 --- a/test/test_v1_search_items_response.py +++ b/test/test_v1_search_items_response.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.9.0 + The version of the OpenAPI document: 4.12.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_v1_search_mutation_response.py b/test/test_v1_search_mutation_response.py index 9dd01e7..e97e67c 100644 --- a/test/test_v1_search_mutation_response.py +++ b/test/test_v1_search_mutation_response.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.9.0 + The version of the OpenAPI document: 4.12.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_v1_search_record.py b/test/test_v1_search_record.py index 0d98639..9e26878 100644 --- a/test/test_v1_search_record.py +++ b/test/test_v1_search_record.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.9.0 + The version of the OpenAPI document: 4.12.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_v1_search_response.py b/test/test_v1_search_response.py index cbb436b..34532ad 100644 --- a/test/test_v1_search_response.py +++ b/test/test_v1_search_response.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.9.0 + The version of the OpenAPI document: 4.12.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_v1_series_point_day.py b/test/test_v1_series_point_day.py index 8f3443b..10f2c5d 100644 --- a/test/test_v1_series_point_day.py +++ b/test/test_v1_series_point_day.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.9.0 + The version of the OpenAPI document: 4.12.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_v1_series_point_month.py b/test/test_v1_series_point_month.py index 884c2d5..b201f66 100644 --- a/test/test_v1_series_point_month.py +++ b/test/test_v1_series_point_month.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.9.0 + The version of the OpenAPI document: 4.12.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_v1_transition.py b/test/test_v1_transition.py index 38318bd..773cc2f 100644 --- a/test/test_v1_transition.py +++ b/test/test_v1_transition.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.9.0 + The version of the OpenAPI document: 4.12.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_v1_upload_response.py b/test/test_v1_upload_response.py index b86f906..7753fad 100644 --- a/test/test_v1_upload_response.py +++ b/test/test_v1_upload_response.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.9.0 + The version of the OpenAPI document: 4.12.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_v1_url_meta_request.py b/test/test_v1_url_meta_request.py index b4c2d7d..14f95a2 100644 --- a/test/test_v1_url_meta_request.py +++ b/test/test_v1_url_meta_request.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.9.0 + The version of the OpenAPI document: 4.12.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_v1_url_meta_response.py b/test/test_v1_url_meta_response.py index 9a135aa..a8c1020 100644 --- a/test/test_v1_url_meta_response.py +++ b/test/test_v1_url_meta_response.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.9.0 + The version of the OpenAPI document: 4.12.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_v1_waf_log_item.py b/test/test_v1_waf_log_item.py index 571953e..f8f5a9f 100644 --- a/test/test_v1_waf_log_item.py +++ b/test/test_v1_waf_log_item.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.9.0 + The version of the OpenAPI document: 4.12.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_v1_waf_log_list_response.py b/test/test_v1_waf_log_list_response.py index e66e98c..19a3742 100644 --- a/test/test_v1_waf_log_list_response.py +++ b/test/test_v1_waf_log_list_response.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.9.0 + The version of the OpenAPI document: 4.12.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_v2_crawler.py b/test/test_v2_crawler.py index 8c5078d..ac2644c 100644 --- a/test/test_v2_crawler.py +++ b/test/test_v2_crawler.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.9.0 + The version of the OpenAPI document: 4.12.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_v2_crawler_assets.py b/test/test_v2_crawler_assets.py index 45c9b50..33a30c8 100644 --- a/test/test_v2_crawler_assets.py +++ b/test/test_v2_crawler_assets.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.9.0 + The version of the OpenAPI document: 4.12.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_v2_crawler_assets_network_intercept.py b/test/test_v2_crawler_assets_network_intercept.py index bad5076..675bc0d 100644 --- a/test/test_v2_crawler_assets_network_intercept.py +++ b/test/test_v2_crawler_assets_network_intercept.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.9.0 + The version of the OpenAPI document: 4.12.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_v2_crawler_assets_parser.py b/test/test_v2_crawler_assets_parser.py index 52ebfb2..1be28f8 100644 --- a/test/test_v2_crawler_assets_parser.py +++ b/test/test_v2_crawler_assets_parser.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.9.0 + The version of the OpenAPI document: 4.12.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_v2_crawler_request.py b/test/test_v2_crawler_request.py index f92299e..ef75db5 100644 --- a/test/test_v2_crawler_request.py +++ b/test/test_v2_crawler_request.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.9.0 + The version of the OpenAPI document: 4.12.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_v2_crawler_run.py b/test/test_v2_crawler_run.py index e2ae45f..1d3f0c8 100644 --- a/test/test_v2_crawler_run.py +++ b/test/test_v2_crawler_run.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.9.0 + The version of the OpenAPI document: 4.12.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_v2_crawler_schedule.py b/test/test_v2_crawler_schedule.py index 9219086..8264b14 100644 --- a/test/test_v2_crawler_schedule.py +++ b/test/test_v2_crawler_schedule.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.9.0 + The version of the OpenAPI document: 4.12.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_v2_crawler_schedule_request.py b/test/test_v2_crawler_schedule_request.py index 247684c..92b3536 100644 --- a/test/test_v2_crawler_schedule_request.py +++ b/test/test_v2_crawler_schedule_request.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.9.0 + The version of the OpenAPI document: 4.12.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -35,12 +35,11 @@ def make_instance(self, include_optional) -> V2CrawlerScheduleRequest: model = V2CrawlerScheduleRequest() if include_optional: return V2CrawlerScheduleRequest( - name = 'Test schedule', + name = 'Daily Crawl', schedule_cron_string = '0 2 * * *' ) else: return V2CrawlerScheduleRequest( - name = 'Test schedule', schedule_cron_string = '0 2 * * *', ) """ diff --git a/test/test_v2_crawler_sitemap_inner.py b/test/test_v2_crawler_sitemap_inner.py index 9583342..d1c618c 100644 --- a/test/test_v2_crawler_sitemap_inner.py +++ b/test/test_v2_crawler_sitemap_inner.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.9.0 + The version of the OpenAPI document: 4.12.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_v2_custom_header_request.py b/test/test_v2_custom_header_request.py index 9674c71..9393cac 100644 --- a/test/test_v2_custom_header_request.py +++ b/test/test_v2_custom_header_request.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.9.0 + The version of the OpenAPI document: 4.12.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_v2_domain.py b/test/test_v2_domain.py index bf5f146..dab3fa6 100644 --- a/test/test_v2_domain.py +++ b/test/test_v2_domain.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.9.0 + The version of the OpenAPI document: 4.12.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_v2_domain_dns_go_live_records_inner.py b/test/test_v2_domain_dns_go_live_records_inner.py index a96d90d..de5c565 100644 --- a/test/test_v2_domain_dns_go_live_records_inner.py +++ b/test/test_v2_domain_dns_go_live_records_inner.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.9.0 + The version of the OpenAPI document: 4.12.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_v2_domain_dns_validation_records_inner.py b/test/test_v2_domain_dns_validation_records_inner.py index e6f4361..d1345dc 100644 --- a/test/test_v2_domain_dns_validation_records_inner.py +++ b/test/test_v2_domain_dns_validation_records_inner.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.9.0 + The version of the OpenAPI document: 4.12.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_v2_domain_request.py b/test/test_v2_domain_request.py index 9074b7f..412e546 100644 --- a/test/test_v2_domain_request.py +++ b/test/test_v2_domain_request.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.9.0 + The version of the OpenAPI document: 4.12.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_v2_error.py b/test/test_v2_error.py index 02f9649..29d5a4c 100644 --- a/test/test_v2_error.py +++ b/test/test_v2_error.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.9.0 + The version of the OpenAPI document: 4.12.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_v2_metric_data.py b/test/test_v2_metric_data.py new file mode 100644 index 0000000..a1b37bd --- /dev/null +++ b/test/test_v2_metric_data.py @@ -0,0 +1,66 @@ +# coding: utf-8 + +""" + QuantCDN API + + Unified API for QuantCDN Admin and QuantCloud Platform services + + The version of the OpenAPI document: 4.12.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from quantcdn.models.v2_metric_data import V2MetricData + +class TestV2MetricData(unittest.TestCase): + """V2MetricData unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V2MetricData: + """Test V2MetricData + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V2MetricData` + """ + model = V2MetricData() + if include_optional: + return V2MetricData( + series = [ + quantcdn.models.v2_metric_data_point.V2MetricDataPoint( + timestamp = 2026-01-29T12:00:00+00:00, + value = 150, ) + ], + period_total = 8523, + all_time_total = 1284567, + period_average = 142.05 + ) + else: + return V2MetricData( + series = [ + quantcdn.models.v2_metric_data_point.V2MetricDataPoint( + timestamp = 2026-01-29T12:00:00+00:00, + value = 150, ) + ], + period_total = 8523, + all_time_total = 1284567, + period_average = 142.05, + ) + """ + + def testV2MetricData(self): + """Test V2MetricData""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v2_metric_data_point.py b/test/test_v2_metric_data_point.py new file mode 100644 index 0000000..7d6ed94 --- /dev/null +++ b/test/test_v2_metric_data_point.py @@ -0,0 +1,54 @@ +# coding: utf-8 + +""" + QuantCDN API + + Unified API for QuantCDN Admin and QuantCloud Platform services + + The version of the OpenAPI document: 4.12.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from quantcdn.models.v2_metric_data_point import V2MetricDataPoint + +class TestV2MetricDataPoint(unittest.TestCase): + """V2MetricDataPoint unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V2MetricDataPoint: + """Test V2MetricDataPoint + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V2MetricDataPoint` + """ + model = V2MetricDataPoint() + if include_optional: + return V2MetricDataPoint( + timestamp = 2026-01-29T12:00:00+00:00, + value = 150 + ) + else: + return V2MetricDataPoint( + timestamp = 2026-01-29T12:00:00+00:00, + value = 150, + ) + """ + + def testV2MetricDataPoint(self): + """Test V2MetricDataPoint""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v2_metric_data_point_timestamp.py b/test/test_v2_metric_data_point_timestamp.py new file mode 100644 index 0000000..f32f3eb --- /dev/null +++ b/test/test_v2_metric_data_point_timestamp.py @@ -0,0 +1,50 @@ +# coding: utf-8 + +""" + QuantCDN API + + Unified API for QuantCDN Admin and QuantCloud Platform services + + The version of the OpenAPI document: 4.12.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from quantcdn.models.v2_metric_data_point_timestamp import V2MetricDataPointTimestamp + +class TestV2MetricDataPointTimestamp(unittest.TestCase): + """V2MetricDataPointTimestamp unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V2MetricDataPointTimestamp: + """Test V2MetricDataPointTimestamp + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V2MetricDataPointTimestamp` + """ + model = V2MetricDataPointTimestamp() + if include_optional: + return V2MetricDataPointTimestamp( + ) + else: + return V2MetricDataPointTimestamp( + ) + """ + + def testV2MetricDataPointTimestamp(self): + """Test V2MetricDataPointTimestamp""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v2_metrics_meta.py b/test/test_v2_metrics_meta.py new file mode 100644 index 0000000..f8dfb68 --- /dev/null +++ b/test/test_v2_metrics_meta.py @@ -0,0 +1,61 @@ +# coding: utf-8 + +""" + QuantCDN API + + Unified API for QuantCDN Admin and QuantCloud Platform services + + The version of the OpenAPI document: 4.12.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from quantcdn.models.v2_metrics_meta import V2MetricsMeta + +class TestV2MetricsMeta(unittest.TestCase): + """V2MetricsMeta unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V2MetricsMeta: + """Test V2MetricsMeta + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V2MetricsMeta` + """ + model = V2MetricsMeta() + if include_optional: + return V2MetricsMeta( + period = 'hourly', + granularity = 'minute', + start_time = '2026-01-29T12:00:00+00:00', + end_time = '2026-01-29T13:00:00+00:00', + metrics = ["hits","bytes"], + domain = '' + ) + else: + return V2MetricsMeta( + period = 'hourly', + granularity = 'minute', + start_time = '2026-01-29T12:00:00+00:00', + end_time = '2026-01-29T13:00:00+00:00', + metrics = ["hits","bytes"], + ) + """ + + def testV2MetricsMeta(self): + """Test V2MetricsMeta""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v2_metrics_response.py b/test/test_v2_metrics_response.py new file mode 100644 index 0000000..f6b40e6 --- /dev/null +++ b/test/test_v2_metrics_response.py @@ -0,0 +1,66 @@ +# coding: utf-8 + +""" + QuantCDN API + + Unified API for QuantCDN Admin and QuantCloud Platform services + + The version of the OpenAPI document: 4.12.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from quantcdn.models.v2_metrics_response import V2MetricsResponse + +class TestV2MetricsResponse(unittest.TestCase): + """V2MetricsResponse unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V2MetricsResponse: + """Test V2MetricsResponse + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V2MetricsResponse` + """ + model = V2MetricsResponse() + if include_optional: + return V2MetricsResponse( + meta = quantcdn.models.v2_metrics_meta.V2MetricsMeta( + period = 'hourly', + granularity = 'minute', + start_time = '2026-01-29T12:00:00+00:00', + end_time = '2026-01-29T13:00:00+00:00', + metrics = ["hits","bytes"], + domain = '', ), + data = {"hits":{"series":[{"timestamp":"2026-01-29T12:00:00+00:00","value":150},{"timestamp":"2026-01-29T12:01:00+00:00","value":142}],"period_total":8523,"all_time_total":1284567,"period_average":142.05},"bytes":{"series":[{"timestamp":"2026-01-29T12:00:00+00:00","value":1520576},{"timestamp":"2026-01-29T12:01:00+00:00","value":1423456}],"period_total":91234567,"all_time_total":12845670000,"period_average":1520576.12}} + ) + else: + return V2MetricsResponse( + meta = quantcdn.models.v2_metrics_meta.V2MetricsMeta( + period = 'hourly', + granularity = 'minute', + start_time = '2026-01-29T12:00:00+00:00', + end_time = '2026-01-29T13:00:00+00:00', + metrics = ["hits","bytes"], + domain = '', ), + data = {"hits":{"series":[{"timestamp":"2026-01-29T12:00:00+00:00","value":150},{"timestamp":"2026-01-29T12:01:00+00:00","value":142}],"period_total":8523,"all_time_total":1284567,"period_average":142.05},"bytes":{"series":[{"timestamp":"2026-01-29T12:00:00+00:00","value":1520576},{"timestamp":"2026-01-29T12:01:00+00:00","value":1423456}],"period_total":91234567,"all_time_total":12845670000,"period_average":1520576.12}}, + ) + """ + + def testV2MetricsResponse(self): + """Test V2MetricsResponse""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v2_organization.py b/test/test_v2_organization.py index 1ce4bc1..a57474b 100644 --- a/test/test_v2_organization.py +++ b/test/test_v2_organization.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.9.0 + The version of the OpenAPI document: 4.12.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_v2_organization_request.py b/test/test_v2_organization_request.py index cc49338..6f74974 100644 --- a/test/test_v2_organization_request.py +++ b/test/test_v2_organization_request.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.9.0 + The version of the OpenAPI document: 4.12.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_v2_project.py b/test/test_v2_project.py index 3555650..bd22b14 100644 --- a/test/test_v2_project.py +++ b/test/test_v2_project.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.9.0 + The version of the OpenAPI document: 4.12.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_v2_project_request.py b/test/test_v2_project_request.py index e8d40fe..c573acc 100644 --- a/test/test_v2_project_request.py +++ b/test/test_v2_project_request.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.9.0 + The version of the OpenAPI document: 4.12.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_v2_rule.py b/test/test_v2_rule.py index 064c083..aa9a4d1 100644 --- a/test/test_v2_rule.py +++ b/test/test_v2_rule.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.9.0 + The version of the OpenAPI document: 4.12.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_v2_rule_auth.py b/test/test_v2_rule_auth.py index 9252944..2519145 100644 --- a/test/test_v2_rule_auth.py +++ b/test/test_v2_rule_auth.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.9.0 + The version of the OpenAPI document: 4.12.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_v2_rule_auth_action.py b/test/test_v2_rule_auth_action.py index eaeb561..9541974 100644 --- a/test/test_v2_rule_auth_action.py +++ b/test/test_v2_rule_auth_action.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.9.0 + The version of the OpenAPI document: 4.12.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_v2_rule_auth_request.py b/test/test_v2_rule_auth_request.py index 16d1b80..7326e33 100644 --- a/test/test_v2_rule_auth_request.py +++ b/test/test_v2_rule_auth_request.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.9.0 + The version of the OpenAPI document: 4.12.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_v2_rule_bot_challenge.py b/test/test_v2_rule_bot_challenge.py index a465797..fa1ac14 100644 --- a/test/test_v2_rule_bot_challenge.py +++ b/test/test_v2_rule_bot_challenge.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.9.0 + The version of the OpenAPI document: 4.12.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_v2_rule_bot_challenge_action.py b/test/test_v2_rule_bot_challenge_action.py index 4a3497a..3f38a90 100644 --- a/test/test_v2_rule_bot_challenge_action.py +++ b/test/test_v2_rule_bot_challenge_action.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.9.0 + The version of the OpenAPI document: 4.12.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_v2_rule_bot_challenge_request.py b/test/test_v2_rule_bot_challenge_request.py index cb785d3..26a9444 100644 --- a/test/test_v2_rule_bot_challenge_request.py +++ b/test/test_v2_rule_bot_challenge_request.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.9.0 + The version of the OpenAPI document: 4.12.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_v2_rule_content_filter.py b/test/test_v2_rule_content_filter.py index fbe5401..124bc76 100644 --- a/test/test_v2_rule_content_filter.py +++ b/test/test_v2_rule_content_filter.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.9.0 + The version of the OpenAPI document: 4.12.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_v2_rule_content_filter_action.py b/test/test_v2_rule_content_filter_action.py index 5de4b44..e5e2be9 100644 --- a/test/test_v2_rule_content_filter_action.py +++ b/test/test_v2_rule_content_filter_action.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.9.0 + The version of the OpenAPI document: 4.12.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_v2_rule_content_filter_request.py b/test/test_v2_rule_content_filter_request.py index 3d421eb..2af38ab 100644 --- a/test/test_v2_rule_content_filter_request.py +++ b/test/test_v2_rule_content_filter_request.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.9.0 + The version of the OpenAPI document: 4.12.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_v2_rule_custom_response.py b/test/test_v2_rule_custom_response.py index 236cea0..5eb9da8 100644 --- a/test/test_v2_rule_custom_response.py +++ b/test/test_v2_rule_custom_response.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.9.0 + The version of the OpenAPI document: 4.12.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_v2_rule_custom_response_action.py b/test/test_v2_rule_custom_response_action.py index 8673155..8dbc6e4 100644 --- a/test/test_v2_rule_custom_response_action.py +++ b/test/test_v2_rule_custom_response_action.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.9.0 + The version of the OpenAPI document: 4.12.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_v2_rule_custom_response_request.py b/test/test_v2_rule_custom_response_request.py index 8d82e50..f075452 100644 --- a/test/test_v2_rule_custom_response_request.py +++ b/test/test_v2_rule_custom_response_request.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.9.0 + The version of the OpenAPI document: 4.12.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_v2_rule_function.py b/test/test_v2_rule_function.py index ca08077..f4a3b9b 100644 --- a/test/test_v2_rule_function.py +++ b/test/test_v2_rule_function.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.9.0 + The version of the OpenAPI document: 4.12.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_v2_rule_function_action.py b/test/test_v2_rule_function_action.py index 6171a2b..30373b6 100644 --- a/test/test_v2_rule_function_action.py +++ b/test/test_v2_rule_function_action.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.9.0 + The version of the OpenAPI document: 4.12.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_v2_rule_function_request.py b/test/test_v2_rule_function_request.py index 3549a6b..a0bbb66 100644 --- a/test/test_v2_rule_function_request.py +++ b/test/test_v2_rule_function_request.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.9.0 + The version of the OpenAPI document: 4.12.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_v2_rule_header.py b/test/test_v2_rule_header.py index faaa7e7..8ffbd71 100644 --- a/test/test_v2_rule_header.py +++ b/test/test_v2_rule_header.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.9.0 + The version of the OpenAPI document: 4.12.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_v2_rule_header_action.py b/test/test_v2_rule_header_action.py index e44e01b..18e79fb 100644 --- a/test/test_v2_rule_header_action.py +++ b/test/test_v2_rule_header_action.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.9.0 + The version of the OpenAPI document: 4.12.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_v2_rule_header_request.py b/test/test_v2_rule_header_request.py index 0e4dc79..e1ccf9c 100644 --- a/test/test_v2_rule_header_request.py +++ b/test/test_v2_rule_header_request.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.9.0 + The version of the OpenAPI document: 4.12.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_v2_rule_proxy.py b/test/test_v2_rule_proxy.py index 8bf70cd..9f78ffc 100644 --- a/test/test_v2_rule_proxy.py +++ b/test/test_v2_rule_proxy.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.9.0 + The version of the OpenAPI document: 4.12.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_v2_rule_proxy_action.py b/test/test_v2_rule_proxy_action.py index 362dcc2..64f126a 100644 --- a/test/test_v2_rule_proxy_action.py +++ b/test/test_v2_rule_proxy_action.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.9.0 + The version of the OpenAPI document: 4.12.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_v2_rule_proxy_action_notify_config.py b/test/test_v2_rule_proxy_action_notify_config.py index 4c6f195..178566f 100644 --- a/test/test_v2_rule_proxy_action_notify_config.py +++ b/test/test_v2_rule_proxy_action_notify_config.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.9.0 + The version of the OpenAPI document: 4.12.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_v2_rule_proxy_action_quant_cloud_selection.py b/test/test_v2_rule_proxy_action_quant_cloud_selection.py index df0a4ae..05c6960 100644 --- a/test/test_v2_rule_proxy_action_quant_cloud_selection.py +++ b/test/test_v2_rule_proxy_action_quant_cloud_selection.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.9.0 + The version of the OpenAPI document: 4.12.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_v2_rule_proxy_request.py b/test/test_v2_rule_proxy_request.py index 7eb1021..1ed833c 100644 --- a/test/test_v2_rule_proxy_request.py +++ b/test/test_v2_rule_proxy_request.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.9.0 + The version of the OpenAPI document: 4.12.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_v2_rule_redirect.py b/test/test_v2_rule_redirect.py index 559b1ca..bc28dec 100644 --- a/test/test_v2_rule_redirect.py +++ b/test/test_v2_rule_redirect.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.9.0 + The version of the OpenAPI document: 4.12.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_v2_rule_redirect_action.py b/test/test_v2_rule_redirect_action.py index 7d7be7e..873a3ba 100644 --- a/test/test_v2_rule_redirect_action.py +++ b/test/test_v2_rule_redirect_action.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.9.0 + The version of the OpenAPI document: 4.12.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_v2_rule_redirect_request.py b/test/test_v2_rule_redirect_request.py index f289627..6bdda57 100644 --- a/test/test_v2_rule_redirect_request.py +++ b/test/test_v2_rule_redirect_request.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.9.0 + The version of the OpenAPI document: 4.12.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_v2_rule_request.py b/test/test_v2_rule_request.py index 390044d..65bd892 100644 --- a/test/test_v2_rule_request.py +++ b/test/test_v2_rule_request.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.9.0 + The version of the OpenAPI document: 4.12.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_v2_rule_serve_static.py b/test/test_v2_rule_serve_static.py index 7cbfb8f..ca96d27 100644 --- a/test/test_v2_rule_serve_static.py +++ b/test/test_v2_rule_serve_static.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.9.0 + The version of the OpenAPI document: 4.12.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_v2_rule_serve_static_action.py b/test/test_v2_rule_serve_static_action.py index 227efc7..7dd16ca 100644 --- a/test/test_v2_rule_serve_static_action.py +++ b/test/test_v2_rule_serve_static_action.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.9.0 + The version of the OpenAPI document: 4.12.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_v2_rule_serve_static_request.py b/test/test_v2_rule_serve_static_request.py index 2f36a6f..174a315 100644 --- a/test/test_v2_rule_serve_static_request.py +++ b/test/test_v2_rule_serve_static_request.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.9.0 + The version of the OpenAPI document: 4.12.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_v2_secret_store.py b/test/test_v2_secret_store.py index b58235a..4a02c89 100644 --- a/test/test_v2_secret_store.py +++ b/test/test_v2_secret_store.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.9.0 + The version of the OpenAPI document: 4.12.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_v2_secret_store_request.py b/test/test_v2_secret_store_request.py index f17f7ce..f9c4d25 100644 --- a/test/test_v2_secret_store_request.py +++ b/test/test_v2_secret_store_request.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.9.0 + The version of the OpenAPI document: 4.12.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_v2_store.py b/test/test_v2_store.py index 4c9a879..6f6d13e 100644 --- a/test/test_v2_store.py +++ b/test/test_v2_store.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.9.0 + The version of the OpenAPI document: 4.12.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_v2_store_item.py b/test/test_v2_store_item.py index da3445f..c937b37 100644 --- a/test/test_v2_store_item.py +++ b/test/test_v2_store_item.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.9.0 + The version of the OpenAPI document: 4.12.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_v2_store_item_request.py b/test/test_v2_store_item_request.py index 6a681ef..7e3820d 100644 --- a/test/test_v2_store_item_request.py +++ b/test/test_v2_store_item_request.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.9.0 + The version of the OpenAPI document: 4.12.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_v2_store_item_update_request.py b/test/test_v2_store_item_update_request.py index 0610b7b..a42a889 100644 --- a/test/test_v2_store_item_update_request.py +++ b/test/test_v2_store_item_update_request.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.9.0 + The version of the OpenAPI document: 4.12.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_v2_store_items_list_response.py b/test/test_v2_store_items_list_response.py index 3966ffc..f5b0224 100644 --- a/test/test_v2_store_items_list_response.py +++ b/test/test_v2_store_items_list_response.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.9.0 + The version of the OpenAPI document: 4.12.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_v2_store_request.py b/test/test_v2_store_request.py index 5410ffa..9ee6d1e 100644 --- a/test/test_v2_store_request.py +++ b/test/test_v2_store_request.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.9.0 + The version of the OpenAPI document: 4.12.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_validate_compose200_response.py b/test/test_validate_compose200_response.py index 2b3c9bf..dc1a612 100644 --- a/test/test_validate_compose200_response.py +++ b/test/test_validate_compose200_response.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.9.0 + The version of the OpenAPI document: 4.12.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_validate_compose422_response.py b/test/test_validate_compose422_response.py index ce824bb..0fe0423 100644 --- a/test/test_validate_compose422_response.py +++ b/test/test_validate_compose422_response.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.9.0 + The version of the OpenAPI document: 4.12.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_validate_compose_request.py b/test/test_validate_compose_request.py index 4acff94..822fff3 100644 --- a/test/test_validate_compose_request.py +++ b/test/test_validate_compose_request.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.9.0 + The version of the OpenAPI document: 4.12.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_variable.py b/test/test_variable.py index eac2645..3c4bdce 100644 --- a/test/test_variable.py +++ b/test/test_variable.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.9.0 + The version of the OpenAPI document: 4.12.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_variables_api.py b/test/test_variables_api.py index 032b139..4b5e8a0 100644 --- a/test/test_variables_api.py +++ b/test/test_variables_api.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.9.0 + The version of the OpenAPI document: 4.12.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_volume.py b/test/test_volume.py index a834403..277b79e 100644 --- a/test/test_volume.py +++ b/test/test_volume.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.9.0 + The version of the OpenAPI document: 4.12.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_volumes_api.py b/test/test_volumes_api.py index eda0437..5f1a5ea 100644 --- a/test/test_volumes_api.py +++ b/test/test_volumes_api.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.9.0 + The version of the OpenAPI document: 4.12.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_waf_config.py b/test/test_waf_config.py index 61f6be7..d73dbe3 100644 --- a/test/test_waf_config.py +++ b/test/test_waf_config.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.9.0 + The version of the OpenAPI document: 4.12.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_waf_config_block_lists.py b/test/test_waf_config_block_lists.py index dddc276..3dd240b 100644 --- a/test/test_waf_config_block_lists.py +++ b/test/test_waf_config_block_lists.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.9.0 + The version of the OpenAPI document: 4.12.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_waf_config_httpbl.py b/test/test_waf_config_httpbl.py index 7ba0b14..0c4f8d1 100644 --- a/test/test_waf_config_httpbl.py +++ b/test/test_waf_config_httpbl.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.9.0 + The version of the OpenAPI document: 4.12.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_waf_config_thresholds_inner.py b/test/test_waf_config_thresholds_inner.py index fc20bd8..be9c2a9 100644 --- a/test/test_waf_config_thresholds_inner.py +++ b/test/test_waf_config_thresholds_inner.py @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services - The version of the OpenAPI document: 4.9.0 + The version of the OpenAPI document: 4.12.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually.