diff --git a/.openapi-generator/FILES b/.openapi-generator/FILES index 57fb1bd..6745aac 100644 --- a/.openapi-generator/FILES +++ b/.openapi-generator/FILES @@ -9,6 +9,7 @@ docs/AIFileStorageApi.md docs/AIInferenceApi.md docs/AIModelsApi.md docs/AIMonitoringApi.md +docs/AIOrchestrationsApi.md docs/AISessionsApi.md docs/AITaskManagementApi.md docs/AIToolsApi.md @@ -23,6 +24,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 +34,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 +97,9 @@ docs/CreateCustomToolRequest.md docs/CreateEnvironment403Response.md docs/CreateEnvironmentRequest.md docs/CreateEnvironmentRequestEnvironmentInner.md +docs/CreateOrchestrationRequest.md +docs/CreateOrchestrationRequestInputSource.md +docs/CreateOrchestrationRequestStopCondition.md docs/CreateTask201Response.md docs/CreateTaskRequest.md docs/CreateVectorCollection201Response.md @@ -111,6 +117,9 @@ docs/DeleteFile200Response.md docs/DeleteTask200Response.md docs/DeleteTask409Response.md docs/DeleteVectorCollection200Response.md +docs/DeleteVectorDocuments200Response.md +docs/DeleteVectorDocumentsRequest.md +docs/DeleteVectorDocumentsRequestMetadata.md docs/DomainsApi.md docs/DownloadBackup200Response.md docs/Embeddings200Response.md @@ -170,6 +179,8 @@ docs/KVItemsCreate200Response.md docs/KVItemsDelete200Response.md docs/KVItemsShow200Response.md docs/KVItemsShow200ResponseValue.md +docs/KVLinkToProject200Response.md +docs/KVLinkToProjectRequest.md docs/ListAIAgents200Response.md docs/ListAIAgents200ResponseAgentsInner.md docs/ListAIModels200Response.md @@ -190,6 +201,9 @@ docs/ListCustomTools200Response.md docs/ListCustomTools200ResponseToolsInner.md docs/ListFiles200Response.md docs/ListFiles200ResponseFilesInner.md +docs/ListOrchestrationBatches200Response.md +docs/ListOrchestrationBatches200ResponseBatchesInner.md +docs/ListOrchestrations200Response.md docs/ListTasks200Response.md docs/ListTasks200ResponseTasksInner.md docs/ListVectorCollections200Response.md @@ -220,6 +234,11 @@ docs/SubmitToolCallbackRequest.md docs/SubmitToolCallbackRequestToolResultsInner.md docs/SyncOperation.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 @@ -292,6 +311,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 +380,14 @@ 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_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 @@ -379,6 +405,7 @@ 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 +430,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 +488,9 @@ 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_task201_response.py quantcdn/models/create_task_request.py quantcdn/models/create_vector_collection201_response.py @@ -476,6 +507,9 @@ quantcdn/models/delete_file200_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 @@ -531,6 +565,8 @@ 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 +587,9 @@ 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_tasks200_response.py quantcdn/models/list_tasks200_response_tasks_inner.py quantcdn/models/list_vector_collections200_response.py @@ -574,6 +613,10 @@ 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_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 @@ -646,6 +689,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,6 +759,7 @@ 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_task_management_api.py test/test_ai_tools_api.py @@ -725,6 +774,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 +784,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 +847,9 @@ 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_task201_response.py test/test_create_task_request.py test/test_create_vector_collection201_response.py @@ -813,6 +867,9 @@ test/test_delete_file200_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 @@ -872,6 +929,8 @@ 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,6 +951,9 @@ 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_tasks200_response.py test/test_list_tasks200_response_tasks_inner.py test/test_list_vector_collections200_response.py @@ -922,6 +984,11 @@ 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_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 @@ -994,6 +1061,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..c484d87 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.11.0 - Package version: 1.0.0 - Generator version: 7.13.0 - Build package: org.openapitools.codegen.languages.PythonClientCodegen @@ -118,6 +118,15 @@ 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 @@ -130,13 +139,14 @@ Class | Method | HTTP request | Description *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 +160,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 +216,11 @@ 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 +*OrchestrationApi* | [**get_ai_orchestration_status**](docs/OrchestrationApi.md#get_ai_orchestration_status) | **GET** /api/v3/organizations/{organisation}/ai/tools/orchestrations/{orchestrationId} | Get Tool Orchestration Status (Async Tool Polling) *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 +278,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 +310,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 +368,9 @@ Class | Method | HTTP request | Description - [CreateEnvironment403Response](docs/CreateEnvironment403Response.md) - [CreateEnvironmentRequest](docs/CreateEnvironmentRequest.md) - [CreateEnvironmentRequestEnvironmentInner](docs/CreateEnvironmentRequestEnvironmentInner.md) + - [CreateOrchestrationRequest](docs/CreateOrchestrationRequest.md) + - [CreateOrchestrationRequestInputSource](docs/CreateOrchestrationRequestInputSource.md) + - [CreateOrchestrationRequestStopCondition](docs/CreateOrchestrationRequestStopCondition.md) - [CreateTask201Response](docs/CreateTask201Response.md) - [CreateTaskRequest](docs/CreateTaskRequest.md) - [CreateVectorCollection201Response](docs/CreateVectorCollection201Response.md) @@ -365,6 +387,9 @@ Class | Method | HTTP request | Description - [DeleteTask200Response](docs/DeleteTask200Response.md) - [DeleteTask409Response](docs/DeleteTask409Response.md) - [DeleteVectorCollection200Response](docs/DeleteVectorCollection200Response.md) + - [DeleteVectorDocuments200Response](docs/DeleteVectorDocuments200Response.md) + - [DeleteVectorDocumentsRequest](docs/DeleteVectorDocumentsRequest.md) + - [DeleteVectorDocumentsRequestMetadata](docs/DeleteVectorDocumentsRequestMetadata.md) - [DownloadBackup200Response](docs/DownloadBackup200Response.md) - [Embeddings200Response](docs/Embeddings200Response.md) - [Embeddings200ResponseEmbeddings](docs/Embeddings200ResponseEmbeddings.md) @@ -420,6 +445,8 @@ Class | Method | HTTP request | Description - [KVItemsDelete200Response](docs/KVItemsDelete200Response.md) - [KVItemsShow200Response](docs/KVItemsShow200Response.md) - [KVItemsShow200ResponseValue](docs/KVItemsShow200ResponseValue.md) + - [KVLinkToProject200Response](docs/KVLinkToProject200Response.md) + - [KVLinkToProjectRequest](docs/KVLinkToProjectRequest.md) - [ListAIAgents200Response](docs/ListAIAgents200Response.md) - [ListAIAgents200ResponseAgentsInner](docs/ListAIAgents200ResponseAgentsInner.md) - [ListAIModels200Response](docs/ListAIModels200Response.md) @@ -440,6 +467,9 @@ Class | Method | HTTP request | Description - [ListCustomTools200ResponseToolsInner](docs/ListCustomTools200ResponseToolsInner.md) - [ListFiles200Response](docs/ListFiles200Response.md) - [ListFiles200ResponseFilesInner](docs/ListFiles200ResponseFilesInner.md) + - [ListOrchestrationBatches200Response](docs/ListOrchestrationBatches200Response.md) + - [ListOrchestrationBatches200ResponseBatchesInner](docs/ListOrchestrationBatches200ResponseBatchesInner.md) + - [ListOrchestrations200Response](docs/ListOrchestrations200Response.md) - [ListTasks200Response](docs/ListTasks200Response.md) - [ListTasks200ResponseTasksInner](docs/ListTasks200ResponseTasksInner.md) - [ListVectorCollections200Response](docs/ListVectorCollections200Response.md) @@ -463,6 +493,10 @@ Class | Method | HTTP request | Description - [SubmitToolCallbackRequestToolResultsInner](docs/SubmitToolCallbackRequestToolResultsInner.md) - [SyncOperation](docs/SyncOperation.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) @@ -535,6 +569,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/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..b46ff44 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 @@ -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..296af8f --- /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) (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) | [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) (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) | [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) (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) | [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/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/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/OrchestrationApi.md b/docs/OrchestrationApi.md index 5cb1978..6b9dd08 100644 --- a/docs/OrchestrationApi.md +++ b/docs/OrchestrationApi.md @@ -4,15 +4,18 @@ 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**](OrchestrationApi.md#get_ai_orchestration_status) | **GET** /api/v3/organizations/{organisation}/ai/tools/orchestrations/{orchestrationId} | Get Tool Orchestration Status (Async Tool Polling) # **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 @@ -76,7 +79,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 OrchestrationApi->get_ai_orchestration_status:\n") pprint(api_response) 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/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..743bd2d 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [tool.poetry] name = "quantcdn" -version = "4.9.0" +version = "4.11.0" description = "QuantCDN API" authors = ["OpenAPI Generator Community "] license = "NoLicense" diff --git a/quantcdn/__init__.py b/quantcdn/__init__.py index 2d28adf..99013d5 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.11.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -23,12 +23,14 @@ 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_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 @@ -46,6 +48,7 @@ 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,9 @@ 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_task201_response import CreateTask201Response from quantcdn.models.create_task_request import CreateTaskRequest from quantcdn.models.create_vector_collection201_response import CreateVectorCollection201Response @@ -151,6 +158,9 @@ 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 @@ -206,6 +216,8 @@ 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 +238,9 @@ 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_tasks200_response import ListTasks200Response from quantcdn.models.list_tasks200_response_tasks_inner import ListTasks200ResponseTasksInner from quantcdn.models.list_vector_collections200_response import ListVectorCollections200Response @@ -249,6 +264,10 @@ from quantcdn.models.submit_tool_callback_request_tool_results_inner import SubmitToolCallbackRequestToolResultsInner from quantcdn.models.sync_operation import SyncOperation 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 @@ -321,6 +340,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..9f08abc 100644 --- a/quantcdn/__version__.py +++ b/quantcdn/__version__.py @@ -1,2 +1,2 @@ """Version information for quantcdn SDK.""" -__version__ = "4.9.0" +__version__ = "4.11.0" diff --git a/quantcdn/api/__init__.py b/quantcdn/api/__init__.py index 5d10a47..e8da31e 100644 --- a/quantcdn/api/__init__.py +++ b/quantcdn/api/__init__.py @@ -7,12 +7,14 @@ 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_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 @@ -30,6 +32,7 @@ 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..596ece5 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.11.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..0d64bbf 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.11.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..eb8115e 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.11.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..d813602 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.11.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..ec6cbd6 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.11.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..f142cd1 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.11.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..bb5126d --- /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.11.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..c012666 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.11.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/quantcdn/api/ai_task_management_api.py b/quantcdn/api/ai_task_management_api.py index e689e48..c59aff6 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.11.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..c2a38fe 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.11.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..7336ab2 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.11.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -21,6 +21,8 @@ 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_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 @@ -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..4eb5843 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.11.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..27909e2 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.11.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..1f68b85 --- /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.11.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)")] = 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) + :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)")] = 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) + :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)")] = 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) + :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)")] = 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) + :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)")] = 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) + :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)")] = 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) + :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)")] = 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) + :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)")] = 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) + :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)")] = 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) + :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..2171d74 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.11.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..35db8d9 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.11.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..7bb4607 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.11.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..e58b552 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.11.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..85297db 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.11.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..f5a14fd 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.11.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..0d43fcd 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.11.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..c7561d9 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.11.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..b5b58c5 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.11.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..5496932 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.11.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 index 9e162a8..fee0266 100644 --- a/quantcdn/api/orchestration_api.py +++ b/quantcdn/api/orchestration_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.11.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -56,9 +56,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 @@ -130,9 +130,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 @@ -204,9 +204,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/organizations_api.py b/quantcdn/api/organizations_api.py index 7cc8511..76311fa 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.11.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..db3b445 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.11.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..854cb2a 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.11.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..4f4cd6a 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.11.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..8486335 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.11.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..0c5fe6e 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.11.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..3a78aba --- /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.11.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..52482b9 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.11.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..99a4f9b 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.11.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..aee9470 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.11.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..d04949c 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.11.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.11.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..aff0184 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.11.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..27a84fb 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.11.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,9 @@ 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_task201_response import CreateTask201Response from quantcdn.models.create_task_request import CreateTaskRequest from quantcdn.models.create_vector_collection201_response import CreateVectorCollection201Response @@ -104,6 +108,9 @@ 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 @@ -159,6 +166,8 @@ 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 +188,9 @@ 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_tasks200_response import ListTasks200Response from quantcdn.models.list_tasks200_response_tasks_inner import ListTasks200ResponseTasksInner from quantcdn.models.list_vector_collections200_response import ListVectorCollections200Response @@ -202,6 +214,10 @@ from quantcdn.models.submit_tool_callback_request_tool_results_inner import SubmitToolCallbackRequestToolResultsInner from quantcdn.models.sync_operation import SyncOperation 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 @@ -274,6 +290,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..0427d1b 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.11.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..501682a 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.11.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..0f974e7 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.11.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..d676e37 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.11.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..388e028 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.11.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..b35b084 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.11.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..12dd76f 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.11.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..c4a0aba 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.11.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..fce64dc 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.11.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..52c685b 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.11.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..d45d934 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.11.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..7d88612 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.11.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..73a9621 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.11.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..0ecd889 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.11.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..49818f7 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.11.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..68977bf 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.11.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..686d32a 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.11.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..c39dfaf --- /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.11.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..55c0afd 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.11.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..7e297c1 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.11.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..b32e5f1 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.11.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..4ece3de 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.11.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..bc15236 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.11.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..45da7ba 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.11.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..abfa440 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.11.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..fe3cb57 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.11.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..382d5db 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.11.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..b94a7bf 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.11.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..473c681 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.11.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..c1750e4 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.11.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..cde33e3 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.11.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..495c7e0 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.11.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..69f1f84 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.11.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..8af9896 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.11.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..2c6d32b 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.11.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..1769c26 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.11.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..15a0a17 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.11.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..1a2f2cd 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.11.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..b2631fc 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.11.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..60ad630 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.11.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..97fa013 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.11.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..eeda335 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.11.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..85d99ed 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.11.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..ae51570 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.11.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..f58252e 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.11.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..33454b8 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.11.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..b492d02 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.11.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..1a50a18 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.11.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..2b324ea 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.11.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..65a37c0 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.11.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..f78021c 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.11.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..2d21177 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.11.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..9292da5 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.11.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..a715647 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.11.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..dc1f318 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.11.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..bb3ad4a 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.11.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..c317931 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.11.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..a724a69 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.11.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..c62fba4 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.11.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..47e0be0 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.11.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..e17e17d 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.11.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..d76898c 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.11.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..3a8ed56 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.11.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..3a00ab0 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.11.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..0a1f919 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.11.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..6ab8eb8 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.11.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..1b7bb9e 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.11.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..9fbd08b 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.11.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..ca59122 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.11.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..0246d2e 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.11.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..41f4257 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.11.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..e635019 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.11.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..d030301 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.11.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..5413dad 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.11.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..9f9a3c5 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.11.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..7471180 --- /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.11.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..edf4b30 --- /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.11.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..924dfba --- /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.11.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_task201_response.py b/quantcdn/models/create_task201_response.py index 0a6e105..ac5a5df 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.11.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..38de652 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.11.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..c05da61 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.11.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..d51fbe1 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.11.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..b2ffacf 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.11.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..f858e8d 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.11.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..3e3a24c 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.11.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..3359253 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.11.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..41422f2 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.11.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..efc88a5 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.11.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..49940ad 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.11.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..094274e 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.11.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..74bd528 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.11.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/quantcdn/models/delete_task200_response.py b/quantcdn/models/delete_task200_response.py index 06ba1c8..1646b9e 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.11.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..3ad0951 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.11.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_vector_collection200_response.py index b4c544b..21e8306 100644 --- a/quantcdn/models/delete_vector_collection200_response.py +++ b/quantcdn/models/delete_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.11.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..32eb9ff --- /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.11.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..4b80df1 --- /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.11.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..5c33152 --- /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.11.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..98f544c 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.11.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..268d196 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.11.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..f2abfb1 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.11.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..35e06c5 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.11.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..d988834 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.11.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..349ed30 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.11.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..4ab3809 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.11.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..f9e0a2d 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.11.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..648959e 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.11.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..e259861 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.11.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..7dbb103 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.11.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..89fc6fc 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.11.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..0e1a2a3 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.11.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..b127c5b 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.11.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..60b91bb 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.11.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..2d6b520 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.11.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..2456ea5 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.11.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..cb49e93 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.11.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..6efdafe 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.11.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..f4ecf42 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.11.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..afb25b7 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.11.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..9f89eff 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.11.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..0f0b1a7 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.11.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..35b7c7d 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.11.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..1493f20 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.11.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..e73ff31 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.11.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..9ff4e0c 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.11.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..2e77820 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.11.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..ae1f6e9 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.11.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..673e42a 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.11.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..4fc4bd3 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.11.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..ec5e3f3 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.11.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..28e417d 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.11.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..1a5ce07 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.11.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..fe676bb 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.11.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..c83334b 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.11.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..77999c5 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.11.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.py b/quantcdn/models/get_ssh_access_credentials200_response.py index 5d01761..6fe1f1c 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.11.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..45f3a52 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.11.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..0022295 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.11.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..7b804af 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.11.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..ad98ea9 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.11.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..91a78b0 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.11.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..245ac4a 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.11.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..24803cd 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.11.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..8929df6 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.11.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..86eacda 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.11.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..30c8d3b 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.11.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..bcf2ff3 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.11.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..59a17b0 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.11.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..9c4d8d7 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.11.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/quantcdn/models/kv_items_create200_response.py b/quantcdn/models/kv_items_create200_response.py index 0e9ba83..35b457d 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.11.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..f9a99eb 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.11.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..76c50f7 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.11.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..cb68db2 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.11.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..d8e7a3d --- /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.11.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..8503962 --- /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.11.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..ff86284 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.11.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..88b540e 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.11.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..5a69459 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.11.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..0252c16 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.11.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..3a0fe2a 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.11.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..7395619 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.11.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..a50b44f 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.11.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..315fedf 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.11.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..99b998a 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.11.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..fec4e03 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.11.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..03eb326 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.11.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..0afdb98 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.11.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..d2db4a6 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.11.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..d572364 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.11.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..908ed39 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.11.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..dcab444 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.11.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..950aff6 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.11.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..6d129a9 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.11.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..53e290a 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.11.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..41b7d82 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.11.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..ec02055 --- /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.11.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..3b75885 --- /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.11.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..34afc12 --- /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.11.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_tasks200_response.py b/quantcdn/models/list_tasks200_response.py index adbd5bd..9b77e63 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.11.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..513dce1 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.11.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..41daea4 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.11.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..be5e5f5 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.11.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..1fb8cb4 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.11.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..5f20833 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.11.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..144027c 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.11.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..0168361 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.11.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..365e9ea 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.11.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..cf77de6 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.11.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..4a895ca 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.11.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..f568108 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.11.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..548e6b6 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.11.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..aa44d6a 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.11.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..929f891 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.11.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..2adb8ee 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.11.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..0eb5a28 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.11.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..690c714 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.11.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..33ed19c 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.11.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..30b7e3e 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.11.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..6511ae8 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.11.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..84d8866 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.11.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/quantcdn/models/sync_to_environment_request.py b/quantcdn/models/sync_to_environment_request.py index 053b539..1408f41 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.11.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..6dd4628 --- /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.11.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..272fdf6 --- /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.11.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..f43cdf5 --- /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.11.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..611b4a6 --- /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.11.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..c634824 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.11.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..2093dfa 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.11.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..c0ebd35 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.11.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..8935036 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.11.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..3e6c8dd 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.11.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..4df2d0b 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.11.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..0f8e5fc 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.11.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..a49bdb0 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.11.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..a1e145f 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.11.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/quantcdn/models/update_task200_response.py b/quantcdn/models/update_task200_response.py index 218f84a..02de62b 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.11.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..cecff3a 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.11.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..6f427da 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.11.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..ec675a5 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.11.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..dad5764 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.11.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..27292de 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.11.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..1907c49 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.11.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..4d0d261 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.11.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..1e499f7 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.11.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..f477c9b 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.11.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..33c6952 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.11.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..99ef783 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.11.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..c935af2 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.11.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..d95403d 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.11.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..9ecd05a 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.11.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..41a00e3 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.11.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..0f64d99 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.11.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..ed1401f 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.11.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..5166f61 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.11.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..b9fcdf5 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.11.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..595d4e1 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.11.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..c2462ef 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.11.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..0bbd522 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.11.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..43df446 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.11.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..1719cc6 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.11.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..0970935 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.11.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..9573c9a 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.11.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..29817af 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.11.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..72850e3 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.11.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..5932c12 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.11.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..11d7874 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.11.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..c2c5360 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.11.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..1ae5f98 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.11.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..62fa114 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.11.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..f20233c 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.11.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..187b2ea 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.11.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..3e83f00 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.11.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..2f82df5 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.11.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..78abc37 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.11.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..6757bbe 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.11.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..42ee0c5 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.11.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..5d44dab 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.11.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..cc5f5f0 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.11.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..262e998 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.11.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..224e77b 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.11.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..69a95fb 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.11.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..9be13cd 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.11.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..be3dc7d 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.11.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..dee78ea 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.11.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..81884fe 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.11.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..dc2e71f 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.11.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..dcfa322 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.11.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..964dbc2 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.11.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..a74bbf5 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.11.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..2c92c8d 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.11.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..62fb628 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.11.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..73ddafc 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.11.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..1be1435 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.11.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..1849079 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.11.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..593ca3d 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.11.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..5e365ef 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.11.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..96d3a92 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.11.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..58500cb 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.11.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..82f4f4c --- /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.11.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..1dd9749 --- /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.11.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..75483c9 --- /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.11.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..9549ea1 --- /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.11.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..ad61d3b --- /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.11.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..7c01a2b 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.11.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..596f3f8 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.11.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..ee70403 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.11.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..6d846e2 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.11.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..75369c0 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.11.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..270421a 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.11.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..719d08c 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.11.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..8c1e4bb 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.11.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..8195bc1 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.11.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..2fd7764 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.11.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..423c960 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.11.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..05e8029 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.11.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..82ef8de 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.11.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..6b3d142 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.11.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..983710f 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.11.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..1a67f30 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.11.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..0ae70a0 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.11.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..e6a23ec 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.11.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..46f1775 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.11.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..5d74506 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.11.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..fc795a0 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.11.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..99ab01f 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.11.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..b19fc61 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.11.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..83821c9 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.11.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..42a1063 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.11.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..69683eb 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.11.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..acf5000 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.11.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..fe4afae 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.11.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..88e09e7 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.11.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..81aed08 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.11.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..b2d4df5 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.11.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..742d092 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.11.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..ad3f7d2 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.11.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..92ed056 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.11.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..6b3c498 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.11.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..de70e9a 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.11.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..8798be1 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.11.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..6245a5e 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.11.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..6eb3553 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.11.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..16a9f4b 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.11.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..fe829b7 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.11.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..d7de7a1 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.11.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..4478b3b 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.11.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..b86243a 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.11.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..769f589 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.11.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..1f9add9 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.11.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..c177162 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.11.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..a26d237 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.11.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..212875e 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.11.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..393e613 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.11.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..0a36510 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.11.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..b80d657 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.11.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..a88f024 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.11.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..2aa79ed 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.11.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.11.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..86ea1a8 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.11.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..6e0193c 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.11.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..ed6a225 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.11.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..c447a72 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.11.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..06973a9 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.11.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..54ff853 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.11.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..a909525 --- /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.11.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..97bf4b5 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.11.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_ai_task_management_api.py b/test/test_ai_task_management_api.py index 0402fb1..866118d 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.11.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..f435569 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.11.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..7d70761 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.11.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..1984703 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.11.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..67f66e1 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.11.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..194a8ab 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.11.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..ee38809 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.11.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..fc6f900 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.11.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..c13e5cf 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.11.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..0e96eeb 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.11.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..2284348 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.11.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..05fff82 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.11.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..887be18 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.11.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..7e45eab --- /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.11.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..b4681c6 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.11.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..7a5c9d4 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.11.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..f404f13 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.11.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..a58be5f 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.11.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..7da8aca 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.11.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..7381753 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.11.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..d5c87bb 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.11.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..139f11e 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.11.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..b110d28 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.11.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..5087e84 --- /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.11.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..4dcc4bf 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.11.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..ffb94e1 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.11.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..9d247ba 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.11.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..50d21ae 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.11.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..188e9a1 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.11.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..0296e27 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.11.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..c32ce56 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.11.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..4a76681 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.11.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..a207e33 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.11.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..5538d7b 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.11.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..e91fc45 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.11.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..12e6487 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.11.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..ac780a0 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.11.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..b978256 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.11.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..fec5f22 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.11.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..8b67693 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.11.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..7260cce 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.11.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..aad794f 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.11.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..d0e9ad4 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.11.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..01b490f 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.11.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..15fb169 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.11.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..aa4d183 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.11.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..0d27a79 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.11.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..0fcce4f 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.11.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..d10fe8c 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.11.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..443bc88 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.11.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..9e2676c 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.11.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..adebdbf 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.11.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..be2498b 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.11.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..cba8c72 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.11.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..8c54a36 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.11.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..986680a 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.11.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..5033047 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.11.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..bab46f5 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.11.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..10c9b25 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.11.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..70cbc4b 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.11.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..1c3d4ec 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.11.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..ed9bea5 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.11.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..861f1c5 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.11.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..89efc47 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.11.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..515b57f 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.11.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..c1e6360 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.11.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..95c6490 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.11.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..c707e43 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.11.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..a077261 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.11.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..51248e8 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.11.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..6a5c624 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.11.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..b1db40f 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.11.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..d8ec10f 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.11.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..a41066a 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.11.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..4998c3c 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.11.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..5995bf4 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.11.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..f5074e4 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.11.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..c610db3 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.11.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..c9e285b 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.11.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..d8ef14b 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.11.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..066c817 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.11.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..a0a532a 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.11.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..afc0d42 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.11.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..c7f0f1b 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.11.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..4d643f4 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.11.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..ae6b057 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.11.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..653b8a1 --- /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.11.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..2f33bbc --- /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.11.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..b33ff4c --- /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.11.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_task201_response.py b/test/test_create_task201_response.py index 41cf7b3..d80948d 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.11.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..80530c8 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.11.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..464ae49 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.11.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..0a486fa 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.11.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..f9fccce 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.11.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..5af8a2f 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.11.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..a7ac4c0 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.11.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..6fde6b2 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.11.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..2222794 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.11.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..bf44622 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.11.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..db3c1be 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.11.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..63e2772 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.11.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..02bb8fe 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.11.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..b7ab6cf 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.11.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_delete_task200_response.py b/test/test_delete_task200_response.py index 2603759..33c9752 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.11.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..3f2bb9b 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.11.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_delete_vector_collection200_response.py b/test/test_delete_vector_collection200_response.py index 65fc64c..ae17e93 100644 --- a/test/test_delete_vector_collection200_response.py +++ b/test/test_delete_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.11.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..1a8c97a --- /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.11.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..f4ced3b --- /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.11.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..79db207 --- /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.11.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..a539eb9 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.11.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..cfbae49 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.11.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..cebb071 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.11.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..4da21d4 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.11.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..6504fde 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.11.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..f00ae78 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.11.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..22b4fdc 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.11.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..c7c2206 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.11.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..f040cf2 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.11.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..1b8b121 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.11.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..ae78d88 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.11.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..6402d3c 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.11.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..d96f61a 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.11.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..63220f9 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.11.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..9b491e6 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.11.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..5d0533b 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.11.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..cda6fe4 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.11.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..4446d38 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.11.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..5700688 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.11.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..4a9525e 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.11.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..86a3736 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.11.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..122e93b 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.11.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..ea14fda 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.11.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..0805c12 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.11.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..18fc070 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.11.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..898dc27 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.11.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..b1887de 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.11.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..815e929 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.11.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..3bd5e54 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.11.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..dd09921 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.11.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..155bf84 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.11.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..e1f1c59 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.11.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..b0e2823 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.11.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..b9d5b9b 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.11.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..cd5499e 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.11.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..8df0916 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.11.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..1e3f0b1 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.11.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..c1ffa37 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.11.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..99f0673 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.11.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.py b/test/test_get_ssh_access_credentials200_response.py index 2fa7358..e8fc5ce 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.11.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..9785a27 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.11.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..30b585c 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.11.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..2a732cc 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.11.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..b83b5a1 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.11.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..2103190 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.11.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..f50980c 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.11.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..110fa76 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.11.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..0b13d0f 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.11.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..964439c 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.11.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..9ea897a 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.11.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..e08e1b1 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.11.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..a67eb3a 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.11.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..d7504cc 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.11.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..7c81fed 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.11.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_kv_api.py b/test/test_kv_api.py index fecfcf8..2818015 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.11.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..4d74f59 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.11.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..bfa34a8 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.11.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..a92f1db 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.11.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..1f422f6 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.11.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..89341e9 --- /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.11.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..1a99b53 --- /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.11.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..56e5bd8 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.11.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..00feb4d 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.11.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..309acc2 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.11.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..005cc9a 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.11.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..320dd1c 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.11.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..b95a25a 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.11.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..02dac48 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.11.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..39ca47f 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.11.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..0919ade 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.11.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..a42eba9 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.11.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..e8edf0b 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.11.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..bb76b40 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.11.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..f3155f5 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.11.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..1fb075e 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.11.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..eda6e20 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.11.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..a83999b 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.11.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..8a09b21 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.11.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..dbc1157 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.11.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..bc6d06a 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.11.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..68a9cb3 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.11.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..fdb06e4 --- /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.11.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..c63b336 --- /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.11.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..d827012 --- /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.11.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_tasks200_response.py b/test/test_list_tasks200_response.py index f5ae3e2..aafc391 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.11.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..6c0c0cc 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.11.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..0960e86 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.11.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..8d04f78 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.11.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 index 9f2c5ba..b40028e 100644 --- a/test/test_orchestration_api.py +++ b/test/test_orchestration_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.11.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_organizations_api.py b/test/test_organizations_api.py index 5375d38..9c6448f 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.11.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..a022287 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.11.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..22433f8 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.11.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..e38494e 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.11.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..81c4578 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.11.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..a268979 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.11.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..b4edfad 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.11.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..dd2225b 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.11.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..ec868f7 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.11.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..5cc0d7d 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.11.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..268fcba 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.11.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..078ba73 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.11.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..6582222 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.11.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..01b41b0 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.11.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..091b7cd 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.11.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..9740ef1 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.11.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..68b4dde 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.11.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..3f9b08c 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.11.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..1e479d7 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.11.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..35648da 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.11.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..a1ed9db 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.11.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..2841add 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.11.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..07479d3 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.11.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..6cbb3bd 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.11.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_sync_to_environment_request.py b/test/test_sync_to_environment_request.py index 7fc1bb0..446828e 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.11.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..6b300ef --- /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.11.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..7694cf9 --- /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.11.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..3ddfcda --- /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.11.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..6886232 --- /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.11.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..789a6a7 --- /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.11.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..9266fde 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.11.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..ec8d9e7 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.11.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..8d6d304 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.11.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..c77d186 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.11.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..5725ee1 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.11.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..920297e 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.11.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..4855598 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.11.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..1fda537 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.11.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..320d824 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.11.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_update_task200_response.py b/test/test_update_task200_response.py index 3230acc..094a2e3 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.11.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..2092fce 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.11.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..4130cc7 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.11.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..197d7d4 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.11.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..756df6d 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.11.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..64b81db 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.11.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..50d1474 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.11.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..acfdda2 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.11.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..fd6c795 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.11.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..283268f 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.11.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..57d7ec0 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.11.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..19ac77a 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.11.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..fb49d8b 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.11.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..a201404 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.11.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..4ba5e6f 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.11.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..4ce8cec 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.11.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..af24d69 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.11.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..078e707 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.11.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..f4e65b4 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.11.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..0447db8 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.11.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..f4e0205 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.11.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..f864a40 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.11.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..77a4a6a 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.11.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..7e52a32 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.11.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..e74c2bb 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.11.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..bf6c1ab 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.11.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..a4796a6 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.11.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..8a3d02b 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.11.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..90c2395 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.11.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..7903f4b 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.11.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..699265d 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.11.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..380167d 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.11.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..488d30a 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.11.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..a766b37 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.11.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..2638628 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.11.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..44a9897 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.11.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..76d82d9 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.11.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..b3d7806 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.11.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..2837d6a 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.11.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..7e98d64 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.11.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..31f07e1 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.11.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..1f76899 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.11.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..b9d23d2 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.11.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..609d97c 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.11.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..0f3e9dd 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.11.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..3e8e6cb 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.11.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..7657956 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.11.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..f571f40 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.11.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..517a5b6 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.11.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..4b39394 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.11.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..c746535 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.11.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..851803f 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.11.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..a967b15 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.11.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..70116dd 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.11.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..9f4ad2e 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.11.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..f77f899 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.11.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..8461f24 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.11.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..0d4e349 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.11.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..6175b22 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.11.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..bd98247 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.11.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..174315b 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.11.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..25de516 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.11.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..3a89238 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.11.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..c607635 --- /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.11.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..220e2ab --- /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.11.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..459aad0 --- /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.11.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..7433281 --- /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.11.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..3b04eb6 --- /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.11.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..2d3c429 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.11.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..2ca40c7 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.11.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..218cd14 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.11.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..1b4a2d1 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.11.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..9f4a257 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.11.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..4946ed7 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.11.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..efcdd8f 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.11.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..fb374c9 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.11.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..df968f7 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.11.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..51275fa 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.11.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..5a0f369 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.11.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..30e3578 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.11.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..25d9239 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.11.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..74ac8e5 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.11.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..42835a7 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.11.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..d42792f 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.11.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..9702243 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.11.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..3993dda 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.11.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..f751c7f 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.11.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..cccdfa8 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.11.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..5aa449a 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.11.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..a7623f5 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.11.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..ac952a2 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.11.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..c475380 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.11.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..812af0b 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.11.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..deaac8f 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.11.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..d86671d 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.11.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..2071d18 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.11.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..7ac79c4 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.11.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..e43847b 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.11.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..7c8aa96 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.11.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..f435fcf 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.11.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..9a3a43a 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.11.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..5f484bb 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.11.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..d92cfcf 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.11.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..068c266 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.11.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..701371a 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.11.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..31bf363 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.11.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..d85be0e 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.11.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..631c3db 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.11.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..e857b5e 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.11.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..399c713 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.11.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..2a7792f 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.11.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..db4da85 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.11.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..5f13421 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.11.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..f074863 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.11.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..d45f240 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.11.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..32686f2 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.11.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..2e5ecfe 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.11.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..7f466e3 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.11.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..13c5bd5 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.11.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..a7e60c6 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.11.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..3592598 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.11.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..72a2e00 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.11.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually.