From 5ebf3d55a90231d8d130c40cf94ffdc71ea4c956 Mon Sep 17 00:00:00 2001 From: platform CI Date: Tue, 8 Jul 2025 15:47:43 +0000 Subject: [PATCH] Update clients to latest platform release (4.0.17) --- README.md | 13 +- docs/CreateCServeV3DeploymentRequest.md | 41 + docs/CreateCServeV3DeploymentResponse.md | 31 + docs/CreateInferenceV3DeploymentRequest.md | 42 + docs/DeploymentType.md | 4 + docs/EXTERNALApi.md | 476 ++ docs/GetCServeV2DeploymentResponse.md | 1 + docs/GetCServeV3DeploymentResponse.md | 47 + docs/GetComputeDeploymentResponse.md | 1 + docs/GetDeploymentResponse.md | 1 + docs/GetInferenceDeploymentResponse.md | 1 + docs/GetInferenceV3DeploymentResponse.md | 49 + docs/GetRagDeploymentResponse.md | 1 + platform_api_python_client/__init__.py | 7 +- .../api/external_api.py | 4189 ++++++++++++----- platform_api_python_client/api_client.py | 2 +- platform_api_python_client/configuration.py | 2 +- platform_api_python_client/models/__init__.py | 5 + .../create_c_serve_v3_deployment_request.py | 153 + .../create_c_serve_v3_deployment_response.py | 92 + .../create_inference_v3_deployment_request.py | 156 + .../models/deployment_type.py | 2 + .../get_c_serve_v2_deployment_response.py | 4 +- .../get_c_serve_v3_deployment_response.py | 160 + .../models/get_compute_deployment_response.py | 4 +- .../models/get_deployment_response.py | 4 +- .../get_inference_deployment_response.py | 4 +- .../get_inference_v3_deployment_response.py | 175 + .../models/get_rag_deployment_response.py | 4 +- pyproject.toml | 2 +- setup.py | 2 +- ...st_create_c_serve_v3_deployment_request.py | 71 + ...t_create_c_serve_v3_deployment_response.py | 56 + ..._create_inference_v3_deployment_request.py | 73 + test/test_external_api.py | 42 + ...test_get_c_serve_v2_deployment_response.py | 2 + ...test_get_c_serve_v3_deployment_response.py | 83 + test/test_get_compute_deployment_response.py | 2 + test/test_get_deployment_response.py | 2 + .../test_get_inference_deployment_response.py | 2 + ...st_get_inference_v3_deployment_response.py | 89 + test/test_get_rag_deployment_response.py | 2 + test/test_list_get_deployment_response.py | 2 + 43 files changed, 4824 insertions(+), 1277 deletions(-) create mode 100644 docs/CreateCServeV3DeploymentRequest.md create mode 100644 docs/CreateCServeV3DeploymentResponse.md create mode 100644 docs/CreateInferenceV3DeploymentRequest.md create mode 100644 docs/GetCServeV3DeploymentResponse.md create mode 100644 docs/GetInferenceV3DeploymentResponse.md create mode 100644 platform_api_python_client/models/create_c_serve_v3_deployment_request.py create mode 100644 platform_api_python_client/models/create_c_serve_v3_deployment_response.py create mode 100644 platform_api_python_client/models/create_inference_v3_deployment_request.py create mode 100644 platform_api_python_client/models/get_c_serve_v3_deployment_response.py create mode 100644 platform_api_python_client/models/get_inference_v3_deployment_response.py create mode 100644 test/test_create_c_serve_v3_deployment_request.py create mode 100644 test/test_create_c_serve_v3_deployment_response.py create mode 100644 test/test_create_inference_v3_deployment_request.py create mode 100644 test/test_get_c_serve_v3_deployment_response.py create mode 100644 test/test_get_inference_v3_deployment_response.py diff --git a/README.md b/README.md index 07983fe..7afc2d6 100644 --- a/README.md +++ b/README.md @@ -4,7 +4,7 @@ No description provided (generated by Openapi Generator https://github.com/opena This Python package is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project: - API version: 0.1.0 -- Package version: 4.0.15 +- Package version: 4.0.17 - Generator version: 7.9.0 - Build package: org.openapitools.codegen.languages.PythonClientCodegen @@ -98,7 +98,9 @@ Class | Method | HTTP request | Description *EXTERNALApi* | [**create_checkout_payments_checkout_post**](docs/EXTERNALApi.md#create_checkout_payments_checkout_post) | **POST** /payments/checkout | Create Checkout *EXTERNALApi* | [**create_compute_deployment_deployments_compute_post**](docs/EXTERNALApi.md#create_compute_deployment_deployments_compute_post) | **POST** /deployments/compute | Create Compute Deployment *EXTERNALApi* | [**create_cserve_v2_deployment_deployments_cserve_v2_post**](docs/EXTERNALApi.md#create_cserve_v2_deployment_deployments_cserve_v2_post) | **POST** /deployments/cserve_v2 | Create Cserve V2 Deployment +*EXTERNALApi* | [**create_cserve_v3_deployment_deployments_cserve_v3_post**](docs/EXTERNALApi.md#create_cserve_v3_deployment_deployments_cserve_v3_post) | **POST** /deployments/cserve_v3 | Create Cserve V3 Deployment *EXTERNALApi* | [**create_inference_deployment_deployments_inference_post**](docs/EXTERNALApi.md#create_inference_deployment_deployments_inference_post) | **POST** /deployments/inference | Create Inference Deployment +*EXTERNALApi* | [**create_inference_v3_deployment_deployments_inference_v3_post**](docs/EXTERNALApi.md#create_inference_v3_deployment_deployments_inference_v3_post) | **POST** /deployments/inference_v3 | Create Inference V3 Deployment *EXTERNALApi* | [**create_new_organization_organizations_post**](docs/EXTERNALApi.md#create_new_organization_organizations_post) | **POST** /organizations | Create New Organization *EXTERNALApi* | [**create_rag_deployment_deployments_rag_post**](docs/EXTERNALApi.md#create_rag_deployment_deployments_rag_post) | **POST** /deployments/rag | Create Rag Deployment *EXTERNALApi* | [**create_setup_payments_setup_checkout_post**](docs/EXTERNALApi.md#create_setup_payments_setup_checkout_post) | **POST** /payments/setup_checkout | Create Setup @@ -116,11 +118,13 @@ Class | Method | HTTP request | Description *EXTERNALApi* | [**get_credits_credits_get**](docs/EXTERNALApi.md#get_credits_credits_get) | **GET** /credits | Get Credits *EXTERNALApi* | [**get_cserve_recipe_deployments_cserve_recipes_get**](docs/EXTERNALApi.md#get_cserve_recipe_deployments_cserve_recipes_get) | **GET** /deployments/cserve/recipes | Get Cserve Recipe *EXTERNALApi* | [**get_cserve_v2_deployment_deployments_cserve_v2_deployment_id_get**](docs/EXTERNALApi.md#get_cserve_v2_deployment_deployments_cserve_v2_deployment_id_get) | **GET** /deployments/cserve_v2/{deployment_id} | Get Cserve V2 Deployment +*EXTERNALApi* | [**get_cserve_v3_deployment_deployments_cserve_v3_deployment_id_get**](docs/EXTERNALApi.md#get_cserve_v3_deployment_deployments_cserve_v3_deployment_id_get) | **GET** /deployments/cserve_v3/{deployment_id} | Get Cserve V3 Deployment *EXTERNALApi* | [**get_deployment_logs_deployments_logs_deployment_id_get**](docs/EXTERNALApi.md#get_deployment_logs_deployments_logs_deployment_id_get) | **GET** /deployments/logs/{deployment_id} | Get Deployment Logs *EXTERNALApi* | [**get_deployment_status_deployments_status_deployment_id_get**](docs/EXTERNALApi.md#get_deployment_status_deployments_status_deployment_id_get) | **GET** /deployments/status/{deployment_id} | Get Deployment Status *EXTERNALApi* | [**get_deployments_deployments_get**](docs/EXTERNALApi.md#get_deployments_deployments_get) | **GET** /deployments | Get Deployments *EXTERNALApi* | [**get_hardware_instances_hardware_instances_get**](docs/EXTERNALApi.md#get_hardware_instances_hardware_instances_get) | **GET** /hardware-instances | Get Hardware Instances *EXTERNALApi* | [**get_inference_deployment_deployments_inference_deployment_id_get**](docs/EXTERNALApi.md#get_inference_deployment_deployments_inference_deployment_id_get) | **GET** /deployments/inference/{deployment_id} | Get Inference Deployment +*EXTERNALApi* | [**get_inference_v3_deployment_deployments_inference_v3_deployment_id_get**](docs/EXTERNALApi.md#get_inference_v3_deployment_deployments_inference_v3_deployment_id_get) | **GET** /deployments/inference_v3/{deployment_id} | Get Inference V3 Deployment *EXTERNALApi* | [**get_payment_method_payments_methods_get**](docs/EXTERNALApi.md#get_payment_method_payments_methods_get) | **GET** /payments/methods | Get Payment Method *EXTERNALApi* | [**get_payments_payments_get**](docs/EXTERNALApi.md#get_payments_payments_get) | **GET** /payments | Get Payments *EXTERNALApi* | [**get_prebuilt_images_prebuilt_images_get**](docs/EXTERNALApi.md#get_prebuilt_images_prebuilt_images_get) | **GET** /prebuilt-images | Get Prebuilt Images @@ -131,8 +135,10 @@ Class | Method | HTTP request | Description *EXTERNALApi* | [**update_autocharge_preferences_autocharge_preferences_put**](docs/EXTERNALApi.md#update_autocharge_preferences_autocharge_preferences_put) | **PUT** /autocharge/preferences | Update Autocharge Preferences *EXTERNALApi* | [**update_compute_deployment_deployments_compute_put**](docs/EXTERNALApi.md#update_compute_deployment_deployments_compute_put) | **PUT** /deployments/compute | Update Compute Deployment *EXTERNALApi* | [**update_cserve_v2_deployment_deployments_cserve_v2_put**](docs/EXTERNALApi.md#update_cserve_v2_deployment_deployments_cserve_v2_put) | **PUT** /deployments/cserve_v2 | Update Cserve V2 Deployment +*EXTERNALApi* | [**update_cserve_v3_deployment_deployments_cserve_v3_put**](docs/EXTERNALApi.md#update_cserve_v3_deployment_deployments_cserve_v3_put) | **PUT** /deployments/cserve_v3 | Update Cserve V3 Deployment *EXTERNALApi* | [**update_deployment_status_deployments_status_deployment_id_put**](docs/EXTERNALApi.md#update_deployment_status_deployments_status_deployment_id_put) | **PUT** /deployments/status/{deployment_id} | Update Deployment Status *EXTERNALApi* | [**update_inference_deployment_deployments_inference_put**](docs/EXTERNALApi.md#update_inference_deployment_deployments_inference_put) | **PUT** /deployments/inference | Update Inference Deployment +*EXTERNALApi* | [**update_inference_v3_deployment_deployments_inference_v3_put**](docs/EXTERNALApi.md#update_inference_v3_deployment_deployments_inference_v3_put) | **PUT** /deployments/inference_v3 | Update Inference V3 Deployment *EXTERNALApi* | [**update_rag_deployment_deployments_rag_put**](docs/EXTERNALApi.md#update_rag_deployment_deployments_rag_put) | **PUT** /deployments/rag | Update Rag Deployment *EXTERNALApi* | [**update_user_vault_item_endpoint_user_vault_put**](docs/EXTERNALApi.md#update_user_vault_item_endpoint_user_vault_put) | **PUT** /user_vault | Update User Vault Item Endpoint *EXTERNALApi* | [**upload_url_file_url_upload_post**](docs/EXTERNALApi.md#upload_url_file_url_upload_post) | **POST** /file_url/upload | Upload Url @@ -147,12 +153,15 @@ Class | Method | HTTP request | Description - [CServeV2Recipe](docs/CServeV2Recipe.md) - [CreateCServeV2DeploymentRequest](docs/CreateCServeV2DeploymentRequest.md) - [CreateCServeV2DeploymentResponse](docs/CreateCServeV2DeploymentResponse.md) + - [CreateCServeV3DeploymentRequest](docs/CreateCServeV3DeploymentRequest.md) + - [CreateCServeV3DeploymentResponse](docs/CreateCServeV3DeploymentResponse.md) - [CreateCheckoutRequest](docs/CreateCheckoutRequest.md) - [CreateCheckoutSessionResponse](docs/CreateCheckoutSessionResponse.md) - [CreateComputeDeploymentRequest](docs/CreateComputeDeploymentRequest.md) - [CreateComputeDeploymentResponse](docs/CreateComputeDeploymentResponse.md) - [CreateInferenceDeploymentRequest](docs/CreateInferenceDeploymentRequest.md) - [CreateInferenceDeploymentResponse](docs/CreateInferenceDeploymentResponse.md) + - [CreateInferenceV3DeploymentRequest](docs/CreateInferenceV3DeploymentRequest.md) - [CreateOrganizationRequest](docs/CreateOrganizationRequest.md) - [CreateOrganizationResponse](docs/CreateOrganizationResponse.md) - [CreateRagDeploymentRequest](docs/CreateRagDeploymentRequest.md) @@ -170,12 +179,14 @@ Class | Method | HTTP request | Description - [DeploymentUsageValue](docs/DeploymentUsageValue.md) - [GetAutochargePreferencesResponse](docs/GetAutochargePreferencesResponse.md) - [GetCServeV2DeploymentResponse](docs/GetCServeV2DeploymentResponse.md) + - [GetCServeV3DeploymentResponse](docs/GetCServeV3DeploymentResponse.md) - [GetClusterResponse](docs/GetClusterResponse.md) - [GetComputeDeploymentResponse](docs/GetComputeDeploymentResponse.md) - [GetDeploymentLogResponse](docs/GetDeploymentLogResponse.md) - [GetDeploymentResponse](docs/GetDeploymentResponse.md) - [GetDeploymentUsageResponse](docs/GetDeploymentUsageResponse.md) - [GetInferenceDeploymentResponse](docs/GetInferenceDeploymentResponse.md) + - [GetInferenceV3DeploymentResponse](docs/GetInferenceV3DeploymentResponse.md) - [GetPaymentResponse](docs/GetPaymentResponse.md) - [GetRagDeploymentResponse](docs/GetRagDeploymentResponse.md) - [HTTPValidationError](docs/HTTPValidationError.md) diff --git a/docs/CreateCServeV3DeploymentRequest.md b/docs/CreateCServeV3DeploymentRequest.md new file mode 100644 index 0000000..5bb4711 --- /dev/null +++ b/docs/CreateCServeV3DeploymentRequest.md @@ -0,0 +1,41 @@ +# CreateCServeV3DeploymentRequest + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**name** | **str** | | +**cluster_id** | **int** | | +**hardware_instance_id** | **int** | | +**recipe** | [**CServeV2Recipe**](CServeV2Recipe.md) | | +**cserve_version** | **str** | | [optional] +**hf_token** | **str** | | [optional] +**endpoint_bearer_token** | **str** | | [optional] +**endpoint_certificate_authority** | **str** | | [optional] +**min_replicas** | **int** | | +**max_replicas** | **int** | | +**initial_replicas** | **int** | | [optional] +**concurrency** | **int** | | [optional] +**env_vars** | **Dict[str, str]** | | [optional] + +## Example + +```python +from platform_api_python_client.models.create_c_serve_v3_deployment_request import CreateCServeV3DeploymentRequest + +# TODO update the JSON string below +json = "{}" +# create an instance of CreateCServeV3DeploymentRequest from a JSON string +create_c_serve_v3_deployment_request_instance = CreateCServeV3DeploymentRequest.from_json(json) +# print the JSON string representation of the object +print(CreateCServeV3DeploymentRequest.to_json()) + +# convert the object into a dict +create_c_serve_v3_deployment_request_dict = create_c_serve_v3_deployment_request_instance.to_dict() +# create an instance of CreateCServeV3DeploymentRequest from a dict +create_c_serve_v3_deployment_request_from_dict = CreateCServeV3DeploymentRequest.from_dict(create_c_serve_v3_deployment_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/CreateCServeV3DeploymentResponse.md b/docs/CreateCServeV3DeploymentResponse.md new file mode 100644 index 0000000..57b7947 --- /dev/null +++ b/docs/CreateCServeV3DeploymentResponse.md @@ -0,0 +1,31 @@ +# CreateCServeV3DeploymentResponse + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**id** | **int** | | +**created_at** | **datetime** | | +**endpoint_url** | **str** | | + +## Example + +```python +from platform_api_python_client.models.create_c_serve_v3_deployment_response import CreateCServeV3DeploymentResponse + +# TODO update the JSON string below +json = "{}" +# create an instance of CreateCServeV3DeploymentResponse from a JSON string +create_c_serve_v3_deployment_response_instance = CreateCServeV3DeploymentResponse.from_json(json) +# print the JSON string representation of the object +print(CreateCServeV3DeploymentResponse.to_json()) + +# convert the object into a dict +create_c_serve_v3_deployment_response_dict = create_c_serve_v3_deployment_response_instance.to_dict() +# create an instance of CreateCServeV3DeploymentResponse from a dict +create_c_serve_v3_deployment_response_from_dict = CreateCServeV3DeploymentResponse.from_dict(create_c_serve_v3_deployment_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/CreateInferenceV3DeploymentRequest.md b/docs/CreateInferenceV3DeploymentRequest.md new file mode 100644 index 0000000..ef32dd6 --- /dev/null +++ b/docs/CreateInferenceV3DeploymentRequest.md @@ -0,0 +1,42 @@ +# CreateInferenceV3DeploymentRequest + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**name** | **str** | | +**cluster_id** | **int** | | +**hardware_instance_id** | **int** | | +**image_url** | **str** | | +**port** | **int** | | +**min_replicas** | **int** | | +**max_replicas** | **int** | | +**initial_replicas** | **int** | | [optional] +**concurrency** | **int** | | [optional] +**healthcheck** | **str** | | [optional] +**env_vars** | **Dict[str, str]** | | [optional] +**command** | **str** | | [optional] +**endpoint_bearer_token** | **str** | | [optional] +**endpoint_certificate_authority** | **str** | | [optional] + +## Example + +```python +from platform_api_python_client.models.create_inference_v3_deployment_request import CreateInferenceV3DeploymentRequest + +# TODO update the JSON string below +json = "{}" +# create an instance of CreateInferenceV3DeploymentRequest from a JSON string +create_inference_v3_deployment_request_instance = CreateInferenceV3DeploymentRequest.from_json(json) +# print the JSON string representation of the object +print(CreateInferenceV3DeploymentRequest.to_json()) + +# convert the object into a dict +create_inference_v3_deployment_request_dict = create_inference_v3_deployment_request_instance.to_dict() +# create an instance of CreateInferenceV3DeploymentRequest from a dict +create_inference_v3_deployment_request_from_dict = CreateInferenceV3DeploymentRequest.from_dict(create_inference_v3_deployment_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/DeploymentType.md b/docs/DeploymentType.md index b988793..fbbf195 100644 --- a/docs/DeploymentType.md +++ b/docs/DeploymentType.md @@ -13,12 +13,16 @@ * `INFERENCE_V2` (value: `'inference_v2'`) +* `INFERENCE_V3` (value: `'inference_v3'`) + * `COMPUTE_V2` (value: `'compute_v2'`) * `CSERVE` (value: `'cserve'`) * `CSERVE_V2` (value: `'cserve_v2'`) +* `CSERVE_V3` (value: `'cserve_v3'`) + * `DEPLOYMENT` (value: `'deployment'`) * `RAG` (value: `'rag'`) diff --git a/docs/EXTERNALApi.md b/docs/EXTERNALApi.md index 64de947..c2c7ce3 100644 --- a/docs/EXTERNALApi.md +++ b/docs/EXTERNALApi.md @@ -8,7 +8,9 @@ Method | HTTP request | Description [**create_checkout_payments_checkout_post**](EXTERNALApi.md#create_checkout_payments_checkout_post) | **POST** /payments/checkout | Create Checkout [**create_compute_deployment_deployments_compute_post**](EXTERNALApi.md#create_compute_deployment_deployments_compute_post) | **POST** /deployments/compute | Create Compute Deployment [**create_cserve_v2_deployment_deployments_cserve_v2_post**](EXTERNALApi.md#create_cserve_v2_deployment_deployments_cserve_v2_post) | **POST** /deployments/cserve_v2 | Create Cserve V2 Deployment +[**create_cserve_v3_deployment_deployments_cserve_v3_post**](EXTERNALApi.md#create_cserve_v3_deployment_deployments_cserve_v3_post) | **POST** /deployments/cserve_v3 | Create Cserve V3 Deployment [**create_inference_deployment_deployments_inference_post**](EXTERNALApi.md#create_inference_deployment_deployments_inference_post) | **POST** /deployments/inference | Create Inference Deployment +[**create_inference_v3_deployment_deployments_inference_v3_post**](EXTERNALApi.md#create_inference_v3_deployment_deployments_inference_v3_post) | **POST** /deployments/inference_v3 | Create Inference V3 Deployment [**create_new_organization_organizations_post**](EXTERNALApi.md#create_new_organization_organizations_post) | **POST** /organizations | Create New Organization [**create_rag_deployment_deployments_rag_post**](EXTERNALApi.md#create_rag_deployment_deployments_rag_post) | **POST** /deployments/rag | Create Rag Deployment [**create_setup_payments_setup_checkout_post**](EXTERNALApi.md#create_setup_payments_setup_checkout_post) | **POST** /payments/setup_checkout | Create Setup @@ -26,11 +28,13 @@ Method | HTTP request | Description [**get_credits_credits_get**](EXTERNALApi.md#get_credits_credits_get) | **GET** /credits | Get Credits [**get_cserve_recipe_deployments_cserve_recipes_get**](EXTERNALApi.md#get_cserve_recipe_deployments_cserve_recipes_get) | **GET** /deployments/cserve/recipes | Get Cserve Recipe [**get_cserve_v2_deployment_deployments_cserve_v2_deployment_id_get**](EXTERNALApi.md#get_cserve_v2_deployment_deployments_cserve_v2_deployment_id_get) | **GET** /deployments/cserve_v2/{deployment_id} | Get Cserve V2 Deployment +[**get_cserve_v3_deployment_deployments_cserve_v3_deployment_id_get**](EXTERNALApi.md#get_cserve_v3_deployment_deployments_cserve_v3_deployment_id_get) | **GET** /deployments/cserve_v3/{deployment_id} | Get Cserve V3 Deployment [**get_deployment_logs_deployments_logs_deployment_id_get**](EXTERNALApi.md#get_deployment_logs_deployments_logs_deployment_id_get) | **GET** /deployments/logs/{deployment_id} | Get Deployment Logs [**get_deployment_status_deployments_status_deployment_id_get**](EXTERNALApi.md#get_deployment_status_deployments_status_deployment_id_get) | **GET** /deployments/status/{deployment_id} | Get Deployment Status [**get_deployments_deployments_get**](EXTERNALApi.md#get_deployments_deployments_get) | **GET** /deployments | Get Deployments [**get_hardware_instances_hardware_instances_get**](EXTERNALApi.md#get_hardware_instances_hardware_instances_get) | **GET** /hardware-instances | Get Hardware Instances [**get_inference_deployment_deployments_inference_deployment_id_get**](EXTERNALApi.md#get_inference_deployment_deployments_inference_deployment_id_get) | **GET** /deployments/inference/{deployment_id} | Get Inference Deployment +[**get_inference_v3_deployment_deployments_inference_v3_deployment_id_get**](EXTERNALApi.md#get_inference_v3_deployment_deployments_inference_v3_deployment_id_get) | **GET** /deployments/inference_v3/{deployment_id} | Get Inference V3 Deployment [**get_payment_method_payments_methods_get**](EXTERNALApi.md#get_payment_method_payments_methods_get) | **GET** /payments/methods | Get Payment Method [**get_payments_payments_get**](EXTERNALApi.md#get_payments_payments_get) | **GET** /payments | Get Payments [**get_prebuilt_images_prebuilt_images_get**](EXTERNALApi.md#get_prebuilt_images_prebuilt_images_get) | **GET** /prebuilt-images | Get Prebuilt Images @@ -41,8 +45,10 @@ Method | HTTP request | Description [**update_autocharge_preferences_autocharge_preferences_put**](EXTERNALApi.md#update_autocharge_preferences_autocharge_preferences_put) | **PUT** /autocharge/preferences | Update Autocharge Preferences [**update_compute_deployment_deployments_compute_put**](EXTERNALApi.md#update_compute_deployment_deployments_compute_put) | **PUT** /deployments/compute | Update Compute Deployment [**update_cserve_v2_deployment_deployments_cserve_v2_put**](EXTERNALApi.md#update_cserve_v2_deployment_deployments_cserve_v2_put) | **PUT** /deployments/cserve_v2 | Update Cserve V2 Deployment +[**update_cserve_v3_deployment_deployments_cserve_v3_put**](EXTERNALApi.md#update_cserve_v3_deployment_deployments_cserve_v3_put) | **PUT** /deployments/cserve_v3 | Update Cserve V3 Deployment [**update_deployment_status_deployments_status_deployment_id_put**](EXTERNALApi.md#update_deployment_status_deployments_status_deployment_id_put) | **PUT** /deployments/status/{deployment_id} | Update Deployment Status [**update_inference_deployment_deployments_inference_put**](EXTERNALApi.md#update_inference_deployment_deployments_inference_put) | **PUT** /deployments/inference | Update Inference Deployment +[**update_inference_v3_deployment_deployments_inference_v3_put**](EXTERNALApi.md#update_inference_v3_deployment_deployments_inference_v3_put) | **PUT** /deployments/inference_v3 | Update Inference V3 Deployment [**update_rag_deployment_deployments_rag_put**](EXTERNALApi.md#update_rag_deployment_deployments_rag_put) | **PUT** /deployments/rag | Update Rag Deployment [**update_user_vault_item_endpoint_user_vault_put**](EXTERNALApi.md#update_user_vault_item_endpoint_user_vault_put) | **PUT** /user_vault | Update User Vault Item Endpoint [**upload_url_file_url_upload_post**](EXTERNALApi.md#upload_url_file_url_upload_post) | **POST** /file_url/upload | Upload Url @@ -360,6 +366,84 @@ 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) +# **create_cserve_v3_deployment_deployments_cserve_v3_post** +> CreateCServeV3DeploymentResponse create_cserve_v3_deployment_deployments_cserve_v3_post(create_c_serve_v3_deployment_request) + +Create Cserve V3 Deployment + +### Example + +* Bearer Authentication (HTTPBearer): + +```python +import platform_api_python_client +from platform_api_python_client.models.create_c_serve_v3_deployment_request import CreateCServeV3DeploymentRequest +from platform_api_python_client.models.create_c_serve_v3_deployment_response import CreateCServeV3DeploymentResponse +from platform_api_python_client.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to http://localhost +# See configuration.py for a list of all supported configuration parameters. +configuration = platform_api_python_client.Configuration( + host = "http://localhost" +) + +# 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: HTTPBearer +configuration = platform_api_python_client.Configuration( + access_token = os.environ["BEARER_TOKEN"] +) + +# Enter a context with an instance of the API client +with platform_api_python_client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = platform_api_python_client.EXTERNALApi(api_client) + create_c_serve_v3_deployment_request = platform_api_python_client.CreateCServeV3DeploymentRequest() # CreateCServeV3DeploymentRequest | + + try: + # Create Cserve V3 Deployment + api_response = api_instance.create_cserve_v3_deployment_deployments_cserve_v3_post(create_c_serve_v3_deployment_request) + print("The response of EXTERNALApi->create_cserve_v3_deployment_deployments_cserve_v3_post:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling EXTERNALApi->create_cserve_v3_deployment_deployments_cserve_v3_post: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **create_c_serve_v3_deployment_request** | [**CreateCServeV3DeploymentRequest**](CreateCServeV3DeploymentRequest.md)| | + +### Return type + +[**CreateCServeV3DeploymentResponse**](CreateCServeV3DeploymentResponse.md) + +### Authorization + +[HTTPBearer](../README.md#HTTPBearer) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | Successful Response | - | +**422** | Validation Error | - | + +[[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_inference_deployment_deployments_inference_post** > CreateInferenceDeploymentResponse create_inference_deployment_deployments_inference_post(create_inference_deployment_request) @@ -438,6 +522,84 @@ 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) +# **create_inference_v3_deployment_deployments_inference_v3_post** +> CreateInferenceDeploymentResponse create_inference_v3_deployment_deployments_inference_v3_post(create_inference_v3_deployment_request) + +Create Inference V3 Deployment + +### Example + +* Bearer Authentication (HTTPBearer): + +```python +import platform_api_python_client +from platform_api_python_client.models.create_inference_deployment_response import CreateInferenceDeploymentResponse +from platform_api_python_client.models.create_inference_v3_deployment_request import CreateInferenceV3DeploymentRequest +from platform_api_python_client.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to http://localhost +# See configuration.py for a list of all supported configuration parameters. +configuration = platform_api_python_client.Configuration( + host = "http://localhost" +) + +# 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: HTTPBearer +configuration = platform_api_python_client.Configuration( + access_token = os.environ["BEARER_TOKEN"] +) + +# Enter a context with an instance of the API client +with platform_api_python_client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = platform_api_python_client.EXTERNALApi(api_client) + create_inference_v3_deployment_request = platform_api_python_client.CreateInferenceV3DeploymentRequest() # CreateInferenceV3DeploymentRequest | + + try: + # Create Inference V3 Deployment + api_response = api_instance.create_inference_v3_deployment_deployments_inference_v3_post(create_inference_v3_deployment_request) + print("The response of EXTERNALApi->create_inference_v3_deployment_deployments_inference_v3_post:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling EXTERNALApi->create_inference_v3_deployment_deployments_inference_v3_post: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **create_inference_v3_deployment_request** | [**CreateInferenceV3DeploymentRequest**](CreateInferenceV3DeploymentRequest.md)| | + +### Return type + +[**CreateInferenceDeploymentResponse**](CreateInferenceDeploymentResponse.md) + +### Authorization + +[HTTPBearer](../README.md#HTTPBearer) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | Successful Response | - | +**422** | Validation Error | - | + +[[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_new_organization_organizations_post** > CreateOrganizationResponse create_new_organization_organizations_post(create_organization_request) @@ -1734,6 +1896,83 @@ 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) +# **get_cserve_v3_deployment_deployments_cserve_v3_deployment_id_get** +> GetCServeV3DeploymentResponse get_cserve_v3_deployment_deployments_cserve_v3_deployment_id_get(deployment_id) + +Get Cserve V3 Deployment + +### Example + +* Bearer Authentication (HTTPBearer): + +```python +import platform_api_python_client +from platform_api_python_client.models.get_c_serve_v3_deployment_response import GetCServeV3DeploymentResponse +from platform_api_python_client.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to http://localhost +# See configuration.py for a list of all supported configuration parameters. +configuration = platform_api_python_client.Configuration( + host = "http://localhost" +) + +# 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: HTTPBearer +configuration = platform_api_python_client.Configuration( + access_token = os.environ["BEARER_TOKEN"] +) + +# Enter a context with an instance of the API client +with platform_api_python_client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = platform_api_python_client.EXTERNALApi(api_client) + deployment_id = 56 # int | + + try: + # Get Cserve V3 Deployment + api_response = api_instance.get_cserve_v3_deployment_deployments_cserve_v3_deployment_id_get(deployment_id) + print("The response of EXTERNALApi->get_cserve_v3_deployment_deployments_cserve_v3_deployment_id_get:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling EXTERNALApi->get_cserve_v3_deployment_deployments_cserve_v3_deployment_id_get: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **deployment_id** | **int**| | + +### Return type + +[**GetCServeV3DeploymentResponse**](GetCServeV3DeploymentResponse.md) + +### Authorization + +[HTTPBearer](../README.md#HTTPBearer) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | Successful Response | - | +**422** | Validation Error | - | + +[[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_deployment_logs_deployments_logs_deployment_id_get** > GetDeploymentLogResponse get_deployment_logs_deployments_logs_deployment_id_get(deployment_id, start_time, end_time, next_page_token=next_page_token, start_from_head=start_from_head, line_count=line_count) @@ -2136,6 +2375,83 @@ 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) +# **get_inference_v3_deployment_deployments_inference_v3_deployment_id_get** +> GetInferenceV3DeploymentResponse get_inference_v3_deployment_deployments_inference_v3_deployment_id_get(deployment_id) + +Get Inference V3 Deployment + +### Example + +* Bearer Authentication (HTTPBearer): + +```python +import platform_api_python_client +from platform_api_python_client.models.get_inference_v3_deployment_response import GetInferenceV3DeploymentResponse +from platform_api_python_client.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to http://localhost +# See configuration.py for a list of all supported configuration parameters. +configuration = platform_api_python_client.Configuration( + host = "http://localhost" +) + +# 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: HTTPBearer +configuration = platform_api_python_client.Configuration( + access_token = os.environ["BEARER_TOKEN"] +) + +# Enter a context with an instance of the API client +with platform_api_python_client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = platform_api_python_client.EXTERNALApi(api_client) + deployment_id = 56 # int | + + try: + # Get Inference V3 Deployment + api_response = api_instance.get_inference_v3_deployment_deployments_inference_v3_deployment_id_get(deployment_id) + print("The response of EXTERNALApi->get_inference_v3_deployment_deployments_inference_v3_deployment_id_get:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling EXTERNALApi->get_inference_v3_deployment_deployments_inference_v3_deployment_id_get: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **deployment_id** | **int**| | + +### Return type + +[**GetInferenceV3DeploymentResponse**](GetInferenceV3DeploymentResponse.md) + +### Authorization + +[HTTPBearer](../README.md#HTTPBearer) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | Successful Response | - | +**422** | Validation Error | - | + +[[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_payment_method_payments_methods_get** > PaymentMethodResponse get_payment_method_payments_methods_get() @@ -2908,6 +3224,86 @@ 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) +# **update_cserve_v3_deployment_deployments_cserve_v3_put** +> UpdateDeploymentResponse update_cserve_v3_deployment_deployments_cserve_v3_put(deployment_id, create_c_serve_v3_deployment_request) + +Update Cserve V3 Deployment + +### Example + +* Bearer Authentication (HTTPBearer): + +```python +import platform_api_python_client +from platform_api_python_client.models.create_c_serve_v3_deployment_request import CreateCServeV3DeploymentRequest +from platform_api_python_client.models.update_deployment_response import UpdateDeploymentResponse +from platform_api_python_client.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to http://localhost +# See configuration.py for a list of all supported configuration parameters. +configuration = platform_api_python_client.Configuration( + host = "http://localhost" +) + +# 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: HTTPBearer +configuration = platform_api_python_client.Configuration( + access_token = os.environ["BEARER_TOKEN"] +) + +# Enter a context with an instance of the API client +with platform_api_python_client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = platform_api_python_client.EXTERNALApi(api_client) + deployment_id = 56 # int | + create_c_serve_v3_deployment_request = platform_api_python_client.CreateCServeV3DeploymentRequest() # CreateCServeV3DeploymentRequest | + + try: + # Update Cserve V3 Deployment + api_response = api_instance.update_cserve_v3_deployment_deployments_cserve_v3_put(deployment_id, create_c_serve_v3_deployment_request) + print("The response of EXTERNALApi->update_cserve_v3_deployment_deployments_cserve_v3_put:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling EXTERNALApi->update_cserve_v3_deployment_deployments_cserve_v3_put: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **deployment_id** | **int**| | + **create_c_serve_v3_deployment_request** | [**CreateCServeV3DeploymentRequest**](CreateCServeV3DeploymentRequest.md)| | + +### Return type + +[**UpdateDeploymentResponse**](UpdateDeploymentResponse.md) + +### Authorization + +[HTTPBearer](../README.md#HTTPBearer) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | Successful Response | - | +**422** | Validation Error | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + # **update_deployment_status_deployments_status_deployment_id_put** > DeploymentStatusResponse update_deployment_status_deployments_status_deployment_id_put(deployment_id, deployment_status_request) @@ -3068,6 +3464,86 @@ 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) +# **update_inference_v3_deployment_deployments_inference_v3_put** +> UpdateDeploymentResponse update_inference_v3_deployment_deployments_inference_v3_put(deployment_id, create_inference_v3_deployment_request) + +Update Inference V3 Deployment + +### Example + +* Bearer Authentication (HTTPBearer): + +```python +import platform_api_python_client +from platform_api_python_client.models.create_inference_v3_deployment_request import CreateInferenceV3DeploymentRequest +from platform_api_python_client.models.update_deployment_response import UpdateDeploymentResponse +from platform_api_python_client.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to http://localhost +# See configuration.py for a list of all supported configuration parameters. +configuration = platform_api_python_client.Configuration( + host = "http://localhost" +) + +# 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: HTTPBearer +configuration = platform_api_python_client.Configuration( + access_token = os.environ["BEARER_TOKEN"] +) + +# Enter a context with an instance of the API client +with platform_api_python_client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = platform_api_python_client.EXTERNALApi(api_client) + deployment_id = 56 # int | + create_inference_v3_deployment_request = platform_api_python_client.CreateInferenceV3DeploymentRequest() # CreateInferenceV3DeploymentRequest | + + try: + # Update Inference V3 Deployment + api_response = api_instance.update_inference_v3_deployment_deployments_inference_v3_put(deployment_id, create_inference_v3_deployment_request) + print("The response of EXTERNALApi->update_inference_v3_deployment_deployments_inference_v3_put:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling EXTERNALApi->update_inference_v3_deployment_deployments_inference_v3_put: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **deployment_id** | **int**| | + **create_inference_v3_deployment_request** | [**CreateInferenceV3DeploymentRequest**](CreateInferenceV3DeploymentRequest.md)| | + +### Return type + +[**UpdateDeploymentResponse**](UpdateDeploymentResponse.md) + +### Authorization + +[HTTPBearer](../README.md#HTTPBearer) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | Successful Response | - | +**422** | Validation Error | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + # **update_rag_deployment_deployments_rag_put** > UpdateDeploymentResponse update_rag_deployment_deployments_rag_put(deployment_id, create_rag_deployment_request) diff --git a/docs/GetCServeV2DeploymentResponse.md b/docs/GetCServeV2DeploymentResponse.md index 364ef32..a723ddd 100644 --- a/docs/GetCServeV2DeploymentResponse.md +++ b/docs/GetCServeV2DeploymentResponse.md @@ -5,6 +5,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- +**creator_email** | **str** | | **cluster_id** | **int** | | **id** | **int** | | **name** | **str** | | diff --git a/docs/GetCServeV3DeploymentResponse.md b/docs/GetCServeV3DeploymentResponse.md new file mode 100644 index 0000000..fc56f5d --- /dev/null +++ b/docs/GetCServeV3DeploymentResponse.md @@ -0,0 +1,47 @@ +# GetCServeV3DeploymentResponse + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**creator_email** | **str** | | +**cluster_id** | **int** | | +**id** | **int** | | +**name** | **str** | | +**endpoint_url** | **str** | | +**image_url** | **str** | | [optional] +**type** | [**DeploymentType**](DeploymentType.md) | | +**status** | [**DeploymentStatus**](DeploymentStatus.md) | | +**created_at** | **datetime** | | +**hardware_instance_id** | **int** | | +**recipe** | [**CServeV2Recipe**](CServeV2Recipe.md) | | +**cserve_version** | **str** | | [optional] +**min_replicas** | **int** | | +**max_replicas** | **int** | | +**initial_replicas** | **int** | | [optional] +**endpoint_certificate_authority** | **str** | | [optional] +**endpoint_bearer_token** | **str** | | [optional] +**concurrency** | **int** | | [optional] +**env_vars** | **Dict[str, str]** | | [optional] + +## Example + +```python +from platform_api_python_client.models.get_c_serve_v3_deployment_response import GetCServeV3DeploymentResponse + +# TODO update the JSON string below +json = "{}" +# create an instance of GetCServeV3DeploymentResponse from a JSON string +get_c_serve_v3_deployment_response_instance = GetCServeV3DeploymentResponse.from_json(json) +# print the JSON string representation of the object +print(GetCServeV3DeploymentResponse.to_json()) + +# convert the object into a dict +get_c_serve_v3_deployment_response_dict = get_c_serve_v3_deployment_response_instance.to_dict() +# create an instance of GetCServeV3DeploymentResponse from a dict +get_c_serve_v3_deployment_response_from_dict = GetCServeV3DeploymentResponse.from_dict(get_c_serve_v3_deployment_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/GetComputeDeploymentResponse.md b/docs/GetComputeDeploymentResponse.md index ea2b741..94cb0cf 100644 --- a/docs/GetComputeDeploymentResponse.md +++ b/docs/GetComputeDeploymentResponse.md @@ -5,6 +5,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- +**creator_email** | **str** | | **cluster_id** | **int** | | **id** | **int** | | **name** | **str** | | diff --git a/docs/GetDeploymentResponse.md b/docs/GetDeploymentResponse.md index f37a49b..56505f2 100644 --- a/docs/GetDeploymentResponse.md +++ b/docs/GetDeploymentResponse.md @@ -5,6 +5,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- +**creator_email** | **str** | | **cluster_id** | **int** | | **id** | **int** | | **name** | **str** | | diff --git a/docs/GetInferenceDeploymentResponse.md b/docs/GetInferenceDeploymentResponse.md index 3dff503..f121102 100644 --- a/docs/GetInferenceDeploymentResponse.md +++ b/docs/GetInferenceDeploymentResponse.md @@ -5,6 +5,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- +**creator_email** | **str** | | **cluster_id** | **int** | | **id** | **int** | | **name** | **str** | | diff --git a/docs/GetInferenceV3DeploymentResponse.md b/docs/GetInferenceV3DeploymentResponse.md new file mode 100644 index 0000000..1ac3ad2 --- /dev/null +++ b/docs/GetInferenceV3DeploymentResponse.md @@ -0,0 +1,49 @@ +# GetInferenceV3DeploymentResponse + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**creator_email** | **str** | | +**cluster_id** | **int** | | +**id** | **int** | | +**name** | **str** | | +**endpoint_url** | **str** | | +**image_url** | **str** | | [optional] +**type** | [**DeploymentType**](DeploymentType.md) | | +**status** | [**DeploymentStatus**](DeploymentStatus.md) | | +**created_at** | **datetime** | | +**hardware_instance_id** | **int** | | +**container_port** | **int** | | +**min_replicas** | **int** | | +**max_replicas** | **int** | | +**initial_replicas** | **int** | | [optional] +**concurrency** | **int** | | [optional] +**healthcheck** | **str** | | [optional] +**endpoint_certificate_authority** | **str** | | [optional] +**endpoint_bearer_token** | **str** | | [optional] +**env_vars** | **Dict[str, str]** | | [optional] +**command** | **List[str]** | | [optional] +**command_args** | **List[str]** | | [optional] + +## Example + +```python +from platform_api_python_client.models.get_inference_v3_deployment_response import GetInferenceV3DeploymentResponse + +# TODO update the JSON string below +json = "{}" +# create an instance of GetInferenceV3DeploymentResponse from a JSON string +get_inference_v3_deployment_response_instance = GetInferenceV3DeploymentResponse.from_json(json) +# print the JSON string representation of the object +print(GetInferenceV3DeploymentResponse.to_json()) + +# convert the object into a dict +get_inference_v3_deployment_response_dict = get_inference_v3_deployment_response_instance.to_dict() +# create an instance of GetInferenceV3DeploymentResponse from a dict +get_inference_v3_deployment_response_from_dict = GetInferenceV3DeploymentResponse.from_dict(get_inference_v3_deployment_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/GetRagDeploymentResponse.md b/docs/GetRagDeploymentResponse.md index 14c989d..15e8ce1 100644 --- a/docs/GetRagDeploymentResponse.md +++ b/docs/GetRagDeploymentResponse.md @@ -5,6 +5,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- +**creator_email** | **str** | | **cluster_id** | **int** | | **id** | **int** | | **name** | **str** | | diff --git a/platform_api_python_client/__init__.py b/platform_api_python_client/__init__.py index 8d2f7b0..2662a70 100644 --- a/platform_api_python_client/__init__.py +++ b/platform_api_python_client/__init__.py @@ -14,7 +14,7 @@ """ # noqa: E501 -__version__ = "4.0.15" +__version__ = "4.0.17" # import apis into sdk package from platform_api_python_client.api.external_api import EXTERNALApi @@ -38,12 +38,15 @@ from platform_api_python_client.models.c_serve_v2_recipe import CServeV2Recipe from platform_api_python_client.models.create_c_serve_v2_deployment_request import CreateCServeV2DeploymentRequest from platform_api_python_client.models.create_c_serve_v2_deployment_response import CreateCServeV2DeploymentResponse +from platform_api_python_client.models.create_c_serve_v3_deployment_request import CreateCServeV3DeploymentRequest +from platform_api_python_client.models.create_c_serve_v3_deployment_response import CreateCServeV3DeploymentResponse from platform_api_python_client.models.create_checkout_request import CreateCheckoutRequest from platform_api_python_client.models.create_checkout_session_response import CreateCheckoutSessionResponse from platform_api_python_client.models.create_compute_deployment_request import CreateComputeDeploymentRequest from platform_api_python_client.models.create_compute_deployment_response import CreateComputeDeploymentResponse from platform_api_python_client.models.create_inference_deployment_request import CreateInferenceDeploymentRequest from platform_api_python_client.models.create_inference_deployment_response import CreateInferenceDeploymentResponse +from platform_api_python_client.models.create_inference_v3_deployment_request import CreateInferenceV3DeploymentRequest from platform_api_python_client.models.create_organization_request import CreateOrganizationRequest from platform_api_python_client.models.create_organization_response import CreateOrganizationResponse from platform_api_python_client.models.create_rag_deployment_request import CreateRagDeploymentRequest @@ -61,12 +64,14 @@ from platform_api_python_client.models.deployment_usage_value import DeploymentUsageValue from platform_api_python_client.models.get_autocharge_preferences_response import GetAutochargePreferencesResponse from platform_api_python_client.models.get_c_serve_v2_deployment_response import GetCServeV2DeploymentResponse +from platform_api_python_client.models.get_c_serve_v3_deployment_response import GetCServeV3DeploymentResponse from platform_api_python_client.models.get_cluster_response import GetClusterResponse from platform_api_python_client.models.get_compute_deployment_response import GetComputeDeploymentResponse from platform_api_python_client.models.get_deployment_log_response import GetDeploymentLogResponse from platform_api_python_client.models.get_deployment_response import GetDeploymentResponse from platform_api_python_client.models.get_deployment_usage_response import GetDeploymentUsageResponse from platform_api_python_client.models.get_inference_deployment_response import GetInferenceDeploymentResponse +from platform_api_python_client.models.get_inference_v3_deployment_response import GetInferenceV3DeploymentResponse from platform_api_python_client.models.get_payment_response import GetPaymentResponse from platform_api_python_client.models.get_rag_deployment_response import GetRagDeploymentResponse from platform_api_python_client.models.http_validation_error import HTTPValidationError diff --git a/platform_api_python_client/api/external_api.py b/platform_api_python_client/api/external_api.py index e8a7388..4dc185a 100644 --- a/platform_api_python_client/api/external_api.py +++ b/platform_api_python_client/api/external_api.py @@ -23,12 +23,15 @@ from platform_api_python_client.models.api_key_response import APIKeyResponse from platform_api_python_client.models.create_c_serve_v2_deployment_request import CreateCServeV2DeploymentRequest from platform_api_python_client.models.create_c_serve_v2_deployment_response import CreateCServeV2DeploymentResponse +from platform_api_python_client.models.create_c_serve_v3_deployment_request import CreateCServeV3DeploymentRequest +from platform_api_python_client.models.create_c_serve_v3_deployment_response import CreateCServeV3DeploymentResponse from platform_api_python_client.models.create_checkout_request import CreateCheckoutRequest from platform_api_python_client.models.create_checkout_session_response import CreateCheckoutSessionResponse from platform_api_python_client.models.create_compute_deployment_request import CreateComputeDeploymentRequest from platform_api_python_client.models.create_compute_deployment_response import CreateComputeDeploymentResponse from platform_api_python_client.models.create_inference_deployment_request import CreateInferenceDeploymentRequest from platform_api_python_client.models.create_inference_deployment_response import CreateInferenceDeploymentResponse +from platform_api_python_client.models.create_inference_v3_deployment_request import CreateInferenceV3DeploymentRequest from platform_api_python_client.models.create_organization_request import CreateOrganizationRequest from platform_api_python_client.models.create_organization_response import CreateOrganizationResponse from platform_api_python_client.models.create_rag_deployment_request import CreateRagDeploymentRequest @@ -42,10 +45,12 @@ from platform_api_python_client.models.deployment_type import DeploymentType from platform_api_python_client.models.get_autocharge_preferences_response import GetAutochargePreferencesResponse from platform_api_python_client.models.get_c_serve_v2_deployment_response import GetCServeV2DeploymentResponse +from platform_api_python_client.models.get_c_serve_v3_deployment_response import GetCServeV3DeploymentResponse from platform_api_python_client.models.get_compute_deployment_response import GetComputeDeploymentResponse from platform_api_python_client.models.get_deployment_log_response import GetDeploymentLogResponse from platform_api_python_client.models.get_deployment_usage_response import GetDeploymentUsageResponse from platform_api_python_client.models.get_inference_deployment_response import GetInferenceDeploymentResponse +from platform_api_python_client.models.get_inference_v3_deployment_response import GetInferenceV3DeploymentResponse from platform_api_python_client.models.get_rag_deployment_response import GetRagDeploymentResponse from platform_api_python_client.models.list_api_key_response import ListAPIKeyResponse from platform_api_python_client.models.list_c_serve_recipe_response import ListCServeRecipeResponse @@ -1180,9 +1185,9 @@ def _create_cserve_v2_deployment_deployments_cserve_v2_post_serialize( @validate_call - def create_inference_deployment_deployments_inference_post( + def create_cserve_v3_deployment_deployments_cserve_v3_post( self, - create_inference_deployment_request: CreateInferenceDeploymentRequest, + create_c_serve_v3_deployment_request: CreateCServeV3DeploymentRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -1195,12 +1200,12 @@ def create_inference_deployment_deployments_inference_post( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> CreateInferenceDeploymentResponse: - """Create Inference Deployment + ) -> CreateCServeV3DeploymentResponse: + """Create Cserve V3 Deployment - :param create_inference_deployment_request: (required) - :type create_inference_deployment_request: CreateInferenceDeploymentRequest + :param create_c_serve_v3_deployment_request: (required) + :type create_c_serve_v3_deployment_request: CreateCServeV3DeploymentRequest :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 @@ -1223,8 +1228,8 @@ def create_inference_deployment_deployments_inference_post( :return: Returns the result object. """ # noqa: E501 - _param = self._create_inference_deployment_deployments_inference_post_serialize( - create_inference_deployment_request=create_inference_deployment_request, + _param = self._create_cserve_v3_deployment_deployments_cserve_v3_post_serialize( + create_c_serve_v3_deployment_request=create_c_serve_v3_deployment_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -1232,7 +1237,7 @@ def create_inference_deployment_deployments_inference_post( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "CreateInferenceDeploymentResponse", + '200': "CreateCServeV3DeploymentResponse", '422': "HTTPValidationError", } response_data = self.api_client.call_api( @@ -1247,9 +1252,9 @@ def create_inference_deployment_deployments_inference_post( @validate_call - def create_inference_deployment_deployments_inference_post_with_http_info( + def create_cserve_v3_deployment_deployments_cserve_v3_post_with_http_info( self, - create_inference_deployment_request: CreateInferenceDeploymentRequest, + create_c_serve_v3_deployment_request: CreateCServeV3DeploymentRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -1262,12 +1267,12 @@ def create_inference_deployment_deployments_inference_post_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[CreateInferenceDeploymentResponse]: - """Create Inference Deployment + ) -> ApiResponse[CreateCServeV3DeploymentResponse]: + """Create Cserve V3 Deployment - :param create_inference_deployment_request: (required) - :type create_inference_deployment_request: CreateInferenceDeploymentRequest + :param create_c_serve_v3_deployment_request: (required) + :type create_c_serve_v3_deployment_request: CreateCServeV3DeploymentRequest :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 @@ -1290,8 +1295,8 @@ def create_inference_deployment_deployments_inference_post_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._create_inference_deployment_deployments_inference_post_serialize( - create_inference_deployment_request=create_inference_deployment_request, + _param = self._create_cserve_v3_deployment_deployments_cserve_v3_post_serialize( + create_c_serve_v3_deployment_request=create_c_serve_v3_deployment_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -1299,7 +1304,7 @@ def create_inference_deployment_deployments_inference_post_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "CreateInferenceDeploymentResponse", + '200': "CreateCServeV3DeploymentResponse", '422': "HTTPValidationError", } response_data = self.api_client.call_api( @@ -1314,9 +1319,9 @@ def create_inference_deployment_deployments_inference_post_with_http_info( @validate_call - def create_inference_deployment_deployments_inference_post_without_preload_content( + def create_cserve_v3_deployment_deployments_cserve_v3_post_without_preload_content( self, - create_inference_deployment_request: CreateInferenceDeploymentRequest, + create_c_serve_v3_deployment_request: CreateCServeV3DeploymentRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -1330,11 +1335,11 @@ def create_inference_deployment_deployments_inference_post_without_preload_conte _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """Create Inference Deployment + """Create Cserve V3 Deployment - :param create_inference_deployment_request: (required) - :type create_inference_deployment_request: CreateInferenceDeploymentRequest + :param create_c_serve_v3_deployment_request: (required) + :type create_c_serve_v3_deployment_request: CreateCServeV3DeploymentRequest :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 @@ -1357,8 +1362,8 @@ def create_inference_deployment_deployments_inference_post_without_preload_conte :return: Returns the result object. """ # noqa: E501 - _param = self._create_inference_deployment_deployments_inference_post_serialize( - create_inference_deployment_request=create_inference_deployment_request, + _param = self._create_cserve_v3_deployment_deployments_cserve_v3_post_serialize( + create_c_serve_v3_deployment_request=create_c_serve_v3_deployment_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -1366,7 +1371,7 @@ def create_inference_deployment_deployments_inference_post_without_preload_conte ) _response_types_map: Dict[str, Optional[str]] = { - '200': "CreateInferenceDeploymentResponse", + '200': "CreateCServeV3DeploymentResponse", '422': "HTTPValidationError", } response_data = self.api_client.call_api( @@ -1376,9 +1381,9 @@ def create_inference_deployment_deployments_inference_post_without_preload_conte return response_data.response - def _create_inference_deployment_deployments_inference_post_serialize( + def _create_cserve_v3_deployment_deployments_cserve_v3_post_serialize( self, - create_inference_deployment_request, + create_c_serve_v3_deployment_request, _request_auth, _content_type, _headers, @@ -1404,8 +1409,8 @@ def _create_inference_deployment_deployments_inference_post_serialize( # process the header parameters # process the form parameters # process the body parameter - if create_inference_deployment_request is not None: - _body_params = create_inference_deployment_request + if create_c_serve_v3_deployment_request is not None: + _body_params = create_c_serve_v3_deployment_request # set the HTTP header `Accept` @@ -1437,7 +1442,7 @@ def _create_inference_deployment_deployments_inference_post_serialize( return self.api_client.param_serialize( method='POST', - resource_path='/deployments/inference', + resource_path='/deployments/cserve_v3', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -1454,9 +1459,9 @@ def _create_inference_deployment_deployments_inference_post_serialize( @validate_call - def create_new_organization_organizations_post( + def create_inference_deployment_deployments_inference_post( self, - create_organization_request: CreateOrganizationRequest, + create_inference_deployment_request: CreateInferenceDeploymentRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -1469,12 +1474,12 @@ def create_new_organization_organizations_post( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> CreateOrganizationResponse: - """Create New Organization + ) -> CreateInferenceDeploymentResponse: + """Create Inference Deployment - :param create_organization_request: (required) - :type create_organization_request: CreateOrganizationRequest + :param create_inference_deployment_request: (required) + :type create_inference_deployment_request: CreateInferenceDeploymentRequest :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 @@ -1497,8 +1502,8 @@ def create_new_organization_organizations_post( :return: Returns the result object. """ # noqa: E501 - _param = self._create_new_organization_organizations_post_serialize( - create_organization_request=create_organization_request, + _param = self._create_inference_deployment_deployments_inference_post_serialize( + create_inference_deployment_request=create_inference_deployment_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -1506,7 +1511,7 @@ def create_new_organization_organizations_post( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "CreateOrganizationResponse", + '200': "CreateInferenceDeploymentResponse", '422': "HTTPValidationError", } response_data = self.api_client.call_api( @@ -1521,9 +1526,9 @@ def create_new_organization_organizations_post( @validate_call - def create_new_organization_organizations_post_with_http_info( + def create_inference_deployment_deployments_inference_post_with_http_info( self, - create_organization_request: CreateOrganizationRequest, + create_inference_deployment_request: CreateInferenceDeploymentRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -1536,12 +1541,12 @@ def create_new_organization_organizations_post_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[CreateOrganizationResponse]: - """Create New Organization + ) -> ApiResponse[CreateInferenceDeploymentResponse]: + """Create Inference Deployment - :param create_organization_request: (required) - :type create_organization_request: CreateOrganizationRequest + :param create_inference_deployment_request: (required) + :type create_inference_deployment_request: CreateInferenceDeploymentRequest :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 @@ -1564,8 +1569,8 @@ def create_new_organization_organizations_post_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._create_new_organization_organizations_post_serialize( - create_organization_request=create_organization_request, + _param = self._create_inference_deployment_deployments_inference_post_serialize( + create_inference_deployment_request=create_inference_deployment_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -1573,7 +1578,7 @@ def create_new_organization_organizations_post_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "CreateOrganizationResponse", + '200': "CreateInferenceDeploymentResponse", '422': "HTTPValidationError", } response_data = self.api_client.call_api( @@ -1588,9 +1593,9 @@ def create_new_organization_organizations_post_with_http_info( @validate_call - def create_new_organization_organizations_post_without_preload_content( + def create_inference_deployment_deployments_inference_post_without_preload_content( self, - create_organization_request: CreateOrganizationRequest, + create_inference_deployment_request: CreateInferenceDeploymentRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -1604,11 +1609,11 @@ def create_new_organization_organizations_post_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """Create New Organization + """Create Inference Deployment - :param create_organization_request: (required) - :type create_organization_request: CreateOrganizationRequest + :param create_inference_deployment_request: (required) + :type create_inference_deployment_request: CreateInferenceDeploymentRequest :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 @@ -1631,8 +1636,8 @@ def create_new_organization_organizations_post_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._create_new_organization_organizations_post_serialize( - create_organization_request=create_organization_request, + _param = self._create_inference_deployment_deployments_inference_post_serialize( + create_inference_deployment_request=create_inference_deployment_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -1640,7 +1645,7 @@ def create_new_organization_organizations_post_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "CreateOrganizationResponse", + '200': "CreateInferenceDeploymentResponse", '422': "HTTPValidationError", } response_data = self.api_client.call_api( @@ -1650,9 +1655,9 @@ def create_new_organization_organizations_post_without_preload_content( return response_data.response - def _create_new_organization_organizations_post_serialize( + def _create_inference_deployment_deployments_inference_post_serialize( self, - create_organization_request, + create_inference_deployment_request, _request_auth, _content_type, _headers, @@ -1678,8 +1683,8 @@ def _create_new_organization_organizations_post_serialize( # process the header parameters # process the form parameters # process the body parameter - if create_organization_request is not None: - _body_params = create_organization_request + if create_inference_deployment_request is not None: + _body_params = create_inference_deployment_request # set the HTTP header `Accept` @@ -1711,7 +1716,7 @@ def _create_new_organization_organizations_post_serialize( return self.api_client.param_serialize( method='POST', - resource_path='/organizations', + resource_path='/deployments/inference', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -1728,9 +1733,9 @@ def _create_new_organization_organizations_post_serialize( @validate_call - def create_rag_deployment_deployments_rag_post( + def create_inference_v3_deployment_deployments_inference_v3_post( self, - create_rag_deployment_request: CreateRagDeploymentRequest, + create_inference_v3_deployment_request: CreateInferenceV3DeploymentRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -1743,12 +1748,12 @@ def create_rag_deployment_deployments_rag_post( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> CreateRagDeploymentResponse: - """Create Rag Deployment + ) -> CreateInferenceDeploymentResponse: + """Create Inference V3 Deployment - :param create_rag_deployment_request: (required) - :type create_rag_deployment_request: CreateRagDeploymentRequest + :param create_inference_v3_deployment_request: (required) + :type create_inference_v3_deployment_request: CreateInferenceV3DeploymentRequest :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 @@ -1771,8 +1776,8 @@ def create_rag_deployment_deployments_rag_post( :return: Returns the result object. """ # noqa: E501 - _param = self._create_rag_deployment_deployments_rag_post_serialize( - create_rag_deployment_request=create_rag_deployment_request, + _param = self._create_inference_v3_deployment_deployments_inference_v3_post_serialize( + create_inference_v3_deployment_request=create_inference_v3_deployment_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -1780,7 +1785,7 @@ def create_rag_deployment_deployments_rag_post( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "CreateRagDeploymentResponse", + '200': "CreateInferenceDeploymentResponse", '422': "HTTPValidationError", } response_data = self.api_client.call_api( @@ -1795,9 +1800,9 @@ def create_rag_deployment_deployments_rag_post( @validate_call - def create_rag_deployment_deployments_rag_post_with_http_info( + def create_inference_v3_deployment_deployments_inference_v3_post_with_http_info( self, - create_rag_deployment_request: CreateRagDeploymentRequest, + create_inference_v3_deployment_request: CreateInferenceV3DeploymentRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -1810,12 +1815,12 @@ def create_rag_deployment_deployments_rag_post_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[CreateRagDeploymentResponse]: - """Create Rag Deployment + ) -> ApiResponse[CreateInferenceDeploymentResponse]: + """Create Inference V3 Deployment - :param create_rag_deployment_request: (required) - :type create_rag_deployment_request: CreateRagDeploymentRequest + :param create_inference_v3_deployment_request: (required) + :type create_inference_v3_deployment_request: CreateInferenceV3DeploymentRequest :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 @@ -1838,8 +1843,8 @@ def create_rag_deployment_deployments_rag_post_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._create_rag_deployment_deployments_rag_post_serialize( - create_rag_deployment_request=create_rag_deployment_request, + _param = self._create_inference_v3_deployment_deployments_inference_v3_post_serialize( + create_inference_v3_deployment_request=create_inference_v3_deployment_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -1847,7 +1852,7 @@ def create_rag_deployment_deployments_rag_post_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "CreateRagDeploymentResponse", + '200': "CreateInferenceDeploymentResponse", '422': "HTTPValidationError", } response_data = self.api_client.call_api( @@ -1862,9 +1867,9 @@ def create_rag_deployment_deployments_rag_post_with_http_info( @validate_call - def create_rag_deployment_deployments_rag_post_without_preload_content( + def create_inference_v3_deployment_deployments_inference_v3_post_without_preload_content( self, - create_rag_deployment_request: CreateRagDeploymentRequest, + create_inference_v3_deployment_request: CreateInferenceV3DeploymentRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -1878,11 +1883,11 @@ def create_rag_deployment_deployments_rag_post_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """Create Rag Deployment + """Create Inference V3 Deployment - :param create_rag_deployment_request: (required) - :type create_rag_deployment_request: CreateRagDeploymentRequest + :param create_inference_v3_deployment_request: (required) + :type create_inference_v3_deployment_request: CreateInferenceV3DeploymentRequest :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 @@ -1905,8 +1910,8 @@ def create_rag_deployment_deployments_rag_post_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._create_rag_deployment_deployments_rag_post_serialize( - create_rag_deployment_request=create_rag_deployment_request, + _param = self._create_inference_v3_deployment_deployments_inference_v3_post_serialize( + create_inference_v3_deployment_request=create_inference_v3_deployment_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -1914,7 +1919,7 @@ def create_rag_deployment_deployments_rag_post_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "CreateRagDeploymentResponse", + '200': "CreateInferenceDeploymentResponse", '422': "HTTPValidationError", } response_data = self.api_client.call_api( @@ -1924,9 +1929,9 @@ def create_rag_deployment_deployments_rag_post_without_preload_content( return response_data.response - def _create_rag_deployment_deployments_rag_post_serialize( + def _create_inference_v3_deployment_deployments_inference_v3_post_serialize( self, - create_rag_deployment_request, + create_inference_v3_deployment_request, _request_auth, _content_type, _headers, @@ -1952,8 +1957,8 @@ def _create_rag_deployment_deployments_rag_post_serialize( # process the header parameters # process the form parameters # process the body parameter - if create_rag_deployment_request is not None: - _body_params = create_rag_deployment_request + if create_inference_v3_deployment_request is not None: + _body_params = create_inference_v3_deployment_request # set the HTTP header `Accept` @@ -1985,7 +1990,7 @@ def _create_rag_deployment_deployments_rag_post_serialize( return self.api_client.param_serialize( method='POST', - resource_path='/deployments/rag', + resource_path='/deployments/inference_v3', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -2002,9 +2007,9 @@ def _create_rag_deployment_deployments_rag_post_serialize( @validate_call - def create_setup_payments_setup_checkout_post( + def create_new_organization_organizations_post( self, - create_setup_checkout_request: CreateSetupCheckoutRequest, + create_organization_request: CreateOrganizationRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -2017,12 +2022,12 @@ def create_setup_payments_setup_checkout_post( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> CreateCheckoutSessionResponse: - """Create Setup + ) -> CreateOrganizationResponse: + """Create New Organization - :param create_setup_checkout_request: (required) - :type create_setup_checkout_request: CreateSetupCheckoutRequest + :param create_organization_request: (required) + :type create_organization_request: CreateOrganizationRequest :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 @@ -2045,8 +2050,8 @@ def create_setup_payments_setup_checkout_post( :return: Returns the result object. """ # noqa: E501 - _param = self._create_setup_payments_setup_checkout_post_serialize( - create_setup_checkout_request=create_setup_checkout_request, + _param = self._create_new_organization_organizations_post_serialize( + create_organization_request=create_organization_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -2054,7 +2059,7 @@ def create_setup_payments_setup_checkout_post( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "CreateCheckoutSessionResponse", + '200': "CreateOrganizationResponse", '422': "HTTPValidationError", } response_data = self.api_client.call_api( @@ -2069,9 +2074,9 @@ def create_setup_payments_setup_checkout_post( @validate_call - def create_setup_payments_setup_checkout_post_with_http_info( + def create_new_organization_organizations_post_with_http_info( self, - create_setup_checkout_request: CreateSetupCheckoutRequest, + create_organization_request: CreateOrganizationRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -2084,12 +2089,12 @@ def create_setup_payments_setup_checkout_post_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[CreateCheckoutSessionResponse]: - """Create Setup + ) -> ApiResponse[CreateOrganizationResponse]: + """Create New Organization - :param create_setup_checkout_request: (required) - :type create_setup_checkout_request: CreateSetupCheckoutRequest + :param create_organization_request: (required) + :type create_organization_request: CreateOrganizationRequest :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 @@ -2112,8 +2117,8 @@ def create_setup_payments_setup_checkout_post_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._create_setup_payments_setup_checkout_post_serialize( - create_setup_checkout_request=create_setup_checkout_request, + _param = self._create_new_organization_organizations_post_serialize( + create_organization_request=create_organization_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -2121,7 +2126,7 @@ def create_setup_payments_setup_checkout_post_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "CreateCheckoutSessionResponse", + '200': "CreateOrganizationResponse", '422': "HTTPValidationError", } response_data = self.api_client.call_api( @@ -2136,9 +2141,9 @@ def create_setup_payments_setup_checkout_post_with_http_info( @validate_call - def create_setup_payments_setup_checkout_post_without_preload_content( + def create_new_organization_organizations_post_without_preload_content( self, - create_setup_checkout_request: CreateSetupCheckoutRequest, + create_organization_request: CreateOrganizationRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -2152,11 +2157,11 @@ def create_setup_payments_setup_checkout_post_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """Create Setup + """Create New Organization - :param create_setup_checkout_request: (required) - :type create_setup_checkout_request: CreateSetupCheckoutRequest + :param create_organization_request: (required) + :type create_organization_request: CreateOrganizationRequest :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 @@ -2179,8 +2184,8 @@ def create_setup_payments_setup_checkout_post_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._create_setup_payments_setup_checkout_post_serialize( - create_setup_checkout_request=create_setup_checkout_request, + _param = self._create_new_organization_organizations_post_serialize( + create_organization_request=create_organization_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -2188,7 +2193,7 @@ def create_setup_payments_setup_checkout_post_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "CreateCheckoutSessionResponse", + '200': "CreateOrganizationResponse", '422': "HTTPValidationError", } response_data = self.api_client.call_api( @@ -2198,9 +2203,9 @@ def create_setup_payments_setup_checkout_post_without_preload_content( return response_data.response - def _create_setup_payments_setup_checkout_post_serialize( + def _create_new_organization_organizations_post_serialize( self, - create_setup_checkout_request, + create_organization_request, _request_auth, _content_type, _headers, @@ -2226,8 +2231,8 @@ def _create_setup_payments_setup_checkout_post_serialize( # process the header parameters # process the form parameters # process the body parameter - if create_setup_checkout_request is not None: - _body_params = create_setup_checkout_request + if create_organization_request is not None: + _body_params = create_organization_request # set the HTTP header `Accept` @@ -2259,7 +2264,7 @@ def _create_setup_payments_setup_checkout_post_serialize( return self.api_client.param_serialize( method='POST', - resource_path='/payments/setup_checkout', + resource_path='/organizations', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -2276,12 +2281,9 @@ def _create_setup_payments_setup_checkout_post_serialize( @validate_call - def create_support_ticket_support_post( + def create_rag_deployment_deployments_rag_post( self, - message: StrictStr, - category: TicketCategory, - priority: TicketPriority, - upload_file: Optional[Union[StrictBytes, StrictStr, Tuple[StrictStr, StrictBytes]]] = None, + create_rag_deployment_request: CreateRagDeploymentRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -2294,18 +2296,12 @@ def create_support_ticket_support_post( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> object: - """Create Support Ticket + ) -> CreateRagDeploymentResponse: + """Create Rag Deployment - :param message: (required) - :type message: str - :param category: (required) - :type category: TicketCategory - :param priority: (required) - :type priority: TicketPriority - :param upload_file: - :type upload_file: bytearray + :param create_rag_deployment_request: (required) + :type create_rag_deployment_request: CreateRagDeploymentRequest :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 @@ -2328,11 +2324,8 @@ def create_support_ticket_support_post( :return: Returns the result object. """ # noqa: E501 - _param = self._create_support_ticket_support_post_serialize( - message=message, - category=category, - priority=priority, - upload_file=upload_file, + _param = self._create_rag_deployment_deployments_rag_post_serialize( + create_rag_deployment_request=create_rag_deployment_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -2340,7 +2333,7 @@ def create_support_ticket_support_post( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "object", + '200': "CreateRagDeploymentResponse", '422': "HTTPValidationError", } response_data = self.api_client.call_api( @@ -2355,12 +2348,9 @@ def create_support_ticket_support_post( @validate_call - def create_support_ticket_support_post_with_http_info( + def create_rag_deployment_deployments_rag_post_with_http_info( self, - message: StrictStr, - category: TicketCategory, - priority: TicketPriority, - upload_file: Optional[Union[StrictBytes, StrictStr, Tuple[StrictStr, StrictBytes]]] = None, + create_rag_deployment_request: CreateRagDeploymentRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -2373,18 +2363,12 @@ def create_support_ticket_support_post_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[object]: - """Create Support Ticket + ) -> ApiResponse[CreateRagDeploymentResponse]: + """Create Rag Deployment - :param message: (required) - :type message: str - :param category: (required) - :type category: TicketCategory - :param priority: (required) - :type priority: TicketPriority - :param upload_file: - :type upload_file: bytearray + :param create_rag_deployment_request: (required) + :type create_rag_deployment_request: CreateRagDeploymentRequest :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 @@ -2407,11 +2391,8 @@ def create_support_ticket_support_post_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._create_support_ticket_support_post_serialize( - message=message, - category=category, - priority=priority, - upload_file=upload_file, + _param = self._create_rag_deployment_deployments_rag_post_serialize( + create_rag_deployment_request=create_rag_deployment_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -2419,7 +2400,7 @@ def create_support_ticket_support_post_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "object", + '200': "CreateRagDeploymentResponse", '422': "HTTPValidationError", } response_data = self.api_client.call_api( @@ -2434,12 +2415,9 @@ def create_support_ticket_support_post_with_http_info( @validate_call - def create_support_ticket_support_post_without_preload_content( + def create_rag_deployment_deployments_rag_post_without_preload_content( self, - message: StrictStr, - category: TicketCategory, - priority: TicketPriority, - upload_file: Optional[Union[StrictBytes, StrictStr, Tuple[StrictStr, StrictBytes]]] = None, + create_rag_deployment_request: CreateRagDeploymentRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -2453,17 +2431,11 @@ def create_support_ticket_support_post_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """Create Support Ticket + """Create Rag Deployment - :param message: (required) - :type message: str - :param category: (required) - :type category: TicketCategory - :param priority: (required) - :type priority: TicketPriority - :param upload_file: - :type upload_file: bytearray + :param create_rag_deployment_request: (required) + :type create_rag_deployment_request: CreateRagDeploymentRequest :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,11 +2458,8 @@ def create_support_ticket_support_post_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._create_support_ticket_support_post_serialize( - message=message, - category=category, - priority=priority, - upload_file=upload_file, + _param = self._create_rag_deployment_deployments_rag_post_serialize( + create_rag_deployment_request=create_rag_deployment_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -2498,7 +2467,7 @@ def create_support_ticket_support_post_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "object", + '200': "CreateRagDeploymentResponse", '422': "HTTPValidationError", } response_data = self.api_client.call_api( @@ -2508,12 +2477,9 @@ def create_support_ticket_support_post_without_preload_content( return response_data.response - def _create_support_ticket_support_post_serialize( + def _create_rag_deployment_deployments_rag_post_serialize( self, - message, - category, - priority, - upload_file, + create_rag_deployment_request, _request_auth, _content_type, _headers, @@ -2538,15 +2504,9 @@ def _create_support_ticket_support_post_serialize( # process the query parameters # process the header parameters # process the form parameters - if message is not None: - _form_params.append(('message', message)) - if category is not None: - _form_params.append(('category', category)) - if priority is not None: - _form_params.append(('priority', priority)) - if upload_file is not None: - _files['upload_file'] = upload_file # process the body parameter + if create_rag_deployment_request is not None: + _body_params = create_rag_deployment_request # set the HTTP header `Accept` @@ -2564,7 +2524,7 @@ def _create_support_ticket_support_post_serialize( _default_content_type = ( self.api_client.select_header_content_type( [ - 'multipart/form-data' + 'application/json' ] ) ) @@ -2578,7 +2538,7 @@ def _create_support_ticket_support_post_serialize( return self.api_client.param_serialize( method='POST', - resource_path='/support', + resource_path='/deployments/rag', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -2595,9 +2555,9 @@ def _create_support_ticket_support_post_serialize( @validate_call - def delete_api_key_credentials_api_key_id_delete( + def create_setup_payments_setup_checkout_post( self, - id: StrictStr, + create_setup_checkout_request: CreateSetupCheckoutRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -2610,12 +2570,12 @@ def delete_api_key_credentials_api_key_id_delete( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> object: - """Delete Api Key + ) -> CreateCheckoutSessionResponse: + """Create Setup - :param id: (required) - :type id: str + :param create_setup_checkout_request: (required) + :type create_setup_checkout_request: CreateSetupCheckoutRequest :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 @@ -2638,8 +2598,8 @@ def delete_api_key_credentials_api_key_id_delete( :return: Returns the result object. """ # noqa: E501 - _param = self._delete_api_key_credentials_api_key_id_delete_serialize( - id=id, + _param = self._create_setup_payments_setup_checkout_post_serialize( + create_setup_checkout_request=create_setup_checkout_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -2647,7 +2607,7 @@ def delete_api_key_credentials_api_key_id_delete( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "object", + '200': "CreateCheckoutSessionResponse", '422': "HTTPValidationError", } response_data = self.api_client.call_api( @@ -2662,9 +2622,9 @@ def delete_api_key_credentials_api_key_id_delete( @validate_call - def delete_api_key_credentials_api_key_id_delete_with_http_info( + def create_setup_payments_setup_checkout_post_with_http_info( self, - id: StrictStr, + create_setup_checkout_request: CreateSetupCheckoutRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -2677,12 +2637,12 @@ def delete_api_key_credentials_api_key_id_delete_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[object]: - """Delete Api Key + ) -> ApiResponse[CreateCheckoutSessionResponse]: + """Create Setup - :param id: (required) - :type id: str + :param create_setup_checkout_request: (required) + :type create_setup_checkout_request: CreateSetupCheckoutRequest :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 @@ -2705,8 +2665,8 @@ def delete_api_key_credentials_api_key_id_delete_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._delete_api_key_credentials_api_key_id_delete_serialize( - id=id, + _param = self._create_setup_payments_setup_checkout_post_serialize( + create_setup_checkout_request=create_setup_checkout_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -2714,7 +2674,7 @@ def delete_api_key_credentials_api_key_id_delete_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "object", + '200': "CreateCheckoutSessionResponse", '422': "HTTPValidationError", } response_data = self.api_client.call_api( @@ -2729,9 +2689,9 @@ def delete_api_key_credentials_api_key_id_delete_with_http_info( @validate_call - def delete_api_key_credentials_api_key_id_delete_without_preload_content( + def create_setup_payments_setup_checkout_post_without_preload_content( self, - id: StrictStr, + create_setup_checkout_request: CreateSetupCheckoutRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -2745,11 +2705,11 @@ def delete_api_key_credentials_api_key_id_delete_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """Delete Api Key + """Create Setup - :param id: (required) - :type id: str + :param create_setup_checkout_request: (required) + :type create_setup_checkout_request: CreateSetupCheckoutRequest :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 @@ -2772,8 +2732,8 @@ def delete_api_key_credentials_api_key_id_delete_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._delete_api_key_credentials_api_key_id_delete_serialize( - id=id, + _param = self._create_setup_payments_setup_checkout_post_serialize( + create_setup_checkout_request=create_setup_checkout_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -2781,7 +2741,7 @@ def delete_api_key_credentials_api_key_id_delete_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "object", + '200': "CreateCheckoutSessionResponse", '422': "HTTPValidationError", } response_data = self.api_client.call_api( @@ -2791,9 +2751,9 @@ def delete_api_key_credentials_api_key_id_delete_without_preload_content( return response_data.response - def _delete_api_key_credentials_api_key_id_delete_serialize( + def _create_setup_payments_setup_checkout_post_serialize( self, - id, + create_setup_checkout_request, _request_auth, _content_type, _headers, @@ -2815,12 +2775,12 @@ def _delete_api_key_credentials_api_key_id_delete_serialize( _body_params: Optional[bytes] = None # process the path parameters - if id is not None: - _path_params['id'] = id # process the query parameters # process the header parameters # process the form parameters # process the body parameter + if create_setup_checkout_request is not None: + _body_params = create_setup_checkout_request # set the HTTP header `Accept` @@ -2831,6 +2791,19 @@ def _delete_api_key_credentials_api_key_id_delete_serialize( ] ) + # 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] = [ @@ -2838,8 +2811,8 @@ def _delete_api_key_credentials_api_key_id_delete_serialize( ] return self.api_client.param_serialize( - method='DELETE', - resource_path='/credentials/api-key/{id}', + method='POST', + resource_path='/payments/setup_checkout', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -2856,8 +2829,12 @@ def _delete_api_key_credentials_api_key_id_delete_serialize( @validate_call - def delete_autocharge_preferences_autocharge_preferences_delete( + def create_support_ticket_support_post( self, + message: StrictStr, + category: TicketCategory, + priority: TicketPriority, + upload_file: Optional[Union[StrictBytes, StrictStr, Tuple[StrictStr, StrictBytes]]] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -2871,9 +2848,17 @@ def delete_autocharge_preferences_autocharge_preferences_delete( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> object: - """Delete Autocharge Preferences + """Create Support Ticket + :param message: (required) + :type message: str + :param category: (required) + :type category: TicketCategory + :param priority: (required) + :type priority: TicketPriority + :param upload_file: + :type upload_file: bytearray :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 @@ -2896,7 +2881,11 @@ def delete_autocharge_preferences_autocharge_preferences_delete( :return: Returns the result object. """ # noqa: E501 - _param = self._delete_autocharge_preferences_autocharge_preferences_delete_serialize( + _param = self._create_support_ticket_support_post_serialize( + message=message, + category=category, + priority=priority, + upload_file=upload_file, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -2905,6 +2894,7 @@ def delete_autocharge_preferences_autocharge_preferences_delete( _response_types_map: Dict[str, Optional[str]] = { '200': "object", + '422': "HTTPValidationError", } response_data = self.api_client.call_api( *_param, @@ -2918,8 +2908,12 @@ def delete_autocharge_preferences_autocharge_preferences_delete( @validate_call - def delete_autocharge_preferences_autocharge_preferences_delete_with_http_info( + def create_support_ticket_support_post_with_http_info( self, + message: StrictStr, + category: TicketCategory, + priority: TicketPriority, + upload_file: Optional[Union[StrictBytes, StrictStr, Tuple[StrictStr, StrictBytes]]] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -2933,9 +2927,17 @@ def delete_autocharge_preferences_autocharge_preferences_delete_with_http_info( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[object]: - """Delete Autocharge Preferences + """Create Support Ticket + :param message: (required) + :type message: str + :param category: (required) + :type category: TicketCategory + :param priority: (required) + :type priority: TicketPriority + :param upload_file: + :type upload_file: bytearray :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 @@ -2958,7 +2960,11 @@ def delete_autocharge_preferences_autocharge_preferences_delete_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._delete_autocharge_preferences_autocharge_preferences_delete_serialize( + _param = self._create_support_ticket_support_post_serialize( + message=message, + category=category, + priority=priority, + upload_file=upload_file, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -2967,6 +2973,7 @@ def delete_autocharge_preferences_autocharge_preferences_delete_with_http_info( _response_types_map: Dict[str, Optional[str]] = { '200': "object", + '422': "HTTPValidationError", } response_data = self.api_client.call_api( *_param, @@ -2980,8 +2987,12 @@ def delete_autocharge_preferences_autocharge_preferences_delete_with_http_info( @validate_call - def delete_autocharge_preferences_autocharge_preferences_delete_without_preload_content( + def create_support_ticket_support_post_without_preload_content( self, + message: StrictStr, + category: TicketCategory, + priority: TicketPriority, + upload_file: Optional[Union[StrictBytes, StrictStr, Tuple[StrictStr, StrictBytes]]] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -2995,9 +3006,17 @@ def delete_autocharge_preferences_autocharge_preferences_delete_without_preload_ _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """Delete Autocharge Preferences + """Create Support Ticket + :param message: (required) + :type message: str + :param category: (required) + :type category: TicketCategory + :param priority: (required) + :type priority: TicketPriority + :param upload_file: + :type upload_file: bytearray :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 @@ -3020,7 +3039,11 @@ def delete_autocharge_preferences_autocharge_preferences_delete_without_preload_ :return: Returns the result object. """ # noqa: E501 - _param = self._delete_autocharge_preferences_autocharge_preferences_delete_serialize( + _param = self._create_support_ticket_support_post_serialize( + message=message, + category=category, + priority=priority, + upload_file=upload_file, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -3029,6 +3052,7 @@ def delete_autocharge_preferences_autocharge_preferences_delete_without_preload_ _response_types_map: Dict[str, Optional[str]] = { '200': "object", + '422': "HTTPValidationError", } response_data = self.api_client.call_api( *_param, @@ -3037,8 +3061,12 @@ def delete_autocharge_preferences_autocharge_preferences_delete_without_preload_ return response_data.response - def _delete_autocharge_preferences_autocharge_preferences_delete_serialize( + def _create_support_ticket_support_post_serialize( self, + message, + category, + priority, + upload_file, _request_auth, _content_type, _headers, @@ -3063,6 +3091,14 @@ def _delete_autocharge_preferences_autocharge_preferences_delete_serialize( # process the query parameters # process the header parameters # process the form parameters + if message is not None: + _form_params.append(('message', message)) + if category is not None: + _form_params.append(('category', category)) + if priority is not None: + _form_params.append(('priority', priority)) + if upload_file is not None: + _files['upload_file'] = upload_file # process the body parameter @@ -3074,6 +3110,19 @@ def _delete_autocharge_preferences_autocharge_preferences_delete_serialize( ] ) + # 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( + [ + 'multipart/form-data' + ] + ) + ) + if _default_content_type is not None: + _header_params['Content-Type'] = _default_content_type # authentication setting _auth_settings: List[str] = [ @@ -3081,8 +3130,8 @@ def _delete_autocharge_preferences_autocharge_preferences_delete_serialize( ] return self.api_client.param_serialize( - method='DELETE', - resource_path='/autocharge/preferences', + method='POST', + resource_path='/support', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -3099,8 +3148,9 @@ def _delete_autocharge_preferences_autocharge_preferences_delete_serialize( @validate_call - def delete_payment_method_payments_methods_delete( + def delete_api_key_credentials_api_key_id_delete( self, + id: StrictStr, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -3114,9 +3164,11 @@ def delete_payment_method_payments_methods_delete( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> object: - """Delete Payment Method + """Delete Api Key + :param id: (required) + :type 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 @@ -3139,7 +3191,8 @@ def delete_payment_method_payments_methods_delete( :return: Returns the result object. """ # noqa: E501 - _param = self._delete_payment_method_payments_methods_delete_serialize( + _param = self._delete_api_key_credentials_api_key_id_delete_serialize( + id=id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -3148,6 +3201,7 @@ def delete_payment_method_payments_methods_delete( _response_types_map: Dict[str, Optional[str]] = { '200': "object", + '422': "HTTPValidationError", } response_data = self.api_client.call_api( *_param, @@ -3161,8 +3215,9 @@ def delete_payment_method_payments_methods_delete( @validate_call - def delete_payment_method_payments_methods_delete_with_http_info( + def delete_api_key_credentials_api_key_id_delete_with_http_info( self, + id: StrictStr, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -3176,9 +3231,11 @@ def delete_payment_method_payments_methods_delete_with_http_info( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[object]: - """Delete Payment Method + """Delete Api Key + :param id: (required) + :type 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 @@ -3201,7 +3258,8 @@ def delete_payment_method_payments_methods_delete_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._delete_payment_method_payments_methods_delete_serialize( + _param = self._delete_api_key_credentials_api_key_id_delete_serialize( + id=id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -3210,6 +3268,7 @@ def delete_payment_method_payments_methods_delete_with_http_info( _response_types_map: Dict[str, Optional[str]] = { '200': "object", + '422': "HTTPValidationError", } response_data = self.api_client.call_api( *_param, @@ -3223,8 +3282,9 @@ def delete_payment_method_payments_methods_delete_with_http_info( @validate_call - def delete_payment_method_payments_methods_delete_without_preload_content( + def delete_api_key_credentials_api_key_id_delete_without_preload_content( self, + id: StrictStr, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -3238,9 +3298,11 @@ def delete_payment_method_payments_methods_delete_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """Delete Payment Method + """Delete Api Key + :param id: (required) + :type 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 @@ -3263,7 +3325,8 @@ def delete_payment_method_payments_methods_delete_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._delete_payment_method_payments_methods_delete_serialize( + _param = self._delete_api_key_credentials_api_key_id_delete_serialize( + id=id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -3272,6 +3335,7 @@ def delete_payment_method_payments_methods_delete_without_preload_content( _response_types_map: Dict[str, Optional[str]] = { '200': "object", + '422': "HTTPValidationError", } response_data = self.api_client.call_api( *_param, @@ -3280,8 +3344,9 @@ def delete_payment_method_payments_methods_delete_without_preload_content( return response_data.response - def _delete_payment_method_payments_methods_delete_serialize( + def _delete_api_key_credentials_api_key_id_delete_serialize( self, + id, _request_auth, _content_type, _headers, @@ -3303,6 +3368,8 @@ def _delete_payment_method_payments_methods_delete_serialize( _body_params: Optional[bytes] = None # process the path parameters + if id is not None: + _path_params['id'] = id # process the query parameters # process the header parameters # process the form parameters @@ -3325,7 +3392,7 @@ def _delete_payment_method_payments_methods_delete_serialize( return self.api_client.param_serialize( method='DELETE', - resource_path='/payments/methods', + resource_path='/credentials/api-key/{id}', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -3342,9 +3409,8 @@ def _delete_payment_method_payments_methods_delete_serialize( @validate_call - def delete_user_vault_item_endpoint_user_vault_delete( + def delete_autocharge_preferences_autocharge_preferences_delete( self, - user_vault_item: UserVaultItem, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -3358,12 +3424,9 @@ def delete_user_vault_item_endpoint_user_vault_delete( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> object: - """Delete User Vault Item Endpoint + """Delete Autocharge Preferences - Delete an item of a specific type for the user. - :param user_vault_item: (required) - :type user_vault_item: UserVaultItem :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 @@ -3386,8 +3449,7 @@ def delete_user_vault_item_endpoint_user_vault_delete( :return: Returns the result object. """ # noqa: E501 - _param = self._delete_user_vault_item_endpoint_user_vault_delete_serialize( - user_vault_item=user_vault_item, + _param = self._delete_autocharge_preferences_autocharge_preferences_delete_serialize( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -3396,7 +3458,6 @@ def delete_user_vault_item_endpoint_user_vault_delete( _response_types_map: Dict[str, Optional[str]] = { '200': "object", - '422': "HTTPValidationError", } response_data = self.api_client.call_api( *_param, @@ -3410,9 +3471,8 @@ def delete_user_vault_item_endpoint_user_vault_delete( @validate_call - def delete_user_vault_item_endpoint_user_vault_delete_with_http_info( + def delete_autocharge_preferences_autocharge_preferences_delete_with_http_info( self, - user_vault_item: UserVaultItem, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -3426,12 +3486,9 @@ def delete_user_vault_item_endpoint_user_vault_delete_with_http_info( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[object]: - """Delete User Vault Item Endpoint + """Delete Autocharge Preferences - Delete an item of a specific type for the user. - :param user_vault_item: (required) - :type user_vault_item: UserVaultItem :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 @@ -3454,8 +3511,7 @@ def delete_user_vault_item_endpoint_user_vault_delete_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._delete_user_vault_item_endpoint_user_vault_delete_serialize( - user_vault_item=user_vault_item, + _param = self._delete_autocharge_preferences_autocharge_preferences_delete_serialize( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -3464,7 +3520,6 @@ def delete_user_vault_item_endpoint_user_vault_delete_with_http_info( _response_types_map: Dict[str, Optional[str]] = { '200': "object", - '422': "HTTPValidationError", } response_data = self.api_client.call_api( *_param, @@ -3478,9 +3533,8 @@ def delete_user_vault_item_endpoint_user_vault_delete_with_http_info( @validate_call - def delete_user_vault_item_endpoint_user_vault_delete_without_preload_content( + def delete_autocharge_preferences_autocharge_preferences_delete_without_preload_content( self, - user_vault_item: UserVaultItem, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -3494,12 +3548,9 @@ def delete_user_vault_item_endpoint_user_vault_delete_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """Delete User Vault Item Endpoint + """Delete Autocharge Preferences - Delete an item of a specific type for the user. - :param user_vault_item: (required) - :type user_vault_item: UserVaultItem :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 @@ -3522,8 +3573,7 @@ def delete_user_vault_item_endpoint_user_vault_delete_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._delete_user_vault_item_endpoint_user_vault_delete_serialize( - user_vault_item=user_vault_item, + _param = self._delete_autocharge_preferences_autocharge_preferences_delete_serialize( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -3532,7 +3582,6 @@ def delete_user_vault_item_endpoint_user_vault_delete_without_preload_content( _response_types_map: Dict[str, Optional[str]] = { '200': "object", - '422': "HTTPValidationError", } response_data = self.api_client.call_api( *_param, @@ -3541,9 +3590,8 @@ def delete_user_vault_item_endpoint_user_vault_delete_without_preload_content( return response_data.response - def _delete_user_vault_item_endpoint_user_vault_delete_serialize( + def _delete_autocharge_preferences_autocharge_preferences_delete_serialize( self, - user_vault_item, _request_auth, _content_type, _headers, @@ -3569,8 +3617,6 @@ def _delete_user_vault_item_endpoint_user_vault_delete_serialize( # process the header parameters # process the form parameters # process the body parameter - if user_vault_item is not None: - _body_params = user_vault_item # set the HTTP header `Accept` @@ -3581,19 +3627,6 @@ def _delete_user_vault_item_endpoint_user_vault_delete_serialize( ] ) - # 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] = [ @@ -3602,7 +3635,7 @@ def _delete_user_vault_item_endpoint_user_vault_delete_serialize( return self.api_client.param_serialize( method='DELETE', - resource_path='/user_vault', + resource_path='/autocharge/preferences', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -3619,9 +3652,8 @@ def _delete_user_vault_item_endpoint_user_vault_delete_serialize( @validate_call - def download_url_file_url_download_post( + def delete_payment_method_payments_methods_delete( self, - create_url_request: CreateUrlRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -3634,12 +3666,10 @@ def download_url_file_url_download_post( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> CreateUrlResponse: - """Download Url + ) -> object: + """Delete Payment Method - :param create_url_request: (required) - :type create_url_request: CreateUrlRequest :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 @@ -3662,8 +3692,7 @@ def download_url_file_url_download_post( :return: Returns the result object. """ # noqa: E501 - _param = self._download_url_file_url_download_post_serialize( - create_url_request=create_url_request, + _param = self._delete_payment_method_payments_methods_delete_serialize( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -3671,8 +3700,7 @@ def download_url_file_url_download_post( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "CreateUrlResponse", - '422': "HTTPValidationError", + '200': "object", } response_data = self.api_client.call_api( *_param, @@ -3686,9 +3714,8 @@ def download_url_file_url_download_post( @validate_call - def download_url_file_url_download_post_with_http_info( + def delete_payment_method_payments_methods_delete_with_http_info( self, - create_url_request: CreateUrlRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -3701,12 +3728,10 @@ def download_url_file_url_download_post_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[CreateUrlResponse]: - """Download Url + ) -> ApiResponse[object]: + """Delete Payment Method - :param create_url_request: (required) - :type create_url_request: CreateUrlRequest :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 @@ -3729,8 +3754,7 @@ def download_url_file_url_download_post_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._download_url_file_url_download_post_serialize( - create_url_request=create_url_request, + _param = self._delete_payment_method_payments_methods_delete_serialize( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -3738,8 +3762,7 @@ def download_url_file_url_download_post_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "CreateUrlResponse", - '422': "HTTPValidationError", + '200': "object", } response_data = self.api_client.call_api( *_param, @@ -3753,9 +3776,8 @@ def download_url_file_url_download_post_with_http_info( @validate_call - def download_url_file_url_download_post_without_preload_content( + def delete_payment_method_payments_methods_delete_without_preload_content( self, - create_url_request: CreateUrlRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -3769,11 +3791,9 @@ def download_url_file_url_download_post_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """Download Url + """Delete Payment Method - :param create_url_request: (required) - :type create_url_request: CreateUrlRequest :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 @@ -3796,8 +3816,7 @@ def download_url_file_url_download_post_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._download_url_file_url_download_post_serialize( - create_url_request=create_url_request, + _param = self._delete_payment_method_payments_methods_delete_serialize( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -3805,8 +3824,7 @@ def download_url_file_url_download_post_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "CreateUrlResponse", - '422': "HTTPValidationError", + '200': "object", } response_data = self.api_client.call_api( *_param, @@ -3815,9 +3833,8 @@ def download_url_file_url_download_post_without_preload_content( return response_data.response - def _download_url_file_url_download_post_serialize( + def _delete_payment_method_payments_methods_delete_serialize( self, - create_url_request, _request_auth, _content_type, _headers, @@ -3843,8 +3860,6 @@ def _download_url_file_url_download_post_serialize( # process the header parameters # process the form parameters # process the body parameter - if create_url_request is not None: - _body_params = create_url_request # set the HTTP header `Accept` @@ -3855,19 +3870,6 @@ def _download_url_file_url_download_post_serialize( ] ) - # 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] = [ @@ -3875,8 +3877,8 @@ def _download_url_file_url_download_post_serialize( ] return self.api_client.param_serialize( - method='POST', - resource_path='/file_url/download', + method='DELETE', + resource_path='/payments/methods', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -3893,10 +3895,9 @@ def _download_url_file_url_download_post_serialize( @validate_call - def get_all_user_vault_items_endpoint_user_vault_get( + def delete_user_vault_item_endpoint_user_vault_delete( self, - type: Optional[UserVaultType] = None, - search_query: Optional[StrictStr] = None, + user_vault_item: UserVaultItem, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -3909,15 +3910,13 @@ def get_all_user_vault_items_endpoint_user_vault_get( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ListUserVaultItemsResponse: - """Get All User Vault Items Endpoint + ) -> object: + """Delete User Vault Item Endpoint - Retrieve all items of a specific type for the user. + Delete an item of a specific type for the user. - :param type: - :type type: UserVaultType - :param search_query: - :type search_query: str + :param user_vault_item: (required) + :type user_vault_item: UserVaultItem :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 @@ -3940,9 +3939,8 @@ def get_all_user_vault_items_endpoint_user_vault_get( :return: Returns the result object. """ # noqa: E501 - _param = self._get_all_user_vault_items_endpoint_user_vault_get_serialize( - type=type, - search_query=search_query, + _param = self._delete_user_vault_item_endpoint_user_vault_delete_serialize( + user_vault_item=user_vault_item, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -3950,7 +3948,7 @@ def get_all_user_vault_items_endpoint_user_vault_get( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "ListUserVaultItemsResponse", + '200': "object", '422': "HTTPValidationError", } response_data = self.api_client.call_api( @@ -3965,10 +3963,9 @@ def get_all_user_vault_items_endpoint_user_vault_get( @validate_call - def get_all_user_vault_items_endpoint_user_vault_get_with_http_info( + def delete_user_vault_item_endpoint_user_vault_delete_with_http_info( self, - type: Optional[UserVaultType] = None, - search_query: Optional[StrictStr] = None, + user_vault_item: UserVaultItem, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -3981,15 +3978,13 @@ def get_all_user_vault_items_endpoint_user_vault_get_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[ListUserVaultItemsResponse]: - """Get All User Vault Items Endpoint + ) -> ApiResponse[object]: + """Delete User Vault Item Endpoint - Retrieve all items of a specific type for the user. + Delete an item of a specific type for the user. - :param type: - :type type: UserVaultType - :param search_query: - :type search_query: str + :param user_vault_item: (required) + :type user_vault_item: UserVaultItem :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 @@ -4012,9 +4007,8 @@ def get_all_user_vault_items_endpoint_user_vault_get_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._get_all_user_vault_items_endpoint_user_vault_get_serialize( - type=type, - search_query=search_query, + _param = self._delete_user_vault_item_endpoint_user_vault_delete_serialize( + user_vault_item=user_vault_item, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -4022,7 +4016,7 @@ def get_all_user_vault_items_endpoint_user_vault_get_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "ListUserVaultItemsResponse", + '200': "object", '422': "HTTPValidationError", } response_data = self.api_client.call_api( @@ -4037,10 +4031,9 @@ def get_all_user_vault_items_endpoint_user_vault_get_with_http_info( @validate_call - def get_all_user_vault_items_endpoint_user_vault_get_without_preload_content( + def delete_user_vault_item_endpoint_user_vault_delete_without_preload_content( self, - type: Optional[UserVaultType] = None, - search_query: Optional[StrictStr] = None, + user_vault_item: UserVaultItem, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -4054,14 +4047,12 @@ def get_all_user_vault_items_endpoint_user_vault_get_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """Get All User Vault Items Endpoint + """Delete User Vault Item Endpoint - Retrieve all items of a specific type for the user. + Delete an item of a specific type for the user. - :param type: - :type type: UserVaultType - :param search_query: - :type search_query: str + :param user_vault_item: (required) + :type user_vault_item: UserVaultItem :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 @@ -4084,9 +4075,8 @@ def get_all_user_vault_items_endpoint_user_vault_get_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._get_all_user_vault_items_endpoint_user_vault_get_serialize( - type=type, - search_query=search_query, + _param = self._delete_user_vault_item_endpoint_user_vault_delete_serialize( + user_vault_item=user_vault_item, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -4094,7 +4084,7 @@ def get_all_user_vault_items_endpoint_user_vault_get_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "ListUserVaultItemsResponse", + '200': "object", '422': "HTTPValidationError", } response_data = self.api_client.call_api( @@ -4104,10 +4094,9 @@ def get_all_user_vault_items_endpoint_user_vault_get_without_preload_content( return response_data.response - def _get_all_user_vault_items_endpoint_user_vault_get_serialize( + def _delete_user_vault_item_endpoint_user_vault_delete_serialize( self, - type, - search_query, + user_vault_item, _request_auth, _content_type, _headers, @@ -4130,17 +4119,11 @@ def _get_all_user_vault_items_endpoint_user_vault_get_serialize( # process the path parameters # process the query parameters - if type is not None: - - _query_params.append(('type', type.value)) - - if search_query is not None: - - _query_params.append(('search_query', search_query)) - # process the header parameters # process the form parameters # process the body parameter + if user_vault_item is not None: + _body_params = user_vault_item # set the HTTP header `Accept` @@ -4151,6 +4134,19 @@ def _get_all_user_vault_items_endpoint_user_vault_get_serialize( ] ) + # 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] = [ @@ -4158,7 +4154,7 @@ def _get_all_user_vault_items_endpoint_user_vault_get_serialize( ] return self.api_client.param_serialize( - method='GET', + method='DELETE', resource_path='/user_vault', path_params=_path_params, query_params=_query_params, @@ -4176,8 +4172,9 @@ def _get_all_user_vault_items_endpoint_user_vault_get_serialize( @validate_call - def get_api_keys_credentials_api_key_get( + def download_url_file_url_download_post( self, + create_url_request: CreateUrlRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -4190,10 +4187,12 @@ def get_api_keys_credentials_api_key_get( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ListAPIKeyResponse: - """Get Api Keys + ) -> CreateUrlResponse: + """Download Url + :param create_url_request: (required) + :type create_url_request: CreateUrlRequest :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 @@ -4216,7 +4215,8 @@ def get_api_keys_credentials_api_key_get( :return: Returns the result object. """ # noqa: E501 - _param = self._get_api_keys_credentials_api_key_get_serialize( + _param = self._download_url_file_url_download_post_serialize( + create_url_request=create_url_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -4224,7 +4224,8 @@ def get_api_keys_credentials_api_key_get( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "ListAPIKeyResponse", + '200': "CreateUrlResponse", + '422': "HTTPValidationError", } response_data = self.api_client.call_api( *_param, @@ -4238,8 +4239,9 @@ def get_api_keys_credentials_api_key_get( @validate_call - def get_api_keys_credentials_api_key_get_with_http_info( + def download_url_file_url_download_post_with_http_info( self, + create_url_request: CreateUrlRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -4252,10 +4254,12 @@ def get_api_keys_credentials_api_key_get_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[ListAPIKeyResponse]: - """Get Api Keys + ) -> ApiResponse[CreateUrlResponse]: + """Download Url + :param create_url_request: (required) + :type create_url_request: CreateUrlRequest :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 @@ -4278,7 +4282,8 @@ def get_api_keys_credentials_api_key_get_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._get_api_keys_credentials_api_key_get_serialize( + _param = self._download_url_file_url_download_post_serialize( + create_url_request=create_url_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -4286,7 +4291,8 @@ def get_api_keys_credentials_api_key_get_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "ListAPIKeyResponse", + '200': "CreateUrlResponse", + '422': "HTTPValidationError", } response_data = self.api_client.call_api( *_param, @@ -4300,8 +4306,9 @@ def get_api_keys_credentials_api_key_get_with_http_info( @validate_call - def get_api_keys_credentials_api_key_get_without_preload_content( + def download_url_file_url_download_post_without_preload_content( self, + create_url_request: CreateUrlRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -4315,9 +4322,11 @@ def get_api_keys_credentials_api_key_get_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """Get Api Keys + """Download Url + :param create_url_request: (required) + :type create_url_request: CreateUrlRequest :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 @@ -4340,7 +4349,8 @@ def get_api_keys_credentials_api_key_get_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._get_api_keys_credentials_api_key_get_serialize( + _param = self._download_url_file_url_download_post_serialize( + create_url_request=create_url_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -4348,7 +4358,8 @@ def get_api_keys_credentials_api_key_get_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "ListAPIKeyResponse", + '200': "CreateUrlResponse", + '422': "HTTPValidationError", } response_data = self.api_client.call_api( *_param, @@ -4357,8 +4368,9 @@ def get_api_keys_credentials_api_key_get_without_preload_content( return response_data.response - def _get_api_keys_credentials_api_key_get_serialize( + def _download_url_file_url_download_post_serialize( self, + create_url_request, _request_auth, _content_type, _headers, @@ -4384,6 +4396,8 @@ def _get_api_keys_credentials_api_key_get_serialize( # process the header parameters # process the form parameters # process the body parameter + if create_url_request is not None: + _body_params = create_url_request # set the HTTP header `Accept` @@ -4394,6 +4408,19 @@ def _get_api_keys_credentials_api_key_get_serialize( ] ) + # 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] = [ @@ -4401,8 +4428,8 @@ def _get_api_keys_credentials_api_key_get_serialize( ] return self.api_client.param_serialize( - method='GET', - resource_path='/credentials/api-key', + method='POST', + resource_path='/file_url/download', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -4419,8 +4446,10 @@ def _get_api_keys_credentials_api_key_get_serialize( @validate_call - def get_autocharge_preferences_autocharge_preferences_get( + def get_all_user_vault_items_endpoint_user_vault_get( self, + type: Optional[UserVaultType] = None, + search_query: Optional[StrictStr] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -4433,10 +4462,15 @@ def get_autocharge_preferences_autocharge_preferences_get( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> GetAutochargePreferencesResponse: - """Get Autocharge Preferences + ) -> ListUserVaultItemsResponse: + """Get All User Vault Items Endpoint + Retrieve all items of a specific type for the user. + :param type: + :type type: UserVaultType + :param search_query: + :type search_query: 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 @@ -4459,7 +4493,9 @@ def get_autocharge_preferences_autocharge_preferences_get( :return: Returns the result object. """ # noqa: E501 - _param = self._get_autocharge_preferences_autocharge_preferences_get_serialize( + _param = self._get_all_user_vault_items_endpoint_user_vault_get_serialize( + type=type, + search_query=search_query, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -4467,7 +4503,8 @@ def get_autocharge_preferences_autocharge_preferences_get( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "GetAutochargePreferencesResponse", + '200': "ListUserVaultItemsResponse", + '422': "HTTPValidationError", } response_data = self.api_client.call_api( *_param, @@ -4481,8 +4518,10 @@ def get_autocharge_preferences_autocharge_preferences_get( @validate_call - def get_autocharge_preferences_autocharge_preferences_get_with_http_info( + def get_all_user_vault_items_endpoint_user_vault_get_with_http_info( self, + type: Optional[UserVaultType] = None, + search_query: Optional[StrictStr] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -4495,10 +4534,15 @@ def get_autocharge_preferences_autocharge_preferences_get_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[GetAutochargePreferencesResponse]: - """Get Autocharge Preferences + ) -> ApiResponse[ListUserVaultItemsResponse]: + """Get All User Vault Items Endpoint + Retrieve all items of a specific type for the user. + :param type: + :type type: UserVaultType + :param search_query: + :type search_query: 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 @@ -4521,7 +4565,9 @@ def get_autocharge_preferences_autocharge_preferences_get_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._get_autocharge_preferences_autocharge_preferences_get_serialize( + _param = self._get_all_user_vault_items_endpoint_user_vault_get_serialize( + type=type, + search_query=search_query, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -4529,7 +4575,8 @@ def get_autocharge_preferences_autocharge_preferences_get_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "GetAutochargePreferencesResponse", + '200': "ListUserVaultItemsResponse", + '422': "HTTPValidationError", } response_data = self.api_client.call_api( *_param, @@ -4543,8 +4590,10 @@ def get_autocharge_preferences_autocharge_preferences_get_with_http_info( @validate_call - def get_autocharge_preferences_autocharge_preferences_get_without_preload_content( + def get_all_user_vault_items_endpoint_user_vault_get_without_preload_content( self, + type: Optional[UserVaultType] = None, + search_query: Optional[StrictStr] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -4558,9 +4607,14 @@ def get_autocharge_preferences_autocharge_preferences_get_without_preload_conten _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """Get Autocharge Preferences + """Get All User Vault Items Endpoint + Retrieve all items of a specific type for the user. + :param type: + :type type: UserVaultType + :param search_query: + :type search_query: 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 @@ -4583,7 +4637,9 @@ def get_autocharge_preferences_autocharge_preferences_get_without_preload_conten :return: Returns the result object. """ # noqa: E501 - _param = self._get_autocharge_preferences_autocharge_preferences_get_serialize( + _param = self._get_all_user_vault_items_endpoint_user_vault_get_serialize( + type=type, + search_query=search_query, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -4591,7 +4647,8 @@ def get_autocharge_preferences_autocharge_preferences_get_without_preload_conten ) _response_types_map: Dict[str, Optional[str]] = { - '200': "GetAutochargePreferencesResponse", + '200': "ListUserVaultItemsResponse", + '422': "HTTPValidationError", } response_data = self.api_client.call_api( *_param, @@ -4600,8 +4657,10 @@ def get_autocharge_preferences_autocharge_preferences_get_without_preload_conten return response_data.response - def _get_autocharge_preferences_autocharge_preferences_get_serialize( + def _get_all_user_vault_items_endpoint_user_vault_get_serialize( self, + type, + search_query, _request_auth, _content_type, _headers, @@ -4624,6 +4683,14 @@ def _get_autocharge_preferences_autocharge_preferences_get_serialize( # process the path parameters # process the query parameters + if type is not None: + + _query_params.append(('type', type.value)) + + if search_query is not None: + + _query_params.append(('search_query', search_query)) + # process the header parameters # process the form parameters # process the body parameter @@ -4645,7 +4712,7 @@ def _get_autocharge_preferences_autocharge_preferences_get_serialize( return self.api_client.param_serialize( method='GET', - resource_path='/autocharge/preferences', + resource_path='/user_vault', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -4662,7 +4729,7 @@ def _get_autocharge_preferences_autocharge_preferences_get_serialize( @validate_call - def get_clusters_clusters_get( + def get_api_keys_credentials_api_key_get( self, _request_timeout: Union[ None, @@ -4676,8 +4743,8 @@ def get_clusters_clusters_get( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ListGetClusterResponse: - """Get Clusters + ) -> ListAPIKeyResponse: + """Get Api Keys :param _request_timeout: timeout setting for this request. If one @@ -4702,7 +4769,7 @@ def get_clusters_clusters_get( :return: Returns the result object. """ # noqa: E501 - _param = self._get_clusters_clusters_get_serialize( + _param = self._get_api_keys_credentials_api_key_get_serialize( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -4710,7 +4777,7 @@ def get_clusters_clusters_get( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "ListGetClusterResponse", + '200': "ListAPIKeyResponse", } response_data = self.api_client.call_api( *_param, @@ -4724,7 +4791,7 @@ def get_clusters_clusters_get( @validate_call - def get_clusters_clusters_get_with_http_info( + def get_api_keys_credentials_api_key_get_with_http_info( self, _request_timeout: Union[ None, @@ -4738,8 +4805,8 @@ def get_clusters_clusters_get_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[ListGetClusterResponse]: - """Get Clusters + ) -> ApiResponse[ListAPIKeyResponse]: + """Get Api Keys :param _request_timeout: timeout setting for this request. If one @@ -4764,7 +4831,7 @@ def get_clusters_clusters_get_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._get_clusters_clusters_get_serialize( + _param = self._get_api_keys_credentials_api_key_get_serialize( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -4772,7 +4839,7 @@ def get_clusters_clusters_get_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "ListGetClusterResponse", + '200': "ListAPIKeyResponse", } response_data = self.api_client.call_api( *_param, @@ -4786,7 +4853,7 @@ def get_clusters_clusters_get_with_http_info( @validate_call - def get_clusters_clusters_get_without_preload_content( + def get_api_keys_credentials_api_key_get_without_preload_content( self, _request_timeout: Union[ None, @@ -4801,7 +4868,7 @@ def get_clusters_clusters_get_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """Get Clusters + """Get Api Keys :param _request_timeout: timeout setting for this request. If one @@ -4826,7 +4893,7 @@ def get_clusters_clusters_get_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._get_clusters_clusters_get_serialize( + _param = self._get_api_keys_credentials_api_key_get_serialize( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -4834,7 +4901,7 @@ def get_clusters_clusters_get_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "ListGetClusterResponse", + '200': "ListAPIKeyResponse", } response_data = self.api_client.call_api( *_param, @@ -4843,7 +4910,7 @@ def get_clusters_clusters_get_without_preload_content( return response_data.response - def _get_clusters_clusters_get_serialize( + def _get_api_keys_credentials_api_key_get_serialize( self, _request_auth, _content_type, @@ -4888,7 +4955,7 @@ def _get_clusters_clusters_get_serialize( return self.api_client.param_serialize( method='GET', - resource_path='/clusters', + resource_path='/credentials/api-key', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -4905,9 +4972,8 @@ def _get_clusters_clusters_get_serialize( @validate_call - def get_compute_deployment_deployments_compute_deployment_id_get( + def get_autocharge_preferences_autocharge_preferences_get( self, - deployment_id: StrictInt, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -4920,12 +4986,10 @@ def get_compute_deployment_deployments_compute_deployment_id_get( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> GetComputeDeploymentResponse: - """Get Compute Deployment + ) -> GetAutochargePreferencesResponse: + """Get Autocharge Preferences - :param deployment_id: (required) - :type deployment_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 @@ -4948,8 +5012,7 @@ def get_compute_deployment_deployments_compute_deployment_id_get( :return: Returns the result object. """ # noqa: E501 - _param = self._get_compute_deployment_deployments_compute_deployment_id_get_serialize( - deployment_id=deployment_id, + _param = self._get_autocharge_preferences_autocharge_preferences_get_serialize( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -4957,8 +5020,7 @@ def get_compute_deployment_deployments_compute_deployment_id_get( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "GetComputeDeploymentResponse", - '422': "HTTPValidationError", + '200': "GetAutochargePreferencesResponse", } response_data = self.api_client.call_api( *_param, @@ -4972,9 +5034,8 @@ def get_compute_deployment_deployments_compute_deployment_id_get( @validate_call - def get_compute_deployment_deployments_compute_deployment_id_get_with_http_info( + def get_autocharge_preferences_autocharge_preferences_get_with_http_info( self, - deployment_id: StrictInt, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -4987,12 +5048,10 @@ def get_compute_deployment_deployments_compute_deployment_id_get_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[GetComputeDeploymentResponse]: - """Get Compute Deployment + ) -> ApiResponse[GetAutochargePreferencesResponse]: + """Get Autocharge Preferences - :param deployment_id: (required) - :type deployment_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 @@ -5015,8 +5074,7 @@ def get_compute_deployment_deployments_compute_deployment_id_get_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._get_compute_deployment_deployments_compute_deployment_id_get_serialize( - deployment_id=deployment_id, + _param = self._get_autocharge_preferences_autocharge_preferences_get_serialize( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -5024,8 +5082,7 @@ def get_compute_deployment_deployments_compute_deployment_id_get_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "GetComputeDeploymentResponse", - '422': "HTTPValidationError", + '200': "GetAutochargePreferencesResponse", } response_data = self.api_client.call_api( *_param, @@ -5039,9 +5096,8 @@ def get_compute_deployment_deployments_compute_deployment_id_get_with_http_info( @validate_call - def get_compute_deployment_deployments_compute_deployment_id_get_without_preload_content( + def get_autocharge_preferences_autocharge_preferences_get_without_preload_content( self, - deployment_id: StrictInt, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -5055,11 +5111,9 @@ def get_compute_deployment_deployments_compute_deployment_id_get_without_preload _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """Get Compute Deployment + """Get Autocharge Preferences - :param deployment_id: (required) - :type deployment_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 @@ -5082,8 +5136,7 @@ def get_compute_deployment_deployments_compute_deployment_id_get_without_preload :return: Returns the result object. """ # noqa: E501 - _param = self._get_compute_deployment_deployments_compute_deployment_id_get_serialize( - deployment_id=deployment_id, + _param = self._get_autocharge_preferences_autocharge_preferences_get_serialize( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -5091,8 +5144,7 @@ def get_compute_deployment_deployments_compute_deployment_id_get_without_preload ) _response_types_map: Dict[str, Optional[str]] = { - '200': "GetComputeDeploymentResponse", - '422': "HTTPValidationError", + '200': "GetAutochargePreferencesResponse", } response_data = self.api_client.call_api( *_param, @@ -5101,9 +5153,8 @@ def get_compute_deployment_deployments_compute_deployment_id_get_without_preload return response_data.response - def _get_compute_deployment_deployments_compute_deployment_id_get_serialize( + def _get_autocharge_preferences_autocharge_preferences_get_serialize( self, - deployment_id, _request_auth, _content_type, _headers, @@ -5125,8 +5176,6 @@ def _get_compute_deployment_deployments_compute_deployment_id_get_serialize( _body_params: Optional[bytes] = None # process the path parameters - if deployment_id is not None: - _path_params['deployment_id'] = deployment_id # process the query parameters # process the header parameters # process the form parameters @@ -5149,7 +5198,7 @@ def _get_compute_deployment_deployments_compute_deployment_id_get_serialize( return self.api_client.param_serialize( method='GET', - resource_path='/deployments/compute/{deployment_id}', + resource_path='/autocharge/preferences', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -5166,7 +5215,7 @@ def _get_compute_deployment_deployments_compute_deployment_id_get_serialize( @validate_call - def get_credits_credits_get( + def get_clusters_clusters_get( self, _request_timeout: Union[ None, @@ -5180,8 +5229,8 @@ def get_credits_credits_get( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> CreditsResponse: - """Get Credits + ) -> ListGetClusterResponse: + """Get Clusters :param _request_timeout: timeout setting for this request. If one @@ -5206,7 +5255,7 @@ def get_credits_credits_get( :return: Returns the result object. """ # noqa: E501 - _param = self._get_credits_credits_get_serialize( + _param = self._get_clusters_clusters_get_serialize( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -5214,7 +5263,7 @@ def get_credits_credits_get( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "CreditsResponse", + '200': "ListGetClusterResponse", } response_data = self.api_client.call_api( *_param, @@ -5228,7 +5277,7 @@ def get_credits_credits_get( @validate_call - def get_credits_credits_get_with_http_info( + def get_clusters_clusters_get_with_http_info( self, _request_timeout: Union[ None, @@ -5242,8 +5291,8 @@ def get_credits_credits_get_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[CreditsResponse]: - """Get Credits + ) -> ApiResponse[ListGetClusterResponse]: + """Get Clusters :param _request_timeout: timeout setting for this request. If one @@ -5268,7 +5317,7 @@ def get_credits_credits_get_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._get_credits_credits_get_serialize( + _param = self._get_clusters_clusters_get_serialize( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -5276,7 +5325,7 @@ def get_credits_credits_get_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "CreditsResponse", + '200': "ListGetClusterResponse", } response_data = self.api_client.call_api( *_param, @@ -5290,7 +5339,7 @@ def get_credits_credits_get_with_http_info( @validate_call - def get_credits_credits_get_without_preload_content( + def get_clusters_clusters_get_without_preload_content( self, _request_timeout: Union[ None, @@ -5305,7 +5354,7 @@ def get_credits_credits_get_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """Get Credits + """Get Clusters :param _request_timeout: timeout setting for this request. If one @@ -5330,7 +5379,7 @@ def get_credits_credits_get_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._get_credits_credits_get_serialize( + _param = self._get_clusters_clusters_get_serialize( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -5338,7 +5387,7 @@ def get_credits_credits_get_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "CreditsResponse", + '200': "ListGetClusterResponse", } response_data = self.api_client.call_api( *_param, @@ -5347,7 +5396,7 @@ def get_credits_credits_get_without_preload_content( return response_data.response - def _get_credits_credits_get_serialize( + def _get_clusters_clusters_get_serialize( self, _request_auth, _content_type, @@ -5392,7 +5441,7 @@ def _get_credits_credits_get_serialize( return self.api_client.param_serialize( method='GET', - resource_path='/credits', + resource_path='/clusters', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -5409,10 +5458,9 @@ def _get_credits_credits_get_serialize( @validate_call - def get_cserve_recipe_deployments_cserve_recipes_get( + def get_compute_deployment_deployments_compute_deployment_id_get( self, - model: Optional[StrictStr] = None, - hf_token: Optional[StrictStr] = None, + deployment_id: StrictInt, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -5425,14 +5473,12 @@ def get_cserve_recipe_deployments_cserve_recipes_get( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ListCServeRecipeResponse: - """Get Cserve Recipe + ) -> GetComputeDeploymentResponse: + """Get Compute Deployment - :param model: - :type model: str - :param hf_token: - :type hf_token: str + :param deployment_id: (required) + :type deployment_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 @@ -5455,9 +5501,8 @@ def get_cserve_recipe_deployments_cserve_recipes_get( :return: Returns the result object. """ # noqa: E501 - _param = self._get_cserve_recipe_deployments_cserve_recipes_get_serialize( - model=model, - hf_token=hf_token, + _param = self._get_compute_deployment_deployments_compute_deployment_id_get_serialize( + deployment_id=deployment_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -5465,7 +5510,7 @@ def get_cserve_recipe_deployments_cserve_recipes_get( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "ListCServeRecipeResponse", + '200': "GetComputeDeploymentResponse", '422': "HTTPValidationError", } response_data = self.api_client.call_api( @@ -5480,10 +5525,9 @@ def get_cserve_recipe_deployments_cserve_recipes_get( @validate_call - def get_cserve_recipe_deployments_cserve_recipes_get_with_http_info( + def get_compute_deployment_deployments_compute_deployment_id_get_with_http_info( self, - model: Optional[StrictStr] = None, - hf_token: Optional[StrictStr] = None, + deployment_id: StrictInt, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -5496,14 +5540,12 @@ def get_cserve_recipe_deployments_cserve_recipes_get_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[ListCServeRecipeResponse]: - """Get Cserve Recipe + ) -> ApiResponse[GetComputeDeploymentResponse]: + """Get Compute Deployment - :param model: - :type model: str - :param hf_token: - :type hf_token: str + :param deployment_id: (required) + :type deployment_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 @@ -5526,9 +5568,8 @@ def get_cserve_recipe_deployments_cserve_recipes_get_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._get_cserve_recipe_deployments_cserve_recipes_get_serialize( - model=model, - hf_token=hf_token, + _param = self._get_compute_deployment_deployments_compute_deployment_id_get_serialize( + deployment_id=deployment_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -5536,7 +5577,7 @@ def get_cserve_recipe_deployments_cserve_recipes_get_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "ListCServeRecipeResponse", + '200': "GetComputeDeploymentResponse", '422': "HTTPValidationError", } response_data = self.api_client.call_api( @@ -5551,10 +5592,9 @@ def get_cserve_recipe_deployments_cserve_recipes_get_with_http_info( @validate_call - def get_cserve_recipe_deployments_cserve_recipes_get_without_preload_content( + def get_compute_deployment_deployments_compute_deployment_id_get_without_preload_content( self, - model: Optional[StrictStr] = None, - hf_token: Optional[StrictStr] = None, + deployment_id: StrictInt, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -5568,13 +5608,11 @@ def get_cserve_recipe_deployments_cserve_recipes_get_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """Get Cserve Recipe + """Get Compute Deployment - :param model: - :type model: str - :param hf_token: - :type hf_token: str + :param deployment_id: (required) + :type deployment_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 @@ -5597,9 +5635,8 @@ def get_cserve_recipe_deployments_cserve_recipes_get_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._get_cserve_recipe_deployments_cserve_recipes_get_serialize( - model=model, - hf_token=hf_token, + _param = self._get_compute_deployment_deployments_compute_deployment_id_get_serialize( + deployment_id=deployment_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -5607,7 +5644,7 @@ def get_cserve_recipe_deployments_cserve_recipes_get_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "ListCServeRecipeResponse", + '200': "GetComputeDeploymentResponse", '422': "HTTPValidationError", } response_data = self.api_client.call_api( @@ -5617,10 +5654,9 @@ def get_cserve_recipe_deployments_cserve_recipes_get_without_preload_content( return response_data.response - def _get_cserve_recipe_deployments_cserve_recipes_get_serialize( + def _get_compute_deployment_deployments_compute_deployment_id_get_serialize( self, - model, - hf_token, + deployment_id, _request_auth, _content_type, _headers, @@ -5642,15 +5678,9 @@ def _get_cserve_recipe_deployments_cserve_recipes_get_serialize( _body_params: Optional[bytes] = None # process the path parameters + if deployment_id is not None: + _path_params['deployment_id'] = deployment_id # process the query parameters - if model is not None: - - _query_params.append(('model', model)) - - if hf_token is not None: - - _query_params.append(('hf_token', hf_token)) - # process the header parameters # process the form parameters # process the body parameter @@ -5672,7 +5702,7 @@ def _get_cserve_recipe_deployments_cserve_recipes_get_serialize( return self.api_client.param_serialize( method='GET', - resource_path='/deployments/cserve/recipes', + resource_path='/deployments/compute/{deployment_id}', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -5689,9 +5719,8 @@ def _get_cserve_recipe_deployments_cserve_recipes_get_serialize( @validate_call - def get_cserve_v2_deployment_deployments_cserve_v2_deployment_id_get( + def get_credits_credits_get( self, - deployment_id: StrictInt, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -5704,12 +5733,10 @@ def get_cserve_v2_deployment_deployments_cserve_v2_deployment_id_get( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> GetCServeV2DeploymentResponse: - """Get Cserve V2 Deployment + ) -> CreditsResponse: + """Get Credits - :param deployment_id: (required) - :type deployment_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 @@ -5732,8 +5759,7 @@ def get_cserve_v2_deployment_deployments_cserve_v2_deployment_id_get( :return: Returns the result object. """ # noqa: E501 - _param = self._get_cserve_v2_deployment_deployments_cserve_v2_deployment_id_get_serialize( - deployment_id=deployment_id, + _param = self._get_credits_credits_get_serialize( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -5741,8 +5767,7 @@ def get_cserve_v2_deployment_deployments_cserve_v2_deployment_id_get( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "GetCServeV2DeploymentResponse", - '422': "HTTPValidationError", + '200': "CreditsResponse", } response_data = self.api_client.call_api( *_param, @@ -5756,9 +5781,8 @@ def get_cserve_v2_deployment_deployments_cserve_v2_deployment_id_get( @validate_call - def get_cserve_v2_deployment_deployments_cserve_v2_deployment_id_get_with_http_info( + def get_credits_credits_get_with_http_info( self, - deployment_id: StrictInt, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -5771,12 +5795,10 @@ def get_cserve_v2_deployment_deployments_cserve_v2_deployment_id_get_with_http_i _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[GetCServeV2DeploymentResponse]: - """Get Cserve V2 Deployment + ) -> ApiResponse[CreditsResponse]: + """Get Credits - :param deployment_id: (required) - :type deployment_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 @@ -5799,8 +5821,7 @@ def get_cserve_v2_deployment_deployments_cserve_v2_deployment_id_get_with_http_i :return: Returns the result object. """ # noqa: E501 - _param = self._get_cserve_v2_deployment_deployments_cserve_v2_deployment_id_get_serialize( - deployment_id=deployment_id, + _param = self._get_credits_credits_get_serialize( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -5808,8 +5829,7 @@ def get_cserve_v2_deployment_deployments_cserve_v2_deployment_id_get_with_http_i ) _response_types_map: Dict[str, Optional[str]] = { - '200': "GetCServeV2DeploymentResponse", - '422': "HTTPValidationError", + '200': "CreditsResponse", } response_data = self.api_client.call_api( *_param, @@ -5823,9 +5843,8 @@ def get_cserve_v2_deployment_deployments_cserve_v2_deployment_id_get_with_http_i @validate_call - def get_cserve_v2_deployment_deployments_cserve_v2_deployment_id_get_without_preload_content( + def get_credits_credits_get_without_preload_content( self, - deployment_id: StrictInt, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -5839,11 +5858,9 @@ def get_cserve_v2_deployment_deployments_cserve_v2_deployment_id_get_without_pre _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """Get Cserve V2 Deployment + """Get Credits - :param deployment_id: (required) - :type deployment_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 @@ -5866,8 +5883,7 @@ def get_cserve_v2_deployment_deployments_cserve_v2_deployment_id_get_without_pre :return: Returns the result object. """ # noqa: E501 - _param = self._get_cserve_v2_deployment_deployments_cserve_v2_deployment_id_get_serialize( - deployment_id=deployment_id, + _param = self._get_credits_credits_get_serialize( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -5875,8 +5891,7 @@ def get_cserve_v2_deployment_deployments_cserve_v2_deployment_id_get_without_pre ) _response_types_map: Dict[str, Optional[str]] = { - '200': "GetCServeV2DeploymentResponse", - '422': "HTTPValidationError", + '200': "CreditsResponse", } response_data = self.api_client.call_api( *_param, @@ -5885,9 +5900,8 @@ def get_cserve_v2_deployment_deployments_cserve_v2_deployment_id_get_without_pre return response_data.response - def _get_cserve_v2_deployment_deployments_cserve_v2_deployment_id_get_serialize( + def _get_credits_credits_get_serialize( self, - deployment_id, _request_auth, _content_type, _headers, @@ -5909,8 +5923,6 @@ def _get_cserve_v2_deployment_deployments_cserve_v2_deployment_id_get_serialize( _body_params: Optional[bytes] = None # process the path parameters - if deployment_id is not None: - _path_params['deployment_id'] = deployment_id # process the query parameters # process the header parameters # process the form parameters @@ -5933,7 +5945,7 @@ def _get_cserve_v2_deployment_deployments_cserve_v2_deployment_id_get_serialize( return self.api_client.param_serialize( method='GET', - resource_path='/deployments/cserve_v2/{deployment_id}', + resource_path='/credits', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -5950,14 +5962,10 @@ def _get_cserve_v2_deployment_deployments_cserve_v2_deployment_id_get_serialize( @validate_call - def get_deployment_logs_deployments_logs_deployment_id_get( + def get_cserve_recipe_deployments_cserve_recipes_get( self, - deployment_id: StrictInt, - start_time: StrictInt, - end_time: StrictInt, - next_page_token: Optional[StrictStr] = None, - start_from_head: Optional[StrictBool] = None, - line_count: Optional[StrictInt] = None, + model: Optional[StrictStr] = None, + hf_token: Optional[StrictStr] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -5970,22 +5978,14 @@ def get_deployment_logs_deployments_logs_deployment_id_get( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> GetDeploymentLogResponse: - """Get Deployment Logs + ) -> ListCServeRecipeResponse: + """Get Cserve Recipe - :param deployment_id: (required) - :type deployment_id: int - :param start_time: (required) - :type start_time: int - :param end_time: (required) - :type end_time: int - :param next_page_token: - :type next_page_token: str - :param start_from_head: - :type start_from_head: bool - :param line_count: - :type line_count: int + :param model: + :type model: str + :param hf_token: + :type hf_token: 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 @@ -6008,13 +6008,9 @@ def get_deployment_logs_deployments_logs_deployment_id_get( :return: Returns the result object. """ # noqa: E501 - _param = self._get_deployment_logs_deployments_logs_deployment_id_get_serialize( - deployment_id=deployment_id, - start_time=start_time, - end_time=end_time, - next_page_token=next_page_token, - start_from_head=start_from_head, - line_count=line_count, + _param = self._get_cserve_recipe_deployments_cserve_recipes_get_serialize( + model=model, + hf_token=hf_token, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -6022,7 +6018,7 @@ def get_deployment_logs_deployments_logs_deployment_id_get( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "GetDeploymentLogResponse", + '200': "ListCServeRecipeResponse", '422': "HTTPValidationError", } response_data = self.api_client.call_api( @@ -6037,14 +6033,10 @@ def get_deployment_logs_deployments_logs_deployment_id_get( @validate_call - def get_deployment_logs_deployments_logs_deployment_id_get_with_http_info( + def get_cserve_recipe_deployments_cserve_recipes_get_with_http_info( self, - deployment_id: StrictInt, - start_time: StrictInt, - end_time: StrictInt, - next_page_token: Optional[StrictStr] = None, - start_from_head: Optional[StrictBool] = None, - line_count: Optional[StrictInt] = None, + model: Optional[StrictStr] = None, + hf_token: Optional[StrictStr] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -6057,22 +6049,14 @@ def get_deployment_logs_deployments_logs_deployment_id_get_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[GetDeploymentLogResponse]: - """Get Deployment Logs + ) -> ApiResponse[ListCServeRecipeResponse]: + """Get Cserve Recipe - :param deployment_id: (required) - :type deployment_id: int - :param start_time: (required) - :type start_time: int - :param end_time: (required) - :type end_time: int - :param next_page_token: - :type next_page_token: str - :param start_from_head: - :type start_from_head: bool - :param line_count: - :type line_count: int + :param model: + :type model: str + :param hf_token: + :type hf_token: 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 @@ -6095,13 +6079,9 @@ def get_deployment_logs_deployments_logs_deployment_id_get_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._get_deployment_logs_deployments_logs_deployment_id_get_serialize( - deployment_id=deployment_id, - start_time=start_time, - end_time=end_time, - next_page_token=next_page_token, - start_from_head=start_from_head, - line_count=line_count, + _param = self._get_cserve_recipe_deployments_cserve_recipes_get_serialize( + model=model, + hf_token=hf_token, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -6109,7 +6089,7 @@ def get_deployment_logs_deployments_logs_deployment_id_get_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "GetDeploymentLogResponse", + '200': "ListCServeRecipeResponse", '422': "HTTPValidationError", } response_data = self.api_client.call_api( @@ -6124,14 +6104,10 @@ def get_deployment_logs_deployments_logs_deployment_id_get_with_http_info( @validate_call - def get_deployment_logs_deployments_logs_deployment_id_get_without_preload_content( + def get_cserve_recipe_deployments_cserve_recipes_get_without_preload_content( self, - deployment_id: StrictInt, - start_time: StrictInt, - end_time: StrictInt, - next_page_token: Optional[StrictStr] = None, - start_from_head: Optional[StrictBool] = None, - line_count: Optional[StrictInt] = None, + model: Optional[StrictStr] = None, + hf_token: Optional[StrictStr] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -6145,21 +6121,13 @@ def get_deployment_logs_deployments_logs_deployment_id_get_without_preload_conte _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """Get Deployment Logs + """Get Cserve Recipe - :param deployment_id: (required) - :type deployment_id: int - :param start_time: (required) - :type start_time: int - :param end_time: (required) - :type end_time: int - :param next_page_token: - :type next_page_token: str - :param start_from_head: - :type start_from_head: bool - :param line_count: - :type line_count: int + :param model: + :type model: str + :param hf_token: + :type hf_token: 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 @@ -6182,13 +6150,9 @@ def get_deployment_logs_deployments_logs_deployment_id_get_without_preload_conte :return: Returns the result object. """ # noqa: E501 - _param = self._get_deployment_logs_deployments_logs_deployment_id_get_serialize( - deployment_id=deployment_id, - start_time=start_time, - end_time=end_time, - next_page_token=next_page_token, - start_from_head=start_from_head, - line_count=line_count, + _param = self._get_cserve_recipe_deployments_cserve_recipes_get_serialize( + model=model, + hf_token=hf_token, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -6196,7 +6160,7 @@ def get_deployment_logs_deployments_logs_deployment_id_get_without_preload_conte ) _response_types_map: Dict[str, Optional[str]] = { - '200': "GetDeploymentLogResponse", + '200': "ListCServeRecipeResponse", '422': "HTTPValidationError", } response_data = self.api_client.call_api( @@ -6206,14 +6170,10 @@ def get_deployment_logs_deployments_logs_deployment_id_get_without_preload_conte return response_data.response - def _get_deployment_logs_deployments_logs_deployment_id_get_serialize( + def _get_cserve_recipe_deployments_cserve_recipes_get_serialize( self, - deployment_id, - start_time, - end_time, - next_page_token, - start_from_head, - line_count, + model, + hf_token, _request_auth, _content_type, _headers, @@ -6235,28 +6195,14 @@ def _get_deployment_logs_deployments_logs_deployment_id_get_serialize( _body_params: Optional[bytes] = None # process the path parameters - if deployment_id is not None: - _path_params['deployment_id'] = deployment_id # process the query parameters - if next_page_token is not None: - - _query_params.append(('next_page_token', next_page_token)) - - if start_time is not None: - - _query_params.append(('start_time', start_time)) - - if end_time is not None: - - _query_params.append(('end_time', end_time)) - - if start_from_head is not None: + if model is not None: - _query_params.append(('start_from_head', start_from_head)) + _query_params.append(('model', model)) - if line_count is not None: + if hf_token is not None: - _query_params.append(('line_count', line_count)) + _query_params.append(('hf_token', hf_token)) # process the header parameters # process the form parameters @@ -6279,7 +6225,7 @@ def _get_deployment_logs_deployments_logs_deployment_id_get_serialize( return self.api_client.param_serialize( method='GET', - resource_path='/deployments/logs/{deployment_id}', + resource_path='/deployments/cserve/recipes', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -6296,7 +6242,7 @@ def _get_deployment_logs_deployments_logs_deployment_id_get_serialize( @validate_call - def get_deployment_status_deployments_status_deployment_id_get( + def get_cserve_v2_deployment_deployments_cserve_v2_deployment_id_get( self, deployment_id: StrictInt, _request_timeout: Union[ @@ -6311,8 +6257,8 @@ def get_deployment_status_deployments_status_deployment_id_get( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> DeploymentStatusResponse: - """Get Deployment Status + ) -> GetCServeV2DeploymentResponse: + """Get Cserve V2 Deployment :param deployment_id: (required) @@ -6339,7 +6285,7 @@ def get_deployment_status_deployments_status_deployment_id_get( :return: Returns the result object. """ # noqa: E501 - _param = self._get_deployment_status_deployments_status_deployment_id_get_serialize( + _param = self._get_cserve_v2_deployment_deployments_cserve_v2_deployment_id_get_serialize( deployment_id=deployment_id, _request_auth=_request_auth, _content_type=_content_type, @@ -6348,7 +6294,7 @@ def get_deployment_status_deployments_status_deployment_id_get( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "DeploymentStatusResponse", + '200': "GetCServeV2DeploymentResponse", '422': "HTTPValidationError", } response_data = self.api_client.call_api( @@ -6363,7 +6309,7 @@ def get_deployment_status_deployments_status_deployment_id_get( @validate_call - def get_deployment_status_deployments_status_deployment_id_get_with_http_info( + def get_cserve_v2_deployment_deployments_cserve_v2_deployment_id_get_with_http_info( self, deployment_id: StrictInt, _request_timeout: Union[ @@ -6378,8 +6324,8 @@ def get_deployment_status_deployments_status_deployment_id_get_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[DeploymentStatusResponse]: - """Get Deployment Status + ) -> ApiResponse[GetCServeV2DeploymentResponse]: + """Get Cserve V2 Deployment :param deployment_id: (required) @@ -6406,7 +6352,7 @@ def get_deployment_status_deployments_status_deployment_id_get_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._get_deployment_status_deployments_status_deployment_id_get_serialize( + _param = self._get_cserve_v2_deployment_deployments_cserve_v2_deployment_id_get_serialize( deployment_id=deployment_id, _request_auth=_request_auth, _content_type=_content_type, @@ -6415,7 +6361,7 @@ def get_deployment_status_deployments_status_deployment_id_get_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "DeploymentStatusResponse", + '200': "GetCServeV2DeploymentResponse", '422': "HTTPValidationError", } response_data = self.api_client.call_api( @@ -6430,7 +6376,7 @@ def get_deployment_status_deployments_status_deployment_id_get_with_http_info( @validate_call - def get_deployment_status_deployments_status_deployment_id_get_without_preload_content( + def get_cserve_v2_deployment_deployments_cserve_v2_deployment_id_get_without_preload_content( self, deployment_id: StrictInt, _request_timeout: Union[ @@ -6446,7 +6392,7 @@ def get_deployment_status_deployments_status_deployment_id_get_without_preload_c _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """Get Deployment Status + """Get Cserve V2 Deployment :param deployment_id: (required) @@ -6473,7 +6419,7 @@ def get_deployment_status_deployments_status_deployment_id_get_without_preload_c :return: Returns the result object. """ # noqa: E501 - _param = self._get_deployment_status_deployments_status_deployment_id_get_serialize( + _param = self._get_cserve_v2_deployment_deployments_cserve_v2_deployment_id_get_serialize( deployment_id=deployment_id, _request_auth=_request_auth, _content_type=_content_type, @@ -6482,7 +6428,7 @@ def get_deployment_status_deployments_status_deployment_id_get_without_preload_c ) _response_types_map: Dict[str, Optional[str]] = { - '200': "DeploymentStatusResponse", + '200': "GetCServeV2DeploymentResponse", '422': "HTTPValidationError", } response_data = self.api_client.call_api( @@ -6492,7 +6438,7 @@ def get_deployment_status_deployments_status_deployment_id_get_without_preload_c return response_data.response - def _get_deployment_status_deployments_status_deployment_id_get_serialize( + def _get_cserve_v2_deployment_deployments_cserve_v2_deployment_id_get_serialize( self, deployment_id, _request_auth, @@ -6540,7 +6486,7 @@ def _get_deployment_status_deployments_status_deployment_id_get_serialize( return self.api_client.param_serialize( method='GET', - resource_path='/deployments/status/{deployment_id}', + resource_path='/deployments/cserve_v2/{deployment_id}', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -6557,12 +6503,9 @@ def _get_deployment_status_deployments_status_deployment_id_get_serialize( @validate_call - def get_deployments_deployments_get( + def get_cserve_v3_deployment_deployments_cserve_v3_deployment_id_get( self, - offset: Optional[StrictInt] = None, - limit: Optional[StrictInt] = None, - type: Optional[DeploymentType] = None, - search_query: Optional[StrictStr] = None, + deployment_id: StrictInt, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -6575,18 +6518,12 @@ def get_deployments_deployments_get( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ListGetDeploymentResponse: - """Get Deployments + ) -> GetCServeV3DeploymentResponse: + """Get Cserve V3 Deployment - :param offset: - :type offset: int - :param limit: - :type limit: int - :param type: - :type type: DeploymentType - :param search_query: - :type search_query: str + :param deployment_id: (required) + :type deployment_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 @@ -6609,11 +6546,8 @@ def get_deployments_deployments_get( :return: Returns the result object. """ # noqa: E501 - _param = self._get_deployments_deployments_get_serialize( - offset=offset, - limit=limit, - type=type, - search_query=search_query, + _param = self._get_cserve_v3_deployment_deployments_cserve_v3_deployment_id_get_serialize( + deployment_id=deployment_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -6621,7 +6555,7 @@ def get_deployments_deployments_get( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "ListGetDeploymentResponse", + '200': "GetCServeV3DeploymentResponse", '422': "HTTPValidationError", } response_data = self.api_client.call_api( @@ -6636,12 +6570,9 @@ def get_deployments_deployments_get( @validate_call - def get_deployments_deployments_get_with_http_info( + def get_cserve_v3_deployment_deployments_cserve_v3_deployment_id_get_with_http_info( self, - offset: Optional[StrictInt] = None, - limit: Optional[StrictInt] = None, - type: Optional[DeploymentType] = None, - search_query: Optional[StrictStr] = None, + deployment_id: StrictInt, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -6654,18 +6585,12 @@ def get_deployments_deployments_get_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[ListGetDeploymentResponse]: - """Get Deployments + ) -> ApiResponse[GetCServeV3DeploymentResponse]: + """Get Cserve V3 Deployment - :param offset: - :type offset: int - :param limit: - :type limit: int - :param type: - :type type: DeploymentType - :param search_query: - :type search_query: str + :param deployment_id: (required) + :type deployment_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 @@ -6688,11 +6613,8 @@ def get_deployments_deployments_get_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._get_deployments_deployments_get_serialize( - offset=offset, - limit=limit, - type=type, - search_query=search_query, + _param = self._get_cserve_v3_deployment_deployments_cserve_v3_deployment_id_get_serialize( + deployment_id=deployment_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -6700,7 +6622,7 @@ def get_deployments_deployments_get_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "ListGetDeploymentResponse", + '200': "GetCServeV3DeploymentResponse", '422': "HTTPValidationError", } response_data = self.api_client.call_api( @@ -6715,12 +6637,9 @@ def get_deployments_deployments_get_with_http_info( @validate_call - def get_deployments_deployments_get_without_preload_content( + def get_cserve_v3_deployment_deployments_cserve_v3_deployment_id_get_without_preload_content( self, - offset: Optional[StrictInt] = None, - limit: Optional[StrictInt] = None, - type: Optional[DeploymentType] = None, - search_query: Optional[StrictStr] = None, + deployment_id: StrictInt, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -6734,17 +6653,11 @@ def get_deployments_deployments_get_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """Get Deployments + """Get Cserve V3 Deployment - :param offset: - :type offset: int - :param limit: - :type limit: int - :param type: - :type type: DeploymentType - :param search_query: - :type search_query: str + :param deployment_id: (required) + :type deployment_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 @@ -6767,11 +6680,8 @@ def get_deployments_deployments_get_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._get_deployments_deployments_get_serialize( - offset=offset, - limit=limit, - type=type, - search_query=search_query, + _param = self._get_cserve_v3_deployment_deployments_cserve_v3_deployment_id_get_serialize( + deployment_id=deployment_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -6779,7 +6689,7 @@ def get_deployments_deployments_get_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "ListGetDeploymentResponse", + '200': "GetCServeV3DeploymentResponse", '422': "HTTPValidationError", } response_data = self.api_client.call_api( @@ -6789,12 +6699,9 @@ def get_deployments_deployments_get_without_preload_content( return response_data.response - def _get_deployments_deployments_get_serialize( + def _get_cserve_v3_deployment_deployments_cserve_v3_deployment_id_get_serialize( self, - offset, - limit, - type, - search_query, + deployment_id, _request_auth, _content_type, _headers, @@ -6816,23 +6723,9 @@ def _get_deployments_deployments_get_serialize( _body_params: Optional[bytes] = None # process the path parameters + if deployment_id is not None: + _path_params['deployment_id'] = deployment_id # process the query parameters - if offset is not None: - - _query_params.append(('offset', offset)) - - if limit is not None: - - _query_params.append(('limit', limit)) - - if type is not None: - - _query_params.append(('type', type.value)) - - if search_query is not None: - - _query_params.append(('search_query', search_query)) - # process the header parameters # process the form parameters # process the body parameter @@ -6854,7 +6747,7 @@ def _get_deployments_deployments_get_serialize( return self.api_client.param_serialize( method='GET', - resource_path='/deployments', + resource_path='/deployments/cserve_v3/{deployment_id}', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -6871,9 +6764,14 @@ def _get_deployments_deployments_get_serialize( @validate_call - def get_hardware_instances_hardware_instances_get( + def get_deployment_logs_deployments_logs_deployment_id_get( self, - cluster_id: Optional[StrictInt] = None, + deployment_id: StrictInt, + start_time: StrictInt, + end_time: StrictInt, + next_page_token: Optional[StrictStr] = None, + start_from_head: Optional[StrictBool] = None, + line_count: Optional[StrictInt] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -6886,12 +6784,22 @@ def get_hardware_instances_hardware_instances_get( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ListHardwareInstanceResponse: - """Get Hardware Instances + ) -> GetDeploymentLogResponse: + """Get Deployment Logs - :param cluster_id: - :type cluster_id: int + :param deployment_id: (required) + :type deployment_id: int + :param start_time: (required) + :type start_time: int + :param end_time: (required) + :type end_time: int + :param next_page_token: + :type next_page_token: str + :param start_from_head: + :type start_from_head: bool + :param line_count: + :type line_count: 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 @@ -6914,8 +6822,13 @@ def get_hardware_instances_hardware_instances_get( :return: Returns the result object. """ # noqa: E501 - _param = self._get_hardware_instances_hardware_instances_get_serialize( - cluster_id=cluster_id, + _param = self._get_deployment_logs_deployments_logs_deployment_id_get_serialize( + deployment_id=deployment_id, + start_time=start_time, + end_time=end_time, + next_page_token=next_page_token, + start_from_head=start_from_head, + line_count=line_count, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -6923,7 +6836,7 @@ def get_hardware_instances_hardware_instances_get( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "ListHardwareInstanceResponse", + '200': "GetDeploymentLogResponse", '422': "HTTPValidationError", } response_data = self.api_client.call_api( @@ -6938,9 +6851,14 @@ def get_hardware_instances_hardware_instances_get( @validate_call - def get_hardware_instances_hardware_instances_get_with_http_info( + def get_deployment_logs_deployments_logs_deployment_id_get_with_http_info( self, - cluster_id: Optional[StrictInt] = None, + deployment_id: StrictInt, + start_time: StrictInt, + end_time: StrictInt, + next_page_token: Optional[StrictStr] = None, + start_from_head: Optional[StrictBool] = None, + line_count: Optional[StrictInt] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -6953,12 +6871,22 @@ def get_hardware_instances_hardware_instances_get_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[ListHardwareInstanceResponse]: - """Get Hardware Instances + ) -> ApiResponse[GetDeploymentLogResponse]: + """Get Deployment Logs - :param cluster_id: - :type cluster_id: int + :param deployment_id: (required) + :type deployment_id: int + :param start_time: (required) + :type start_time: int + :param end_time: (required) + :type end_time: int + :param next_page_token: + :type next_page_token: str + :param start_from_head: + :type start_from_head: bool + :param line_count: + :type line_count: 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 @@ -6981,8 +6909,13 @@ def get_hardware_instances_hardware_instances_get_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._get_hardware_instances_hardware_instances_get_serialize( - cluster_id=cluster_id, + _param = self._get_deployment_logs_deployments_logs_deployment_id_get_serialize( + deployment_id=deployment_id, + start_time=start_time, + end_time=end_time, + next_page_token=next_page_token, + start_from_head=start_from_head, + line_count=line_count, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -6990,7 +6923,7 @@ def get_hardware_instances_hardware_instances_get_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "ListHardwareInstanceResponse", + '200': "GetDeploymentLogResponse", '422': "HTTPValidationError", } response_data = self.api_client.call_api( @@ -7005,9 +6938,14 @@ def get_hardware_instances_hardware_instances_get_with_http_info( @validate_call - def get_hardware_instances_hardware_instances_get_without_preload_content( + def get_deployment_logs_deployments_logs_deployment_id_get_without_preload_content( self, - cluster_id: Optional[StrictInt] = None, + deployment_id: StrictInt, + start_time: StrictInt, + end_time: StrictInt, + next_page_token: Optional[StrictStr] = None, + start_from_head: Optional[StrictBool] = None, + line_count: Optional[StrictInt] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -7021,11 +6959,21 @@ def get_hardware_instances_hardware_instances_get_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """Get Hardware Instances + """Get Deployment Logs - :param cluster_id: - :type cluster_id: int + :param deployment_id: (required) + :type deployment_id: int + :param start_time: (required) + :type start_time: int + :param end_time: (required) + :type end_time: int + :param next_page_token: + :type next_page_token: str + :param start_from_head: + :type start_from_head: bool + :param line_count: + :type line_count: 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 @@ -7048,8 +6996,13 @@ def get_hardware_instances_hardware_instances_get_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._get_hardware_instances_hardware_instances_get_serialize( - cluster_id=cluster_id, + _param = self._get_deployment_logs_deployments_logs_deployment_id_get_serialize( + deployment_id=deployment_id, + start_time=start_time, + end_time=end_time, + next_page_token=next_page_token, + start_from_head=start_from_head, + line_count=line_count, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -7057,7 +7010,7 @@ def get_hardware_instances_hardware_instances_get_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "ListHardwareInstanceResponse", + '200': "GetDeploymentLogResponse", '422': "HTTPValidationError", } response_data = self.api_client.call_api( @@ -7067,9 +7020,14 @@ def get_hardware_instances_hardware_instances_get_without_preload_content( return response_data.response - def _get_hardware_instances_hardware_instances_get_serialize( + def _get_deployment_logs_deployments_logs_deployment_id_get_serialize( self, - cluster_id, + deployment_id, + start_time, + end_time, + next_page_token, + start_from_head, + line_count, _request_auth, _content_type, _headers, @@ -7091,10 +7049,28 @@ def _get_hardware_instances_hardware_instances_get_serialize( _body_params: Optional[bytes] = None # process the path parameters + if deployment_id is not None: + _path_params['deployment_id'] = deployment_id # process the query parameters - if cluster_id is not None: + if next_page_token is not None: - _query_params.append(('cluster_id', cluster_id)) + _query_params.append(('next_page_token', next_page_token)) + + if start_time is not None: + + _query_params.append(('start_time', start_time)) + + if end_time is not None: + + _query_params.append(('end_time', end_time)) + + if start_from_head is not None: + + _query_params.append(('start_from_head', start_from_head)) + + if line_count is not None: + + _query_params.append(('line_count', line_count)) # process the header parameters # process the form parameters @@ -7117,7 +7093,7 @@ def _get_hardware_instances_hardware_instances_get_serialize( return self.api_client.param_serialize( method='GET', - resource_path='/hardware-instances', + resource_path='/deployments/logs/{deployment_id}', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -7134,7 +7110,7 @@ def _get_hardware_instances_hardware_instances_get_serialize( @validate_call - def get_inference_deployment_deployments_inference_deployment_id_get( + def get_deployment_status_deployments_status_deployment_id_get( self, deployment_id: StrictInt, _request_timeout: Union[ @@ -7149,8 +7125,8 @@ def get_inference_deployment_deployments_inference_deployment_id_get( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> GetInferenceDeploymentResponse: - """Get Inference Deployment + ) -> DeploymentStatusResponse: + """Get Deployment Status :param deployment_id: (required) @@ -7177,7 +7153,7 @@ def get_inference_deployment_deployments_inference_deployment_id_get( :return: Returns the result object. """ # noqa: E501 - _param = self._get_inference_deployment_deployments_inference_deployment_id_get_serialize( + _param = self._get_deployment_status_deployments_status_deployment_id_get_serialize( deployment_id=deployment_id, _request_auth=_request_auth, _content_type=_content_type, @@ -7186,7 +7162,7 @@ def get_inference_deployment_deployments_inference_deployment_id_get( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "GetInferenceDeploymentResponse", + '200': "DeploymentStatusResponse", '422': "HTTPValidationError", } response_data = self.api_client.call_api( @@ -7201,7 +7177,7 @@ def get_inference_deployment_deployments_inference_deployment_id_get( @validate_call - def get_inference_deployment_deployments_inference_deployment_id_get_with_http_info( + def get_deployment_status_deployments_status_deployment_id_get_with_http_info( self, deployment_id: StrictInt, _request_timeout: Union[ @@ -7216,8 +7192,8 @@ def get_inference_deployment_deployments_inference_deployment_id_get_with_http_i _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[GetInferenceDeploymentResponse]: - """Get Inference Deployment + ) -> ApiResponse[DeploymentStatusResponse]: + """Get Deployment Status :param deployment_id: (required) @@ -7244,7 +7220,7 @@ def get_inference_deployment_deployments_inference_deployment_id_get_with_http_i :return: Returns the result object. """ # noqa: E501 - _param = self._get_inference_deployment_deployments_inference_deployment_id_get_serialize( + _param = self._get_deployment_status_deployments_status_deployment_id_get_serialize( deployment_id=deployment_id, _request_auth=_request_auth, _content_type=_content_type, @@ -7253,7 +7229,7 @@ def get_inference_deployment_deployments_inference_deployment_id_get_with_http_i ) _response_types_map: Dict[str, Optional[str]] = { - '200': "GetInferenceDeploymentResponse", + '200': "DeploymentStatusResponse", '422': "HTTPValidationError", } response_data = self.api_client.call_api( @@ -7268,7 +7244,7 @@ def get_inference_deployment_deployments_inference_deployment_id_get_with_http_i @validate_call - def get_inference_deployment_deployments_inference_deployment_id_get_without_preload_content( + def get_deployment_status_deployments_status_deployment_id_get_without_preload_content( self, deployment_id: StrictInt, _request_timeout: Union[ @@ -7284,7 +7260,7 @@ def get_inference_deployment_deployments_inference_deployment_id_get_without_pre _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """Get Inference Deployment + """Get Deployment Status :param deployment_id: (required) @@ -7311,7 +7287,7 @@ def get_inference_deployment_deployments_inference_deployment_id_get_without_pre :return: Returns the result object. """ # noqa: E501 - _param = self._get_inference_deployment_deployments_inference_deployment_id_get_serialize( + _param = self._get_deployment_status_deployments_status_deployment_id_get_serialize( deployment_id=deployment_id, _request_auth=_request_auth, _content_type=_content_type, @@ -7320,7 +7296,7 @@ def get_inference_deployment_deployments_inference_deployment_id_get_without_pre ) _response_types_map: Dict[str, Optional[str]] = { - '200': "GetInferenceDeploymentResponse", + '200': "DeploymentStatusResponse", '422': "HTTPValidationError", } response_data = self.api_client.call_api( @@ -7330,7 +7306,7 @@ def get_inference_deployment_deployments_inference_deployment_id_get_without_pre return response_data.response - def _get_inference_deployment_deployments_inference_deployment_id_get_serialize( + def _get_deployment_status_deployments_status_deployment_id_get_serialize( self, deployment_id, _request_auth, @@ -7378,7 +7354,7 @@ def _get_inference_deployment_deployments_inference_deployment_id_get_serialize( return self.api_client.param_serialize( method='GET', - resource_path='/deployments/inference/{deployment_id}', + resource_path='/deployments/status/{deployment_id}', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -7395,8 +7371,12 @@ def _get_inference_deployment_deployments_inference_deployment_id_get_serialize( @validate_call - def get_payment_method_payments_methods_get( + def get_deployments_deployments_get( self, + offset: Optional[StrictInt] = None, + limit: Optional[StrictInt] = None, + type: Optional[DeploymentType] = None, + search_query: Optional[StrictStr] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -7409,10 +7389,18 @@ def get_payment_method_payments_methods_get( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> PaymentMethodResponse: - """Get Payment Method + ) -> ListGetDeploymentResponse: + """Get Deployments + :param offset: + :type offset: int + :param limit: + :type limit: int + :param type: + :type type: DeploymentType + :param search_query: + :type search_query: 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 @@ -7435,7 +7423,11 @@ def get_payment_method_payments_methods_get( :return: Returns the result object. """ # noqa: E501 - _param = self._get_payment_method_payments_methods_get_serialize( + _param = self._get_deployments_deployments_get_serialize( + offset=offset, + limit=limit, + type=type, + search_query=search_query, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -7443,7 +7435,8 @@ def get_payment_method_payments_methods_get( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "PaymentMethodResponse", + '200': "ListGetDeploymentResponse", + '422': "HTTPValidationError", } response_data = self.api_client.call_api( *_param, @@ -7457,8 +7450,12 @@ def get_payment_method_payments_methods_get( @validate_call - def get_payment_method_payments_methods_get_with_http_info( + def get_deployments_deployments_get_with_http_info( self, + offset: Optional[StrictInt] = None, + limit: Optional[StrictInt] = None, + type: Optional[DeploymentType] = None, + search_query: Optional[StrictStr] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -7471,10 +7468,18 @@ def get_payment_method_payments_methods_get_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[PaymentMethodResponse]: - """Get Payment Method + ) -> ApiResponse[ListGetDeploymentResponse]: + """Get Deployments + :param offset: + :type offset: int + :param limit: + :type limit: int + :param type: + :type type: DeploymentType + :param search_query: + :type search_query: 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 @@ -7497,7 +7502,11 @@ def get_payment_method_payments_methods_get_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._get_payment_method_payments_methods_get_serialize( + _param = self._get_deployments_deployments_get_serialize( + offset=offset, + limit=limit, + type=type, + search_query=search_query, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -7505,7 +7514,8 @@ def get_payment_method_payments_methods_get_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "PaymentMethodResponse", + '200': "ListGetDeploymentResponse", + '422': "HTTPValidationError", } response_data = self.api_client.call_api( *_param, @@ -7519,8 +7529,12 @@ def get_payment_method_payments_methods_get_with_http_info( @validate_call - def get_payment_method_payments_methods_get_without_preload_content( + def get_deployments_deployments_get_without_preload_content( self, + offset: Optional[StrictInt] = None, + limit: Optional[StrictInt] = None, + type: Optional[DeploymentType] = None, + search_query: Optional[StrictStr] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -7534,9 +7548,17 @@ def get_payment_method_payments_methods_get_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """Get Payment Method + """Get Deployments + :param offset: + :type offset: int + :param limit: + :type limit: int + :param type: + :type type: DeploymentType + :param search_query: + :type search_query: 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 @@ -7559,7 +7581,11 @@ def get_payment_method_payments_methods_get_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._get_payment_method_payments_methods_get_serialize( + _param = self._get_deployments_deployments_get_serialize( + offset=offset, + limit=limit, + type=type, + search_query=search_query, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -7567,7 +7593,8 @@ def get_payment_method_payments_methods_get_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "PaymentMethodResponse", + '200': "ListGetDeploymentResponse", + '422': "HTTPValidationError", } response_data = self.api_client.call_api( *_param, @@ -7576,8 +7603,12 @@ def get_payment_method_payments_methods_get_without_preload_content( return response_data.response - def _get_payment_method_payments_methods_get_serialize( + def _get_deployments_deployments_get_serialize( self, + offset, + limit, + type, + search_query, _request_auth, _content_type, _headers, @@ -7600,6 +7631,22 @@ def _get_payment_method_payments_methods_get_serialize( # process the path parameters # process the query parameters + if offset is not None: + + _query_params.append(('offset', offset)) + + if limit is not None: + + _query_params.append(('limit', limit)) + + if type is not None: + + _query_params.append(('type', type.value)) + + if search_query is not None: + + _query_params.append(('search_query', search_query)) + # process the header parameters # process the form parameters # process the body parameter @@ -7621,7 +7668,7 @@ def _get_payment_method_payments_methods_get_serialize( return self.api_client.param_serialize( method='GET', - resource_path='/payments/methods', + resource_path='/deployments', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -7638,8 +7685,9 @@ def _get_payment_method_payments_methods_get_serialize( @validate_call - def get_payments_payments_get( + def get_hardware_instances_hardware_instances_get( self, + cluster_id: Optional[StrictInt] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -7652,10 +7700,12 @@ def get_payments_payments_get( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ListPaymentsResponse: - """Get Payments + ) -> ListHardwareInstanceResponse: + """Get Hardware Instances + :param cluster_id: + :type cluster_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 @@ -7678,7 +7728,8 @@ def get_payments_payments_get( :return: Returns the result object. """ # noqa: E501 - _param = self._get_payments_payments_get_serialize( + _param = self._get_hardware_instances_hardware_instances_get_serialize( + cluster_id=cluster_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -7686,7 +7737,8 @@ def get_payments_payments_get( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "ListPaymentsResponse", + '200': "ListHardwareInstanceResponse", + '422': "HTTPValidationError", } response_data = self.api_client.call_api( *_param, @@ -7700,8 +7752,9 @@ def get_payments_payments_get( @validate_call - def get_payments_payments_get_with_http_info( + def get_hardware_instances_hardware_instances_get_with_http_info( self, + cluster_id: Optional[StrictInt] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -7714,10 +7767,12 @@ def get_payments_payments_get_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[ListPaymentsResponse]: - """Get Payments + ) -> ApiResponse[ListHardwareInstanceResponse]: + """Get Hardware Instances + :param cluster_id: + :type cluster_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 @@ -7740,7 +7795,8 @@ def get_payments_payments_get_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._get_payments_payments_get_serialize( + _param = self._get_hardware_instances_hardware_instances_get_serialize( + cluster_id=cluster_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -7748,7 +7804,8 @@ def get_payments_payments_get_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "ListPaymentsResponse", + '200': "ListHardwareInstanceResponse", + '422': "HTTPValidationError", } response_data = self.api_client.call_api( *_param, @@ -7762,8 +7819,9 @@ def get_payments_payments_get_with_http_info( @validate_call - def get_payments_payments_get_without_preload_content( + def get_hardware_instances_hardware_instances_get_without_preload_content( self, + cluster_id: Optional[StrictInt] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -7777,9 +7835,11 @@ def get_payments_payments_get_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """Get Payments + """Get Hardware Instances + :param cluster_id: + :type cluster_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 @@ -7802,7 +7862,8 @@ def get_payments_payments_get_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._get_payments_payments_get_serialize( + _param = self._get_hardware_instances_hardware_instances_get_serialize( + cluster_id=cluster_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -7810,7 +7871,8 @@ def get_payments_payments_get_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "ListPaymentsResponse", + '200': "ListHardwareInstanceResponse", + '422': "HTTPValidationError", } response_data = self.api_client.call_api( *_param, @@ -7819,8 +7881,9 @@ def get_payments_payments_get_without_preload_content( return response_data.response - def _get_payments_payments_get_serialize( + def _get_hardware_instances_hardware_instances_get_serialize( self, + cluster_id, _request_auth, _content_type, _headers, @@ -7843,6 +7906,10 @@ def _get_payments_payments_get_serialize( # process the path parameters # process the query parameters + if cluster_id is not None: + + _query_params.append(('cluster_id', cluster_id)) + # process the header parameters # process the form parameters # process the body parameter @@ -7864,7 +7931,7 @@ def _get_payments_payments_get_serialize( return self.api_client.param_serialize( method='GET', - resource_path='/payments', + resource_path='/hardware-instances', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -7881,9 +7948,9 @@ def _get_payments_payments_get_serialize( @validate_call - def get_prebuilt_images_prebuilt_images_get( + def get_inference_deployment_deployments_inference_deployment_id_get( self, - type: Optional[DeploymentType] = None, + deployment_id: StrictInt, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -7896,12 +7963,12 @@ def get_prebuilt_images_prebuilt_images_get( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ListPrebuiltImageResponse: - """Get Prebuilt Images + ) -> GetInferenceDeploymentResponse: + """Get Inference Deployment - :param type: - :type type: DeploymentType + :param deployment_id: (required) + :type deployment_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 @@ -7924,8 +7991,8 @@ def get_prebuilt_images_prebuilt_images_get( :return: Returns the result object. """ # noqa: E501 - _param = self._get_prebuilt_images_prebuilt_images_get_serialize( - type=type, + _param = self._get_inference_deployment_deployments_inference_deployment_id_get_serialize( + deployment_id=deployment_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -7933,7 +8000,7 @@ def get_prebuilt_images_prebuilt_images_get( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "ListPrebuiltImageResponse", + '200': "GetInferenceDeploymentResponse", '422': "HTTPValidationError", } response_data = self.api_client.call_api( @@ -7948,9 +8015,9 @@ def get_prebuilt_images_prebuilt_images_get( @validate_call - def get_prebuilt_images_prebuilt_images_get_with_http_info( + def get_inference_deployment_deployments_inference_deployment_id_get_with_http_info( self, - type: Optional[DeploymentType] = None, + deployment_id: StrictInt, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -7963,12 +8030,12 @@ def get_prebuilt_images_prebuilt_images_get_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[ListPrebuiltImageResponse]: - """Get Prebuilt Images + ) -> ApiResponse[GetInferenceDeploymentResponse]: + """Get Inference Deployment - :param type: - :type type: DeploymentType + :param deployment_id: (required) + :type deployment_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 @@ -7991,8 +8058,8 @@ def get_prebuilt_images_prebuilt_images_get_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._get_prebuilt_images_prebuilt_images_get_serialize( - type=type, + _param = self._get_inference_deployment_deployments_inference_deployment_id_get_serialize( + deployment_id=deployment_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -8000,7 +8067,7 @@ def get_prebuilt_images_prebuilt_images_get_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "ListPrebuiltImageResponse", + '200': "GetInferenceDeploymentResponse", '422': "HTTPValidationError", } response_data = self.api_client.call_api( @@ -8015,9 +8082,9 @@ def get_prebuilt_images_prebuilt_images_get_with_http_info( @validate_call - def get_prebuilt_images_prebuilt_images_get_without_preload_content( + def get_inference_deployment_deployments_inference_deployment_id_get_without_preload_content( self, - type: Optional[DeploymentType] = None, + deployment_id: StrictInt, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -8031,11 +8098,11 @@ def get_prebuilt_images_prebuilt_images_get_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """Get Prebuilt Images + """Get Inference Deployment - :param type: - :type type: DeploymentType + :param deployment_id: (required) + :type deployment_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 @@ -8058,8 +8125,8 @@ def get_prebuilt_images_prebuilt_images_get_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._get_prebuilt_images_prebuilt_images_get_serialize( - type=type, + _param = self._get_inference_deployment_deployments_inference_deployment_id_get_serialize( + deployment_id=deployment_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -8067,7 +8134,7 @@ def get_prebuilt_images_prebuilt_images_get_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "ListPrebuiltImageResponse", + '200': "GetInferenceDeploymentResponse", '422': "HTTPValidationError", } response_data = self.api_client.call_api( @@ -8077,9 +8144,9 @@ def get_prebuilt_images_prebuilt_images_get_without_preload_content( return response_data.response - def _get_prebuilt_images_prebuilt_images_get_serialize( + def _get_inference_deployment_deployments_inference_deployment_id_get_serialize( self, - type, + deployment_id, _request_auth, _content_type, _headers, @@ -8101,11 +8168,9 @@ def _get_prebuilt_images_prebuilt_images_get_serialize( _body_params: Optional[bytes] = None # process the path parameters + if deployment_id is not None: + _path_params['deployment_id'] = deployment_id # process the query parameters - if type is not None: - - _query_params.append(('type', type.value)) - # process the header parameters # process the form parameters # process the body parameter @@ -8127,7 +8192,7 @@ def _get_prebuilt_images_prebuilt_images_get_serialize( return self.api_client.param_serialize( method='GET', - resource_path='/prebuilt-images', + resource_path='/deployments/inference/{deployment_id}', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -8144,7 +8209,7 @@ def _get_prebuilt_images_prebuilt_images_get_serialize( @validate_call - def get_rag_deployment_deployments_rag_deployment_id_get( + def get_inference_v3_deployment_deployments_inference_v3_deployment_id_get( self, deployment_id: StrictInt, _request_timeout: Union[ @@ -8159,8 +8224,8 @@ def get_rag_deployment_deployments_rag_deployment_id_get( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> GetRagDeploymentResponse: - """Get Rag Deployment + ) -> GetInferenceV3DeploymentResponse: + """Get Inference V3 Deployment :param deployment_id: (required) @@ -8187,7 +8252,7 @@ def get_rag_deployment_deployments_rag_deployment_id_get( :return: Returns the result object. """ # noqa: E501 - _param = self._get_rag_deployment_deployments_rag_deployment_id_get_serialize( + _param = self._get_inference_v3_deployment_deployments_inference_v3_deployment_id_get_serialize( deployment_id=deployment_id, _request_auth=_request_auth, _content_type=_content_type, @@ -8196,7 +8261,7 @@ def get_rag_deployment_deployments_rag_deployment_id_get( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "GetRagDeploymentResponse", + '200': "GetInferenceV3DeploymentResponse", '422': "HTTPValidationError", } response_data = self.api_client.call_api( @@ -8211,7 +8276,7 @@ def get_rag_deployment_deployments_rag_deployment_id_get( @validate_call - def get_rag_deployment_deployments_rag_deployment_id_get_with_http_info( + def get_inference_v3_deployment_deployments_inference_v3_deployment_id_get_with_http_info( self, deployment_id: StrictInt, _request_timeout: Union[ @@ -8226,8 +8291,8 @@ def get_rag_deployment_deployments_rag_deployment_id_get_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[GetRagDeploymentResponse]: - """Get Rag Deployment + ) -> ApiResponse[GetInferenceV3DeploymentResponse]: + """Get Inference V3 Deployment :param deployment_id: (required) @@ -8254,7 +8319,7 @@ def get_rag_deployment_deployments_rag_deployment_id_get_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._get_rag_deployment_deployments_rag_deployment_id_get_serialize( + _param = self._get_inference_v3_deployment_deployments_inference_v3_deployment_id_get_serialize( deployment_id=deployment_id, _request_auth=_request_auth, _content_type=_content_type, @@ -8263,7 +8328,7 @@ def get_rag_deployment_deployments_rag_deployment_id_get_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "GetRagDeploymentResponse", + '200': "GetInferenceV3DeploymentResponse", '422': "HTTPValidationError", } response_data = self.api_client.call_api( @@ -8278,7 +8343,7 @@ def get_rag_deployment_deployments_rag_deployment_id_get_with_http_info( @validate_call - def get_rag_deployment_deployments_rag_deployment_id_get_without_preload_content( + def get_inference_v3_deployment_deployments_inference_v3_deployment_id_get_without_preload_content( self, deployment_id: StrictInt, _request_timeout: Union[ @@ -8294,7 +8359,7 @@ def get_rag_deployment_deployments_rag_deployment_id_get_without_preload_content _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """Get Rag Deployment + """Get Inference V3 Deployment :param deployment_id: (required) @@ -8321,7 +8386,7 @@ def get_rag_deployment_deployments_rag_deployment_id_get_without_preload_content :return: Returns the result object. """ # noqa: E501 - _param = self._get_rag_deployment_deployments_rag_deployment_id_get_serialize( + _param = self._get_inference_v3_deployment_deployments_inference_v3_deployment_id_get_serialize( deployment_id=deployment_id, _request_auth=_request_auth, _content_type=_content_type, @@ -8330,7 +8395,7 @@ def get_rag_deployment_deployments_rag_deployment_id_get_without_preload_content ) _response_types_map: Dict[str, Optional[str]] = { - '200': "GetRagDeploymentResponse", + '200': "GetInferenceV3DeploymentResponse", '422': "HTTPValidationError", } response_data = self.api_client.call_api( @@ -8340,7 +8405,7 @@ def get_rag_deployment_deployments_rag_deployment_id_get_without_preload_content return response_data.response - def _get_rag_deployment_deployments_rag_deployment_id_get_serialize( + def _get_inference_v3_deployment_deployments_inference_v3_deployment_id_get_serialize( self, deployment_id, _request_auth, @@ -8388,7 +8453,7 @@ def _get_rag_deployment_deployments_rag_deployment_id_get_serialize( return self.api_client.param_serialize( method='GET', - resource_path='/deployments/rag/{deployment_id}', + resource_path='/deployments/inference_v3/{deployment_id}', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -8405,10 +8470,8 @@ def _get_rag_deployment_deployments_rag_deployment_id_get_serialize( @validate_call - def get_usage_daily_bills_get( + def get_payment_method_payments_methods_get( self, - start_date: date, - end_date: date, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -8421,14 +8484,10 @@ def get_usage_daily_bills_get( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ListDailyBillResponse: - """Get Usage + ) -> PaymentMethodResponse: + """Get Payment Method - :param start_date: (required) - :type start_date: date - :param end_date: (required) - :type end_date: date :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 @@ -8451,9 +8510,7 @@ def get_usage_daily_bills_get( :return: Returns the result object. """ # noqa: E501 - _param = self._get_usage_daily_bills_get_serialize( - start_date=start_date, - end_date=end_date, + _param = self._get_payment_method_payments_methods_get_serialize( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -8461,8 +8518,7 @@ def get_usage_daily_bills_get( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "ListDailyBillResponse", - '422': "HTTPValidationError", + '200': "PaymentMethodResponse", } response_data = self.api_client.call_api( *_param, @@ -8476,10 +8532,8 @@ def get_usage_daily_bills_get( @validate_call - def get_usage_daily_bills_get_with_http_info( + def get_payment_method_payments_methods_get_with_http_info( self, - start_date: date, - end_date: date, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -8492,14 +8546,10 @@ def get_usage_daily_bills_get_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[ListDailyBillResponse]: - """Get Usage + ) -> ApiResponse[PaymentMethodResponse]: + """Get Payment Method - :param start_date: (required) - :type start_date: date - :param end_date: (required) - :type end_date: date :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 @@ -8522,9 +8572,7 @@ def get_usage_daily_bills_get_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._get_usage_daily_bills_get_serialize( - start_date=start_date, - end_date=end_date, + _param = self._get_payment_method_payments_methods_get_serialize( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -8532,8 +8580,7 @@ def get_usage_daily_bills_get_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "ListDailyBillResponse", - '422': "HTTPValidationError", + '200': "PaymentMethodResponse", } response_data = self.api_client.call_api( *_param, @@ -8547,10 +8594,8 @@ def get_usage_daily_bills_get_with_http_info( @validate_call - def get_usage_daily_bills_get_without_preload_content( + def get_payment_method_payments_methods_get_without_preload_content( self, - start_date: date, - end_date: date, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -8564,13 +8609,9 @@ def get_usage_daily_bills_get_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """Get Usage + """Get Payment Method - :param start_date: (required) - :type start_date: date - :param end_date: (required) - :type end_date: date :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 @@ -8593,9 +8634,7 @@ def get_usage_daily_bills_get_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._get_usage_daily_bills_get_serialize( - start_date=start_date, - end_date=end_date, + _param = self._get_payment_method_payments_methods_get_serialize( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -8603,8 +8642,7 @@ def get_usage_daily_bills_get_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "ListDailyBillResponse", - '422': "HTTPValidationError", + '200': "PaymentMethodResponse", } response_data = self.api_client.call_api( *_param, @@ -8613,10 +8651,8 @@ def get_usage_daily_bills_get_without_preload_content( return response_data.response - def _get_usage_daily_bills_get_serialize( + def _get_payment_method_payments_methods_get_serialize( self, - start_date, - end_date, _request_auth, _content_type, _headers, @@ -8639,32 +8675,6 @@ def _get_usage_daily_bills_get_serialize( # process the path parameters # process the query parameters - if start_date is not None: - if isinstance(start_date, date): - _query_params.append( - ( - 'start_date', - start_date.strftime( - self.api_client.configuration.date_format - ) - ) - ) - else: - _query_params.append(('start_date', start_date)) - - if end_date is not None: - if isinstance(end_date, date): - _query_params.append( - ( - 'end_date', - end_date.strftime( - self.api_client.configuration.date_format - ) - ) - ) - else: - _query_params.append(('end_date', end_date)) - # process the header parameters # process the form parameters # process the body parameter @@ -8686,7 +8696,7 @@ def _get_usage_daily_bills_get_serialize( return self.api_client.param_serialize( method='GET', - resource_path='/daily_bills', + resource_path='/payments/methods', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -8703,13 +8713,8 @@ def _get_usage_daily_bills_get_serialize( @validate_call - def get_usage_deployments_usage_deployment_id_get( + def get_payments_payments_get( self, - deployment_id: StrictInt, - metric: Metric, - start_time_in_seconds: StrictInt, - end_time_in_seconds: StrictInt, - step: Optional[StrictInt] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -8722,20 +8727,10 @@ def get_usage_deployments_usage_deployment_id_get( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> GetDeploymentUsageResponse: - """Get Usage + ) -> ListPaymentsResponse: + """Get Payments - :param deployment_id: (required) - :type deployment_id: int - :param metric: (required) - :type metric: Metric - :param start_time_in_seconds: (required) - :type start_time_in_seconds: int - :param end_time_in_seconds: (required) - :type end_time_in_seconds: int - :param step: - :type step: 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 @@ -8758,12 +8753,7 @@ def get_usage_deployments_usage_deployment_id_get( :return: Returns the result object. """ # noqa: E501 - _param = self._get_usage_deployments_usage_deployment_id_get_serialize( - deployment_id=deployment_id, - metric=metric, - start_time_in_seconds=start_time_in_seconds, - end_time_in_seconds=end_time_in_seconds, - step=step, + _param = self._get_payments_payments_get_serialize( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -8771,8 +8761,7 @@ def get_usage_deployments_usage_deployment_id_get( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "GetDeploymentUsageResponse", - '422': "HTTPValidationError", + '200': "ListPaymentsResponse", } response_data = self.api_client.call_api( *_param, @@ -8786,13 +8775,8 @@ def get_usage_deployments_usage_deployment_id_get( @validate_call - def get_usage_deployments_usage_deployment_id_get_with_http_info( + def get_payments_payments_get_with_http_info( self, - deployment_id: StrictInt, - metric: Metric, - start_time_in_seconds: StrictInt, - end_time_in_seconds: StrictInt, - step: Optional[StrictInt] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -8805,20 +8789,10 @@ def get_usage_deployments_usage_deployment_id_get_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[GetDeploymentUsageResponse]: - """Get Usage + ) -> ApiResponse[ListPaymentsResponse]: + """Get Payments - :param deployment_id: (required) - :type deployment_id: int - :param metric: (required) - :type metric: Metric - :param start_time_in_seconds: (required) - :type start_time_in_seconds: int - :param end_time_in_seconds: (required) - :type end_time_in_seconds: int - :param step: - :type step: 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 @@ -8841,12 +8815,7 @@ def get_usage_deployments_usage_deployment_id_get_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._get_usage_deployments_usage_deployment_id_get_serialize( - deployment_id=deployment_id, - metric=metric, - start_time_in_seconds=start_time_in_seconds, - end_time_in_seconds=end_time_in_seconds, - step=step, + _param = self._get_payments_payments_get_serialize( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -8854,8 +8823,7 @@ def get_usage_deployments_usage_deployment_id_get_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "GetDeploymentUsageResponse", - '422': "HTTPValidationError", + '200': "ListPaymentsResponse", } response_data = self.api_client.call_api( *_param, @@ -8869,13 +8837,8 @@ def get_usage_deployments_usage_deployment_id_get_with_http_info( @validate_call - def get_usage_deployments_usage_deployment_id_get_without_preload_content( + def get_payments_payments_get_without_preload_content( self, - deployment_id: StrictInt, - metric: Metric, - start_time_in_seconds: StrictInt, - end_time_in_seconds: StrictInt, - step: Optional[StrictInt] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -8889,19 +8852,9 @@ def get_usage_deployments_usage_deployment_id_get_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """Get Usage + """Get Payments - :param deployment_id: (required) - :type deployment_id: int - :param metric: (required) - :type metric: Metric - :param start_time_in_seconds: (required) - :type start_time_in_seconds: int - :param end_time_in_seconds: (required) - :type end_time_in_seconds: int - :param step: - :type step: 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 @@ -8924,12 +8877,7 @@ def get_usage_deployments_usage_deployment_id_get_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._get_usage_deployments_usage_deployment_id_get_serialize( - deployment_id=deployment_id, - metric=metric, - start_time_in_seconds=start_time_in_seconds, - end_time_in_seconds=end_time_in_seconds, - step=step, + _param = self._get_payments_payments_get_serialize( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -8937,8 +8885,7 @@ def get_usage_deployments_usage_deployment_id_get_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "GetDeploymentUsageResponse", - '422': "HTTPValidationError", + '200': "ListPaymentsResponse", } response_data = self.api_client.call_api( *_param, @@ -8947,13 +8894,8 @@ def get_usage_deployments_usage_deployment_id_get_without_preload_content( return response_data.response - def _get_usage_deployments_usage_deployment_id_get_serialize( + def _get_payments_payments_get_serialize( self, - deployment_id, - metric, - start_time_in_seconds, - end_time_in_seconds, - step, _request_auth, _content_type, _headers, @@ -8975,25 +8917,7 @@ def _get_usage_deployments_usage_deployment_id_get_serialize( _body_params: Optional[bytes] = None # process the path parameters - if deployment_id is not None: - _path_params['deployment_id'] = deployment_id # process the query parameters - if metric is not None: - - _query_params.append(('metric', metric.value)) - - if start_time_in_seconds is not None: - - _query_params.append(('start_time_in_seconds', start_time_in_seconds)) - - if end_time_in_seconds is not None: - - _query_params.append(('end_time_in_seconds', end_time_in_seconds)) - - if step is not None: - - _query_params.append(('step', step)) - # process the header parameters # process the form parameters # process the body parameter @@ -9015,7 +8939,7 @@ def _get_usage_deployments_usage_deployment_id_get_serialize( return self.api_client.param_serialize( method='GET', - resource_path='/deployments/usage/{deployment_id}', + resource_path='/payments', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -9032,8 +8956,9 @@ def _get_usage_deployments_usage_deployment_id_get_serialize( @validate_call - def setup_stripe_customer_payments_setup_post( + def get_prebuilt_images_prebuilt_images_get( self, + type: Optional[DeploymentType] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -9046,10 +8971,12 @@ def setup_stripe_customer_payments_setup_post( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> object: - """Setup Stripe Customer + ) -> ListPrebuiltImageResponse: + """Get Prebuilt Images + :param type: + :type type: DeploymentType :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 @@ -9072,7 +8999,8 @@ def setup_stripe_customer_payments_setup_post( :return: Returns the result object. """ # noqa: E501 - _param = self._setup_stripe_customer_payments_setup_post_serialize( + _param = self._get_prebuilt_images_prebuilt_images_get_serialize( + type=type, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -9080,7 +9008,8 @@ def setup_stripe_customer_payments_setup_post( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "object", + '200': "ListPrebuiltImageResponse", + '422': "HTTPValidationError", } response_data = self.api_client.call_api( *_param, @@ -9094,8 +9023,9 @@ def setup_stripe_customer_payments_setup_post( @validate_call - def setup_stripe_customer_payments_setup_post_with_http_info( + def get_prebuilt_images_prebuilt_images_get_with_http_info( self, + type: Optional[DeploymentType] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -9108,10 +9038,1616 @@ def setup_stripe_customer_payments_setup_post_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[object]: - """Setup Stripe Customer + ) -> ApiResponse[ListPrebuiltImageResponse]: + """Get Prebuilt Images + :param type: + :type type: DeploymentType + :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_prebuilt_images_prebuilt_images_get_serialize( + type=type, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "ListPrebuiltImageResponse", + '422': "HTTPValidationError", + } + 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_prebuilt_images_prebuilt_images_get_without_preload_content( + self, + type: Optional[DeploymentType] = 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 Prebuilt Images + + + :param type: + :type type: DeploymentType + :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_prebuilt_images_prebuilt_images_get_serialize( + type=type, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "ListPrebuiltImageResponse", + '422': "HTTPValidationError", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _get_prebuilt_images_prebuilt_images_get_serialize( + self, + type, + _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 + # process the query parameters + if type is not None: + + _query_params.append(('type', type.value)) + + # 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] = [ + 'HTTPBearer' + ] + + return self.api_client.param_serialize( + method='GET', + resource_path='/prebuilt-images', + 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_rag_deployment_deployments_rag_deployment_id_get( + self, + deployment_id: StrictInt, + _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, + ) -> GetRagDeploymentResponse: + """Get Rag Deployment + + + :param deployment_id: (required) + :type deployment_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._get_rag_deployment_deployments_rag_deployment_id_get_serialize( + deployment_id=deployment_id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "GetRagDeploymentResponse", + '422': "HTTPValidationError", + } + 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_rag_deployment_deployments_rag_deployment_id_get_with_http_info( + self, + deployment_id: StrictInt, + _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[GetRagDeploymentResponse]: + """Get Rag Deployment + + + :param deployment_id: (required) + :type deployment_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._get_rag_deployment_deployments_rag_deployment_id_get_serialize( + deployment_id=deployment_id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "GetRagDeploymentResponse", + '422': "HTTPValidationError", + } + 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_rag_deployment_deployments_rag_deployment_id_get_without_preload_content( + self, + deployment_id: StrictInt, + _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 Rag Deployment + + + :param deployment_id: (required) + :type deployment_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._get_rag_deployment_deployments_rag_deployment_id_get_serialize( + deployment_id=deployment_id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "GetRagDeploymentResponse", + '422': "HTTPValidationError", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _get_rag_deployment_deployments_rag_deployment_id_get_serialize( + self, + deployment_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 deployment_id is not None: + _path_params['deployment_id'] = deployment_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] = [ + 'HTTPBearer' + ] + + return self.api_client.param_serialize( + method='GET', + resource_path='/deployments/rag/{deployment_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 get_usage_daily_bills_get( + self, + start_date: date, + end_date: date, + _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, + ) -> ListDailyBillResponse: + """Get Usage + + + :param start_date: (required) + :type start_date: date + :param end_date: (required) + :type end_date: date + :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_usage_daily_bills_get_serialize( + start_date=start_date, + end_date=end_date, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "ListDailyBillResponse", + '422': "HTTPValidationError", + } + 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_usage_daily_bills_get_with_http_info( + self, + start_date: date, + end_date: date, + _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[ListDailyBillResponse]: + """Get Usage + + + :param start_date: (required) + :type start_date: date + :param end_date: (required) + :type end_date: date + :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_usage_daily_bills_get_serialize( + start_date=start_date, + end_date=end_date, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "ListDailyBillResponse", + '422': "HTTPValidationError", + } + 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_usage_daily_bills_get_without_preload_content( + self, + start_date: date, + end_date: date, + _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 Usage + + + :param start_date: (required) + :type start_date: date + :param end_date: (required) + :type end_date: date + :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_usage_daily_bills_get_serialize( + start_date=start_date, + end_date=end_date, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "ListDailyBillResponse", + '422': "HTTPValidationError", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _get_usage_daily_bills_get_serialize( + self, + start_date, + end_date, + _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 + # process the query parameters + if start_date is not None: + if isinstance(start_date, date): + _query_params.append( + ( + 'start_date', + start_date.strftime( + self.api_client.configuration.date_format + ) + ) + ) + else: + _query_params.append(('start_date', start_date)) + + if end_date is not None: + if isinstance(end_date, date): + _query_params.append( + ( + 'end_date', + end_date.strftime( + self.api_client.configuration.date_format + ) + ) + ) + else: + _query_params.append(('end_date', end_date)) + + # 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] = [ + 'HTTPBearer' + ] + + return self.api_client.param_serialize( + method='GET', + resource_path='/daily_bills', + 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_usage_deployments_usage_deployment_id_get( + self, + deployment_id: StrictInt, + metric: Metric, + start_time_in_seconds: StrictInt, + end_time_in_seconds: StrictInt, + step: Optional[StrictInt] = 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, + ) -> GetDeploymentUsageResponse: + """Get Usage + + + :param deployment_id: (required) + :type deployment_id: int + :param metric: (required) + :type metric: Metric + :param start_time_in_seconds: (required) + :type start_time_in_seconds: int + :param end_time_in_seconds: (required) + :type end_time_in_seconds: int + :param step: + :type step: 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._get_usage_deployments_usage_deployment_id_get_serialize( + deployment_id=deployment_id, + metric=metric, + start_time_in_seconds=start_time_in_seconds, + end_time_in_seconds=end_time_in_seconds, + step=step, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "GetDeploymentUsageResponse", + '422': "HTTPValidationError", + } + 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_usage_deployments_usage_deployment_id_get_with_http_info( + self, + deployment_id: StrictInt, + metric: Metric, + start_time_in_seconds: StrictInt, + end_time_in_seconds: StrictInt, + step: Optional[StrictInt] = 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[GetDeploymentUsageResponse]: + """Get Usage + + + :param deployment_id: (required) + :type deployment_id: int + :param metric: (required) + :type metric: Metric + :param start_time_in_seconds: (required) + :type start_time_in_seconds: int + :param end_time_in_seconds: (required) + :type end_time_in_seconds: int + :param step: + :type step: 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._get_usage_deployments_usage_deployment_id_get_serialize( + deployment_id=deployment_id, + metric=metric, + start_time_in_seconds=start_time_in_seconds, + end_time_in_seconds=end_time_in_seconds, + step=step, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "GetDeploymentUsageResponse", + '422': "HTTPValidationError", + } + 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_usage_deployments_usage_deployment_id_get_without_preload_content( + self, + deployment_id: StrictInt, + metric: Metric, + start_time_in_seconds: StrictInt, + end_time_in_seconds: StrictInt, + step: Optional[StrictInt] = 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 Usage + + + :param deployment_id: (required) + :type deployment_id: int + :param metric: (required) + :type metric: Metric + :param start_time_in_seconds: (required) + :type start_time_in_seconds: int + :param end_time_in_seconds: (required) + :type end_time_in_seconds: int + :param step: + :type step: 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._get_usage_deployments_usage_deployment_id_get_serialize( + deployment_id=deployment_id, + metric=metric, + start_time_in_seconds=start_time_in_seconds, + end_time_in_seconds=end_time_in_seconds, + step=step, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "GetDeploymentUsageResponse", + '422': "HTTPValidationError", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _get_usage_deployments_usage_deployment_id_get_serialize( + self, + deployment_id, + metric, + start_time_in_seconds, + end_time_in_seconds, + step, + _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 deployment_id is not None: + _path_params['deployment_id'] = deployment_id + # process the query parameters + if metric is not None: + + _query_params.append(('metric', metric.value)) + + if start_time_in_seconds is not None: + + _query_params.append(('start_time_in_seconds', start_time_in_seconds)) + + if end_time_in_seconds is not None: + + _query_params.append(('end_time_in_seconds', end_time_in_seconds)) + + if step is not None: + + _query_params.append(('step', step)) + + # 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] = [ + 'HTTPBearer' + ] + + return self.api_client.param_serialize( + method='GET', + resource_path='/deployments/usage/{deployment_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 setup_stripe_customer_payments_setup_post( + self, + _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: + """Setup Stripe Customer + + + :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._setup_stripe_customer_payments_setup_post_serialize( + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "object", + } + 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 setup_stripe_customer_payments_setup_post_with_http_info( + self, + _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]: + """Setup Stripe Customer + + + :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._setup_stripe_customer_payments_setup_post_serialize( + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "object", + } + 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 setup_stripe_customer_payments_setup_post_without_preload_content( + self, + _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: + """Setup Stripe Customer + + + :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._setup_stripe_customer_payments_setup_post_serialize( + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "object", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _setup_stripe_customer_payments_setup_post_serialize( + self, + _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 + # 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] = [ + 'HTTPBearer' + ] + + return self.api_client.param_serialize( + method='POST', + resource_path='/payments/setup', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def update_autocharge_preferences_autocharge_preferences_put( + self, + update_autocharge_preferences_request: UpdateAutochargePreferencesRequest, + _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: + """Update Autocharge Preferences + + + :param update_autocharge_preferences_request: (required) + :type update_autocharge_preferences_request: UpdateAutochargePreferencesRequest + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._update_autocharge_preferences_autocharge_preferences_put_serialize( + update_autocharge_preferences_request=update_autocharge_preferences_request, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "object", + '422': "HTTPValidationError", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def update_autocharge_preferences_autocharge_preferences_put_with_http_info( + self, + update_autocharge_preferences_request: UpdateAutochargePreferencesRequest, + _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]: + """Update Autocharge Preferences + + + :param update_autocharge_preferences_request: (required) + :type update_autocharge_preferences_request: UpdateAutochargePreferencesRequest + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._update_autocharge_preferences_autocharge_preferences_put_serialize( + update_autocharge_preferences_request=update_autocharge_preferences_request, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "object", + '422': "HTTPValidationError", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def update_autocharge_preferences_autocharge_preferences_put_without_preload_content( + self, + update_autocharge_preferences_request: UpdateAutochargePreferencesRequest, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """Update Autocharge Preferences + + + :param update_autocharge_preferences_request: (required) + :type update_autocharge_preferences_request: UpdateAutochargePreferencesRequest + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._update_autocharge_preferences_autocharge_preferences_put_serialize( + update_autocharge_preferences_request=update_autocharge_preferences_request, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "object", + '422': "HTTPValidationError", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _update_autocharge_preferences_autocharge_preferences_put_serialize( + self, + update_autocharge_preferences_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 + # process the query parameters + # process the header parameters + # process the form parameters + # process the body parameter + if update_autocharge_preferences_request is not None: + _body_params = update_autocharge_preferences_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] = [ + 'HTTPBearer' + ] + + return self.api_client.param_serialize( + method='PUT', + resource_path='/autocharge/preferences', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def update_compute_deployment_deployments_compute_put( + self, + deployment_id: StrictInt, + create_compute_deployment_request: CreateComputeDeploymentRequest, + _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, + ) -> UpdateDeploymentResponse: + """Update Compute Deployment + + + :param deployment_id: (required) + :type deployment_id: int + :param create_compute_deployment_request: (required) + :type create_compute_deployment_request: CreateComputeDeploymentRequest :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 @@ -9134,7 +10670,9 @@ def setup_stripe_customer_payments_setup_post_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._setup_stripe_customer_payments_setup_post_serialize( + _param = self._update_compute_deployment_deployments_compute_put_serialize( + deployment_id=deployment_id, + create_compute_deployment_request=create_compute_deployment_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -9142,7 +10680,79 @@ def setup_stripe_customer_payments_setup_post_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "object", + '200': "UpdateDeploymentResponse", + '422': "HTTPValidationError", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def update_compute_deployment_deployments_compute_put_with_http_info( + self, + deployment_id: StrictInt, + create_compute_deployment_request: CreateComputeDeploymentRequest, + _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[UpdateDeploymentResponse]: + """Update Compute Deployment + + + :param deployment_id: (required) + :type deployment_id: int + :param create_compute_deployment_request: (required) + :type create_compute_deployment_request: CreateComputeDeploymentRequest + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._update_compute_deployment_deployments_compute_put_serialize( + deployment_id=deployment_id, + create_compute_deployment_request=create_compute_deployment_request, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "UpdateDeploymentResponse", + '422': "HTTPValidationError", } response_data = self.api_client.call_api( *_param, @@ -9156,8 +10766,10 @@ def setup_stripe_customer_payments_setup_post_with_http_info( @validate_call - def setup_stripe_customer_payments_setup_post_without_preload_content( + def update_compute_deployment_deployments_compute_put_without_preload_content( self, + deployment_id: StrictInt, + create_compute_deployment_request: CreateComputeDeploymentRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -9171,9 +10783,13 @@ def setup_stripe_customer_payments_setup_post_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """Setup Stripe Customer + """Update Compute Deployment + :param deployment_id: (required) + :type deployment_id: int + :param create_compute_deployment_request: (required) + :type create_compute_deployment_request: CreateComputeDeploymentRequest :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 @@ -9196,7 +10812,9 @@ def setup_stripe_customer_payments_setup_post_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._setup_stripe_customer_payments_setup_post_serialize( + _param = self._update_compute_deployment_deployments_compute_put_serialize( + deployment_id=deployment_id, + create_compute_deployment_request=create_compute_deployment_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -9204,7 +10822,8 @@ def setup_stripe_customer_payments_setup_post_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "object", + '200': "UpdateDeploymentResponse", + '422': "HTTPValidationError", } response_data = self.api_client.call_api( *_param, @@ -9213,8 +10832,10 @@ def setup_stripe_customer_payments_setup_post_without_preload_content( return response_data.response - def _setup_stripe_customer_payments_setup_post_serialize( + def _update_compute_deployment_deployments_compute_put_serialize( self, + deployment_id, + create_compute_deployment_request, _request_auth, _content_type, _headers, @@ -9237,9 +10858,15 @@ def _setup_stripe_customer_payments_setup_post_serialize( # process the path parameters # process the query parameters + if deployment_id is not None: + + _query_params.append(('deployment_id', deployment_id)) + # process the header parameters # process the form parameters # process the body parameter + if create_compute_deployment_request is not None: + _body_params = create_compute_deployment_request # set the HTTP header `Accept` @@ -9250,6 +10877,19 @@ def _setup_stripe_customer_payments_setup_post_serialize( ] ) + # 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] = [ @@ -9257,8 +10897,8 @@ def _setup_stripe_customer_payments_setup_post_serialize( ] return self.api_client.param_serialize( - method='POST', - resource_path='/payments/setup', + method='PUT', + resource_path='/deployments/compute', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -9275,9 +10915,10 @@ def _setup_stripe_customer_payments_setup_post_serialize( @validate_call - def update_autocharge_preferences_autocharge_preferences_put( + def update_cserve_v2_deployment_deployments_cserve_v2_put( self, - update_autocharge_preferences_request: UpdateAutochargePreferencesRequest, + deployment_id: StrictInt, + create_c_serve_v2_deployment_request: CreateCServeV2DeploymentRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -9290,12 +10931,14 @@ def update_autocharge_preferences_autocharge_preferences_put( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> object: - """Update Autocharge Preferences + ) -> UpdateDeploymentResponse: + """Update Cserve V2 Deployment - :param update_autocharge_preferences_request: (required) - :type update_autocharge_preferences_request: UpdateAutochargePreferencesRequest + :param deployment_id: (required) + :type deployment_id: int + :param create_c_serve_v2_deployment_request: (required) + :type create_c_serve_v2_deployment_request: CreateCServeV2DeploymentRequest :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 @@ -9318,8 +10961,9 @@ def update_autocharge_preferences_autocharge_preferences_put( :return: Returns the result object. """ # noqa: E501 - _param = self._update_autocharge_preferences_autocharge_preferences_put_serialize( - update_autocharge_preferences_request=update_autocharge_preferences_request, + _param = self._update_cserve_v2_deployment_deployments_cserve_v2_put_serialize( + deployment_id=deployment_id, + create_c_serve_v2_deployment_request=create_c_serve_v2_deployment_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -9327,7 +10971,7 @@ def update_autocharge_preferences_autocharge_preferences_put( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "object", + '200': "UpdateDeploymentResponse", '422': "HTTPValidationError", } response_data = self.api_client.call_api( @@ -9342,9 +10986,10 @@ def update_autocharge_preferences_autocharge_preferences_put( @validate_call - def update_autocharge_preferences_autocharge_preferences_put_with_http_info( + def update_cserve_v2_deployment_deployments_cserve_v2_put_with_http_info( self, - update_autocharge_preferences_request: UpdateAutochargePreferencesRequest, + deployment_id: StrictInt, + create_c_serve_v2_deployment_request: CreateCServeV2DeploymentRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -9357,12 +11002,14 @@ def update_autocharge_preferences_autocharge_preferences_put_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[object]: - """Update Autocharge Preferences + ) -> ApiResponse[UpdateDeploymentResponse]: + """Update Cserve V2 Deployment - :param update_autocharge_preferences_request: (required) - :type update_autocharge_preferences_request: UpdateAutochargePreferencesRequest + :param deployment_id: (required) + :type deployment_id: int + :param create_c_serve_v2_deployment_request: (required) + :type create_c_serve_v2_deployment_request: CreateCServeV2DeploymentRequest :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 @@ -9385,8 +11032,9 @@ def update_autocharge_preferences_autocharge_preferences_put_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._update_autocharge_preferences_autocharge_preferences_put_serialize( - update_autocharge_preferences_request=update_autocharge_preferences_request, + _param = self._update_cserve_v2_deployment_deployments_cserve_v2_put_serialize( + deployment_id=deployment_id, + create_c_serve_v2_deployment_request=create_c_serve_v2_deployment_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -9394,7 +11042,7 @@ def update_autocharge_preferences_autocharge_preferences_put_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "object", + '200': "UpdateDeploymentResponse", '422': "HTTPValidationError", } response_data = self.api_client.call_api( @@ -9409,9 +11057,10 @@ def update_autocharge_preferences_autocharge_preferences_put_with_http_info( @validate_call - def update_autocharge_preferences_autocharge_preferences_put_without_preload_content( + def update_cserve_v2_deployment_deployments_cserve_v2_put_without_preload_content( self, - update_autocharge_preferences_request: UpdateAutochargePreferencesRequest, + deployment_id: StrictInt, + create_c_serve_v2_deployment_request: CreateCServeV2DeploymentRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -9425,11 +11074,13 @@ def update_autocharge_preferences_autocharge_preferences_put_without_preload_con _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """Update Autocharge Preferences + """Update Cserve V2 Deployment - :param update_autocharge_preferences_request: (required) - :type update_autocharge_preferences_request: UpdateAutochargePreferencesRequest + :param deployment_id: (required) + :type deployment_id: int + :param create_c_serve_v2_deployment_request: (required) + :type create_c_serve_v2_deployment_request: CreateCServeV2DeploymentRequest :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 @@ -9452,8 +11103,9 @@ def update_autocharge_preferences_autocharge_preferences_put_without_preload_con :return: Returns the result object. """ # noqa: E501 - _param = self._update_autocharge_preferences_autocharge_preferences_put_serialize( - update_autocharge_preferences_request=update_autocharge_preferences_request, + _param = self._update_cserve_v2_deployment_deployments_cserve_v2_put_serialize( + deployment_id=deployment_id, + create_c_serve_v2_deployment_request=create_c_serve_v2_deployment_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -9461,7 +11113,7 @@ def update_autocharge_preferences_autocharge_preferences_put_without_preload_con ) _response_types_map: Dict[str, Optional[str]] = { - '200': "object", + '200': "UpdateDeploymentResponse", '422': "HTTPValidationError", } response_data = self.api_client.call_api( @@ -9471,9 +11123,10 @@ def update_autocharge_preferences_autocharge_preferences_put_without_preload_con return response_data.response - def _update_autocharge_preferences_autocharge_preferences_put_serialize( + def _update_cserve_v2_deployment_deployments_cserve_v2_put_serialize( self, - update_autocharge_preferences_request, + deployment_id, + create_c_serve_v2_deployment_request, _request_auth, _content_type, _headers, @@ -9496,11 +11149,15 @@ def _update_autocharge_preferences_autocharge_preferences_put_serialize( # process the path parameters # process the query parameters + if deployment_id is not None: + + _query_params.append(('deployment_id', deployment_id)) + # process the header parameters # process the form parameters # process the body parameter - if update_autocharge_preferences_request is not None: - _body_params = update_autocharge_preferences_request + if create_c_serve_v2_deployment_request is not None: + _body_params = create_c_serve_v2_deployment_request # set the HTTP header `Accept` @@ -9532,7 +11189,7 @@ def _update_autocharge_preferences_autocharge_preferences_put_serialize( return self.api_client.param_serialize( method='PUT', - resource_path='/autocharge/preferences', + resource_path='/deployments/cserve_v2', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -9549,10 +11206,10 @@ def _update_autocharge_preferences_autocharge_preferences_put_serialize( @validate_call - def update_compute_deployment_deployments_compute_put( + def update_cserve_v3_deployment_deployments_cserve_v3_put( self, deployment_id: StrictInt, - create_compute_deployment_request: CreateComputeDeploymentRequest, + create_c_serve_v3_deployment_request: CreateCServeV3DeploymentRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -9566,13 +11223,13 @@ def update_compute_deployment_deployments_compute_put( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> UpdateDeploymentResponse: - """Update Compute Deployment + """Update Cserve V3 Deployment :param deployment_id: (required) :type deployment_id: int - :param create_compute_deployment_request: (required) - :type create_compute_deployment_request: CreateComputeDeploymentRequest + :param create_c_serve_v3_deployment_request: (required) + :type create_c_serve_v3_deployment_request: CreateCServeV3DeploymentRequest :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 @@ -9595,9 +11252,9 @@ def update_compute_deployment_deployments_compute_put( :return: Returns the result object. """ # noqa: E501 - _param = self._update_compute_deployment_deployments_compute_put_serialize( + _param = self._update_cserve_v3_deployment_deployments_cserve_v3_put_serialize( deployment_id=deployment_id, - create_compute_deployment_request=create_compute_deployment_request, + create_c_serve_v3_deployment_request=create_c_serve_v3_deployment_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -9620,10 +11277,10 @@ def update_compute_deployment_deployments_compute_put( @validate_call - def update_compute_deployment_deployments_compute_put_with_http_info( + def update_cserve_v3_deployment_deployments_cserve_v3_put_with_http_info( self, deployment_id: StrictInt, - create_compute_deployment_request: CreateComputeDeploymentRequest, + create_c_serve_v3_deployment_request: CreateCServeV3DeploymentRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -9637,13 +11294,13 @@ def update_compute_deployment_deployments_compute_put_with_http_info( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[UpdateDeploymentResponse]: - """Update Compute Deployment + """Update Cserve V3 Deployment :param deployment_id: (required) :type deployment_id: int - :param create_compute_deployment_request: (required) - :type create_compute_deployment_request: CreateComputeDeploymentRequest + :param create_c_serve_v3_deployment_request: (required) + :type create_c_serve_v3_deployment_request: CreateCServeV3DeploymentRequest :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 @@ -9666,9 +11323,9 @@ def update_compute_deployment_deployments_compute_put_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._update_compute_deployment_deployments_compute_put_serialize( + _param = self._update_cserve_v3_deployment_deployments_cserve_v3_put_serialize( deployment_id=deployment_id, - create_compute_deployment_request=create_compute_deployment_request, + create_c_serve_v3_deployment_request=create_c_serve_v3_deployment_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -9691,10 +11348,10 @@ def update_compute_deployment_deployments_compute_put_with_http_info( @validate_call - def update_compute_deployment_deployments_compute_put_without_preload_content( + def update_cserve_v3_deployment_deployments_cserve_v3_put_without_preload_content( self, deployment_id: StrictInt, - create_compute_deployment_request: CreateComputeDeploymentRequest, + create_c_serve_v3_deployment_request: CreateCServeV3DeploymentRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -9708,13 +11365,13 @@ def update_compute_deployment_deployments_compute_put_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """Update Compute Deployment + """Update Cserve V3 Deployment :param deployment_id: (required) :type deployment_id: int - :param create_compute_deployment_request: (required) - :type create_compute_deployment_request: CreateComputeDeploymentRequest + :param create_c_serve_v3_deployment_request: (required) + :type create_c_serve_v3_deployment_request: CreateCServeV3DeploymentRequest :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 @@ -9737,9 +11394,9 @@ def update_compute_deployment_deployments_compute_put_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._update_compute_deployment_deployments_compute_put_serialize( + _param = self._update_cserve_v3_deployment_deployments_cserve_v3_put_serialize( deployment_id=deployment_id, - create_compute_deployment_request=create_compute_deployment_request, + create_c_serve_v3_deployment_request=create_c_serve_v3_deployment_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -9757,10 +11414,10 @@ def update_compute_deployment_deployments_compute_put_without_preload_content( return response_data.response - def _update_compute_deployment_deployments_compute_put_serialize( + def _update_cserve_v3_deployment_deployments_cserve_v3_put_serialize( self, deployment_id, - create_compute_deployment_request, + create_c_serve_v3_deployment_request, _request_auth, _content_type, _headers, @@ -9790,8 +11447,8 @@ def _update_compute_deployment_deployments_compute_put_serialize( # process the header parameters # process the form parameters # process the body parameter - if create_compute_deployment_request is not None: - _body_params = create_compute_deployment_request + if create_c_serve_v3_deployment_request is not None: + _body_params = create_c_serve_v3_deployment_request # set the HTTP header `Accept` @@ -9823,7 +11480,7 @@ def _update_compute_deployment_deployments_compute_put_serialize( return self.api_client.param_serialize( method='PUT', - resource_path='/deployments/compute', + resource_path='/deployments/cserve_v3', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -9840,10 +11497,10 @@ def _update_compute_deployment_deployments_compute_put_serialize( @validate_call - def update_cserve_v2_deployment_deployments_cserve_v2_put( + def update_deployment_status_deployments_status_deployment_id_put( self, deployment_id: StrictInt, - create_c_serve_v2_deployment_request: CreateCServeV2DeploymentRequest, + deployment_status_request: DeploymentStatusRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -9856,14 +11513,14 @@ def update_cserve_v2_deployment_deployments_cserve_v2_put( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> UpdateDeploymentResponse: - """Update Cserve V2 Deployment + ) -> DeploymentStatusResponse: + """Update Deployment Status :param deployment_id: (required) :type deployment_id: int - :param create_c_serve_v2_deployment_request: (required) - :type create_c_serve_v2_deployment_request: CreateCServeV2DeploymentRequest + :param deployment_status_request: (required) + :type deployment_status_request: DeploymentStatusRequest :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 @@ -9886,9 +11543,9 @@ def update_cserve_v2_deployment_deployments_cserve_v2_put( :return: Returns the result object. """ # noqa: E501 - _param = self._update_cserve_v2_deployment_deployments_cserve_v2_put_serialize( + _param = self._update_deployment_status_deployments_status_deployment_id_put_serialize( deployment_id=deployment_id, - create_c_serve_v2_deployment_request=create_c_serve_v2_deployment_request, + deployment_status_request=deployment_status_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -9896,7 +11553,7 @@ def update_cserve_v2_deployment_deployments_cserve_v2_put( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "UpdateDeploymentResponse", + '200': "DeploymentStatusResponse", '422': "HTTPValidationError", } response_data = self.api_client.call_api( @@ -9911,10 +11568,10 @@ def update_cserve_v2_deployment_deployments_cserve_v2_put( @validate_call - def update_cserve_v2_deployment_deployments_cserve_v2_put_with_http_info( + def update_deployment_status_deployments_status_deployment_id_put_with_http_info( self, deployment_id: StrictInt, - create_c_serve_v2_deployment_request: CreateCServeV2DeploymentRequest, + deployment_status_request: DeploymentStatusRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -9927,14 +11584,14 @@ def update_cserve_v2_deployment_deployments_cserve_v2_put_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[UpdateDeploymentResponse]: - """Update Cserve V2 Deployment + ) -> ApiResponse[DeploymentStatusResponse]: + """Update Deployment Status :param deployment_id: (required) :type deployment_id: int - :param create_c_serve_v2_deployment_request: (required) - :type create_c_serve_v2_deployment_request: CreateCServeV2DeploymentRequest + :param deployment_status_request: (required) + :type deployment_status_request: DeploymentStatusRequest :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 @@ -9957,9 +11614,9 @@ def update_cserve_v2_deployment_deployments_cserve_v2_put_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._update_cserve_v2_deployment_deployments_cserve_v2_put_serialize( + _param = self._update_deployment_status_deployments_status_deployment_id_put_serialize( deployment_id=deployment_id, - create_c_serve_v2_deployment_request=create_c_serve_v2_deployment_request, + deployment_status_request=deployment_status_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -9967,7 +11624,7 @@ def update_cserve_v2_deployment_deployments_cserve_v2_put_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "UpdateDeploymentResponse", + '200': "DeploymentStatusResponse", '422': "HTTPValidationError", } response_data = self.api_client.call_api( @@ -9982,10 +11639,10 @@ def update_cserve_v2_deployment_deployments_cserve_v2_put_with_http_info( @validate_call - def update_cserve_v2_deployment_deployments_cserve_v2_put_without_preload_content( + def update_deployment_status_deployments_status_deployment_id_put_without_preload_content( self, deployment_id: StrictInt, - create_c_serve_v2_deployment_request: CreateCServeV2DeploymentRequest, + deployment_status_request: DeploymentStatusRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -9999,13 +11656,13 @@ def update_cserve_v2_deployment_deployments_cserve_v2_put_without_preload_conten _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """Update Cserve V2 Deployment + """Update Deployment Status :param deployment_id: (required) :type deployment_id: int - :param create_c_serve_v2_deployment_request: (required) - :type create_c_serve_v2_deployment_request: CreateCServeV2DeploymentRequest + :param deployment_status_request: (required) + :type deployment_status_request: DeploymentStatusRequest :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 @@ -10028,9 +11685,9 @@ def update_cserve_v2_deployment_deployments_cserve_v2_put_without_preload_conten :return: Returns the result object. """ # noqa: E501 - _param = self._update_cserve_v2_deployment_deployments_cserve_v2_put_serialize( + _param = self._update_deployment_status_deployments_status_deployment_id_put_serialize( deployment_id=deployment_id, - create_c_serve_v2_deployment_request=create_c_serve_v2_deployment_request, + deployment_status_request=deployment_status_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -10038,7 +11695,7 @@ def update_cserve_v2_deployment_deployments_cserve_v2_put_without_preload_conten ) _response_types_map: Dict[str, Optional[str]] = { - '200': "UpdateDeploymentResponse", + '200': "DeploymentStatusResponse", '422': "HTTPValidationError", } response_data = self.api_client.call_api( @@ -10048,10 +11705,10 @@ def update_cserve_v2_deployment_deployments_cserve_v2_put_without_preload_conten return response_data.response - def _update_cserve_v2_deployment_deployments_cserve_v2_put_serialize( + def _update_deployment_status_deployments_status_deployment_id_put_serialize( self, deployment_id, - create_c_serve_v2_deployment_request, + deployment_status_request, _request_auth, _content_type, _headers, @@ -10073,16 +11730,14 @@ def _update_cserve_v2_deployment_deployments_cserve_v2_put_serialize( _body_params: Optional[bytes] = None # process the path parameters - # process the query parameters if deployment_id is not None: - - _query_params.append(('deployment_id', deployment_id)) - + _path_params['deployment_id'] = deployment_id + # process the query parameters # process the header parameters # process the form parameters # process the body parameter - if create_c_serve_v2_deployment_request is not None: - _body_params = create_c_serve_v2_deployment_request + if deployment_status_request is not None: + _body_params = deployment_status_request # set the HTTP header `Accept` @@ -10114,7 +11769,7 @@ def _update_cserve_v2_deployment_deployments_cserve_v2_put_serialize( return self.api_client.param_serialize( method='PUT', - resource_path='/deployments/cserve_v2', + resource_path='/deployments/status/{deployment_id}', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -10131,10 +11786,10 @@ def _update_cserve_v2_deployment_deployments_cserve_v2_put_serialize( @validate_call - def update_deployment_status_deployments_status_deployment_id_put( + def update_inference_deployment_deployments_inference_put( self, deployment_id: StrictInt, - deployment_status_request: DeploymentStatusRequest, + create_inference_deployment_request: CreateInferenceDeploymentRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -10147,14 +11802,14 @@ def update_deployment_status_deployments_status_deployment_id_put( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> DeploymentStatusResponse: - """Update Deployment Status + ) -> UpdateDeploymentResponse: + """Update Inference Deployment :param deployment_id: (required) :type deployment_id: int - :param deployment_status_request: (required) - :type deployment_status_request: DeploymentStatusRequest + :param create_inference_deployment_request: (required) + :type create_inference_deployment_request: CreateInferenceDeploymentRequest :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 @@ -10177,9 +11832,9 @@ def update_deployment_status_deployments_status_deployment_id_put( :return: Returns the result object. """ # noqa: E501 - _param = self._update_deployment_status_deployments_status_deployment_id_put_serialize( + _param = self._update_inference_deployment_deployments_inference_put_serialize( deployment_id=deployment_id, - deployment_status_request=deployment_status_request, + create_inference_deployment_request=create_inference_deployment_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -10187,7 +11842,7 @@ def update_deployment_status_deployments_status_deployment_id_put( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "DeploymentStatusResponse", + '200': "UpdateDeploymentResponse", '422': "HTTPValidationError", } response_data = self.api_client.call_api( @@ -10202,10 +11857,10 @@ def update_deployment_status_deployments_status_deployment_id_put( @validate_call - def update_deployment_status_deployments_status_deployment_id_put_with_http_info( + def update_inference_deployment_deployments_inference_put_with_http_info( self, deployment_id: StrictInt, - deployment_status_request: DeploymentStatusRequest, + create_inference_deployment_request: CreateInferenceDeploymentRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -10218,14 +11873,14 @@ def update_deployment_status_deployments_status_deployment_id_put_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[DeploymentStatusResponse]: - """Update Deployment Status + ) -> ApiResponse[UpdateDeploymentResponse]: + """Update Inference Deployment :param deployment_id: (required) :type deployment_id: int - :param deployment_status_request: (required) - :type deployment_status_request: DeploymentStatusRequest + :param create_inference_deployment_request: (required) + :type create_inference_deployment_request: CreateInferenceDeploymentRequest :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 @@ -10248,9 +11903,9 @@ def update_deployment_status_deployments_status_deployment_id_put_with_http_info :return: Returns the result object. """ # noqa: E501 - _param = self._update_deployment_status_deployments_status_deployment_id_put_serialize( + _param = self._update_inference_deployment_deployments_inference_put_serialize( deployment_id=deployment_id, - deployment_status_request=deployment_status_request, + create_inference_deployment_request=create_inference_deployment_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -10258,7 +11913,7 @@ def update_deployment_status_deployments_status_deployment_id_put_with_http_info ) _response_types_map: Dict[str, Optional[str]] = { - '200': "DeploymentStatusResponse", + '200': "UpdateDeploymentResponse", '422': "HTTPValidationError", } response_data = self.api_client.call_api( @@ -10273,10 +11928,10 @@ def update_deployment_status_deployments_status_deployment_id_put_with_http_info @validate_call - def update_deployment_status_deployments_status_deployment_id_put_without_preload_content( + def update_inference_deployment_deployments_inference_put_without_preload_content( self, deployment_id: StrictInt, - deployment_status_request: DeploymentStatusRequest, + create_inference_deployment_request: CreateInferenceDeploymentRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -10290,13 +11945,13 @@ def update_deployment_status_deployments_status_deployment_id_put_without_preloa _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """Update Deployment Status + """Update Inference Deployment :param deployment_id: (required) :type deployment_id: int - :param deployment_status_request: (required) - :type deployment_status_request: DeploymentStatusRequest + :param create_inference_deployment_request: (required) + :type create_inference_deployment_request: CreateInferenceDeploymentRequest :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 @@ -10319,9 +11974,9 @@ def update_deployment_status_deployments_status_deployment_id_put_without_preloa :return: Returns the result object. """ # noqa: E501 - _param = self._update_deployment_status_deployments_status_deployment_id_put_serialize( + _param = self._update_inference_deployment_deployments_inference_put_serialize( deployment_id=deployment_id, - deployment_status_request=deployment_status_request, + create_inference_deployment_request=create_inference_deployment_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -10329,7 +11984,7 @@ def update_deployment_status_deployments_status_deployment_id_put_without_preloa ) _response_types_map: Dict[str, Optional[str]] = { - '200': "DeploymentStatusResponse", + '200': "UpdateDeploymentResponse", '422': "HTTPValidationError", } response_data = self.api_client.call_api( @@ -10339,10 +11994,10 @@ def update_deployment_status_deployments_status_deployment_id_put_without_preloa return response_data.response - def _update_deployment_status_deployments_status_deployment_id_put_serialize( + def _update_inference_deployment_deployments_inference_put_serialize( self, deployment_id, - deployment_status_request, + create_inference_deployment_request, _request_auth, _content_type, _headers, @@ -10364,14 +12019,16 @@ def _update_deployment_status_deployments_status_deployment_id_put_serialize( _body_params: Optional[bytes] = None # process the path parameters - if deployment_id is not None: - _path_params['deployment_id'] = deployment_id # process the query parameters + if deployment_id is not None: + + _query_params.append(('deployment_id', deployment_id)) + # process the header parameters # process the form parameters # process the body parameter - if deployment_status_request is not None: - _body_params = deployment_status_request + if create_inference_deployment_request is not None: + _body_params = create_inference_deployment_request # set the HTTP header `Accept` @@ -10403,7 +12060,7 @@ def _update_deployment_status_deployments_status_deployment_id_put_serialize( return self.api_client.param_serialize( method='PUT', - resource_path='/deployments/status/{deployment_id}', + resource_path='/deployments/inference', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -10420,10 +12077,10 @@ def _update_deployment_status_deployments_status_deployment_id_put_serialize( @validate_call - def update_inference_deployment_deployments_inference_put( + def update_inference_v3_deployment_deployments_inference_v3_put( self, deployment_id: StrictInt, - create_inference_deployment_request: CreateInferenceDeploymentRequest, + create_inference_v3_deployment_request: CreateInferenceV3DeploymentRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -10437,13 +12094,13 @@ def update_inference_deployment_deployments_inference_put( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> UpdateDeploymentResponse: - """Update Inference Deployment + """Update Inference V3 Deployment :param deployment_id: (required) :type deployment_id: int - :param create_inference_deployment_request: (required) - :type create_inference_deployment_request: CreateInferenceDeploymentRequest + :param create_inference_v3_deployment_request: (required) + :type create_inference_v3_deployment_request: CreateInferenceV3DeploymentRequest :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 @@ -10466,9 +12123,9 @@ def update_inference_deployment_deployments_inference_put( :return: Returns the result object. """ # noqa: E501 - _param = self._update_inference_deployment_deployments_inference_put_serialize( + _param = self._update_inference_v3_deployment_deployments_inference_v3_put_serialize( deployment_id=deployment_id, - create_inference_deployment_request=create_inference_deployment_request, + create_inference_v3_deployment_request=create_inference_v3_deployment_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -10491,10 +12148,10 @@ def update_inference_deployment_deployments_inference_put( @validate_call - def update_inference_deployment_deployments_inference_put_with_http_info( + def update_inference_v3_deployment_deployments_inference_v3_put_with_http_info( self, deployment_id: StrictInt, - create_inference_deployment_request: CreateInferenceDeploymentRequest, + create_inference_v3_deployment_request: CreateInferenceV3DeploymentRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -10508,13 +12165,13 @@ def update_inference_deployment_deployments_inference_put_with_http_info( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[UpdateDeploymentResponse]: - """Update Inference Deployment + """Update Inference V3 Deployment :param deployment_id: (required) :type deployment_id: int - :param create_inference_deployment_request: (required) - :type create_inference_deployment_request: CreateInferenceDeploymentRequest + :param create_inference_v3_deployment_request: (required) + :type create_inference_v3_deployment_request: CreateInferenceV3DeploymentRequest :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 @@ -10537,9 +12194,9 @@ def update_inference_deployment_deployments_inference_put_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._update_inference_deployment_deployments_inference_put_serialize( + _param = self._update_inference_v3_deployment_deployments_inference_v3_put_serialize( deployment_id=deployment_id, - create_inference_deployment_request=create_inference_deployment_request, + create_inference_v3_deployment_request=create_inference_v3_deployment_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -10562,10 +12219,10 @@ def update_inference_deployment_deployments_inference_put_with_http_info( @validate_call - def update_inference_deployment_deployments_inference_put_without_preload_content( + def update_inference_v3_deployment_deployments_inference_v3_put_without_preload_content( self, deployment_id: StrictInt, - create_inference_deployment_request: CreateInferenceDeploymentRequest, + create_inference_v3_deployment_request: CreateInferenceV3DeploymentRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -10579,13 +12236,13 @@ def update_inference_deployment_deployments_inference_put_without_preload_conten _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """Update Inference Deployment + """Update Inference V3 Deployment :param deployment_id: (required) :type deployment_id: int - :param create_inference_deployment_request: (required) - :type create_inference_deployment_request: CreateInferenceDeploymentRequest + :param create_inference_v3_deployment_request: (required) + :type create_inference_v3_deployment_request: CreateInferenceV3DeploymentRequest :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 @@ -10608,9 +12265,9 @@ def update_inference_deployment_deployments_inference_put_without_preload_conten :return: Returns the result object. """ # noqa: E501 - _param = self._update_inference_deployment_deployments_inference_put_serialize( + _param = self._update_inference_v3_deployment_deployments_inference_v3_put_serialize( deployment_id=deployment_id, - create_inference_deployment_request=create_inference_deployment_request, + create_inference_v3_deployment_request=create_inference_v3_deployment_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -10628,10 +12285,10 @@ def update_inference_deployment_deployments_inference_put_without_preload_conten return response_data.response - def _update_inference_deployment_deployments_inference_put_serialize( + def _update_inference_v3_deployment_deployments_inference_v3_put_serialize( self, deployment_id, - create_inference_deployment_request, + create_inference_v3_deployment_request, _request_auth, _content_type, _headers, @@ -10661,8 +12318,8 @@ def _update_inference_deployment_deployments_inference_put_serialize( # process the header parameters # process the form parameters # process the body parameter - if create_inference_deployment_request is not None: - _body_params = create_inference_deployment_request + if create_inference_v3_deployment_request is not None: + _body_params = create_inference_v3_deployment_request # set the HTTP header `Accept` @@ -10694,7 +12351,7 @@ def _update_inference_deployment_deployments_inference_put_serialize( return self.api_client.param_serialize( method='PUT', - resource_path='/deployments/inference', + resource_path='/deployments/inference_v3', path_params=_path_params, query_params=_query_params, header_params=_header_params, diff --git a/platform_api_python_client/api_client.py b/platform_api_python_client/api_client.py index 4b53000..bd0a935 100644 --- a/platform_api_python_client/api_client.py +++ b/platform_api_python_client/api_client.py @@ -90,7 +90,7 @@ def __init__( self.default_headers[header_name] = header_value self.cookie = cookie # Set default User-Agent. - self.user_agent = 'OpenAPI-Generator/4.0.15/python' + self.user_agent = 'OpenAPI-Generator/4.0.17/python' self.client_side_validation = configuration.client_side_validation def __enter__(self): diff --git a/platform_api_python_client/configuration.py b/platform_api_python_client/configuration.py index 97c63a2..42eaa33 100644 --- a/platform_api_python_client/configuration.py +++ b/platform_api_python_client/configuration.py @@ -392,7 +392,7 @@ def to_debug_report(self): "OS: {env}\n"\ "Python Version: {pyversion}\n"\ "Version of the API: 0.1.0\n"\ - "SDK Package Version: 4.0.15".\ + "SDK Package Version: 4.0.17".\ format(env=sys.platform, pyversion=sys.version) def get_host_settings(self): diff --git a/platform_api_python_client/models/__init__.py b/platform_api_python_client/models/__init__.py index 87d9777..3310f09 100644 --- a/platform_api_python_client/models/__init__.py +++ b/platform_api_python_client/models/__init__.py @@ -21,12 +21,15 @@ from platform_api_python_client.models.c_serve_v2_recipe import CServeV2Recipe from platform_api_python_client.models.create_c_serve_v2_deployment_request import CreateCServeV2DeploymentRequest from platform_api_python_client.models.create_c_serve_v2_deployment_response import CreateCServeV2DeploymentResponse +from platform_api_python_client.models.create_c_serve_v3_deployment_request import CreateCServeV3DeploymentRequest +from platform_api_python_client.models.create_c_serve_v3_deployment_response import CreateCServeV3DeploymentResponse from platform_api_python_client.models.create_checkout_request import CreateCheckoutRequest from platform_api_python_client.models.create_checkout_session_response import CreateCheckoutSessionResponse from platform_api_python_client.models.create_compute_deployment_request import CreateComputeDeploymentRequest from platform_api_python_client.models.create_compute_deployment_response import CreateComputeDeploymentResponse from platform_api_python_client.models.create_inference_deployment_request import CreateInferenceDeploymentRequest from platform_api_python_client.models.create_inference_deployment_response import CreateInferenceDeploymentResponse +from platform_api_python_client.models.create_inference_v3_deployment_request import CreateInferenceV3DeploymentRequest from platform_api_python_client.models.create_organization_request import CreateOrganizationRequest from platform_api_python_client.models.create_organization_response import CreateOrganizationResponse from platform_api_python_client.models.create_rag_deployment_request import CreateRagDeploymentRequest @@ -44,12 +47,14 @@ from platform_api_python_client.models.deployment_usage_value import DeploymentUsageValue from platform_api_python_client.models.get_autocharge_preferences_response import GetAutochargePreferencesResponse from platform_api_python_client.models.get_c_serve_v2_deployment_response import GetCServeV2DeploymentResponse +from platform_api_python_client.models.get_c_serve_v3_deployment_response import GetCServeV3DeploymentResponse from platform_api_python_client.models.get_cluster_response import GetClusterResponse from platform_api_python_client.models.get_compute_deployment_response import GetComputeDeploymentResponse from platform_api_python_client.models.get_deployment_log_response import GetDeploymentLogResponse from platform_api_python_client.models.get_deployment_response import GetDeploymentResponse from platform_api_python_client.models.get_deployment_usage_response import GetDeploymentUsageResponse from platform_api_python_client.models.get_inference_deployment_response import GetInferenceDeploymentResponse +from platform_api_python_client.models.get_inference_v3_deployment_response import GetInferenceV3DeploymentResponse from platform_api_python_client.models.get_payment_response import GetPaymentResponse from platform_api_python_client.models.get_rag_deployment_response import GetRagDeploymentResponse from platform_api_python_client.models.http_validation_error import HTTPValidationError diff --git a/platform_api_python_client/models/create_c_serve_v3_deployment_request.py b/platform_api_python_client/models/create_c_serve_v3_deployment_request.py new file mode 100644 index 0000000..d1cc185 --- /dev/null +++ b/platform_api_python_client/models/create_c_serve_v3_deployment_request.py @@ -0,0 +1,153 @@ +# coding: utf-8 + +""" + Platform External API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 0.1.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, field_validator +from typing import Any, ClassVar, Dict, List, Optional +from typing_extensions import Annotated +from platform_api_python_client.models.c_serve_v2_recipe import CServeV2Recipe +from typing import Optional, Set +from typing_extensions import Self + +class CreateCServeV3DeploymentRequest(BaseModel): + """ + CreateCServeV3DeploymentRequest + """ # noqa: E501 + name: Annotated[str, Field(min_length=1, strict=True, max_length=20)] + cluster_id: StrictInt + hardware_instance_id: StrictInt + recipe: CServeV2Recipe + cserve_version: Optional[StrictStr] = None + hf_token: Optional[StrictStr] = None + endpoint_bearer_token: Optional[StrictStr] = None + endpoint_certificate_authority: Optional[StrictStr] = None + min_replicas: StrictInt + max_replicas: StrictInt + initial_replicas: Optional[StrictInt] = None + concurrency: Optional[StrictInt] = None + env_vars: Optional[Dict[str, StrictStr]] = None + __properties: ClassVar[List[str]] = ["name", "cluster_id", "hardware_instance_id", "recipe", "cserve_version", "hf_token", "endpoint_bearer_token", "endpoint_certificate_authority", "min_replicas", "max_replicas", "initial_replicas", "concurrency", "env_vars"] + + @field_validator('name') + def name_validate_regular_expression(cls, value): + """Validates the regular expression""" + if not re.match(r"^[a-z][a-z0-9-]*$", value): + raise ValueError(r"must validate the regular expression /^[a-z][a-z0-9-]*$/") + return value + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of CreateCServeV3DeploymentRequest 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 recipe + if self.recipe: + _dict['recipe'] = self.recipe.to_dict() + # set to None if cserve_version (nullable) is None + # and model_fields_set contains the field + if self.cserve_version is None and "cserve_version" in self.model_fields_set: + _dict['cserve_version'] = None + + # set to None if hf_token (nullable) is None + # and model_fields_set contains the field + if self.hf_token is None and "hf_token" in self.model_fields_set: + _dict['hf_token'] = None + + # set to None if endpoint_bearer_token (nullable) is None + # and model_fields_set contains the field + if self.endpoint_bearer_token is None and "endpoint_bearer_token" in self.model_fields_set: + _dict['endpoint_bearer_token'] = None + + # set to None if endpoint_certificate_authority (nullable) is None + # and model_fields_set contains the field + if self.endpoint_certificate_authority is None and "endpoint_certificate_authority" in self.model_fields_set: + _dict['endpoint_certificate_authority'] = None + + # set to None if initial_replicas (nullable) is None + # and model_fields_set contains the field + if self.initial_replicas is None and "initial_replicas" in self.model_fields_set: + _dict['initial_replicas'] = None + + # set to None if concurrency (nullable) is None + # and model_fields_set contains the field + if self.concurrency is None and "concurrency" in self.model_fields_set: + _dict['concurrency'] = None + + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of CreateCServeV3DeploymentRequest 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"), + "cluster_id": obj.get("cluster_id"), + "hardware_instance_id": obj.get("hardware_instance_id"), + "recipe": CServeV2Recipe.from_dict(obj["recipe"]) if obj.get("recipe") is not None else None, + "cserve_version": obj.get("cserve_version"), + "hf_token": obj.get("hf_token"), + "endpoint_bearer_token": obj.get("endpoint_bearer_token"), + "endpoint_certificate_authority": obj.get("endpoint_certificate_authority"), + "min_replicas": obj.get("min_replicas"), + "max_replicas": obj.get("max_replicas"), + "initial_replicas": obj.get("initial_replicas"), + "concurrency": obj.get("concurrency"), + "env_vars": obj.get("env_vars") + }) + return _obj + + diff --git a/platform_api_python_client/models/create_c_serve_v3_deployment_response.py b/platform_api_python_client/models/create_c_serve_v3_deployment_response.py new file mode 100644 index 0000000..816bb9b --- /dev/null +++ b/platform_api_python_client/models/create_c_serve_v3_deployment_response.py @@ -0,0 +1,92 @@ +# coding: utf-8 + +""" + Platform External API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 0.1.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 +from typing import Optional, Set +from typing_extensions import Self + +class CreateCServeV3DeploymentResponse(BaseModel): + """ + CreateCServeV3DeploymentResponse + """ # noqa: E501 + id: StrictInt + created_at: datetime + endpoint_url: StrictStr + __properties: ClassVar[List[str]] = ["id", "created_at", "endpoint_url"] + + 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 CreateCServeV3DeploymentResponse 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 CreateCServeV3DeploymentResponse 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"), + "created_at": obj.get("created_at"), + "endpoint_url": obj.get("endpoint_url") + }) + return _obj + + diff --git a/platform_api_python_client/models/create_inference_v3_deployment_request.py b/platform_api_python_client/models/create_inference_v3_deployment_request.py new file mode 100644 index 0000000..9c0d4a6 --- /dev/null +++ b/platform_api_python_client/models/create_inference_v3_deployment_request.py @@ -0,0 +1,156 @@ +# coding: utf-8 + +""" + Platform External API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 0.1.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, 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 CreateInferenceV3DeploymentRequest(BaseModel): + """ + CreateInferenceV3DeploymentRequest + """ # noqa: E501 + name: Annotated[str, Field(min_length=1, strict=True, max_length=20)] + cluster_id: StrictInt + hardware_instance_id: StrictInt + image_url: StrictStr + port: StrictInt + min_replicas: StrictInt + max_replicas: StrictInt + initial_replicas: Optional[StrictInt] = None + concurrency: Optional[StrictInt] = None + healthcheck: Optional[StrictStr] = None + env_vars: Optional[Dict[str, StrictStr]] = None + command: Optional[StrictStr] = None + endpoint_bearer_token: Optional[StrictStr] = None + endpoint_certificate_authority: Optional[StrictStr] = None + __properties: ClassVar[List[str]] = ["name", "cluster_id", "hardware_instance_id", "image_url", "port", "min_replicas", "max_replicas", "initial_replicas", "concurrency", "healthcheck", "env_vars", "command", "endpoint_bearer_token", "endpoint_certificate_authority"] + + @field_validator('name') + def name_validate_regular_expression(cls, value): + """Validates the regular expression""" + if not re.match(r"^[a-z][a-z0-9-]*$", value): + raise ValueError(r"must validate the regular expression /^[a-z][a-z0-9-]*$/") + return value + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of CreateInferenceV3DeploymentRequest 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 initial_replicas (nullable) is None + # and model_fields_set contains the field + if self.initial_replicas is None and "initial_replicas" in self.model_fields_set: + _dict['initial_replicas'] = None + + # set to None if concurrency (nullable) is None + # and model_fields_set contains the field + if self.concurrency is None and "concurrency" in self.model_fields_set: + _dict['concurrency'] = None + + # set to None if healthcheck (nullable) is None + # and model_fields_set contains the field + if self.healthcheck is None and "healthcheck" in self.model_fields_set: + _dict['healthcheck'] = None + + # set to None if env_vars (nullable) is None + # and model_fields_set contains the field + if self.env_vars is None and "env_vars" in self.model_fields_set: + _dict['env_vars'] = None + + # set to None if command (nullable) is None + # and model_fields_set contains the field + if self.command is None and "command" in self.model_fields_set: + _dict['command'] = None + + # set to None if endpoint_bearer_token (nullable) is None + # and model_fields_set contains the field + if self.endpoint_bearer_token is None and "endpoint_bearer_token" in self.model_fields_set: + _dict['endpoint_bearer_token'] = None + + # set to None if endpoint_certificate_authority (nullable) is None + # and model_fields_set contains the field + if self.endpoint_certificate_authority is None and "endpoint_certificate_authority" in self.model_fields_set: + _dict['endpoint_certificate_authority'] = None + + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of CreateInferenceV3DeploymentRequest 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"), + "cluster_id": obj.get("cluster_id"), + "hardware_instance_id": obj.get("hardware_instance_id"), + "image_url": obj.get("image_url"), + "port": obj.get("port"), + "min_replicas": obj.get("min_replicas"), + "max_replicas": obj.get("max_replicas"), + "initial_replicas": obj.get("initial_replicas"), + "concurrency": obj.get("concurrency"), + "healthcheck": obj.get("healthcheck"), + "env_vars": obj.get("env_vars"), + "command": obj.get("command"), + "endpoint_bearer_token": obj.get("endpoint_bearer_token"), + "endpoint_certificate_authority": obj.get("endpoint_certificate_authority") + }) + return _obj + + diff --git a/platform_api_python_client/models/deployment_type.py b/platform_api_python_client/models/deployment_type.py index 40ba35f..d338ae7 100644 --- a/platform_api_python_client/models/deployment_type.py +++ b/platform_api_python_client/models/deployment_type.py @@ -31,9 +31,11 @@ class DeploymentType(str, Enum): COMPUTE = 'compute' COMPILATION = 'compilation' INFERENCE_V2 = 'inference_v2' + INFERENCE_V3 = 'inference_v3' COMPUTE_V2 = 'compute_v2' CSERVE = 'cserve' CSERVE_V2 = 'cserve_v2' + CSERVE_V3 = 'cserve_v3' DEPLOYMENT = 'deployment' RAG = 'rag' diff --git a/platform_api_python_client/models/get_c_serve_v2_deployment_response.py b/platform_api_python_client/models/get_c_serve_v2_deployment_response.py index 0b591fa..5595056 100644 --- a/platform_api_python_client/models/get_c_serve_v2_deployment_response.py +++ b/platform_api_python_client/models/get_c_serve_v2_deployment_response.py @@ -30,6 +30,7 @@ class GetCServeV2DeploymentResponse(BaseModel): """ GetCServeV2DeploymentResponse """ # noqa: E501 + creator_email: StrictStr cluster_id: StrictInt id: StrictInt name: StrictStr @@ -48,7 +49,7 @@ class GetCServeV2DeploymentResponse(BaseModel): endpoint_bearer_token: Optional[StrictStr] = None concurrency: Optional[StrictInt] = None env_vars: Optional[Dict[str, StrictStr]] = None - __properties: ClassVar[List[str]] = ["cluster_id", "id", "name", "endpoint_url", "image_url", "type", "status", "created_at", "hardware_instance_id", "recipe", "cserve_version", "min_scale", "max_scale", "initial_scale", "endpoint_certificate_authority", "endpoint_bearer_token", "concurrency", "env_vars"] + __properties: ClassVar[List[str]] = ["creator_email", "cluster_id", "id", "name", "endpoint_url", "image_url", "type", "status", "created_at", "hardware_instance_id", "recipe", "cserve_version", "min_scale", "max_scale", "initial_scale", "endpoint_certificate_authority", "endpoint_bearer_token", "concurrency", "env_vars"] model_config = ConfigDict( populate_by_name=True, @@ -134,6 +135,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: return cls.model_validate(obj) _obj = cls.model_validate({ + "creator_email": obj.get("creator_email"), "cluster_id": obj.get("cluster_id"), "id": obj.get("id"), "name": obj.get("name"), diff --git a/platform_api_python_client/models/get_c_serve_v3_deployment_response.py b/platform_api_python_client/models/get_c_serve_v3_deployment_response.py new file mode 100644 index 0000000..80554f5 --- /dev/null +++ b/platform_api_python_client/models/get_c_serve_v3_deployment_response.py @@ -0,0 +1,160 @@ +# coding: utf-8 + +""" + Platform External API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 0.1.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 platform_api_python_client.models.c_serve_v2_recipe import CServeV2Recipe +from platform_api_python_client.models.deployment_status import DeploymentStatus +from platform_api_python_client.models.deployment_type import DeploymentType +from typing import Optional, Set +from typing_extensions import Self + +class GetCServeV3DeploymentResponse(BaseModel): + """ + GetCServeV3DeploymentResponse + """ # noqa: E501 + creator_email: StrictStr + cluster_id: StrictInt + id: StrictInt + name: StrictStr + endpoint_url: StrictStr + image_url: Optional[StrictStr] = None + type: DeploymentType + status: DeploymentStatus + created_at: datetime + hardware_instance_id: StrictInt + recipe: CServeV2Recipe + cserve_version: Optional[StrictStr] = None + min_replicas: StrictInt + max_replicas: StrictInt + initial_replicas: Optional[StrictInt] = None + endpoint_certificate_authority: Optional[StrictStr] = None + endpoint_bearer_token: Optional[StrictStr] = None + concurrency: Optional[StrictInt] = None + env_vars: Optional[Dict[str, StrictStr]] = None + __properties: ClassVar[List[str]] = ["creator_email", "cluster_id", "id", "name", "endpoint_url", "image_url", "type", "status", "created_at", "hardware_instance_id", "recipe", "cserve_version", "min_replicas", "max_replicas", "initial_replicas", "endpoint_certificate_authority", "endpoint_bearer_token", "concurrency", "env_vars"] + + 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 GetCServeV3DeploymentResponse 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 recipe + if self.recipe: + _dict['recipe'] = self.recipe.to_dict() + # set to None if image_url (nullable) is None + # and model_fields_set contains the field + if self.image_url is None and "image_url" in self.model_fields_set: + _dict['image_url'] = None + + # set to None if cserve_version (nullable) is None + # and model_fields_set contains the field + if self.cserve_version is None and "cserve_version" in self.model_fields_set: + _dict['cserve_version'] = None + + # set to None if initial_replicas (nullable) is None + # and model_fields_set contains the field + if self.initial_replicas is None and "initial_replicas" in self.model_fields_set: + _dict['initial_replicas'] = None + + # set to None if endpoint_certificate_authority (nullable) is None + # and model_fields_set contains the field + if self.endpoint_certificate_authority is None and "endpoint_certificate_authority" in self.model_fields_set: + _dict['endpoint_certificate_authority'] = None + + # set to None if endpoint_bearer_token (nullable) is None + # and model_fields_set contains the field + if self.endpoint_bearer_token is None and "endpoint_bearer_token" in self.model_fields_set: + _dict['endpoint_bearer_token'] = None + + # set to None if concurrency (nullable) is None + # and model_fields_set contains the field + if self.concurrency is None and "concurrency" in self.model_fields_set: + _dict['concurrency'] = None + + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of GetCServeV3DeploymentResponse from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "creator_email": obj.get("creator_email"), + "cluster_id": obj.get("cluster_id"), + "id": obj.get("id"), + "name": obj.get("name"), + "endpoint_url": obj.get("endpoint_url"), + "image_url": obj.get("image_url"), + "type": obj.get("type"), + "status": obj.get("status"), + "created_at": obj.get("created_at"), + "hardware_instance_id": obj.get("hardware_instance_id"), + "recipe": CServeV2Recipe.from_dict(obj["recipe"]) if obj.get("recipe") is not None else None, + "cserve_version": obj.get("cserve_version"), + "min_replicas": obj.get("min_replicas"), + "max_replicas": obj.get("max_replicas"), + "initial_replicas": obj.get("initial_replicas"), + "endpoint_certificate_authority": obj.get("endpoint_certificate_authority"), + "endpoint_bearer_token": obj.get("endpoint_bearer_token"), + "concurrency": obj.get("concurrency"), + "env_vars": obj.get("env_vars") + }) + return _obj + + diff --git a/platform_api_python_client/models/get_compute_deployment_response.py b/platform_api_python_client/models/get_compute_deployment_response.py index 7dfbc28..38c8ce6 100644 --- a/platform_api_python_client/models/get_compute_deployment_response.py +++ b/platform_api_python_client/models/get_compute_deployment_response.py @@ -29,6 +29,7 @@ class GetComputeDeploymentResponse(BaseModel): """ GetComputeDeploymentResponse """ # noqa: E501 + creator_email: StrictStr cluster_id: StrictInt id: StrictInt name: StrictStr @@ -42,7 +43,7 @@ class GetComputeDeploymentResponse(BaseModel): ssh_public_key: Optional[StrictStr] = None ssh_password: Optional[StrictStr] = None env_vars: Optional[Dict[str, StrictStr]] = None - __properties: ClassVar[List[str]] = ["cluster_id", "id", "name", "endpoint_url", "image_url", "type", "status", "created_at", "hardware_instance_id", "exposed_port", "ssh_public_key", "ssh_password", "env_vars"] + __properties: ClassVar[List[str]] = ["creator_email", "cluster_id", "id", "name", "endpoint_url", "image_url", "type", "status", "created_at", "hardware_instance_id", "exposed_port", "ssh_public_key", "ssh_password", "env_vars"] model_config = ConfigDict( populate_by_name=True, @@ -115,6 +116,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: return cls.model_validate(obj) _obj = cls.model_validate({ + "creator_email": obj.get("creator_email"), "cluster_id": obj.get("cluster_id"), "id": obj.get("id"), "name": obj.get("name"), diff --git a/platform_api_python_client/models/get_deployment_response.py b/platform_api_python_client/models/get_deployment_response.py index b13cddc..e447e9c 100644 --- a/platform_api_python_client/models/get_deployment_response.py +++ b/platform_api_python_client/models/get_deployment_response.py @@ -29,6 +29,7 @@ class GetDeploymentResponse(BaseModel): """ GetDeploymentResponse """ # noqa: E501 + creator_email: StrictStr cluster_id: StrictInt id: StrictInt name: StrictStr @@ -38,7 +39,7 @@ class GetDeploymentResponse(BaseModel): status: DeploymentStatus created_at: datetime hardware_instance_id: StrictInt - __properties: ClassVar[List[str]] = ["cluster_id", "id", "name", "endpoint_url", "image_url", "type", "status", "created_at", "hardware_instance_id"] + __properties: ClassVar[List[str]] = ["creator_email", "cluster_id", "id", "name", "endpoint_url", "image_url", "type", "status", "created_at", "hardware_instance_id"] model_config = ConfigDict( populate_by_name=True, @@ -96,6 +97,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: return cls.model_validate(obj) _obj = cls.model_validate({ + "creator_email": obj.get("creator_email"), "cluster_id": obj.get("cluster_id"), "id": obj.get("id"), "name": obj.get("name"), diff --git a/platform_api_python_client/models/get_inference_deployment_response.py b/platform_api_python_client/models/get_inference_deployment_response.py index 3d39864..9133452 100644 --- a/platform_api_python_client/models/get_inference_deployment_response.py +++ b/platform_api_python_client/models/get_inference_deployment_response.py @@ -29,6 +29,7 @@ class GetInferenceDeploymentResponse(BaseModel): """ GetInferenceDeploymentResponse """ # noqa: E501 + creator_email: StrictStr cluster_id: StrictInt id: StrictInt name: StrictStr @@ -49,7 +50,7 @@ class GetInferenceDeploymentResponse(BaseModel): env_vars: Optional[Dict[str, StrictStr]] = None command: Optional[List[StrictStr]] = None command_args: Optional[List[StrictStr]] = None - __properties: ClassVar[List[str]] = ["cluster_id", "id", "name", "endpoint_url", "image_url", "type", "status", "created_at", "hardware_instance_id", "container_port", "min_scale", "max_scale", "initial_scale", "concurrency", "healthcheck", "endpoint_certificate_authority", "endpoint_bearer_token", "env_vars", "command", "command_args"] + __properties: ClassVar[List[str]] = ["creator_email", "cluster_id", "id", "name", "endpoint_url", "image_url", "type", "status", "created_at", "hardware_instance_id", "container_port", "min_scale", "max_scale", "initial_scale", "concurrency", "healthcheck", "endpoint_certificate_authority", "endpoint_bearer_token", "env_vars", "command", "command_args"] model_config = ConfigDict( populate_by_name=True, @@ -147,6 +148,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: return cls.model_validate(obj) _obj = cls.model_validate({ + "creator_email": obj.get("creator_email"), "cluster_id": obj.get("cluster_id"), "id": obj.get("id"), "name": obj.get("name"), diff --git a/platform_api_python_client/models/get_inference_v3_deployment_response.py b/platform_api_python_client/models/get_inference_v3_deployment_response.py new file mode 100644 index 0000000..963b19f --- /dev/null +++ b/platform_api_python_client/models/get_inference_v3_deployment_response.py @@ -0,0 +1,175 @@ +# coding: utf-8 + +""" + Platform External API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 0.1.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 platform_api_python_client.models.deployment_status import DeploymentStatus +from platform_api_python_client.models.deployment_type import DeploymentType +from typing import Optional, Set +from typing_extensions import Self + +class GetInferenceV3DeploymentResponse(BaseModel): + """ + GetInferenceV3DeploymentResponse + """ # noqa: E501 + creator_email: StrictStr + cluster_id: StrictInt + id: StrictInt + name: StrictStr + endpoint_url: StrictStr + image_url: Optional[StrictStr] = None + type: DeploymentType + status: DeploymentStatus + created_at: datetime + hardware_instance_id: StrictInt + container_port: StrictInt + min_replicas: StrictInt + max_replicas: StrictInt + initial_replicas: Optional[StrictInt] = None + concurrency: Optional[StrictInt] = None + healthcheck: Optional[StrictStr] = None + endpoint_certificate_authority: Optional[StrictStr] = None + endpoint_bearer_token: Optional[StrictStr] = None + env_vars: Optional[Dict[str, StrictStr]] = None + command: Optional[List[StrictStr]] = None + command_args: Optional[List[StrictStr]] = None + __properties: ClassVar[List[str]] = ["creator_email", "cluster_id", "id", "name", "endpoint_url", "image_url", "type", "status", "created_at", "hardware_instance_id", "container_port", "min_replicas", "max_replicas", "initial_replicas", "concurrency", "healthcheck", "endpoint_certificate_authority", "endpoint_bearer_token", "env_vars", "command", "command_args"] + + 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 GetInferenceV3DeploymentResponse 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 image_url (nullable) is None + # and model_fields_set contains the field + if self.image_url is None and "image_url" in self.model_fields_set: + _dict['image_url'] = None + + # set to None if initial_replicas (nullable) is None + # and model_fields_set contains the field + if self.initial_replicas is None and "initial_replicas" in self.model_fields_set: + _dict['initial_replicas'] = None + + # set to None if concurrency (nullable) is None + # and model_fields_set contains the field + if self.concurrency is None and "concurrency" in self.model_fields_set: + _dict['concurrency'] = None + + # set to None if healthcheck (nullable) is None + # and model_fields_set contains the field + if self.healthcheck is None and "healthcheck" in self.model_fields_set: + _dict['healthcheck'] = None + + # set to None if endpoint_certificate_authority (nullable) is None + # and model_fields_set contains the field + if self.endpoint_certificate_authority is None and "endpoint_certificate_authority" in self.model_fields_set: + _dict['endpoint_certificate_authority'] = None + + # set to None if endpoint_bearer_token (nullable) is None + # and model_fields_set contains the field + if self.endpoint_bearer_token is None and "endpoint_bearer_token" in self.model_fields_set: + _dict['endpoint_bearer_token'] = None + + # set to None if env_vars (nullable) is None + # and model_fields_set contains the field + if self.env_vars is None and "env_vars" in self.model_fields_set: + _dict['env_vars'] = None + + # set to None if command (nullable) is None + # and model_fields_set contains the field + if self.command is None and "command" in self.model_fields_set: + _dict['command'] = None + + # set to None if command_args (nullable) is None + # and model_fields_set contains the field + if self.command_args is None and "command_args" in self.model_fields_set: + _dict['command_args'] = None + + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of GetInferenceV3DeploymentResponse from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "creator_email": obj.get("creator_email"), + "cluster_id": obj.get("cluster_id"), + "id": obj.get("id"), + "name": obj.get("name"), + "endpoint_url": obj.get("endpoint_url"), + "image_url": obj.get("image_url"), + "type": obj.get("type"), + "status": obj.get("status"), + "created_at": obj.get("created_at"), + "hardware_instance_id": obj.get("hardware_instance_id"), + "container_port": obj.get("container_port"), + "min_replicas": obj.get("min_replicas"), + "max_replicas": obj.get("max_replicas"), + "initial_replicas": obj.get("initial_replicas"), + "concurrency": obj.get("concurrency"), + "healthcheck": obj.get("healthcheck"), + "endpoint_certificate_authority": obj.get("endpoint_certificate_authority"), + "endpoint_bearer_token": obj.get("endpoint_bearer_token"), + "env_vars": obj.get("env_vars"), + "command": obj.get("command"), + "command_args": obj.get("command_args") + }) + return _obj + + diff --git a/platform_api_python_client/models/get_rag_deployment_response.py b/platform_api_python_client/models/get_rag_deployment_response.py index c80b11c..d0dcb41 100644 --- a/platform_api_python_client/models/get_rag_deployment_response.py +++ b/platform_api_python_client/models/get_rag_deployment_response.py @@ -30,6 +30,7 @@ class GetRagDeploymentResponse(BaseModel): """ GetRagDeploymentResponse """ # noqa: E501 + creator_email: StrictStr cluster_id: StrictInt id: StrictInt name: StrictStr @@ -50,7 +51,7 @@ class GetRagDeploymentResponse(BaseModel): endpoint_bearer_token: Optional[StrictStr] = None concurrency: Optional[StrictInt] = None env_vars: Optional[Dict[str, StrictStr]] = None - __properties: ClassVar[List[str]] = ["cluster_id", "id", "name", "endpoint_url", "image_url", "type", "status", "created_at", "hardware_instance_id", "recipe", "cserve_version", "llm_model", "centml_api_key", "min_scale", "max_scale", "initial_scale", "endpoint_certificate_authority", "endpoint_bearer_token", "concurrency", "env_vars"] + __properties: ClassVar[List[str]] = ["creator_email", "cluster_id", "id", "name", "endpoint_url", "image_url", "type", "status", "created_at", "hardware_instance_id", "recipe", "cserve_version", "llm_model", "centml_api_key", "min_scale", "max_scale", "initial_scale", "endpoint_certificate_authority", "endpoint_bearer_token", "concurrency", "env_vars"] model_config = ConfigDict( populate_by_name=True, @@ -136,6 +137,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: return cls.model_validate(obj) _obj = cls.model_validate({ + "creator_email": obj.get("creator_email"), "cluster_id": obj.get("cluster_id"), "id": obj.get("id"), "name": obj.get("name"), diff --git a/pyproject.toml b/pyproject.toml index 79b0947..ce59f9d 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [tool.poetry] name = "platform_api_python_client" -version = "4.0.15" +version = "4.0.17" description = "Platform External API" authors = ["OpenAPI Generator Community "] license = "NoLicense" diff --git a/setup.py b/setup.py index 3faf9d5..28a282a 100644 --- a/setup.py +++ b/setup.py @@ -21,7 +21,7 @@ # prerequisite: setuptools # http://pypi.python.org/pypi/setuptools NAME = "platform-api-python-client" -VERSION = "4.0.15" +VERSION = "4.0.17" PYTHON_REQUIRES = ">= 3.8" REQUIRES = [ "urllib3 >= 1.25.3, < 3.0.0", diff --git a/test/test_create_c_serve_v3_deployment_request.py b/test/test_create_c_serve_v3_deployment_request.py new file mode 100644 index 0000000..a14a9c0 --- /dev/null +++ b/test/test_create_c_serve_v3_deployment_request.py @@ -0,0 +1,71 @@ +# coding: utf-8 + +""" + Platform External API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 0.1.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from platform_api_python_client.models.create_c_serve_v3_deployment_request import CreateCServeV3DeploymentRequest + +class TestCreateCServeV3DeploymentRequest(unittest.TestCase): + """CreateCServeV3DeploymentRequest unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> CreateCServeV3DeploymentRequest: + """Test CreateCServeV3DeploymentRequest + 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 `CreateCServeV3DeploymentRequest` + """ + model = CreateCServeV3DeploymentRequest() + if include_optional: + return CreateCServeV3DeploymentRequest( + name = 'ar1c2v7s6djuy1zmetozkhdomha1b0', + cluster_id = 56, + hardware_instance_id = 56, + recipe = { }, + cserve_version = '', + hf_token = '', + endpoint_bearer_token = '', + endpoint_certificate_authority = '', + min_replicas = 56, + max_replicas = 56, + initial_replicas = 56, + concurrency = 56, + env_vars = { + 'key' : '' + } + ) + else: + return CreateCServeV3DeploymentRequest( + name = 'ar1c2v7s6djuy1zmetozkhdomha1b0', + cluster_id = 56, + hardware_instance_id = 56, + recipe = { }, + min_replicas = 56, + max_replicas = 56, + ) + """ + + def testCreateCServeV3DeploymentRequest(self): + """Test CreateCServeV3DeploymentRequest""" + # 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_c_serve_v3_deployment_response.py b/test/test_create_c_serve_v3_deployment_response.py new file mode 100644 index 0000000..025b6ea --- /dev/null +++ b/test/test_create_c_serve_v3_deployment_response.py @@ -0,0 +1,56 @@ +# coding: utf-8 + +""" + Platform External API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 0.1.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from platform_api_python_client.models.create_c_serve_v3_deployment_response import CreateCServeV3DeploymentResponse + +class TestCreateCServeV3DeploymentResponse(unittest.TestCase): + """CreateCServeV3DeploymentResponse unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> CreateCServeV3DeploymentResponse: + """Test CreateCServeV3DeploymentResponse + 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 `CreateCServeV3DeploymentResponse` + """ + model = CreateCServeV3DeploymentResponse() + if include_optional: + return CreateCServeV3DeploymentResponse( + id = 56, + created_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), + endpoint_url = '' + ) + else: + return CreateCServeV3DeploymentResponse( + id = 56, + created_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), + endpoint_url = '', + ) + """ + + def testCreateCServeV3DeploymentResponse(self): + """Test CreateCServeV3DeploymentResponse""" + # 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_inference_v3_deployment_request.py b/test/test_create_inference_v3_deployment_request.py new file mode 100644 index 0000000..a0b0c05 --- /dev/null +++ b/test/test_create_inference_v3_deployment_request.py @@ -0,0 +1,73 @@ +# coding: utf-8 + +""" + Platform External API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 0.1.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from platform_api_python_client.models.create_inference_v3_deployment_request import CreateInferenceV3DeploymentRequest + +class TestCreateInferenceV3DeploymentRequest(unittest.TestCase): + """CreateInferenceV3DeploymentRequest unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> CreateInferenceV3DeploymentRequest: + """Test CreateInferenceV3DeploymentRequest + 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 `CreateInferenceV3DeploymentRequest` + """ + model = CreateInferenceV3DeploymentRequest() + if include_optional: + return CreateInferenceV3DeploymentRequest( + name = 'ar1c2v7s6djuy1zmetozkhdomha1b0', + cluster_id = 56, + hardware_instance_id = 56, + image_url = '', + port = 56, + min_replicas = 56, + max_replicas = 56, + initial_replicas = 56, + concurrency = 56, + healthcheck = '', + env_vars = { + 'key' : '' + }, + command = '', + endpoint_bearer_token = '', + endpoint_certificate_authority = '' + ) + else: + return CreateInferenceV3DeploymentRequest( + name = 'ar1c2v7s6djuy1zmetozkhdomha1b0', + cluster_id = 56, + hardware_instance_id = 56, + image_url = '', + port = 56, + min_replicas = 56, + max_replicas = 56, + ) + """ + + def testCreateInferenceV3DeploymentRequest(self): + """Test CreateInferenceV3DeploymentRequest""" + # 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_external_api.py b/test/test_external_api.py index 6e354fc..abca876 100644 --- a/test/test_external_api.py +++ b/test/test_external_api.py @@ -54,6 +54,13 @@ def test_create_cserve_v2_deployment_deployments_cserve_v2_post(self) -> None: """ pass + def test_create_cserve_v3_deployment_deployments_cserve_v3_post(self) -> None: + """Test case for create_cserve_v3_deployment_deployments_cserve_v3_post + + Create Cserve V3 Deployment + """ + pass + def test_create_inference_deployment_deployments_inference_post(self) -> None: """Test case for create_inference_deployment_deployments_inference_post @@ -61,6 +68,13 @@ def test_create_inference_deployment_deployments_inference_post(self) -> None: """ pass + def test_create_inference_v3_deployment_deployments_inference_v3_post(self) -> None: + """Test case for create_inference_v3_deployment_deployments_inference_v3_post + + Create Inference V3 Deployment + """ + pass + def test_create_new_organization_organizations_post(self) -> None: """Test case for create_new_organization_organizations_post @@ -180,6 +194,13 @@ def test_get_cserve_v2_deployment_deployments_cserve_v2_deployment_id_get(self) """ pass + def test_get_cserve_v3_deployment_deployments_cserve_v3_deployment_id_get(self) -> None: + """Test case for get_cserve_v3_deployment_deployments_cserve_v3_deployment_id_get + + Get Cserve V3 Deployment + """ + pass + def test_get_deployment_logs_deployments_logs_deployment_id_get(self) -> None: """Test case for get_deployment_logs_deployments_logs_deployment_id_get @@ -215,6 +236,13 @@ def test_get_inference_deployment_deployments_inference_deployment_id_get(self) """ pass + def test_get_inference_v3_deployment_deployments_inference_v3_deployment_id_get(self) -> None: + """Test case for get_inference_v3_deployment_deployments_inference_v3_deployment_id_get + + Get Inference V3 Deployment + """ + pass + def test_get_payment_method_payments_methods_get(self) -> None: """Test case for get_payment_method_payments_methods_get @@ -285,6 +313,13 @@ def test_update_cserve_v2_deployment_deployments_cserve_v2_put(self) -> None: """ pass + def test_update_cserve_v3_deployment_deployments_cserve_v3_put(self) -> None: + """Test case for update_cserve_v3_deployment_deployments_cserve_v3_put + + Update Cserve V3 Deployment + """ + pass + def test_update_deployment_status_deployments_status_deployment_id_put(self) -> None: """Test case for update_deployment_status_deployments_status_deployment_id_put @@ -299,6 +334,13 @@ def test_update_inference_deployment_deployments_inference_put(self) -> None: """ pass + def test_update_inference_v3_deployment_deployments_inference_v3_put(self) -> None: + """Test case for update_inference_v3_deployment_deployments_inference_v3_put + + Update Inference V3 Deployment + """ + pass + def test_update_rag_deployment_deployments_rag_put(self) -> None: """Test case for update_rag_deployment_deployments_rag_put diff --git a/test/test_get_c_serve_v2_deployment_response.py b/test/test_get_c_serve_v2_deployment_response.py index 764cb3f..0519b07 100644 --- a/test/test_get_c_serve_v2_deployment_response.py +++ b/test/test_get_c_serve_v2_deployment_response.py @@ -35,6 +35,7 @@ def make_instance(self, include_optional) -> GetCServeV2DeploymentResponse: model = GetCServeV2DeploymentResponse() if include_optional: return GetCServeV2DeploymentResponse( + creator_email = '', cluster_id = 56, id = 56, name = '', @@ -58,6 +59,7 @@ def make_instance(self, include_optional) -> GetCServeV2DeploymentResponse: ) else: return GetCServeV2DeploymentResponse( + creator_email = '', cluster_id = 56, id = 56, name = '', diff --git a/test/test_get_c_serve_v3_deployment_response.py b/test/test_get_c_serve_v3_deployment_response.py new file mode 100644 index 0000000..6042446 --- /dev/null +++ b/test/test_get_c_serve_v3_deployment_response.py @@ -0,0 +1,83 @@ +# coding: utf-8 + +""" + Platform External API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 0.1.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from platform_api_python_client.models.get_c_serve_v3_deployment_response import GetCServeV3DeploymentResponse + +class TestGetCServeV3DeploymentResponse(unittest.TestCase): + """GetCServeV3DeploymentResponse unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> GetCServeV3DeploymentResponse: + """Test GetCServeV3DeploymentResponse + 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 `GetCServeV3DeploymentResponse` + """ + model = GetCServeV3DeploymentResponse() + if include_optional: + return GetCServeV3DeploymentResponse( + creator_email = '', + cluster_id = 56, + id = 56, + name = '', + endpoint_url = '', + image_url = '', + type = 'inference', + status = 'active', + created_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), + hardware_instance_id = 56, + recipe = { }, + cserve_version = '', + min_replicas = 56, + max_replicas = 56, + initial_replicas = 56, + endpoint_certificate_authority = '', + endpoint_bearer_token = '', + concurrency = 56, + env_vars = { + 'key' : '' + } + ) + else: + return GetCServeV3DeploymentResponse( + creator_email = '', + cluster_id = 56, + id = 56, + name = '', + endpoint_url = '', + type = 'inference', + status = 'active', + created_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), + hardware_instance_id = 56, + recipe = { }, + min_replicas = 56, + max_replicas = 56, + ) + """ + + def testGetCServeV3DeploymentResponse(self): + """Test GetCServeV3DeploymentResponse""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_get_compute_deployment_response.py b/test/test_get_compute_deployment_response.py index 1d50ef3..88b560b 100644 --- a/test/test_get_compute_deployment_response.py +++ b/test/test_get_compute_deployment_response.py @@ -35,6 +35,7 @@ def make_instance(self, include_optional) -> GetComputeDeploymentResponse: model = GetComputeDeploymentResponse() if include_optional: return GetComputeDeploymentResponse( + creator_email = '', cluster_id = 56, id = 56, name = '', @@ -53,6 +54,7 @@ def make_instance(self, include_optional) -> GetComputeDeploymentResponse: ) else: return GetComputeDeploymentResponse( + creator_email = '', cluster_id = 56, id = 56, name = '', diff --git a/test/test_get_deployment_response.py b/test/test_get_deployment_response.py index 8ca4641..11f9645 100644 --- a/test/test_get_deployment_response.py +++ b/test/test_get_deployment_response.py @@ -35,6 +35,7 @@ def make_instance(self, include_optional) -> GetDeploymentResponse: model = GetDeploymentResponse() if include_optional: return GetDeploymentResponse( + creator_email = '', cluster_id = 56, id = 56, name = '', @@ -47,6 +48,7 @@ def make_instance(self, include_optional) -> GetDeploymentResponse: ) else: return GetDeploymentResponse( + creator_email = '', cluster_id = 56, id = 56, name = '', diff --git a/test/test_get_inference_deployment_response.py b/test/test_get_inference_deployment_response.py index 2ff52d9..40f9308 100644 --- a/test/test_get_inference_deployment_response.py +++ b/test/test_get_inference_deployment_response.py @@ -35,6 +35,7 @@ def make_instance(self, include_optional) -> GetInferenceDeploymentResponse: model = GetInferenceDeploymentResponse() if include_optional: return GetInferenceDeploymentResponse( + creator_email = '', cluster_id = 56, id = 56, name = '', @@ -64,6 +65,7 @@ def make_instance(self, include_optional) -> GetInferenceDeploymentResponse: ) else: return GetInferenceDeploymentResponse( + creator_email = '', cluster_id = 56, id = 56, name = '', diff --git a/test/test_get_inference_v3_deployment_response.py b/test/test_get_inference_v3_deployment_response.py new file mode 100644 index 0000000..dbc715b --- /dev/null +++ b/test/test_get_inference_v3_deployment_response.py @@ -0,0 +1,89 @@ +# coding: utf-8 + +""" + Platform External API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 0.1.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from platform_api_python_client.models.get_inference_v3_deployment_response import GetInferenceV3DeploymentResponse + +class TestGetInferenceV3DeploymentResponse(unittest.TestCase): + """GetInferenceV3DeploymentResponse unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> GetInferenceV3DeploymentResponse: + """Test GetInferenceV3DeploymentResponse + 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 `GetInferenceV3DeploymentResponse` + """ + model = GetInferenceV3DeploymentResponse() + if include_optional: + return GetInferenceV3DeploymentResponse( + creator_email = '', + cluster_id = 56, + id = 56, + name = '', + endpoint_url = '', + image_url = '', + type = 'inference', + status = 'active', + created_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), + hardware_instance_id = 56, + container_port = 56, + min_replicas = 56, + max_replicas = 56, + initial_replicas = 56, + concurrency = 56, + healthcheck = '', + endpoint_certificate_authority = '', + endpoint_bearer_token = '', + env_vars = { + 'key' : '' + }, + command = [ + '' + ], + command_args = [ + '' + ] + ) + else: + return GetInferenceV3DeploymentResponse( + creator_email = '', + cluster_id = 56, + id = 56, + name = '', + endpoint_url = '', + type = 'inference', + status = 'active', + created_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), + hardware_instance_id = 56, + container_port = 56, + min_replicas = 56, + max_replicas = 56, + ) + """ + + def testGetInferenceV3DeploymentResponse(self): + """Test GetInferenceV3DeploymentResponse""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_get_rag_deployment_response.py b/test/test_get_rag_deployment_response.py index 636c4a5..c0efdaf 100644 --- a/test/test_get_rag_deployment_response.py +++ b/test/test_get_rag_deployment_response.py @@ -35,6 +35,7 @@ def make_instance(self, include_optional) -> GetRagDeploymentResponse: model = GetRagDeploymentResponse() if include_optional: return GetRagDeploymentResponse( + creator_email = '', cluster_id = 56, id = 56, name = '', @@ -60,6 +61,7 @@ def make_instance(self, include_optional) -> GetRagDeploymentResponse: ) else: return GetRagDeploymentResponse( + creator_email = '', cluster_id = 56, id = 56, name = '', diff --git a/test/test_list_get_deployment_response.py b/test/test_list_get_deployment_response.py index babbf61..1043855 100644 --- a/test/test_list_get_deployment_response.py +++ b/test/test_list_get_deployment_response.py @@ -37,6 +37,7 @@ def make_instance(self, include_optional) -> ListGetDeploymentResponse: return ListGetDeploymentResponse( results = [ platform_api_python_client.models.get_deployment_response.GetDeploymentResponse( + creator_email = '', cluster_id = 56, id = 56, name = '', @@ -52,6 +53,7 @@ def make_instance(self, include_optional) -> ListGetDeploymentResponse: return ListGetDeploymentResponse( results = [ platform_api_python_client.models.get_deployment_response.GetDeploymentResponse( + creator_email = '', cluster_id = 56, id = 56, name = '',