diff --git a/.openapi-generator/FILES b/.openapi-generator/FILES index 0bec422..9304635 100644 --- a/.openapi-generator/FILES +++ b/.openapi-generator/FILES @@ -6,156 +6,153 @@ README.md docs/APIKeyRequest.md docs/APIKeyResponse.md -docs/AddHardwareRequest.md docs/CServeRecipeInput.md docs/CServeRecipeOutput.md docs/CServeRecipePerf.md docs/CServeRecipeResponse.md -docs/ClientSecretResponse.md docs/CreateCServeDeploymentRequest.md docs/CreateCServeDeploymentResponse.md +docs/CreateCheckoutRequest.md +docs/CreateCheckoutResponse.md +docs/CreateComputeDeploymentRequest.md docs/CreateComputeDeploymentResponse.md -docs/CreateComputeDeploymentV2Request.md +docs/CreateInferenceDeploymentRequest.md docs/CreateInferenceDeploymentResponse.md -docs/CreateInferenceDeploymentV2Request.md -docs/CreatePaymentRequest.md docs/CreditsResponse.md docs/DailyBillResponse.md docs/DeploymentStatus.md docs/DeploymentStatusRequest.md -docs/DeploymentStatusResponseV2.md +docs/DeploymentStatusResponse.md docs/DeploymentType.md docs/DeploymentUsageValue.md docs/EXTERNALApi.md -docs/FeedbackRequest.md docs/GetCServeDeploymentResponse.md docs/GetClusterResponse.md -docs/GetComputeV2DeploymentResponse.md +docs/GetComputeDeploymentResponse.md docs/GetDeploymentLogResponse.md +docs/GetDeploymentResponse.md docs/GetDeploymentUsageResponse.md -docs/GetDeploymentV2Response.md -docs/GetInferenceV2DeploymentResponse.md +docs/GetInferenceDeploymentResponse.md +docs/GetPaymentsResponse.md docs/HTTPValidationError.md docs/HardwareInstanceResponse.md -docs/HealthStatus.md docs/ListAPIKeyResponse.md docs/ListCServeRecipeResponse.md docs/ListDailyBillResponse.md docs/ListGetClusterResponse.md -docs/ListGetDeploymentV2Response.md +docs/ListGetDeploymentResponse.md docs/ListHardwareInstanceResponse.md -docs/ListPaymentMethodResponse.md docs/ListPrebuiltImageResponse.md docs/Metric.md docs/PrebuiltImageResponse.md +docs/ServiceStatus.md +docs/UserSupportEmailRequest.md docs/ValidationError.md docs/ValidationErrorLocInner.md git_push.sh -platform_api_python_client/__init__.py -platform_api_python_client/api/__init__.py -platform_api_python_client/api/external_api.py -platform_api_python_client/api_client.py -platform_api_python_client/api_response.py -platform_api_python_client/configuration.py -platform_api_python_client/exceptions.py -platform_api_python_client/models/__init__.py -platform_api_python_client/models/add_hardware_request.py -platform_api_python_client/models/api_key_request.py -platform_api_python_client/models/api_key_response.py -platform_api_python_client/models/c_serve_recipe_input.py -platform_api_python_client/models/c_serve_recipe_output.py -platform_api_python_client/models/c_serve_recipe_perf.py -platform_api_python_client/models/c_serve_recipe_response.py -platform_api_python_client/models/client_secret_response.py -platform_api_python_client/models/create_c_serve_deployment_request.py -platform_api_python_client/models/create_c_serve_deployment_response.py -platform_api_python_client/models/create_compute_deployment_response.py -platform_api_python_client/models/create_compute_deployment_v2_request.py -platform_api_python_client/models/create_inference_deployment_response.py -platform_api_python_client/models/create_inference_deployment_v2_request.py -platform_api_python_client/models/create_payment_request.py -platform_api_python_client/models/credits_response.py -platform_api_python_client/models/daily_bill_response.py -platform_api_python_client/models/deployment_status.py -platform_api_python_client/models/deployment_status_request.py -platform_api_python_client/models/deployment_status_response_v2.py -platform_api_python_client/models/deployment_type.py -platform_api_python_client/models/deployment_usage_value.py -platform_api_python_client/models/feedback_request.py -platform_api_python_client/models/get_c_serve_deployment_response.py -platform_api_python_client/models/get_cluster_response.py -platform_api_python_client/models/get_compute_v2_deployment_response.py -platform_api_python_client/models/get_deployment_log_response.py -platform_api_python_client/models/get_deployment_usage_response.py -platform_api_python_client/models/get_deployment_v2_response.py -platform_api_python_client/models/get_inference_v2_deployment_response.py -platform_api_python_client/models/hardware_instance_response.py -platform_api_python_client/models/health_status.py -platform_api_python_client/models/http_validation_error.py -platform_api_python_client/models/list_api_key_response.py -platform_api_python_client/models/list_c_serve_recipe_response.py -platform_api_python_client/models/list_daily_bill_response.py -platform_api_python_client/models/list_get_cluster_response.py -platform_api_python_client/models/list_get_deployment_v2_response.py -platform_api_python_client/models/list_hardware_instance_response.py -platform_api_python_client/models/list_payment_method_response.py -platform_api_python_client/models/list_prebuilt_image_response.py -platform_api_python_client/models/metric.py -platform_api_python_client/models/prebuilt_image_response.py -platform_api_python_client/models/validation_error.py -platform_api_python_client/models/validation_error_loc_inner.py -platform_api_python_client/py.typed -platform_api_python_client/rest.py +platform_api_external_client/__init__.py +platform_api_external_client/api/__init__.py +platform_api_external_client/api/external_api.py +platform_api_external_client/api_client.py +platform_api_external_client/api_response.py +platform_api_external_client/configuration.py +platform_api_external_client/exceptions.py +platform_api_external_client/models/__init__.py +platform_api_external_client/models/api_key_request.py +platform_api_external_client/models/api_key_response.py +platform_api_external_client/models/c_serve_recipe_input.py +platform_api_external_client/models/c_serve_recipe_output.py +platform_api_external_client/models/c_serve_recipe_perf.py +platform_api_external_client/models/c_serve_recipe_response.py +platform_api_external_client/models/create_c_serve_deployment_request.py +platform_api_external_client/models/create_c_serve_deployment_response.py +platform_api_external_client/models/create_checkout_request.py +platform_api_external_client/models/create_checkout_response.py +platform_api_external_client/models/create_compute_deployment_request.py +platform_api_external_client/models/create_compute_deployment_response.py +platform_api_external_client/models/create_inference_deployment_request.py +platform_api_external_client/models/create_inference_deployment_response.py +platform_api_external_client/models/credits_response.py +platform_api_external_client/models/daily_bill_response.py +platform_api_external_client/models/deployment_status.py +platform_api_external_client/models/deployment_status_request.py +platform_api_external_client/models/deployment_status_response.py +platform_api_external_client/models/deployment_type.py +platform_api_external_client/models/deployment_usage_value.py +platform_api_external_client/models/get_c_serve_deployment_response.py +platform_api_external_client/models/get_cluster_response.py +platform_api_external_client/models/get_compute_deployment_response.py +platform_api_external_client/models/get_deployment_log_response.py +platform_api_external_client/models/get_deployment_response.py +platform_api_external_client/models/get_deployment_usage_response.py +platform_api_external_client/models/get_inference_deployment_response.py +platform_api_external_client/models/get_payments_response.py +platform_api_external_client/models/hardware_instance_response.py +platform_api_external_client/models/http_validation_error.py +platform_api_external_client/models/list_api_key_response.py +platform_api_external_client/models/list_c_serve_recipe_response.py +platform_api_external_client/models/list_daily_bill_response.py +platform_api_external_client/models/list_get_cluster_response.py +platform_api_external_client/models/list_get_deployment_response.py +platform_api_external_client/models/list_hardware_instance_response.py +platform_api_external_client/models/list_prebuilt_image_response.py +platform_api_external_client/models/metric.py +platform_api_external_client/models/prebuilt_image_response.py +platform_api_external_client/models/service_status.py +platform_api_external_client/models/user_support_email_request.py +platform_api_external_client/models/validation_error.py +platform_api_external_client/models/validation_error_loc_inner.py +platform_api_external_client/py.typed +platform_api_external_client/rest.py pyproject.toml requirements.txt setup.cfg setup.py test-requirements.txt test/__init__.py -test/test_add_hardware_request.py test/test_api_key_request.py test/test_api_key_response.py test/test_c_serve_recipe_input.py test/test_c_serve_recipe_output.py test/test_c_serve_recipe_perf.py test/test_c_serve_recipe_response.py -test/test_client_secret_response.py test/test_create_c_serve_deployment_request.py test/test_create_c_serve_deployment_response.py +test/test_create_checkout_request.py +test/test_create_checkout_response.py +test/test_create_compute_deployment_request.py test/test_create_compute_deployment_response.py -test/test_create_compute_deployment_v2_request.py +test/test_create_inference_deployment_request.py test/test_create_inference_deployment_response.py -test/test_create_inference_deployment_v2_request.py -test/test_create_payment_request.py test/test_credits_response.py test/test_daily_bill_response.py test/test_deployment_status.py test/test_deployment_status_request.py -test/test_deployment_status_response_v2.py +test/test_deployment_status_response.py test/test_deployment_type.py test/test_deployment_usage_value.py test/test_external_api.py -test/test_feedback_request.py test/test_get_c_serve_deployment_response.py test/test_get_cluster_response.py -test/test_get_compute_v2_deployment_response.py +test/test_get_compute_deployment_response.py test/test_get_deployment_log_response.py +test/test_get_deployment_response.py test/test_get_deployment_usage_response.py -test/test_get_deployment_v2_response.py -test/test_get_inference_v2_deployment_response.py +test/test_get_inference_deployment_response.py +test/test_get_payments_response.py test/test_hardware_instance_response.py -test/test_health_status.py test/test_http_validation_error.py test/test_list_api_key_response.py test/test_list_c_serve_recipe_response.py test/test_list_daily_bill_response.py test/test_list_get_cluster_response.py -test/test_list_get_deployment_v2_response.py +test/test_list_get_deployment_response.py test/test_list_hardware_instance_response.py -test/test_list_payment_method_response.py test/test_list_prebuilt_image_response.py test/test_metric.py test/test_prebuilt_image_response.py +test/test_service_status.py +test/test_user_support_email_request.py test/test_validation_error.py test/test_validation_error_loc_inner.py tox.ini diff --git a/README.md b/README.md index 0672b34..357aa6d 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: 0.2.0 +- Package version: 0.3.0 - Generator version: 7.9.0 - Build package: org.openapitools.codegen.languages.PythonClientCodegen @@ -79,12 +79,12 @@ with platform_api_python_client.ApiClient(configuration) as api_client: feedback_request = platform_api_python_client.FeedbackRequest() # FeedbackRequest | try: - # Add Feedback Request - api_response = api_instance.add_feedback_request_support_feedback_post(feedback_request) - print("The response of EXTERNALApi->add_feedback_request_support_feedback_post:\n") + # Add User Request + api_response = api_instance.add_user_request_support_user_requests_post(user_support_email_request) + print("The response of EXTERNALApi->add_user_request_support_user_requests_post:\n") pprint(api_response) except ApiException as e: - print("Exception when calling EXTERNALApi->add_feedback_request_support_feedback_post: %s\n" % e) + print("Exception when calling EXTERNALApi->add_user_request_support_user_requests_post: %s\n" % e) ``` @@ -94,80 +94,76 @@ All URIs are relative to *http://localhost* Class | Method | HTTP request | Description ------------ | ------------- | ------------- | ------------- -*EXTERNALApi* | [**add_feedback_request_support_feedback_post**](docs/EXTERNALApi.md#add_feedback_request_support_feedback_post) | **POST** /support/feedback | Add Feedback Request +*EXTERNALApi* | [**add_user_request_support_user_requests_post**](docs/EXTERNALApi.md#add_user_request_support_user_requests_post) | **POST** /support/user-requests | Add User Request *EXTERNALApi* | [**create_api_key_credentials_api_key_post**](docs/EXTERNALApi.md#create_api_key_credentials_api_key_post) | **POST** /credentials/api-key | Create Api Key -*EXTERNALApi* | [**create_compute_deployment_deployments_v2_compute_post**](docs/EXTERNALApi.md#create_compute_deployment_deployments_v2_compute_post) | **POST** /deployments/v2/compute | Create Compute Deployment -*EXTERNALApi* | [**create_cserve_deployment_deployments_v2_cserve_post**](docs/EXTERNALApi.md#create_cserve_deployment_deployments_v2_cserve_post) | **POST** /deployments/v2/cserve | Create Cserve Deployment -*EXTERNALApi* | [**create_hardware_request_support_hardware_request_post**](docs/EXTERNALApi.md#create_hardware_request_support_hardware_request_post) | **POST** /support/hardware-request | Create Hardware Request -*EXTERNALApi* | [**create_inference_deployment_deployments_v2_inference_post**](docs/EXTERNALApi.md#create_inference_deployment_deployments_v2_inference_post) | **POST** /deployments/v2/inference | Create Inference Deployment -*EXTERNALApi* | [**create_payment_payments_post**](docs/EXTERNALApi.md#create_payment_payments_post) | **POST** /payments | Create Payment -*EXTERNALApi* | [**create_payment_setup_payments_setup_post**](docs/EXTERNALApi.md#create_payment_setup_payments_setup_post) | **POST** /payments/setup | Create Payment Setup +*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_deployment_deployments_cserve_post**](docs/EXTERNALApi.md#create_cserve_deployment_deployments_cserve_post) | **POST** /deployments/cserve | Create Cserve Deployment +*EXTERNALApi* | [**create_inference_deployment_deployments_inference_post**](docs/EXTERNALApi.md#create_inference_deployment_deployments_inference_post) | **POST** /deployments/inference | Create Inference Deployment *EXTERNALApi* | [**delete_api_key_credentials_api_key_id_delete**](docs/EXTERNALApi.md#delete_api_key_credentials_api_key_id_delete) | **DELETE** /credentials/api-key/{id} | Delete Api Key -*EXTERNALApi* | [**delete_payment_method_payments_methods_payment_method_delete**](docs/EXTERNALApi.md#delete_payment_method_payments_methods_payment_method_delete) | **DELETE** /payments/methods/{payment_method} | Delete Payment Method *EXTERNALApi* | [**get_api_keys_credentials_api_key_get**](docs/EXTERNALApi.md#get_api_keys_credentials_api_key_get) | **GET** /credentials/api-key | Get Api Keys *EXTERNALApi* | [**get_clusters_clusters_get**](docs/EXTERNALApi.md#get_clusters_clusters_get) | **GET** /clusters | Get Clusters -*EXTERNALApi* | [**get_compute_deployment_deployments_v2_compute_deployment_id_get**](docs/EXTERNALApi.md#get_compute_deployment_deployments_v2_compute_deployment_id_get) | **GET** /deployments/v2/compute/{deployment_id} | Get Compute Deployment +*EXTERNALApi* | [**get_compute_deployment_deployments_compute_deployment_id_get**](docs/EXTERNALApi.md#get_compute_deployment_deployments_compute_deployment_id_get) | **GET** /deployments/compute/{deployment_id} | Get Compute Deployment *EXTERNALApi* | [**get_credits_credits_get**](docs/EXTERNALApi.md#get_credits_credits_get) | **GET** /credits | Get Credits -*EXTERNALApi* | [**get_cserve_deployment_deployments_v2_cserve_deployment_id_get**](docs/EXTERNALApi.md#get_cserve_deployment_deployments_v2_cserve_deployment_id_get) | **GET** /deployments/v2/cserve/{deployment_id} | Get Cserve Deployment -*EXTERNALApi* | [**get_cserve_recipe_deployments_v2_cserve_recipes_get**](docs/EXTERNALApi.md#get_cserve_recipe_deployments_v2_cserve_recipes_get) | **GET** /deployments/v2/cserve/recipes | Get Cserve Recipe +*EXTERNALApi* | [**get_cserve_deployment_deployments_cserve_deployment_id_get**](docs/EXTERNALApi.md#get_cserve_deployment_deployments_cserve_deployment_id_get) | **GET** /deployments/cserve/{deployment_id} | Get Cserve Deployment +*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_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_v2_status_deployment_id_get**](docs/EXTERNALApi.md#get_deployment_status_deployments_v2_status_deployment_id_get) | **GET** /deployments/v2/status/{deployment_id} | Get Deployment Status -*EXTERNALApi* | [**get_deployments_deployments_v2_get**](docs/EXTERNALApi.md#get_deployments_deployments_v2_get) | **GET** /deployments/v2 | Get Deployments +*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_hardware_instances_hardware_instances_v2_get**](docs/EXTERNALApi.md#get_hardware_instances_hardware_instances_v2_get) | **GET** /hardware-instances/v2 | Get Hardware Instances -*EXTERNALApi* | [**get_inference_deployment_deployments_v2_inference_deployment_id_get**](docs/EXTERNALApi.md#get_inference_deployment_deployments_v2_inference_deployment_id_get) | **GET** /deployments/v2/inference/{deployment_id} | Get Inference Deployment -*EXTERNALApi* | [**get_payment_methods_payments_methods_get**](docs/EXTERNALApi.md#get_payment_methods_payments_methods_get) | **GET** /payments/methods | Get Payment Methods +*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_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 *EXTERNALApi* | [**get_usage_daily_bills_get**](docs/EXTERNALApi.md#get_usage_daily_bills_get) | **GET** /daily_bills | Get Usage *EXTERNALApi* | [**get_usage_deployments_usage_deployment_id_get**](docs/EXTERNALApi.md#get_usage_deployments_usage_deployment_id_get) | **GET** /deployments/usage/{deployment_id} | Get Usage -*EXTERNALApi* | [**update_deployment_status_deployments_v2_status_deployment_id_put**](docs/EXTERNALApi.md#update_deployment_status_deployments_v2_status_deployment_id_put) | **PUT** /deployments/v2/status/{deployment_id} | Update Deployment Status +*EXTERNALApi* | [**setup_stripe_customer_payments_setup_post**](docs/EXTERNALApi.md#setup_stripe_customer_payments_setup_post) | **POST** /payments/setup | Setup Stripe Customer +*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 ## Documentation For Models - [APIKeyRequest](docs/APIKeyRequest.md) - [APIKeyResponse](docs/APIKeyResponse.md) - - [AddHardwareRequest](docs/AddHardwareRequest.md) - [CServeRecipeInput](docs/CServeRecipeInput.md) - [CServeRecipeOutput](docs/CServeRecipeOutput.md) - [CServeRecipePerf](docs/CServeRecipePerf.md) - [CServeRecipeResponse](docs/CServeRecipeResponse.md) - - [ClientSecretResponse](docs/ClientSecretResponse.md) - [CreateCServeDeploymentRequest](docs/CreateCServeDeploymentRequest.md) - [CreateCServeDeploymentResponse](docs/CreateCServeDeploymentResponse.md) + - [CreateCheckoutRequest](docs/CreateCheckoutRequest.md) + - [CreateCheckoutResponse](docs/CreateCheckoutResponse.md) + - [CreateComputeDeploymentRequest](docs/CreateComputeDeploymentRequest.md) - [CreateComputeDeploymentResponse](docs/CreateComputeDeploymentResponse.md) - - [CreateComputeDeploymentV2Request](docs/CreateComputeDeploymentV2Request.md) + - [CreateInferenceDeploymentRequest](docs/CreateInferenceDeploymentRequest.md) - [CreateInferenceDeploymentResponse](docs/CreateInferenceDeploymentResponse.md) - - [CreateInferenceDeploymentV2Request](docs/CreateInferenceDeploymentV2Request.md) - - [CreatePaymentRequest](docs/CreatePaymentRequest.md) - [CreditsResponse](docs/CreditsResponse.md) - [DailyBillResponse](docs/DailyBillResponse.md) - [DeploymentStatus](docs/DeploymentStatus.md) - [DeploymentStatusRequest](docs/DeploymentStatusRequest.md) - - [DeploymentStatusResponseV2](docs/DeploymentStatusResponseV2.md) + - [DeploymentStatusResponse](docs/DeploymentStatusResponse.md) - [DeploymentType](docs/DeploymentType.md) - [DeploymentUsageValue](docs/DeploymentUsageValue.md) - - [FeedbackRequest](docs/FeedbackRequest.md) - [GetCServeDeploymentResponse](docs/GetCServeDeploymentResponse.md) - [GetClusterResponse](docs/GetClusterResponse.md) - - [GetComputeV2DeploymentResponse](docs/GetComputeV2DeploymentResponse.md) + - [GetComputeDeploymentResponse](docs/GetComputeDeploymentResponse.md) - [GetDeploymentLogResponse](docs/GetDeploymentLogResponse.md) + - [GetDeploymentResponse](docs/GetDeploymentResponse.md) - [GetDeploymentUsageResponse](docs/GetDeploymentUsageResponse.md) - - [GetDeploymentV2Response](docs/GetDeploymentV2Response.md) - - [GetInferenceV2DeploymentResponse](docs/GetInferenceV2DeploymentResponse.md) + - [GetInferenceDeploymentResponse](docs/GetInferenceDeploymentResponse.md) + - [GetPaymentsResponse](docs/GetPaymentsResponse.md) - [HTTPValidationError](docs/HTTPValidationError.md) - [HardwareInstanceResponse](docs/HardwareInstanceResponse.md) - - [HealthStatus](docs/HealthStatus.md) - [ListAPIKeyResponse](docs/ListAPIKeyResponse.md) - [ListCServeRecipeResponse](docs/ListCServeRecipeResponse.md) - [ListDailyBillResponse](docs/ListDailyBillResponse.md) - [ListGetClusterResponse](docs/ListGetClusterResponse.md) - - [ListGetDeploymentV2Response](docs/ListGetDeploymentV2Response.md) + - [ListGetDeploymentResponse](docs/ListGetDeploymentResponse.md) - [ListHardwareInstanceResponse](docs/ListHardwareInstanceResponse.md) - - [ListPaymentMethodResponse](docs/ListPaymentMethodResponse.md) - [ListPrebuiltImageResponse](docs/ListPrebuiltImageResponse.md) - [Metric](docs/Metric.md) - [PrebuiltImageResponse](docs/PrebuiltImageResponse.md) + - [ServiceStatus](docs/ServiceStatus.md) + - [UserSupportEmailRequest](docs/UserSupportEmailRequest.md) - [ValidationError](docs/ValidationError.md) - [ValidationErrorLocInner](docs/ValidationErrorLocInner.md) diff --git a/docs/APIKeyRequest.md b/docs/APIKeyRequest.md index 30fac6c..1d70c03 100644 --- a/docs/APIKeyRequest.md +++ b/docs/APIKeyRequest.md @@ -10,7 +10,7 @@ Name | Type | Description | Notes ## Example ```python -from platform_api_python_client.models.api_key_request import APIKeyRequest +from platform_api_external_client.models.api_key_request import APIKeyRequest # TODO update the JSON string below json = "{}" diff --git a/docs/APIKeyResponse.md b/docs/APIKeyResponse.md index 53df35e..81edc1d 100644 --- a/docs/APIKeyResponse.md +++ b/docs/APIKeyResponse.md @@ -12,7 +12,7 @@ Name | Type | Description | Notes ## Example ```python -from platform_api_python_client.models.api_key_response import APIKeyResponse +from platform_api_external_client.models.api_key_response import APIKeyResponse # TODO update the JSON string below json = "{}" diff --git a/docs/AddHardwareRequest.md b/docs/AddHardwareRequest.md deleted file mode 100644 index 08dcc52..0000000 --- a/docs/AddHardwareRequest.md +++ /dev/null @@ -1,29 +0,0 @@ -# AddHardwareRequest - - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**message** | **str** | | - -## Example - -```python -from platform_api_python_client.models.add_hardware_request import AddHardwareRequest - -# TODO update the JSON string below -json = "{}" -# create an instance of AddHardwareRequest from a JSON string -add_hardware_request_instance = AddHardwareRequest.from_json(json) -# print the JSON string representation of the object -print(AddHardwareRequest.to_json()) - -# convert the object into a dict -add_hardware_request_dict = add_hardware_request_instance.to_dict() -# create an instance of AddHardwareRequest from a dict -add_hardware_request_from_dict = AddHardwareRequest.from_dict(add_hardware_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/CServeRecipeInput.md b/docs/CServeRecipeInput.md index e886926..357fb55 100644 --- a/docs/CServeRecipeInput.md +++ b/docs/CServeRecipeInput.md @@ -30,7 +30,7 @@ Name | Type | Description | Notes ## Example ```python -from platform_api_python_client.models.c_serve_recipe_input import CServeRecipeInput +from platform_api_external_client.models.c_serve_recipe_input import CServeRecipeInput # TODO update the JSON string below json = "{}" diff --git a/docs/CServeRecipeOutput.md b/docs/CServeRecipeOutput.md index d0aa70e..4a39890 100644 --- a/docs/CServeRecipeOutput.md +++ b/docs/CServeRecipeOutput.md @@ -30,7 +30,7 @@ Name | Type | Description | Notes ## Example ```python -from platform_api_python_client.models.c_serve_recipe_output import CServeRecipeOutput +from platform_api_external_client.models.c_serve_recipe_output import CServeRecipeOutput # TODO update the JSON string below json = "{}" diff --git a/docs/CServeRecipePerf.md b/docs/CServeRecipePerf.md index dcf88b3..55d6262 100644 --- a/docs/CServeRecipePerf.md +++ b/docs/CServeRecipePerf.md @@ -13,7 +13,7 @@ Name | Type | Description | Notes ## Example ```python -from platform_api_python_client.models.c_serve_recipe_perf import CServeRecipePerf +from platform_api_external_client.models.c_serve_recipe_perf import CServeRecipePerf # TODO update the JSON string below json = "{}" diff --git a/docs/CServeRecipeResponse.md b/docs/CServeRecipeResponse.md index 4a42fda..fc1ec81 100644 --- a/docs/CServeRecipeResponse.md +++ b/docs/CServeRecipeResponse.md @@ -14,7 +14,7 @@ Name | Type | Description | Notes ## Example ```python -from platform_api_python_client.models.c_serve_recipe_response import CServeRecipeResponse +from platform_api_external_client.models.c_serve_recipe_response import CServeRecipeResponse # TODO update the JSON string below json = "{}" diff --git a/docs/ClientSecretResponse.md b/docs/ClientSecretResponse.md deleted file mode 100644 index 5950168..0000000 --- a/docs/ClientSecretResponse.md +++ /dev/null @@ -1,29 +0,0 @@ -# ClientSecretResponse - - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**client_secret** | **str** | | - -## Example - -```python -from platform_api_python_client.models.client_secret_response import ClientSecretResponse - -# TODO update the JSON string below -json = "{}" -# create an instance of ClientSecretResponse from a JSON string -client_secret_response_instance = ClientSecretResponse.from_json(json) -# print the JSON string representation of the object -print(ClientSecretResponse.to_json()) - -# convert the object into a dict -client_secret_response_dict = client_secret_response_instance.to_dict() -# create an instance of ClientSecretResponse from a dict -client_secret_response_from_dict = ClientSecretResponse.from_dict(client_secret_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/CreateCServeDeploymentRequest.md b/docs/CreateCServeDeploymentRequest.md index 802450d..781c766 100644 --- a/docs/CreateCServeDeploymentRequest.md +++ b/docs/CreateCServeDeploymentRequest.md @@ -14,11 +14,12 @@ Name | Type | Description | Notes **min_scale** | **int** | | **max_scale** | **int** | | **concurrency** | **int** | | [optional] +**env_vars** | **Dict[str, str]** | | [optional] ## Example ```python -from platform_api_python_client.models.create_c_serve_deployment_request import CreateCServeDeploymentRequest +from platform_api_external_client.models.create_c_serve_deployment_request import CreateCServeDeploymentRequest # TODO update the JSON string below json = "{}" diff --git a/docs/CreateCServeDeploymentResponse.md b/docs/CreateCServeDeploymentResponse.md index 4d5de2e..c92ca57 100644 --- a/docs/CreateCServeDeploymentResponse.md +++ b/docs/CreateCServeDeploymentResponse.md @@ -12,7 +12,7 @@ Name | Type | Description | Notes ## Example ```python -from platform_api_python_client.models.create_c_serve_deployment_response import CreateCServeDeploymentResponse +from platform_api_external_client.models.create_c_serve_deployment_response import CreateCServeDeploymentResponse # TODO update the JSON string below json = "{}" diff --git a/docs/CreateCheckoutRequest.md b/docs/CreateCheckoutRequest.md new file mode 100644 index 0000000..809c9d0 --- /dev/null +++ b/docs/CreateCheckoutRequest.md @@ -0,0 +1,30 @@ +# CreateCheckoutRequest + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**amount_credits** | **int** | | +**success_url** | **str** | | + +## Example + +```python +from platform_api_external_client.models.create_checkout_request import CreateCheckoutRequest + +# TODO update the JSON string below +json = "{}" +# create an instance of CreateCheckoutRequest from a JSON string +create_checkout_request_instance = CreateCheckoutRequest.from_json(json) +# print the JSON string representation of the object +print(CreateCheckoutRequest.to_json()) + +# convert the object into a dict +create_checkout_request_dict = create_checkout_request_instance.to_dict() +# create an instance of CreateCheckoutRequest from a dict +create_checkout_request_from_dict = CreateCheckoutRequest.from_dict(create_checkout_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/CreateCheckoutResponse.md b/docs/CreateCheckoutResponse.md new file mode 100644 index 0000000..d423012 --- /dev/null +++ b/docs/CreateCheckoutResponse.md @@ -0,0 +1,29 @@ +# CreateCheckoutResponse + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**url** | **str** | | + +## Example + +```python +from platform_api_external_client.models.create_checkout_response import CreateCheckoutResponse + +# TODO update the JSON string below +json = "{}" +# create an instance of CreateCheckoutResponse from a JSON string +create_checkout_response_instance = CreateCheckoutResponse.from_json(json) +# print the JSON string representation of the object +print(CreateCheckoutResponse.to_json()) + +# convert the object into a dict +create_checkout_response_dict = create_checkout_response_instance.to_dict() +# create an instance of CreateCheckoutResponse from a dict +create_checkout_response_from_dict = CreateCheckoutResponse.from_dict(create_checkout_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/CreateComputeDeploymentRequest.md b/docs/CreateComputeDeploymentRequest.md new file mode 100644 index 0000000..bc74014 --- /dev/null +++ b/docs/CreateComputeDeploymentRequest.md @@ -0,0 +1,34 @@ +# CreateComputeDeploymentRequest + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**name** | **str** | | +**cluster_id** | **int** | | +**hardware_instance_id** | **int** | | +**image_url** | **str** | | +**ssh_public_key** | **str** | | [optional] +**ssh_password** | **str** | | [optional] + +## Example + +```python +from platform_api_external_client.models.create_compute_deployment_request import CreateComputeDeploymentRequest + +# TODO update the JSON string below +json = "{}" +# create an instance of CreateComputeDeploymentRequest from a JSON string +create_compute_deployment_request_instance = CreateComputeDeploymentRequest.from_json(json) +# print the JSON string representation of the object +print(CreateComputeDeploymentRequest.to_json()) + +# convert the object into a dict +create_compute_deployment_request_dict = create_compute_deployment_request_instance.to_dict() +# create an instance of CreateComputeDeploymentRequest from a dict +create_compute_deployment_request_from_dict = CreateComputeDeploymentRequest.from_dict(create_compute_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/CreateComputeDeploymentResponse.md b/docs/CreateComputeDeploymentResponse.md index 298b492..b350984 100644 --- a/docs/CreateComputeDeploymentResponse.md +++ b/docs/CreateComputeDeploymentResponse.md @@ -13,7 +13,7 @@ Name | Type | Description | Notes ## Example ```python -from platform_api_python_client.models.create_compute_deployment_response import CreateComputeDeploymentResponse +from platform_api_external_client.models.create_compute_deployment_response import CreateComputeDeploymentResponse # TODO update the JSON string below json = "{}" diff --git a/docs/CreateComputeDeploymentV2Request.md b/docs/CreateComputeDeploymentV2Request.md deleted file mode 100644 index 3a46387..0000000 --- a/docs/CreateComputeDeploymentV2Request.md +++ /dev/null @@ -1,34 +0,0 @@ -# CreateComputeDeploymentV2Request - - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**name** | **str** | | -**cluster_id** | **int** | | -**hardware_instance_id** | **int** | | -**image_url** | **str** | | -**ssh_public_key** | **str** | | [optional] -**ssh_password** | **str** | | [optional] - -## Example - -```python -from platform_api_python_client.models.create_compute_deployment_v2_request import CreateComputeDeploymentV2Request - -# TODO update the JSON string below -json = "{}" -# create an instance of CreateComputeDeploymentV2Request from a JSON string -create_compute_deployment_v2_request_instance = CreateComputeDeploymentV2Request.from_json(json) -# print the JSON string representation of the object -print(CreateComputeDeploymentV2Request.to_json()) - -# convert the object into a dict -create_compute_deployment_v2_request_dict = create_compute_deployment_v2_request_instance.to_dict() -# create an instance of CreateComputeDeploymentV2Request from a dict -create_compute_deployment_v2_request_from_dict = CreateComputeDeploymentV2Request.from_dict(create_compute_deployment_v2_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/CreateInferenceDeploymentV2Request.md b/docs/CreateInferenceDeploymentRequest.md similarity index 57% rename from docs/CreateInferenceDeploymentV2Request.md rename to docs/CreateInferenceDeploymentRequest.md index cd312bf..c43719c 100644 --- a/docs/CreateInferenceDeploymentV2Request.md +++ b/docs/CreateInferenceDeploymentRequest.md @@ -1,4 +1,4 @@ -# CreateInferenceDeploymentV2Request +# CreateInferenceDeploymentRequest ## Properties @@ -22,19 +22,19 @@ Name | Type | Description | Notes ## Example ```python -from platform_api_python_client.models.create_inference_deployment_v2_request import CreateInferenceDeploymentV2Request +from platform_api_external_client.models.create_inference_deployment_request import CreateInferenceDeploymentRequest # TODO update the JSON string below json = "{}" -# create an instance of CreateInferenceDeploymentV2Request from a JSON string -create_inference_deployment_v2_request_instance = CreateInferenceDeploymentV2Request.from_json(json) +# create an instance of CreateInferenceDeploymentRequest from a JSON string +create_inference_deployment_request_instance = CreateInferenceDeploymentRequest.from_json(json) # print the JSON string representation of the object -print(CreateInferenceDeploymentV2Request.to_json()) +print(CreateInferenceDeploymentRequest.to_json()) # convert the object into a dict -create_inference_deployment_v2_request_dict = create_inference_deployment_v2_request_instance.to_dict() -# create an instance of CreateInferenceDeploymentV2Request from a dict -create_inference_deployment_v2_request_from_dict = CreateInferenceDeploymentV2Request.from_dict(create_inference_deployment_v2_request_dict) +create_inference_deployment_request_dict = create_inference_deployment_request_instance.to_dict() +# create an instance of CreateInferenceDeploymentRequest from a dict +create_inference_deployment_request_from_dict = CreateInferenceDeploymentRequest.from_dict(create_inference_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/CreateInferenceDeploymentResponse.md b/docs/CreateInferenceDeploymentResponse.md index 54fcc6b..ee4fe15 100644 --- a/docs/CreateInferenceDeploymentResponse.md +++ b/docs/CreateInferenceDeploymentResponse.md @@ -12,7 +12,7 @@ Name | Type | Description | Notes ## Example ```python -from platform_api_python_client.models.create_inference_deployment_response import CreateInferenceDeploymentResponse +from platform_api_external_client.models.create_inference_deployment_response import CreateInferenceDeploymentResponse # TODO update the JSON string below json = "{}" diff --git a/docs/CreatePaymentRequest.md b/docs/CreatePaymentRequest.md deleted file mode 100644 index aa8c6c2..0000000 --- a/docs/CreatePaymentRequest.md +++ /dev/null @@ -1,30 +0,0 @@ -# CreatePaymentRequest - - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**amount** | **int** | | -**payment_method** | **str** | | - -## Example - -```python -from platform_api_python_client.models.create_payment_request import CreatePaymentRequest - -# TODO update the JSON string below -json = "{}" -# create an instance of CreatePaymentRequest from a JSON string -create_payment_request_instance = CreatePaymentRequest.from_json(json) -# print the JSON string representation of the object -print(CreatePaymentRequest.to_json()) - -# convert the object into a dict -create_payment_request_dict = create_payment_request_instance.to_dict() -# create an instance of CreatePaymentRequest from a dict -create_payment_request_from_dict = CreatePaymentRequest.from_dict(create_payment_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/CreditsResponse.md b/docs/CreditsResponse.md index 3f049c6..27ceca4 100644 --- a/docs/CreditsResponse.md +++ b/docs/CreditsResponse.md @@ -5,12 +5,12 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**credits** | **int** | | +**credits** | **float** | | ## Example ```python -from platform_api_python_client.models.credits_response import CreditsResponse +from platform_api_external_client.models.credits_response import CreditsResponse # TODO update the JSON string below json = "{}" diff --git a/docs/DailyBillResponse.md b/docs/DailyBillResponse.md index 6ba7af2..87c552f 100644 --- a/docs/DailyBillResponse.md +++ b/docs/DailyBillResponse.md @@ -6,12 +6,12 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **var_date** | **date** | | -**credits** | **int** | | +**credits** | **float** | | ## Example ```python -from platform_api_python_client.models.daily_bill_response import DailyBillResponse +from platform_api_external_client.models.daily_bill_response import DailyBillResponse # TODO update the JSON string below json = "{}" diff --git a/docs/DeploymentStatusRequest.md b/docs/DeploymentStatusRequest.md index 866a8db..8421924 100644 --- a/docs/DeploymentStatusRequest.md +++ b/docs/DeploymentStatusRequest.md @@ -10,7 +10,7 @@ Name | Type | Description | Notes ## Example ```python -from platform_api_python_client.models.deployment_status_request import DeploymentStatusRequest +from platform_api_external_client.models.deployment_status_request import DeploymentStatusRequest # TODO update the JSON string below json = "{}" diff --git a/docs/DeploymentStatusResponse.md b/docs/DeploymentStatusResponse.md new file mode 100644 index 0000000..967f2b6 --- /dev/null +++ b/docs/DeploymentStatusResponse.md @@ -0,0 +1,34 @@ +# DeploymentStatusResponse + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**id** | **int** | | +**type** | [**DeploymentType**](DeploymentType.md) | | +**status** | [**DeploymentStatus**](DeploymentStatus.md) | | +**service_status** | [**ServiceStatus**](ServiceStatus.md) | | +**error_message** | **str** | | +**endpoint_url** | **str** | | + +## Example + +```python +from platform_api_external_client.models.deployment_status_response import DeploymentStatusResponse + +# TODO update the JSON string below +json = "{}" +# create an instance of DeploymentStatusResponse from a JSON string +deployment_status_response_instance = DeploymentStatusResponse.from_json(json) +# print the JSON string representation of the object +print(DeploymentStatusResponse.to_json()) + +# convert the object into a dict +deployment_status_response_dict = deployment_status_response_instance.to_dict() +# create an instance of DeploymentStatusResponse from a dict +deployment_status_response_from_dict = DeploymentStatusResponse.from_dict(deployment_status_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/DeploymentStatusResponseV2.md b/docs/DeploymentStatusResponseV2.md deleted file mode 100644 index 0304d74..0000000 --- a/docs/DeploymentStatusResponseV2.md +++ /dev/null @@ -1,34 +0,0 @@ -# DeploymentStatusResponseV2 - - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**id** | **int** | | -**type** | [**DeploymentType**](DeploymentType.md) | | -**status** | [**DeploymentStatus**](DeploymentStatus.md) | | -**service_status** | [**HealthStatus**](HealthStatus.md) | | -**error_message** | **str** | | -**endpoint_url** | **str** | | - -## Example - -```python -from platform_api_python_client.models.deployment_status_response_v2 import DeploymentStatusResponseV2 - -# TODO update the JSON string below -json = "{}" -# create an instance of DeploymentStatusResponseV2 from a JSON string -deployment_status_response_v2_instance = DeploymentStatusResponseV2.from_json(json) -# print the JSON string representation of the object -print(DeploymentStatusResponseV2.to_json()) - -# convert the object into a dict -deployment_status_response_v2_dict = deployment_status_response_v2_instance.to_dict() -# create an instance of DeploymentStatusResponseV2 from a dict -deployment_status_response_v2_from_dict = DeploymentStatusResponseV2.from_dict(deployment_status_response_v2_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/DeploymentUsageValue.md b/docs/DeploymentUsageValue.md index 4916f19..222fb5f 100644 --- a/docs/DeploymentUsageValue.md +++ b/docs/DeploymentUsageValue.md @@ -11,7 +11,7 @@ Name | Type | Description | Notes ## Example ```python -from platform_api_python_client.models.deployment_usage_value import DeploymentUsageValue +from platform_api_external_client.models.deployment_usage_value import DeploymentUsageValue # TODO update the JSON string below json = "{}" diff --git a/docs/EXTERNALApi.md b/docs/EXTERNALApi.md index ed85de4..64e103e 100644 --- a/docs/EXTERNALApi.md +++ b/docs/EXTERNALApi.md @@ -1,56 +1,53 @@ -# platform_api_python_client.EXTERNALApi +# platform_api_external_client.EXTERNALApi All URIs are relative to *http://localhost* Method | HTTP request | Description ------------- | ------------- | ------------- -[**add_feedback_request_support_feedback_post**](EXTERNALApi.md#add_feedback_request_support_feedback_post) | **POST** /support/feedback | Add Feedback Request +[**add_user_request_support_user_requests_post**](EXTERNALApi.md#add_user_request_support_user_requests_post) | **POST** /support/user-requests | Add User Request [**create_api_key_credentials_api_key_post**](EXTERNALApi.md#create_api_key_credentials_api_key_post) | **POST** /credentials/api-key | Create Api Key -[**create_compute_deployment_deployments_v2_compute_post**](EXTERNALApi.md#create_compute_deployment_deployments_v2_compute_post) | **POST** /deployments/v2/compute | Create Compute Deployment -[**create_cserve_deployment_deployments_v2_cserve_post**](EXTERNALApi.md#create_cserve_deployment_deployments_v2_cserve_post) | **POST** /deployments/v2/cserve | Create Cserve Deployment -[**create_hardware_request_support_hardware_request_post**](EXTERNALApi.md#create_hardware_request_support_hardware_request_post) | **POST** /support/hardware-request | Create Hardware Request -[**create_inference_deployment_deployments_v2_inference_post**](EXTERNALApi.md#create_inference_deployment_deployments_v2_inference_post) | **POST** /deployments/v2/inference | Create Inference Deployment -[**create_payment_payments_post**](EXTERNALApi.md#create_payment_payments_post) | **POST** /payments | Create Payment -[**create_payment_setup_payments_setup_post**](EXTERNALApi.md#create_payment_setup_payments_setup_post) | **POST** /payments/setup | Create Payment Setup +[**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_deployment_deployments_cserve_post**](EXTERNALApi.md#create_cserve_deployment_deployments_cserve_post) | **POST** /deployments/cserve | Create Cserve Deployment +[**create_inference_deployment_deployments_inference_post**](EXTERNALApi.md#create_inference_deployment_deployments_inference_post) | **POST** /deployments/inference | Create Inference Deployment [**delete_api_key_credentials_api_key_id_delete**](EXTERNALApi.md#delete_api_key_credentials_api_key_id_delete) | **DELETE** /credentials/api-key/{id} | Delete Api Key -[**delete_payment_method_payments_methods_payment_method_delete**](EXTERNALApi.md#delete_payment_method_payments_methods_payment_method_delete) | **DELETE** /payments/methods/{payment_method} | Delete Payment Method [**get_api_keys_credentials_api_key_get**](EXTERNALApi.md#get_api_keys_credentials_api_key_get) | **GET** /credentials/api-key | Get Api Keys [**get_clusters_clusters_get**](EXTERNALApi.md#get_clusters_clusters_get) | **GET** /clusters | Get Clusters -[**get_compute_deployment_deployments_v2_compute_deployment_id_get**](EXTERNALApi.md#get_compute_deployment_deployments_v2_compute_deployment_id_get) | **GET** /deployments/v2/compute/{deployment_id} | Get Compute Deployment +[**get_compute_deployment_deployments_compute_deployment_id_get**](EXTERNALApi.md#get_compute_deployment_deployments_compute_deployment_id_get) | **GET** /deployments/compute/{deployment_id} | Get Compute Deployment [**get_credits_credits_get**](EXTERNALApi.md#get_credits_credits_get) | **GET** /credits | Get Credits -[**get_cserve_deployment_deployments_v2_cserve_deployment_id_get**](EXTERNALApi.md#get_cserve_deployment_deployments_v2_cserve_deployment_id_get) | **GET** /deployments/v2/cserve/{deployment_id} | Get Cserve Deployment -[**get_cserve_recipe_deployments_v2_cserve_recipes_get**](EXTERNALApi.md#get_cserve_recipe_deployments_v2_cserve_recipes_get) | **GET** /deployments/v2/cserve/recipes | Get Cserve Recipe +[**get_cserve_deployment_deployments_cserve_deployment_id_get**](EXTERNALApi.md#get_cserve_deployment_deployments_cserve_deployment_id_get) | **GET** /deployments/cserve/{deployment_id} | Get Cserve Deployment +[**get_cserve_recipe_deployments_cserve_recipes_get**](EXTERNALApi.md#get_cserve_recipe_deployments_cserve_recipes_get) | **GET** /deployments/cserve/recipes | Get Cserve Recipe [**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_v2_status_deployment_id_get**](EXTERNALApi.md#get_deployment_status_deployments_v2_status_deployment_id_get) | **GET** /deployments/v2/status/{deployment_id} | Get Deployment Status -[**get_deployments_deployments_v2_get**](EXTERNALApi.md#get_deployments_deployments_v2_get) | **GET** /deployments/v2 | Get Deployments +[**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_hardware_instances_hardware_instances_v2_get**](EXTERNALApi.md#get_hardware_instances_hardware_instances_v2_get) | **GET** /hardware-instances/v2 | Get Hardware Instances -[**get_inference_deployment_deployments_v2_inference_deployment_id_get**](EXTERNALApi.md#get_inference_deployment_deployments_v2_inference_deployment_id_get) | **GET** /deployments/v2/inference/{deployment_id} | Get Inference Deployment -[**get_payment_methods_payments_methods_get**](EXTERNALApi.md#get_payment_methods_payments_methods_get) | **GET** /payments/methods | Get Payment Methods +[**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_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 [**get_usage_daily_bills_get**](EXTERNALApi.md#get_usage_daily_bills_get) | **GET** /daily_bills | Get Usage [**get_usage_deployments_usage_deployment_id_get**](EXTERNALApi.md#get_usage_deployments_usage_deployment_id_get) | **GET** /deployments/usage/{deployment_id} | Get Usage -[**update_deployment_status_deployments_v2_status_deployment_id_put**](EXTERNALApi.md#update_deployment_status_deployments_v2_status_deployment_id_put) | **PUT** /deployments/v2/status/{deployment_id} | Update Deployment Status +[**setup_stripe_customer_payments_setup_post**](EXTERNALApi.md#setup_stripe_customer_payments_setup_post) | **POST** /payments/setup | Setup Stripe Customer +[**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 -# **add_feedback_request_support_feedback_post** -> object add_feedback_request_support_feedback_post(feedback_request) +# **add_user_request_support_user_requests_post** +> object add_user_request_support_user_requests_post(user_support_email_request) -Add Feedback Request +Add User Request ### Example * Bearer Authentication (HTTPBearer): ```python -import platform_api_python_client -from platform_api_python_client.models.feedback_request import FeedbackRequest -from platform_api_python_client.rest import ApiException +import platform_api_external_client +from platform_api_external_client.models.user_support_email_request import UserSupportEmailRequest +from platform_api_external_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( +configuration = platform_api_external_client.Configuration( host = "http://localhost" ) @@ -60,23 +57,23 @@ configuration = platform_api_python_client.Configuration( # satisfies your auth use case. # Configure Bearer authorization: HTTPBearer -configuration = platform_api_python_client.Configuration( +configuration = platform_api_external_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: +with platform_api_external_client.ApiClient(configuration) as api_client: # Create an instance of the API class - api_instance = platform_api_python_client.EXTERNALApi(api_client) - feedback_request = platform_api_python_client.FeedbackRequest() # FeedbackRequest | + api_instance = platform_api_external_client.EXTERNALApi(api_client) + user_support_email_request = platform_api_external_client.UserSupportEmailRequest() # UserSupportEmailRequest | try: - # Add Feedback Request - api_response = api_instance.add_feedback_request_support_feedback_post(feedback_request) - print("The response of EXTERNALApi->add_feedback_request_support_feedback_post:\n") + # Add User Request + api_response = api_instance.add_user_request_support_user_requests_post(user_support_email_request) + print("The response of EXTERNALApi->add_user_request_support_user_requests_post:\n") pprint(api_response) except Exception as e: - print("Exception when calling EXTERNALApi->add_feedback_request_support_feedback_post: %s\n" % e) + print("Exception when calling EXTERNALApi->add_user_request_support_user_requests_post: %s\n" % e) ``` @@ -86,7 +83,7 @@ with platform_api_python_client.ApiClient(configuration) as api_client: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **feedback_request** | [**FeedbackRequest**](FeedbackRequest.md)| | + **user_support_email_request** | [**UserSupportEmailRequest**](UserSupportEmailRequest.md)| | ### Return type @@ -120,15 +117,15 @@ Create Api Key * Bearer Authentication (HTTPBearer): ```python -import platform_api_python_client -from platform_api_python_client.models.api_key_request import APIKeyRequest -from platform_api_python_client.models.api_key_response import APIKeyResponse -from platform_api_python_client.rest import ApiException +import platform_api_external_client +from platform_api_external_client.models.api_key_request import APIKeyRequest +from platform_api_external_client.models.api_key_response import APIKeyResponse +from platform_api_external_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( +configuration = platform_api_external_client.Configuration( host = "http://localhost" ) @@ -138,15 +135,15 @@ configuration = platform_api_python_client.Configuration( # satisfies your auth use case. # Configure Bearer authorization: HTTPBearer -configuration = platform_api_python_client.Configuration( +configuration = platform_api_external_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: +with platform_api_external_client.ApiClient(configuration) as api_client: # Create an instance of the API class - api_instance = platform_api_python_client.EXTERNALApi(api_client) - api_key_request = platform_api_python_client.APIKeyRequest() # APIKeyRequest | + api_instance = platform_api_external_client.EXTERNALApi(api_client) + api_key_request = platform_api_external_client.APIKeyRequest() # APIKeyRequest | try: # Create Api Key @@ -188,25 +185,25 @@ 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_compute_deployment_deployments_v2_compute_post** -> CreateComputeDeploymentResponse create_compute_deployment_deployments_v2_compute_post(create_compute_deployment_v2_request) +# **create_checkout_payments_checkout_post** +> CreateCheckoutResponse create_checkout_payments_checkout_post(create_checkout_request) -Create Compute Deployment +Create Checkout ### Example * Bearer Authentication (HTTPBearer): ```python -import platform_api_python_client -from platform_api_python_client.models.create_compute_deployment_response import CreateComputeDeploymentResponse -from platform_api_python_client.models.create_compute_deployment_v2_request import CreateComputeDeploymentV2Request -from platform_api_python_client.rest import ApiException +import platform_api_external_client +from platform_api_external_client.models.create_checkout_request import CreateCheckoutRequest +from platform_api_external_client.models.create_checkout_response import CreateCheckoutResponse +from platform_api_external_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( +configuration = platform_api_external_client.Configuration( host = "http://localhost" ) @@ -216,23 +213,23 @@ configuration = platform_api_python_client.Configuration( # satisfies your auth use case. # Configure Bearer authorization: HTTPBearer -configuration = platform_api_python_client.Configuration( +configuration = platform_api_external_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: +with platform_api_external_client.ApiClient(configuration) as api_client: # Create an instance of the API class - api_instance = platform_api_python_client.EXTERNALApi(api_client) - create_compute_deployment_v2_request = platform_api_python_client.CreateComputeDeploymentV2Request() # CreateComputeDeploymentV2Request | + api_instance = platform_api_external_client.EXTERNALApi(api_client) + create_checkout_request = platform_api_external_client.CreateCheckoutRequest() # CreateCheckoutRequest | try: - # Create Compute Deployment - api_response = api_instance.create_compute_deployment_deployments_v2_compute_post(create_compute_deployment_v2_request) - print("The response of EXTERNALApi->create_compute_deployment_deployments_v2_compute_post:\n") + # Create Checkout + api_response = api_instance.create_checkout_payments_checkout_post(create_checkout_request) + print("The response of EXTERNALApi->create_checkout_payments_checkout_post:\n") pprint(api_response) except Exception as e: - print("Exception when calling EXTERNALApi->create_compute_deployment_deployments_v2_compute_post: %s\n" % e) + print("Exception when calling EXTERNALApi->create_checkout_payments_checkout_post: %s\n" % e) ``` @@ -242,11 +239,11 @@ with platform_api_python_client.ApiClient(configuration) as api_client: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **create_compute_deployment_v2_request** | [**CreateComputeDeploymentV2Request**](CreateComputeDeploymentV2Request.md)| | + **create_checkout_request** | [**CreateCheckoutRequest**](CreateCheckoutRequest.md)| | ### Return type -[**CreateComputeDeploymentResponse**](CreateComputeDeploymentResponse.md) +[**CreateCheckoutResponse**](CreateCheckoutResponse.md) ### Authorization @@ -266,25 +263,25 @@ 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_deployment_deployments_v2_cserve_post** -> CreateCServeDeploymentResponse create_cserve_deployment_deployments_v2_cserve_post(create_c_serve_deployment_request) +# **create_compute_deployment_deployments_compute_post** +> CreateComputeDeploymentResponse create_compute_deployment_deployments_compute_post(create_compute_deployment_request) -Create Cserve Deployment +Create Compute Deployment ### Example * Bearer Authentication (HTTPBearer): ```python -import platform_api_python_client -from platform_api_python_client.models.create_c_serve_deployment_request import CreateCServeDeploymentRequest -from platform_api_python_client.models.create_c_serve_deployment_response import CreateCServeDeploymentResponse -from platform_api_python_client.rest import ApiException +import platform_api_external_client +from platform_api_external_client.models.create_compute_deployment_request import CreateComputeDeploymentRequest +from platform_api_external_client.models.create_compute_deployment_response import CreateComputeDeploymentResponse +from platform_api_external_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( +configuration = platform_api_external_client.Configuration( host = "http://localhost" ) @@ -294,23 +291,23 @@ configuration = platform_api_python_client.Configuration( # satisfies your auth use case. # Configure Bearer authorization: HTTPBearer -configuration = platform_api_python_client.Configuration( +configuration = platform_api_external_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: +with platform_api_external_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_deployment_request = platform_api_python_client.CreateCServeDeploymentRequest() # CreateCServeDeploymentRequest | + api_instance = platform_api_external_client.EXTERNALApi(api_client) + create_compute_deployment_request = platform_api_external_client.CreateComputeDeploymentRequest() # CreateComputeDeploymentRequest | try: - # Create Cserve Deployment - api_response = api_instance.create_cserve_deployment_deployments_v2_cserve_post(create_c_serve_deployment_request) - print("The response of EXTERNALApi->create_cserve_deployment_deployments_v2_cserve_post:\n") + # Create Compute Deployment + api_response = api_instance.create_compute_deployment_deployments_compute_post(create_compute_deployment_request) + print("The response of EXTERNALApi->create_compute_deployment_deployments_compute_post:\n") pprint(api_response) except Exception as e: - print("Exception when calling EXTERNALApi->create_cserve_deployment_deployments_v2_cserve_post: %s\n" % e) + print("Exception when calling EXTERNALApi->create_compute_deployment_deployments_compute_post: %s\n" % e) ``` @@ -320,11 +317,11 @@ with platform_api_python_client.ApiClient(configuration) as api_client: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **create_c_serve_deployment_request** | [**CreateCServeDeploymentRequest**](CreateCServeDeploymentRequest.md)| | + **create_compute_deployment_request** | [**CreateComputeDeploymentRequest**](CreateComputeDeploymentRequest.md)| | ### Return type -[**CreateCServeDeploymentResponse**](CreateCServeDeploymentResponse.md) +[**CreateComputeDeploymentResponse**](CreateComputeDeploymentResponse.md) ### Authorization @@ -344,24 +341,25 @@ 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_hardware_request_support_hardware_request_post** -> object create_hardware_request_support_hardware_request_post(add_hardware_request) +# **create_cserve_deployment_deployments_cserve_post** +> CreateCServeDeploymentResponse create_cserve_deployment_deployments_cserve_post(create_c_serve_deployment_request) -Create Hardware Request +Create Cserve Deployment ### Example * Bearer Authentication (HTTPBearer): ```python -import platform_api_python_client -from platform_api_python_client.models.add_hardware_request import AddHardwareRequest -from platform_api_python_client.rest import ApiException +import platform_api_external_client +from platform_api_external_client.models.create_c_serve_deployment_request import CreateCServeDeploymentRequest +from platform_api_external_client.models.create_c_serve_deployment_response import CreateCServeDeploymentResponse +from platform_api_external_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( +configuration = platform_api_external_client.Configuration( host = "http://localhost" ) @@ -371,23 +369,23 @@ configuration = platform_api_python_client.Configuration( # satisfies your auth use case. # Configure Bearer authorization: HTTPBearer -configuration = platform_api_python_client.Configuration( +configuration = platform_api_external_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: +with platform_api_external_client.ApiClient(configuration) as api_client: # Create an instance of the API class - api_instance = platform_api_python_client.EXTERNALApi(api_client) - add_hardware_request = platform_api_python_client.AddHardwareRequest() # AddHardwareRequest | + api_instance = platform_api_external_client.EXTERNALApi(api_client) + create_c_serve_deployment_request = platform_api_external_client.CreateCServeDeploymentRequest() # CreateCServeDeploymentRequest | try: - # Create Hardware Request - api_response = api_instance.create_hardware_request_support_hardware_request_post(add_hardware_request) - print("The response of EXTERNALApi->create_hardware_request_support_hardware_request_post:\n") + # Create Cserve Deployment + api_response = api_instance.create_cserve_deployment_deployments_cserve_post(create_c_serve_deployment_request) + print("The response of EXTERNALApi->create_cserve_deployment_deployments_cserve_post:\n") pprint(api_response) except Exception as e: - print("Exception when calling EXTERNALApi->create_hardware_request_support_hardware_request_post: %s\n" % e) + print("Exception when calling EXTERNALApi->create_cserve_deployment_deployments_cserve_post: %s\n" % e) ``` @@ -397,11 +395,11 @@ with platform_api_python_client.ApiClient(configuration) as api_client: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **add_hardware_request** | [**AddHardwareRequest**](AddHardwareRequest.md)| | + **create_c_serve_deployment_request** | [**CreateCServeDeploymentRequest**](CreateCServeDeploymentRequest.md)| | ### Return type -**object** +[**CreateCServeDeploymentResponse**](CreateCServeDeploymentResponse.md) ### Authorization @@ -421,8 +419,8 @@ 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_deployment_deployments_v2_inference_post** -> CreateInferenceDeploymentResponse create_inference_deployment_deployments_v2_inference_post(create_inference_deployment_v2_request) +# **create_inference_deployment_deployments_inference_post** +> CreateInferenceDeploymentResponse create_inference_deployment_deployments_inference_post(create_inference_deployment_request) Create Inference Deployment @@ -431,15 +429,15 @@ Create Inference Deployment * 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_deployment_v2_request import CreateInferenceDeploymentV2Request -from platform_api_python_client.rest import ApiException +import platform_api_external_client +from platform_api_external_client.models.create_inference_deployment_request import CreateInferenceDeploymentRequest +from platform_api_external_client.models.create_inference_deployment_response import CreateInferenceDeploymentResponse +from platform_api_external_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( +configuration = platform_api_external_client.Configuration( host = "http://localhost" ) @@ -449,23 +447,23 @@ configuration = platform_api_python_client.Configuration( # satisfies your auth use case. # Configure Bearer authorization: HTTPBearer -configuration = platform_api_python_client.Configuration( +configuration = platform_api_external_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: +with platform_api_external_client.ApiClient(configuration) as api_client: # Create an instance of the API class - api_instance = platform_api_python_client.EXTERNALApi(api_client) - create_inference_deployment_v2_request = platform_api_python_client.CreateInferenceDeploymentV2Request() # CreateInferenceDeploymentV2Request | + api_instance = platform_api_external_client.EXTERNALApi(api_client) + create_inference_deployment_request = platform_api_external_client.CreateInferenceDeploymentRequest() # CreateInferenceDeploymentRequest | try: # Create Inference Deployment - api_response = api_instance.create_inference_deployment_deployments_v2_inference_post(create_inference_deployment_v2_request) - print("The response of EXTERNALApi->create_inference_deployment_deployments_v2_inference_post:\n") + api_response = api_instance.create_inference_deployment_deployments_inference_post(create_inference_deployment_request) + print("The response of EXTERNALApi->create_inference_deployment_deployments_inference_post:\n") pprint(api_response) except Exception as e: - print("Exception when calling EXTERNALApi->create_inference_deployment_deployments_v2_inference_post: %s\n" % e) + print("Exception when calling EXTERNALApi->create_inference_deployment_deployments_inference_post: %s\n" % e) ``` @@ -475,7 +473,7 @@ with platform_api_python_client.ApiClient(configuration) as api_client: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **create_inference_deployment_v2_request** | [**CreateInferenceDeploymentV2Request**](CreateInferenceDeploymentV2Request.md)| | + **create_inference_deployment_request** | [**CreateInferenceDeploymentRequest**](CreateInferenceDeploymentRequest.md)| | ### Return type @@ -499,156 +497,6 @@ 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_payment_payments_post** -> ClientSecretResponse create_payment_payments_post(create_payment_request) - -Create Payment - -### Example - -* Bearer Authentication (HTTPBearer): - -```python -import platform_api_python_client -from platform_api_python_client.models.client_secret_response import ClientSecretResponse -from platform_api_python_client.models.create_payment_request import CreatePaymentRequest -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_payment_request = platform_api_python_client.CreatePaymentRequest() # CreatePaymentRequest | - - try: - # Create Payment - api_response = api_instance.create_payment_payments_post(create_payment_request) - print("The response of EXTERNALApi->create_payment_payments_post:\n") - pprint(api_response) - except Exception as e: - print("Exception when calling EXTERNALApi->create_payment_payments_post: %s\n" % e) -``` - - - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **create_payment_request** | [**CreatePaymentRequest**](CreatePaymentRequest.md)| | - -### Return type - -[**ClientSecretResponse**](ClientSecretResponse.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_payment_setup_payments_setup_post** -> ClientSecretResponse create_payment_setup_payments_setup_post() - -Create Payment Setup - -### Example - -* Bearer Authentication (HTTPBearer): - -```python -import platform_api_python_client -from platform_api_python_client.models.client_secret_response import ClientSecretResponse -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) - - try: - # Create Payment Setup - api_response = api_instance.create_payment_setup_payments_setup_post() - print("The response of EXTERNALApi->create_payment_setup_payments_setup_post:\n") - pprint(api_response) - except Exception as e: - print("Exception when calling EXTERNALApi->create_payment_setup_payments_setup_post: %s\n" % e) -``` - - - -### Parameters - -This endpoint does not need any parameter. - -### Return type - -[**ClientSecretResponse**](ClientSecretResponse.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 | - | - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - # **delete_api_key_credentials_api_key_id_delete** > object delete_api_key_credentials_api_key_id_delete(id) @@ -659,13 +507,13 @@ Delete Api Key * Bearer Authentication (HTTPBearer): ```python -import platform_api_python_client -from platform_api_python_client.rest import ApiException +import platform_api_external_client +from platform_api_external_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( +configuration = platform_api_external_client.Configuration( host = "http://localhost" ) @@ -675,14 +523,14 @@ configuration = platform_api_python_client.Configuration( # satisfies your auth use case. # Configure Bearer authorization: HTTPBearer -configuration = platform_api_python_client.Configuration( +configuration = platform_api_external_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: +with platform_api_external_client.ApiClient(configuration) as api_client: # Create an instance of the API class - api_instance = platform_api_python_client.EXTERNALApi(api_client) + api_instance = platform_api_external_client.EXTERNALApi(api_client) id = 'id_example' # str | try: @@ -725,82 +573,6 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **delete_payment_method_payments_methods_payment_method_delete** -> object delete_payment_method_payments_methods_payment_method_delete(payment_method) - -Delete Payment Method - -### Example - -* Bearer Authentication (HTTPBearer): - -```python -import platform_api_python_client -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) - payment_method = 'payment_method_example' # str | - - try: - # Delete Payment Method - api_response = api_instance.delete_payment_method_payments_methods_payment_method_delete(payment_method) - print("The response of EXTERNALApi->delete_payment_method_payments_methods_payment_method_delete:\n") - pprint(api_response) - except Exception as e: - print("Exception when calling EXTERNALApi->delete_payment_method_payments_methods_payment_method_delete: %s\n" % e) -``` - - - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **payment_method** | **str**| | - -### Return type - -**object** - -### 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_api_keys_credentials_api_key_get** > ListAPIKeyResponse get_api_keys_credentials_api_key_get() @@ -811,14 +583,14 @@ Get Api Keys * Bearer Authentication (HTTPBearer): ```python -import platform_api_python_client -from platform_api_python_client.models.list_api_key_response import ListAPIKeyResponse -from platform_api_python_client.rest import ApiException +import platform_api_external_client +from platform_api_external_client.models.list_api_key_response import ListAPIKeyResponse +from platform_api_external_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( +configuration = platform_api_external_client.Configuration( host = "http://localhost" ) @@ -828,14 +600,14 @@ configuration = platform_api_python_client.Configuration( # satisfies your auth use case. # Configure Bearer authorization: HTTPBearer -configuration = platform_api_python_client.Configuration( +configuration = platform_api_external_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: +with platform_api_external_client.ApiClient(configuration) as api_client: # Create an instance of the API class - api_instance = platform_api_python_client.EXTERNALApi(api_client) + api_instance = platform_api_external_client.EXTERNALApi(api_client) try: # Get Api Keys @@ -883,14 +655,14 @@ Get Clusters * Bearer Authentication (HTTPBearer): ```python -import platform_api_python_client -from platform_api_python_client.models.list_get_cluster_response import ListGetClusterResponse -from platform_api_python_client.rest import ApiException +import platform_api_external_client +from platform_api_external_client.models.list_get_cluster_response import ListGetClusterResponse +from platform_api_external_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( +configuration = platform_api_external_client.Configuration( host = "http://localhost" ) @@ -900,14 +672,14 @@ configuration = platform_api_python_client.Configuration( # satisfies your auth use case. # Configure Bearer authorization: HTTPBearer -configuration = platform_api_python_client.Configuration( +configuration = platform_api_external_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: +with platform_api_external_client.ApiClient(configuration) as api_client: # Create an instance of the API class - api_instance = platform_api_python_client.EXTERNALApi(api_client) + api_instance = platform_api_external_client.EXTERNALApi(api_client) try: # Get Clusters @@ -945,8 +717,8 @@ This endpoint does not need any parameter. [[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_compute_deployment_deployments_v2_compute_deployment_id_get** -> GetComputeV2DeploymentResponse get_compute_deployment_deployments_v2_compute_deployment_id_get(deployment_id) +# **get_compute_deployment_deployments_compute_deployment_id_get** +> GetComputeDeploymentResponse get_compute_deployment_deployments_compute_deployment_id_get(deployment_id) Get Compute Deployment @@ -955,14 +727,14 @@ Get Compute Deployment * Bearer Authentication (HTTPBearer): ```python -import platform_api_python_client -from platform_api_python_client.models.get_compute_v2_deployment_response import GetComputeV2DeploymentResponse -from platform_api_python_client.rest import ApiException +import platform_api_external_client +from platform_api_external_client.models.get_compute_deployment_response import GetComputeDeploymentResponse +from platform_api_external_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( +configuration = platform_api_external_client.Configuration( host = "http://localhost" ) @@ -972,23 +744,23 @@ configuration = platform_api_python_client.Configuration( # satisfies your auth use case. # Configure Bearer authorization: HTTPBearer -configuration = platform_api_python_client.Configuration( +configuration = platform_api_external_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: +with platform_api_external_client.ApiClient(configuration) as api_client: # Create an instance of the API class - api_instance = platform_api_python_client.EXTERNALApi(api_client) + api_instance = platform_api_external_client.EXTERNALApi(api_client) deployment_id = 56 # int | try: # Get Compute Deployment - api_response = api_instance.get_compute_deployment_deployments_v2_compute_deployment_id_get(deployment_id) - print("The response of EXTERNALApi->get_compute_deployment_deployments_v2_compute_deployment_id_get:\n") + api_response = api_instance.get_compute_deployment_deployments_compute_deployment_id_get(deployment_id) + print("The response of EXTERNALApi->get_compute_deployment_deployments_compute_deployment_id_get:\n") pprint(api_response) except Exception as e: - print("Exception when calling EXTERNALApi->get_compute_deployment_deployments_v2_compute_deployment_id_get: %s\n" % e) + print("Exception when calling EXTERNALApi->get_compute_deployment_deployments_compute_deployment_id_get: %s\n" % e) ``` @@ -1002,7 +774,7 @@ Name | Type | Description | Notes ### Return type -[**GetComputeV2DeploymentResponse**](GetComputeV2DeploymentResponse.md) +[**GetComputeDeploymentResponse**](GetComputeDeploymentResponse.md) ### Authorization @@ -1032,14 +804,14 @@ Get Credits * Bearer Authentication (HTTPBearer): ```python -import platform_api_python_client -from platform_api_python_client.models.credits_response import CreditsResponse -from platform_api_python_client.rest import ApiException +import platform_api_external_client +from platform_api_external_client.models.credits_response import CreditsResponse +from platform_api_external_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( +configuration = platform_api_external_client.Configuration( host = "http://localhost" ) @@ -1049,14 +821,14 @@ configuration = platform_api_python_client.Configuration( # satisfies your auth use case. # Configure Bearer authorization: HTTPBearer -configuration = platform_api_python_client.Configuration( +configuration = platform_api_external_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: +with platform_api_external_client.ApiClient(configuration) as api_client: # Create an instance of the API class - api_instance = platform_api_python_client.EXTERNALApi(api_client) + api_instance = platform_api_external_client.EXTERNALApi(api_client) try: # Get Credits @@ -1094,8 +866,8 @@ This endpoint does not need any parameter. [[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_deployment_deployments_v2_cserve_deployment_id_get** -> GetCServeDeploymentResponse get_cserve_deployment_deployments_v2_cserve_deployment_id_get(deployment_id) +# **get_cserve_deployment_deployments_cserve_deployment_id_get** +> GetCServeDeploymentResponse get_cserve_deployment_deployments_cserve_deployment_id_get(deployment_id) Get Cserve Deployment @@ -1104,14 +876,14 @@ Get Cserve Deployment * Bearer Authentication (HTTPBearer): ```python -import platform_api_python_client -from platform_api_python_client.models.get_c_serve_deployment_response import GetCServeDeploymentResponse -from platform_api_python_client.rest import ApiException +import platform_api_external_client +from platform_api_external_client.models.get_c_serve_deployment_response import GetCServeDeploymentResponse +from platform_api_external_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( +configuration = platform_api_external_client.Configuration( host = "http://localhost" ) @@ -1121,23 +893,23 @@ configuration = platform_api_python_client.Configuration( # satisfies your auth use case. # Configure Bearer authorization: HTTPBearer -configuration = platform_api_python_client.Configuration( +configuration = platform_api_external_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: +with platform_api_external_client.ApiClient(configuration) as api_client: # Create an instance of the API class - api_instance = platform_api_python_client.EXTERNALApi(api_client) + api_instance = platform_api_external_client.EXTERNALApi(api_client) deployment_id = 56 # int | try: # Get Cserve Deployment - api_response = api_instance.get_cserve_deployment_deployments_v2_cserve_deployment_id_get(deployment_id) - print("The response of EXTERNALApi->get_cserve_deployment_deployments_v2_cserve_deployment_id_get:\n") + api_response = api_instance.get_cserve_deployment_deployments_cserve_deployment_id_get(deployment_id) + print("The response of EXTERNALApi->get_cserve_deployment_deployments_cserve_deployment_id_get:\n") pprint(api_response) except Exception as e: - print("Exception when calling EXTERNALApi->get_cserve_deployment_deployments_v2_cserve_deployment_id_get: %s\n" % e) + print("Exception when calling EXTERNALApi->get_cserve_deployment_deployments_cserve_deployment_id_get: %s\n" % e) ``` @@ -1171,8 +943,8 @@ 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_recipe_deployments_v2_cserve_recipes_get** -> ListCServeRecipeResponse get_cserve_recipe_deployments_v2_cserve_recipes_get(model=model, cluster_id=cluster_id) +# **get_cserve_recipe_deployments_cserve_recipes_get** +> ListCServeRecipeResponse get_cserve_recipe_deployments_cserve_recipes_get(model=model, cluster_id=cluster_id) Get Cserve Recipe @@ -1181,14 +953,14 @@ Get Cserve Recipe * Bearer Authentication (HTTPBearer): ```python -import platform_api_python_client -from platform_api_python_client.models.list_c_serve_recipe_response import ListCServeRecipeResponse -from platform_api_python_client.rest import ApiException +import platform_api_external_client +from platform_api_external_client.models.list_c_serve_recipe_response import ListCServeRecipeResponse +from platform_api_external_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( +configuration = platform_api_external_client.Configuration( host = "http://localhost" ) @@ -1198,24 +970,24 @@ configuration = platform_api_python_client.Configuration( # satisfies your auth use case. # Configure Bearer authorization: HTTPBearer -configuration = platform_api_python_client.Configuration( +configuration = platform_api_external_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: +with platform_api_external_client.ApiClient(configuration) as api_client: # Create an instance of the API class - api_instance = platform_api_python_client.EXTERNALApi(api_client) + api_instance = platform_api_external_client.EXTERNALApi(api_client) model = 'model_example' # str | (optional) cluster_id = 56 # int | (optional) try: # Get Cserve Recipe - api_response = api_instance.get_cserve_recipe_deployments_v2_cserve_recipes_get(model=model, cluster_id=cluster_id) - print("The response of EXTERNALApi->get_cserve_recipe_deployments_v2_cserve_recipes_get:\n") + api_response = api_instance.get_cserve_recipe_deployments_cserve_recipes_get(model=model, cluster_id=cluster_id) + print("The response of EXTERNALApi->get_cserve_recipe_deployments_cserve_recipes_get:\n") pprint(api_response) except Exception as e: - print("Exception when calling EXTERNALApi->get_cserve_recipe_deployments_v2_cserve_recipes_get: %s\n" % e) + print("Exception when calling EXTERNALApi->get_cserve_recipe_deployments_cserve_recipes_get: %s\n" % e) ``` @@ -1260,14 +1032,14 @@ Get Deployment Logs * Bearer Authentication (HTTPBearer): ```python -import platform_api_python_client -from platform_api_python_client.models.get_deployment_log_response import GetDeploymentLogResponse -from platform_api_python_client.rest import ApiException +import platform_api_external_client +from platform_api_external_client.models.get_deployment_log_response import GetDeploymentLogResponse +from platform_api_external_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( +configuration = platform_api_external_client.Configuration( host = "http://localhost" ) @@ -1277,14 +1049,14 @@ configuration = platform_api_python_client.Configuration( # satisfies your auth use case. # Configure Bearer authorization: HTTPBearer -configuration = platform_api_python_client.Configuration( +configuration = platform_api_external_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: +with platform_api_external_client.ApiClient(configuration) as api_client: # Create an instance of the API class - api_instance = platform_api_python_client.EXTERNALApi(api_client) + api_instance = platform_api_external_client.EXTERNALApi(api_client) deployment_id = 56 # int | start_time = 56 # int | end_time = 56 # int | @@ -1333,8 +1105,8 @@ 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_deployment_status_deployments_v2_status_deployment_id_get** -> DeploymentStatusResponseV2 get_deployment_status_deployments_v2_status_deployment_id_get(deployment_id) +# **get_deployment_status_deployments_status_deployment_id_get** +> DeploymentStatusResponse get_deployment_status_deployments_status_deployment_id_get(deployment_id) Get Deployment Status @@ -1343,14 +1115,14 @@ Get Deployment Status * Bearer Authentication (HTTPBearer): ```python -import platform_api_python_client -from platform_api_python_client.models.deployment_status_response_v2 import DeploymentStatusResponseV2 -from platform_api_python_client.rest import ApiException +import platform_api_external_client +from platform_api_external_client.models.deployment_status_response import DeploymentStatusResponse +from platform_api_external_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( +configuration = platform_api_external_client.Configuration( host = "http://localhost" ) @@ -1360,23 +1132,23 @@ configuration = platform_api_python_client.Configuration( # satisfies your auth use case. # Configure Bearer authorization: HTTPBearer -configuration = platform_api_python_client.Configuration( +configuration = platform_api_external_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: +with platform_api_external_client.ApiClient(configuration) as api_client: # Create an instance of the API class - api_instance = platform_api_python_client.EXTERNALApi(api_client) + api_instance = platform_api_external_client.EXTERNALApi(api_client) deployment_id = 56 # int | try: # Get Deployment Status - api_response = api_instance.get_deployment_status_deployments_v2_status_deployment_id_get(deployment_id) - print("The response of EXTERNALApi->get_deployment_status_deployments_v2_status_deployment_id_get:\n") + api_response = api_instance.get_deployment_status_deployments_status_deployment_id_get(deployment_id) + print("The response of EXTERNALApi->get_deployment_status_deployments_status_deployment_id_get:\n") pprint(api_response) except Exception as e: - print("Exception when calling EXTERNALApi->get_deployment_status_deployments_v2_status_deployment_id_get: %s\n" % e) + print("Exception when calling EXTERNALApi->get_deployment_status_deployments_status_deployment_id_get: %s\n" % e) ``` @@ -1390,7 +1162,7 @@ Name | Type | Description | Notes ### Return type -[**DeploymentStatusResponseV2**](DeploymentStatusResponseV2.md) +[**DeploymentStatusResponse**](DeploymentStatusResponse.md) ### Authorization @@ -1410,8 +1182,8 @@ 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_deployments_deployments_v2_get** -> ListGetDeploymentV2Response get_deployments_deployments_v2_get(offset=offset, limit=limit, type=type, search_query=search_query) +# **get_deployments_deployments_get** +> ListGetDeploymentResponse get_deployments_deployments_get(offset=offset, limit=limit, type=type, search_query=search_query) Get Deployments @@ -1420,15 +1192,15 @@ Get Deployments * Bearer Authentication (HTTPBearer): ```python -import platform_api_python_client -from platform_api_python_client.models.deployment_type import DeploymentType -from platform_api_python_client.models.list_get_deployment_v2_response import ListGetDeploymentV2Response -from platform_api_python_client.rest import ApiException +import platform_api_external_client +from platform_api_external_client.models.deployment_type import DeploymentType +from platform_api_external_client.models.list_get_deployment_response import ListGetDeploymentResponse +from platform_api_external_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( +configuration = platform_api_external_client.Configuration( host = "http://localhost" ) @@ -1438,26 +1210,26 @@ configuration = platform_api_python_client.Configuration( # satisfies your auth use case. # Configure Bearer authorization: HTTPBearer -configuration = platform_api_python_client.Configuration( +configuration = platform_api_external_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: +with platform_api_external_client.ApiClient(configuration) as api_client: # Create an instance of the API class - api_instance = platform_api_python_client.EXTERNALApi(api_client) + api_instance = platform_api_external_client.EXTERNALApi(api_client) offset = 56 # int | (optional) limit = 56 # int | (optional) - type = platform_api_python_client.DeploymentType() # DeploymentType | (optional) + type = platform_api_external_client.DeploymentType() # DeploymentType | (optional) search_query = 'search_query_example' # str | (optional) try: # Get Deployments - api_response = api_instance.get_deployments_deployments_v2_get(offset=offset, limit=limit, type=type, search_query=search_query) - print("The response of EXTERNALApi->get_deployments_deployments_v2_get:\n") + api_response = api_instance.get_deployments_deployments_get(offset=offset, limit=limit, type=type, search_query=search_query) + print("The response of EXTERNALApi->get_deployments_deployments_get:\n") pprint(api_response) except Exception as e: - print("Exception when calling EXTERNALApi->get_deployments_deployments_v2_get: %s\n" % e) + print("Exception when calling EXTERNALApi->get_deployments_deployments_get: %s\n" % e) ``` @@ -1474,7 +1246,7 @@ Name | Type | Description | Notes ### Return type -[**ListGetDeploymentV2Response**](ListGetDeploymentV2Response.md) +[**ListGetDeploymentResponse**](ListGetDeploymentResponse.md) ### Authorization @@ -1495,7 +1267,7 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **get_hardware_instances_hardware_instances_get** -> ListHardwareInstanceResponse get_hardware_instances_hardware_instances_get() +> ListHardwareInstanceResponse get_hardware_instances_hardware_instances_get(cluster_id) Get Hardware Instances @@ -1504,14 +1276,14 @@ Get Hardware Instances * Bearer Authentication (HTTPBearer): ```python -import platform_api_python_client -from platform_api_python_client.models.list_hardware_instance_response import ListHardwareInstanceResponse -from platform_api_python_client.rest import ApiException +import platform_api_external_client +from platform_api_external_client.models.list_hardware_instance_response import ListHardwareInstanceResponse +from platform_api_external_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( +configuration = platform_api_external_client.Configuration( host = "http://localhost" ) @@ -1521,18 +1293,19 @@ configuration = platform_api_python_client.Configuration( # satisfies your auth use case. # Configure Bearer authorization: HTTPBearer -configuration = platform_api_python_client.Configuration( +configuration = platform_api_external_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: +with platform_api_external_client.ApiClient(configuration) as api_client: # Create an instance of the API class - api_instance = platform_api_python_client.EXTERNALApi(api_client) + api_instance = platform_api_external_client.EXTERNALApi(api_client) + cluster_id = 56 # int | try: # Get Hardware Instances - api_response = api_instance.get_hardware_instances_hardware_instances_get() + api_response = api_instance.get_hardware_instances_hardware_instances_get(cluster_id) print("The response of EXTERNALApi->get_hardware_instances_hardware_instances_get:\n") pprint(api_response) except Exception as e: @@ -1543,7 +1316,10 @@ with platform_api_python_client.ApiClient(configuration) as api_client: ### Parameters -This endpoint does not need any parameter. + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **cluster_id** | **int**| | ### Return type @@ -1563,27 +1339,28 @@ This endpoint does not need any parameter. | 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_hardware_instances_hardware_instances_v2_get** -> ListHardwareInstanceResponse get_hardware_instances_hardware_instances_v2_get(cluster_id) +# **get_inference_deployment_deployments_inference_deployment_id_get** +> GetInferenceDeploymentResponse get_inference_deployment_deployments_inference_deployment_id_get(deployment_id) -Get Hardware Instances +Get Inference Deployment ### Example * Bearer Authentication (HTTPBearer): ```python -import platform_api_python_client -from platform_api_python_client.models.list_hardware_instance_response import ListHardwareInstanceResponse -from platform_api_python_client.rest import ApiException +import platform_api_external_client +from platform_api_external_client.models.get_inference_deployment_response import GetInferenceDeploymentResponse +from platform_api_external_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( +configuration = platform_api_external_client.Configuration( host = "http://localhost" ) @@ -1593,23 +1370,23 @@ configuration = platform_api_python_client.Configuration( # satisfies your auth use case. # Configure Bearer authorization: HTTPBearer -configuration = platform_api_python_client.Configuration( +configuration = platform_api_external_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: +with platform_api_external_client.ApiClient(configuration) as api_client: # Create an instance of the API class - api_instance = platform_api_python_client.EXTERNALApi(api_client) - cluster_id = 56 # int | + api_instance = platform_api_external_client.EXTERNALApi(api_client) + deployment_id = 56 # int | try: - # Get Hardware Instances - api_response = api_instance.get_hardware_instances_hardware_instances_v2_get(cluster_id) - print("The response of EXTERNALApi->get_hardware_instances_hardware_instances_v2_get:\n") + # Get Inference Deployment + api_response = api_instance.get_inference_deployment_deployments_inference_deployment_id_get(deployment_id) + print("The response of EXTERNALApi->get_inference_deployment_deployments_inference_deployment_id_get:\n") pprint(api_response) except Exception as e: - print("Exception when calling EXTERNALApi->get_hardware_instances_hardware_instances_v2_get: %s\n" % e) + print("Exception when calling EXTERNALApi->get_inference_deployment_deployments_inference_deployment_id_get: %s\n" % e) ``` @@ -1619,11 +1396,11 @@ with platform_api_python_client.ApiClient(configuration) as api_client: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **cluster_id** | **int**| | + **deployment_id** | **int**| | ### Return type -[**ListHardwareInstanceResponse**](ListHardwareInstanceResponse.md) +[**GetInferenceDeploymentResponse**](GetInferenceDeploymentResponse.md) ### Authorization @@ -1643,24 +1420,24 @@ 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_deployment_deployments_v2_inference_deployment_id_get** -> GetInferenceV2DeploymentResponse get_inference_deployment_deployments_v2_inference_deployment_id_get(deployment_id) +# **get_payments_payments_get** +> GetPaymentsResponse get_payments_payments_get(limit=limit, starting_after=starting_after) -Get Inference Deployment +Get Payments ### Example * Bearer Authentication (HTTPBearer): ```python -import platform_api_python_client -from platform_api_python_client.models.get_inference_v2_deployment_response import GetInferenceV2DeploymentResponse -from platform_api_python_client.rest import ApiException +import platform_api_external_client +from platform_api_external_client.models.get_payments_response import GetPaymentsResponse +from platform_api_external_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( +configuration = platform_api_external_client.Configuration( host = "http://localhost" ) @@ -1670,23 +1447,24 @@ configuration = platform_api_python_client.Configuration( # satisfies your auth use case. # Configure Bearer authorization: HTTPBearer -configuration = platform_api_python_client.Configuration( +configuration = platform_api_external_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: +with platform_api_external_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 | + api_instance = platform_api_external_client.EXTERNALApi(api_client) + limit = 10 # int | (optional) (default to 10) + starting_after = 'starting_after_example' # str | (optional) try: - # Get Inference Deployment - api_response = api_instance.get_inference_deployment_deployments_v2_inference_deployment_id_get(deployment_id) - print("The response of EXTERNALApi->get_inference_deployment_deployments_v2_inference_deployment_id_get:\n") + # Get Payments + api_response = api_instance.get_payments_payments_get(limit=limit, starting_after=starting_after) + print("The response of EXTERNALApi->get_payments_payments_get:\n") pprint(api_response) except Exception as e: - print("Exception when calling EXTERNALApi->get_inference_deployment_deployments_v2_inference_deployment_id_get: %s\n" % e) + print("Exception when calling EXTERNALApi->get_payments_payments_get: %s\n" % e) ``` @@ -1696,11 +1474,12 @@ with platform_api_python_client.ApiClient(configuration) as api_client: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **deployment_id** | **int**| | + **limit** | **int**| | [optional] [default to 10] + **starting_after** | **str**| | [optional] ### Return type -[**GetInferenceV2DeploymentResponse**](GetInferenceV2DeploymentResponse.md) +[**GetPaymentsResponse**](GetPaymentsResponse.md) ### Authorization @@ -1720,24 +1499,25 @@ 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_payment_methods_payments_methods_get** -> ListPaymentMethodResponse get_payment_methods_payments_methods_get() +# **get_prebuilt_images_prebuilt_images_get** +> ListPrebuiltImageResponse get_prebuilt_images_prebuilt_images_get(type=type) -Get Payment Methods +Get Prebuilt Images ### Example * Bearer Authentication (HTTPBearer): ```python -import platform_api_python_client -from platform_api_python_client.models.list_payment_method_response import ListPaymentMethodResponse -from platform_api_python_client.rest import ApiException +import platform_api_external_client +from platform_api_external_client.models.deployment_type import DeploymentType +from platform_api_external_client.models.list_prebuilt_image_response import ListPrebuiltImageResponse +from platform_api_external_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( +configuration = platform_api_external_client.Configuration( host = "http://localhost" ) @@ -1747,33 +1527,37 @@ configuration = platform_api_python_client.Configuration( # satisfies your auth use case. # Configure Bearer authorization: HTTPBearer -configuration = platform_api_python_client.Configuration( +configuration = platform_api_external_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: +with platform_api_external_client.ApiClient(configuration) as api_client: # Create an instance of the API class - api_instance = platform_api_python_client.EXTERNALApi(api_client) + api_instance = platform_api_external_client.EXTERNALApi(api_client) + type = platform_api_external_client.DeploymentType() # DeploymentType | (optional) try: - # Get Payment Methods - api_response = api_instance.get_payment_methods_payments_methods_get() - print("The response of EXTERNALApi->get_payment_methods_payments_methods_get:\n") + # Get Prebuilt Images + api_response = api_instance.get_prebuilt_images_prebuilt_images_get(type=type) + print("The response of EXTERNALApi->get_prebuilt_images_prebuilt_images_get:\n") pprint(api_response) except Exception as e: - print("Exception when calling EXTERNALApi->get_payment_methods_payments_methods_get: %s\n" % e) + print("Exception when calling EXTERNALApi->get_prebuilt_images_prebuilt_images_get: %s\n" % e) ``` ### Parameters -This endpoint does not need any parameter. + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **type** | [**DeploymentType**](.md)| | [optional] ### Return type -[**ListPaymentMethodResponse**](ListPaymentMethodResponse.md) +[**ListPrebuiltImageResponse**](ListPrebuiltImageResponse.md) ### Authorization @@ -1789,28 +1573,28 @@ This endpoint does not need any parameter. | 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_prebuilt_images_prebuilt_images_get** -> ListPrebuiltImageResponse get_prebuilt_images_prebuilt_images_get(type=type) +# **get_usage_daily_bills_get** +> ListDailyBillResponse get_usage_daily_bills_get(start_date, end_date) -Get Prebuilt Images +Get Usage ### Example * Bearer Authentication (HTTPBearer): ```python -import platform_api_python_client -from platform_api_python_client.models.deployment_type import DeploymentType -from platform_api_python_client.models.list_prebuilt_image_response import ListPrebuiltImageResponse -from platform_api_python_client.rest import ApiException +import platform_api_external_client +from platform_api_external_client.models.list_daily_bill_response import ListDailyBillResponse +from platform_api_external_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( +configuration = platform_api_external_client.Configuration( host = "http://localhost" ) @@ -1820,23 +1604,24 @@ configuration = platform_api_python_client.Configuration( # satisfies your auth use case. # Configure Bearer authorization: HTTPBearer -configuration = platform_api_python_client.Configuration( +configuration = platform_api_external_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: +with platform_api_external_client.ApiClient(configuration) as api_client: # Create an instance of the API class - api_instance = platform_api_python_client.EXTERNALApi(api_client) - type = platform_api_python_client.DeploymentType() # DeploymentType | (optional) + api_instance = platform_api_external_client.EXTERNALApi(api_client) + start_date = '2013-10-20' # date | + end_date = '2013-10-20' # date | try: - # Get Prebuilt Images - api_response = api_instance.get_prebuilt_images_prebuilt_images_get(type=type) - print("The response of EXTERNALApi->get_prebuilt_images_prebuilt_images_get:\n") + # Get Usage + api_response = api_instance.get_usage_daily_bills_get(start_date, end_date) + print("The response of EXTERNALApi->get_usage_daily_bills_get:\n") pprint(api_response) except Exception as e: - print("Exception when calling EXTERNALApi->get_prebuilt_images_prebuilt_images_get: %s\n" % e) + print("Exception when calling EXTERNALApi->get_usage_daily_bills_get: %s\n" % e) ``` @@ -1846,11 +1631,12 @@ with platform_api_python_client.ApiClient(configuration) as api_client: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **type** | [**DeploymentType**](.md)| | [optional] + **start_date** | **date**| | + **end_date** | **date**| | ### Return type -[**ListPrebuiltImageResponse**](ListPrebuiltImageResponse.md) +[**ListDailyBillResponse**](ListDailyBillResponse.md) ### Authorization @@ -1870,8 +1656,8 @@ 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_usage_daily_bills_get** -> ListDailyBillResponse get_usage_daily_bills_get(start_date, end_date) +# **get_usage_deployments_usage_deployment_id_get** +> GetDeploymentUsageResponse get_usage_deployments_usage_deployment_id_get(deployment_id, metric, duration, end_time=end_time) Get Usage @@ -1880,14 +1666,15 @@ Get Usage * Bearer Authentication (HTTPBearer): ```python -import platform_api_python_client -from platform_api_python_client.models.list_daily_bill_response import ListDailyBillResponse -from platform_api_python_client.rest import ApiException +import platform_api_external_client +from platform_api_external_client.models.get_deployment_usage_response import GetDeploymentUsageResponse +from platform_api_external_client.models.metric import Metric +from platform_api_external_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( +configuration = platform_api_external_client.Configuration( host = "http://localhost" ) @@ -1897,24 +1684,26 @@ configuration = platform_api_python_client.Configuration( # satisfies your auth use case. # Configure Bearer authorization: HTTPBearer -configuration = platform_api_python_client.Configuration( +configuration = platform_api_external_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: +with platform_api_external_client.ApiClient(configuration) as api_client: # Create an instance of the API class - api_instance = platform_api_python_client.EXTERNALApi(api_client) - start_date = '2013-10-20' # date | - end_date = '2013-10-20' # date | + api_instance = platform_api_external_client.EXTERNALApi(api_client) + deployment_id = 56 # int | + metric = platform_api_external_client.Metric() # Metric | + duration = 56 # int | + end_time = 56 # int | (optional) try: # Get Usage - api_response = api_instance.get_usage_daily_bills_get(start_date, end_date) - print("The response of EXTERNALApi->get_usage_daily_bills_get:\n") + api_response = api_instance.get_usage_deployments_usage_deployment_id_get(deployment_id, metric, duration, end_time=end_time) + print("The response of EXTERNALApi->get_usage_deployments_usage_deployment_id_get:\n") pprint(api_response) except Exception as e: - print("Exception when calling EXTERNALApi->get_usage_daily_bills_get: %s\n" % e) + print("Exception when calling EXTERNALApi->get_usage_deployments_usage_deployment_id_get: %s\n" % e) ``` @@ -1924,12 +1713,14 @@ with platform_api_python_client.ApiClient(configuration) as api_client: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **start_date** | **date**| | - **end_date** | **date**| | + **deployment_id** | **int**| | + **metric** | [**Metric**](.md)| | + **duration** | **int**| | + **end_time** | **int**| | [optional] ### Return type -[**ListDailyBillResponse**](ListDailyBillResponse.md) +[**GetDeploymentUsageResponse**](GetDeploymentUsageResponse.md) ### Authorization @@ -1949,25 +1740,23 @@ 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_usage_deployments_usage_deployment_id_get** -> GetDeploymentUsageResponse get_usage_deployments_usage_deployment_id_get(deployment_id, metric, duration, end_time=end_time) +# **setup_stripe_customer_payments_setup_post** +> object setup_stripe_customer_payments_setup_post() -Get Usage +Setup Stripe Customer ### Example * Bearer Authentication (HTTPBearer): ```python -import platform_api_python_client -from platform_api_python_client.models.get_deployment_usage_response import GetDeploymentUsageResponse -from platform_api_python_client.models.metric import Metric -from platform_api_python_client.rest import ApiException +import platform_api_external_client +from platform_api_external_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( +configuration = platform_api_external_client.Configuration( host = "http://localhost" ) @@ -1977,43 +1766,33 @@ configuration = platform_api_python_client.Configuration( # satisfies your auth use case. # Configure Bearer authorization: HTTPBearer -configuration = platform_api_python_client.Configuration( +configuration = platform_api_external_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: +with platform_api_external_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 | - metric = platform_api_python_client.Metric() # Metric | - duration = 56 # int | - end_time = 56 # int | (optional) + api_instance = platform_api_external_client.EXTERNALApi(api_client) try: - # Get Usage - api_response = api_instance.get_usage_deployments_usage_deployment_id_get(deployment_id, metric, duration, end_time=end_time) - print("The response of EXTERNALApi->get_usage_deployments_usage_deployment_id_get:\n") + # Setup Stripe Customer + api_response = api_instance.setup_stripe_customer_payments_setup_post() + print("The response of EXTERNALApi->setup_stripe_customer_payments_setup_post:\n") pprint(api_response) except Exception as e: - print("Exception when calling EXTERNALApi->get_usage_deployments_usage_deployment_id_get: %s\n" % e) + print("Exception when calling EXTERNALApi->setup_stripe_customer_payments_setup_post: %s\n" % e) ``` ### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **deployment_id** | **int**| | - **metric** | [**Metric**](.md)| | - **duration** | **int**| | - **end_time** | **int**| | [optional] +This endpoint does not need any parameter. ### Return type -[**GetDeploymentUsageResponse**](GetDeploymentUsageResponse.md) +**object** ### Authorization @@ -2029,12 +1808,11 @@ Name | Type | Description | Notes | 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_v2_status_deployment_id_put** -> DeploymentStatusResponseV2 update_deployment_status_deployments_v2_status_deployment_id_put(deployment_id, deployment_status_request) +# **update_deployment_status_deployments_status_deployment_id_put** +> DeploymentStatusResponse update_deployment_status_deployments_status_deployment_id_put(deployment_id, deployment_status_request) Update Deployment Status @@ -2043,15 +1821,15 @@ Update Deployment Status * Bearer Authentication (HTTPBearer): ```python -import platform_api_python_client -from platform_api_python_client.models.deployment_status_request import DeploymentStatusRequest -from platform_api_python_client.models.deployment_status_response_v2 import DeploymentStatusResponseV2 -from platform_api_python_client.rest import ApiException +import platform_api_external_client +from platform_api_external_client.models.deployment_status_request import DeploymentStatusRequest +from platform_api_external_client.models.deployment_status_response import DeploymentStatusResponse +from platform_api_external_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( +configuration = platform_api_external_client.Configuration( host = "http://localhost" ) @@ -2061,24 +1839,24 @@ configuration = platform_api_python_client.Configuration( # satisfies your auth use case. # Configure Bearer authorization: HTTPBearer -configuration = platform_api_python_client.Configuration( +configuration = platform_api_external_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: +with platform_api_external_client.ApiClient(configuration) as api_client: # Create an instance of the API class - api_instance = platform_api_python_client.EXTERNALApi(api_client) + api_instance = platform_api_external_client.EXTERNALApi(api_client) deployment_id = 56 # int | - deployment_status_request = platform_api_python_client.DeploymentStatusRequest() # DeploymentStatusRequest | + deployment_status_request = platform_api_external_client.DeploymentStatusRequest() # DeploymentStatusRequest | try: # Update Deployment Status - api_response = api_instance.update_deployment_status_deployments_v2_status_deployment_id_put(deployment_id, deployment_status_request) - print("The response of EXTERNALApi->update_deployment_status_deployments_v2_status_deployment_id_put:\n") + api_response = api_instance.update_deployment_status_deployments_status_deployment_id_put(deployment_id, deployment_status_request) + print("The response of EXTERNALApi->update_deployment_status_deployments_status_deployment_id_put:\n") pprint(api_response) except Exception as e: - print("Exception when calling EXTERNALApi->update_deployment_status_deployments_v2_status_deployment_id_put: %s\n" % e) + print("Exception when calling EXTERNALApi->update_deployment_status_deployments_status_deployment_id_put: %s\n" % e) ``` @@ -2093,7 +1871,7 @@ Name | Type | Description | Notes ### Return type -[**DeploymentStatusResponseV2**](DeploymentStatusResponseV2.md) +[**DeploymentStatusResponse**](DeploymentStatusResponse.md) ### Authorization diff --git a/docs/FeedbackRequest.md b/docs/FeedbackRequest.md deleted file mode 100644 index 54e3bee..0000000 --- a/docs/FeedbackRequest.md +++ /dev/null @@ -1,31 +0,0 @@ -# FeedbackRequest - - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**message** | **str** | | -**rating** | **int** | | -**follow_up** | **bool** | | - -## Example - -```python -from platform_api_python_client.models.feedback_request import FeedbackRequest - -# TODO update the JSON string below -json = "{}" -# create an instance of FeedbackRequest from a JSON string -feedback_request_instance = FeedbackRequest.from_json(json) -# print the JSON string representation of the object -print(FeedbackRequest.to_json()) - -# convert the object into a dict -feedback_request_dict = feedback_request_instance.to_dict() -# create an instance of FeedbackRequest from a dict -feedback_request_from_dict = FeedbackRequest.from_dict(feedback_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/GetCServeDeploymentResponse.md b/docs/GetCServeDeploymentResponse.md index 7fae885..1bc7b9e 100644 --- a/docs/GetCServeDeploymentResponse.md +++ b/docs/GetCServeDeploymentResponse.md @@ -38,11 +38,12 @@ Name | Type | Description | Notes **max_scale** | **int** | | **endpoint_certificate_authority** | **str** | | **concurrency** | **int** | | +**env_vars** | **Dict[str, str]** | | ## Example ```python -from platform_api_python_client.models.get_c_serve_deployment_response import GetCServeDeploymentResponse +from platform_api_external_client.models.get_c_serve_deployment_response import GetCServeDeploymentResponse # TODO update the JSON string below json = "{}" diff --git a/docs/GetClusterResponse.md b/docs/GetClusterResponse.md index dfe90e9..6c0d908 100644 --- a/docs/GetClusterResponse.md +++ b/docs/GetClusterResponse.md @@ -11,7 +11,7 @@ Name | Type | Description | Notes ## Example ```python -from platform_api_python_client.models.get_cluster_response import GetClusterResponse +from platform_api_external_client.models.get_cluster_response import GetClusterResponse # TODO update the JSON string below json = "{}" diff --git a/docs/GetComputeV2DeploymentResponse.md b/docs/GetComputeDeploymentResponse.md similarity index 58% rename from docs/GetComputeV2DeploymentResponse.md rename to docs/GetComputeDeploymentResponse.md index 2fc45b5..9a431d9 100644 --- a/docs/GetComputeV2DeploymentResponse.md +++ b/docs/GetComputeDeploymentResponse.md @@ -1,4 +1,4 @@ -# GetComputeV2DeploymentResponse +# GetComputeDeploymentResponse ## Properties @@ -22,19 +22,19 @@ Name | Type | Description | Notes ## Example ```python -from platform_api_python_client.models.get_compute_v2_deployment_response import GetComputeV2DeploymentResponse +from platform_api_external_client.models.get_compute_deployment_response import GetComputeDeploymentResponse # TODO update the JSON string below json = "{}" -# create an instance of GetComputeV2DeploymentResponse from a JSON string -get_compute_v2_deployment_response_instance = GetComputeV2DeploymentResponse.from_json(json) +# create an instance of GetComputeDeploymentResponse from a JSON string +get_compute_deployment_response_instance = GetComputeDeploymentResponse.from_json(json) # print the JSON string representation of the object -print(GetComputeV2DeploymentResponse.to_json()) +print(GetComputeDeploymentResponse.to_json()) # convert the object into a dict -get_compute_v2_deployment_response_dict = get_compute_v2_deployment_response_instance.to_dict() -# create an instance of GetComputeV2DeploymentResponse from a dict -get_compute_v2_deployment_response_from_dict = GetComputeV2DeploymentResponse.from_dict(get_compute_v2_deployment_response_dict) +get_compute_deployment_response_dict = get_compute_deployment_response_instance.to_dict() +# create an instance of GetComputeDeploymentResponse from a dict +get_compute_deployment_response_from_dict = GetComputeDeploymentResponse.from_dict(get_compute_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/GetDeploymentLogResponse.md b/docs/GetDeploymentLogResponse.md index a75aa7d..255d50a 100644 --- a/docs/GetDeploymentLogResponse.md +++ b/docs/GetDeploymentLogResponse.md @@ -11,7 +11,7 @@ Name | Type | Description | Notes ## Example ```python -from platform_api_python_client.models.get_deployment_log_response import GetDeploymentLogResponse +from platform_api_external_client.models.get_deployment_log_response import GetDeploymentLogResponse # TODO update the JSON string below json = "{}" diff --git a/docs/GetDeploymentV2Response.md b/docs/GetDeploymentResponse.md similarity index 58% rename from docs/GetDeploymentV2Response.md rename to docs/GetDeploymentResponse.md index 16b819d..b58d0bd 100644 --- a/docs/GetDeploymentV2Response.md +++ b/docs/GetDeploymentResponse.md @@ -1,4 +1,4 @@ -# GetDeploymentV2Response +# GetDeploymentResponse ## Properties @@ -18,19 +18,19 @@ Name | Type | Description | Notes ## Example ```python -from platform_api_python_client.models.get_deployment_v2_response import GetDeploymentV2Response +from platform_api_external_client.models.get_deployment_response import GetDeploymentResponse # TODO update the JSON string below json = "{}" -# create an instance of GetDeploymentV2Response from a JSON string -get_deployment_v2_response_instance = GetDeploymentV2Response.from_json(json) +# create an instance of GetDeploymentResponse from a JSON string +get_deployment_response_instance = GetDeploymentResponse.from_json(json) # print the JSON string representation of the object -print(GetDeploymentV2Response.to_json()) +print(GetDeploymentResponse.to_json()) # convert the object into a dict -get_deployment_v2_response_dict = get_deployment_v2_response_instance.to_dict() -# create an instance of GetDeploymentV2Response from a dict -get_deployment_v2_response_from_dict = GetDeploymentV2Response.from_dict(get_deployment_v2_response_dict) +get_deployment_response_dict = get_deployment_response_instance.to_dict() +# create an instance of GetDeploymentResponse from a dict +get_deployment_response_from_dict = GetDeploymentResponse.from_dict(get_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/GetDeploymentUsageResponse.md b/docs/GetDeploymentUsageResponse.md index 99330d3..133e0d8 100644 --- a/docs/GetDeploymentUsageResponse.md +++ b/docs/GetDeploymentUsageResponse.md @@ -10,7 +10,7 @@ Name | Type | Description | Notes ## Example ```python -from platform_api_python_client.models.get_deployment_usage_response import GetDeploymentUsageResponse +from platform_api_external_client.models.get_deployment_usage_response import GetDeploymentUsageResponse # TODO update the JSON string below json = "{}" diff --git a/docs/GetInferenceV2DeploymentResponse.md b/docs/GetInferenceDeploymentResponse.md similarity index 58% rename from docs/GetInferenceV2DeploymentResponse.md rename to docs/GetInferenceDeploymentResponse.md index d2c47c9..89dd654 100644 --- a/docs/GetInferenceV2DeploymentResponse.md +++ b/docs/GetInferenceDeploymentResponse.md @@ -1,4 +1,4 @@ -# GetInferenceV2DeploymentResponse +# GetInferenceDeploymentResponse ## Properties @@ -21,23 +21,25 @@ Name | Type | Description | Notes **healthcheck** | **str** | | **endpoint_certificate_authority** | **str** | | **env_vars** | **Dict[str, str]** | | +**command** | **List[str]** | | +**command_args** | **List[str]** | | ## Example ```python -from platform_api_python_client.models.get_inference_v2_deployment_response import GetInferenceV2DeploymentResponse +from platform_api_external_client.models.get_inference_deployment_response import GetInferenceDeploymentResponse # TODO update the JSON string below json = "{}" -# create an instance of GetInferenceV2DeploymentResponse from a JSON string -get_inference_v2_deployment_response_instance = GetInferenceV2DeploymentResponse.from_json(json) +# create an instance of GetInferenceDeploymentResponse from a JSON string +get_inference_deployment_response_instance = GetInferenceDeploymentResponse.from_json(json) # print the JSON string representation of the object -print(GetInferenceV2DeploymentResponse.to_json()) +print(GetInferenceDeploymentResponse.to_json()) # convert the object into a dict -get_inference_v2_deployment_response_dict = get_inference_v2_deployment_response_instance.to_dict() -# create an instance of GetInferenceV2DeploymentResponse from a dict -get_inference_v2_deployment_response_from_dict = GetInferenceV2DeploymentResponse.from_dict(get_inference_v2_deployment_response_dict) +get_inference_deployment_response_dict = get_inference_deployment_response_instance.to_dict() +# create an instance of GetInferenceDeploymentResponse from a dict +get_inference_deployment_response_from_dict = GetInferenceDeploymentResponse.from_dict(get_inference_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/GetPaymentsResponse.md b/docs/GetPaymentsResponse.md new file mode 100644 index 0000000..bfdfe8b --- /dev/null +++ b/docs/GetPaymentsResponse.md @@ -0,0 +1,30 @@ +# GetPaymentsResponse + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**has_more** | **bool** | | +**payments** | **List[object]** | | + +## Example + +```python +from platform_api_external_client.models.get_payments_response import GetPaymentsResponse + +# TODO update the JSON string below +json = "{}" +# create an instance of GetPaymentsResponse from a JSON string +get_payments_response_instance = GetPaymentsResponse.from_json(json) +# print the JSON string representation of the object +print(GetPaymentsResponse.to_json()) + +# convert the object into a dict +get_payments_response_dict = get_payments_response_instance.to_dict() +# create an instance of GetPaymentsResponse from a dict +get_payments_response_from_dict = GetPaymentsResponse.from_dict(get_payments_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/HTTPValidationError.md b/docs/HTTPValidationError.md index bbb693a..27a180d 100644 --- a/docs/HTTPValidationError.md +++ b/docs/HTTPValidationError.md @@ -10,7 +10,7 @@ Name | Type | Description | Notes ## Example ```python -from platform_api_python_client.models.http_validation_error import HTTPValidationError +from platform_api_external_client.models.http_validation_error import HTTPValidationError # TODO update the JSON string below json = "{}" diff --git a/docs/HardwareInstanceResponse.md b/docs/HardwareInstanceResponse.md index 8da7205..ab4239d 100644 --- a/docs/HardwareInstanceResponse.md +++ b/docs/HardwareInstanceResponse.md @@ -16,7 +16,7 @@ Name | Type | Description | Notes ## Example ```python -from platform_api_python_client.models.hardware_instance_response import HardwareInstanceResponse +from platform_api_external_client.models.hardware_instance_response import HardwareInstanceResponse # TODO update the JSON string below json = "{}" diff --git a/docs/HealthStatus.md b/docs/HealthStatus.md deleted file mode 100644 index 6ce7889..0000000 --- a/docs/HealthStatus.md +++ /dev/null @@ -1,18 +0,0 @@ -# HealthStatus - - -## Enum - -* `HEALTHY` (value: `'Healthy'`) - -* `PROGRESSING` (value: `'Progressing'`) - -* `DEGRADED` (value: `'Degraded'`) - -* `MISSING` (value: `'Missing'`) - -* `UNKNOWN` (value: `'Unknown'`) - -[[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/ListAPIKeyResponse.md b/docs/ListAPIKeyResponse.md index 46ebe91..ed9e9bd 100644 --- a/docs/ListAPIKeyResponse.md +++ b/docs/ListAPIKeyResponse.md @@ -10,7 +10,7 @@ Name | Type | Description | Notes ## Example ```python -from platform_api_python_client.models.list_api_key_response import ListAPIKeyResponse +from platform_api_external_client.models.list_api_key_response import ListAPIKeyResponse # TODO update the JSON string below json = "{}" diff --git a/docs/ListCServeRecipeResponse.md b/docs/ListCServeRecipeResponse.md index aaf6e01..322730d 100644 --- a/docs/ListCServeRecipeResponse.md +++ b/docs/ListCServeRecipeResponse.md @@ -10,7 +10,7 @@ Name | Type | Description | Notes ## Example ```python -from platform_api_python_client.models.list_c_serve_recipe_response import ListCServeRecipeResponse +from platform_api_external_client.models.list_c_serve_recipe_response import ListCServeRecipeResponse # TODO update the JSON string below json = "{}" diff --git a/docs/ListDailyBillResponse.md b/docs/ListDailyBillResponse.md index 4f8d485..977e77b 100644 --- a/docs/ListDailyBillResponse.md +++ b/docs/ListDailyBillResponse.md @@ -10,7 +10,7 @@ Name | Type | Description | Notes ## Example ```python -from platform_api_python_client.models.list_daily_bill_response import ListDailyBillResponse +from platform_api_external_client.models.list_daily_bill_response import ListDailyBillResponse # TODO update the JSON string below json = "{}" diff --git a/docs/ListGetClusterResponse.md b/docs/ListGetClusterResponse.md index 08e50d4..e7fe700 100644 --- a/docs/ListGetClusterResponse.md +++ b/docs/ListGetClusterResponse.md @@ -10,7 +10,7 @@ Name | Type | Description | Notes ## Example ```python -from platform_api_python_client.models.list_get_cluster_response import ListGetClusterResponse +from platform_api_external_client.models.list_get_cluster_response import ListGetClusterResponse # TODO update the JSON string below json = "{}" diff --git a/docs/ListGetDeploymentResponse.md b/docs/ListGetDeploymentResponse.md new file mode 100644 index 0000000..dd37f07 --- /dev/null +++ b/docs/ListGetDeploymentResponse.md @@ -0,0 +1,29 @@ +# ListGetDeploymentResponse + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**results** | [**List[GetDeploymentResponse]**](GetDeploymentResponse.md) | | + +## Example + +```python +from platform_api_external_client.models.list_get_deployment_response import ListGetDeploymentResponse + +# TODO update the JSON string below +json = "{}" +# create an instance of ListGetDeploymentResponse from a JSON string +list_get_deployment_response_instance = ListGetDeploymentResponse.from_json(json) +# print the JSON string representation of the object +print(ListGetDeploymentResponse.to_json()) + +# convert the object into a dict +list_get_deployment_response_dict = list_get_deployment_response_instance.to_dict() +# create an instance of ListGetDeploymentResponse from a dict +list_get_deployment_response_from_dict = ListGetDeploymentResponse.from_dict(list_get_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/ListGetDeploymentV2Response.md b/docs/ListGetDeploymentV2Response.md deleted file mode 100644 index 3b8f5cb..0000000 --- a/docs/ListGetDeploymentV2Response.md +++ /dev/null @@ -1,29 +0,0 @@ -# ListGetDeploymentV2Response - - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**results** | [**List[GetDeploymentV2Response]**](GetDeploymentV2Response.md) | | - -## Example - -```python -from platform_api_python_client.models.list_get_deployment_v2_response import ListGetDeploymentV2Response - -# TODO update the JSON string below -json = "{}" -# create an instance of ListGetDeploymentV2Response from a JSON string -list_get_deployment_v2_response_instance = ListGetDeploymentV2Response.from_json(json) -# print the JSON string representation of the object -print(ListGetDeploymentV2Response.to_json()) - -# convert the object into a dict -list_get_deployment_v2_response_dict = list_get_deployment_v2_response_instance.to_dict() -# create an instance of ListGetDeploymentV2Response from a dict -list_get_deployment_v2_response_from_dict = ListGetDeploymentV2Response.from_dict(list_get_deployment_v2_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/ListHardwareInstanceResponse.md b/docs/ListHardwareInstanceResponse.md index 5674076..57991ea 100644 --- a/docs/ListHardwareInstanceResponse.md +++ b/docs/ListHardwareInstanceResponse.md @@ -10,7 +10,7 @@ Name | Type | Description | Notes ## Example ```python -from platform_api_python_client.models.list_hardware_instance_response import ListHardwareInstanceResponse +from platform_api_external_client.models.list_hardware_instance_response import ListHardwareInstanceResponse # TODO update the JSON string below json = "{}" diff --git a/docs/ListPaymentMethodResponse.md b/docs/ListPaymentMethodResponse.md deleted file mode 100644 index 431d166..0000000 --- a/docs/ListPaymentMethodResponse.md +++ /dev/null @@ -1,29 +0,0 @@ -# ListPaymentMethodResponse - - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**results** | **List[object]** | | - -## Example - -```python -from platform_api_python_client.models.list_payment_method_response import ListPaymentMethodResponse - -# TODO update the JSON string below -json = "{}" -# create an instance of ListPaymentMethodResponse from a JSON string -list_payment_method_response_instance = ListPaymentMethodResponse.from_json(json) -# print the JSON string representation of the object -print(ListPaymentMethodResponse.to_json()) - -# convert the object into a dict -list_payment_method_response_dict = list_payment_method_response_instance.to_dict() -# create an instance of ListPaymentMethodResponse from a dict -list_payment_method_response_from_dict = ListPaymentMethodResponse.from_dict(list_payment_method_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/ListPrebuiltImageResponse.md b/docs/ListPrebuiltImageResponse.md index e8f851f..be1a206 100644 --- a/docs/ListPrebuiltImageResponse.md +++ b/docs/ListPrebuiltImageResponse.md @@ -10,7 +10,7 @@ Name | Type | Description | Notes ## Example ```python -from platform_api_python_client.models.list_prebuilt_image_response import ListPrebuiltImageResponse +from platform_api_external_client.models.list_prebuilt_image_response import ListPrebuiltImageResponse # TODO update the JSON string below json = "{}" diff --git a/docs/PrebuiltImageResponse.md b/docs/PrebuiltImageResponse.md index 7bf3ad7..10cc272 100644 --- a/docs/PrebuiltImageResponse.md +++ b/docs/PrebuiltImageResponse.md @@ -9,11 +9,13 @@ Name | Type | Description | Notes **label** | **str** | | **tags** | **List[str]** | | **type** | [**DeploymentType**](DeploymentType.md) | | +**port** | **int** | | +**healthcheck** | **str** | | ## Example ```python -from platform_api_python_client.models.prebuilt_image_response import PrebuiltImageResponse +from platform_api_external_client.models.prebuilt_image_response import PrebuiltImageResponse # TODO update the JSON string below json = "{}" diff --git a/docs/ServiceStatus.md b/docs/ServiceStatus.md new file mode 100644 index 0000000..a6ce0d6 --- /dev/null +++ b/docs/ServiceStatus.md @@ -0,0 +1,32 @@ +# ServiceStatus + + +## Enum + +* `HEALTHY` (value: `'Healthy'`) + +* `MISSING` (value: `'Missing'`) + +* `SCALINGUP` (value: `'ScalingUp'`) + +* `PULLING` (value: `'Pulling'`) + +* `INITIALIZING` (value: `'Initializing'`) + +* `ERROR` (value: `'Error'`) + +* `CREATECONTAINERCONFIGERROR` (value: `'CreateContainerConfigError'`) + +* `CRASHLOOPBACKOFF` (value: `'CrashLoopBackOff'`) + +* `IMAGEPULLBACKOFF` (value: `'ImagePullBackOff'`) + +* `PROGRESSDEADLINEEXCEEDED` (value: `'ProgressDeadlineExceeded'`) + +* `NOTREADY` (value: `'NotReady'`) + +* `UNKNOWN` (value: `'Unknown'`) + +[[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/UserSupportEmailRequest.md b/docs/UserSupportEmailRequest.md new file mode 100644 index 0000000..ad69f7d --- /dev/null +++ b/docs/UserSupportEmailRequest.md @@ -0,0 +1,30 @@ +# UserSupportEmailRequest + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**message** | **str** | | +**subject** | **str** | | + +## Example + +```python +from platform_api_external_client.models.user_support_email_request import UserSupportEmailRequest + +# TODO update the JSON string below +json = "{}" +# create an instance of UserSupportEmailRequest from a JSON string +user_support_email_request_instance = UserSupportEmailRequest.from_json(json) +# print the JSON string representation of the object +print(UserSupportEmailRequest.to_json()) + +# convert the object into a dict +user_support_email_request_dict = user_support_email_request_instance.to_dict() +# create an instance of UserSupportEmailRequest from a dict +user_support_email_request_from_dict = UserSupportEmailRequest.from_dict(user_support_email_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/ValidationError.md b/docs/ValidationError.md index 0a9d146..1f9bb98 100644 --- a/docs/ValidationError.md +++ b/docs/ValidationError.md @@ -12,7 +12,7 @@ Name | Type | Description | Notes ## Example ```python -from platform_api_python_client.models.validation_error import ValidationError +from platform_api_external_client.models.validation_error import ValidationError # TODO update the JSON string below json = "{}" diff --git a/docs/ValidationErrorLocInner.md b/docs/ValidationErrorLocInner.md index cd238f4..3966ece 100644 --- a/docs/ValidationErrorLocInner.md +++ b/docs/ValidationErrorLocInner.md @@ -9,7 +9,7 @@ Name | Type | Description | Notes ## Example ```python -from platform_api_python_client.models.validation_error_loc_inner import ValidationErrorLocInner +from platform_api_external_client.models.validation_error_loc_inner import ValidationErrorLocInner # TODO update the JSON string below json = "{}" diff --git a/platform_api_external_client/__init__.py b/platform_api_external_client/__init__.py new file mode 100644 index 0000000..fd06f80 --- /dev/null +++ b/platform_api_external_client/__init__.py @@ -0,0 +1,77 @@ +# coding: utf-8 + +# flake8: noqa + +""" + 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 + + +__version__ = "1.0.0" + +# import apis into sdk package +from platform_api_external_client.api.external_api import EXTERNALApi + +# import ApiClient +from platform_api_external_client.api_response import ApiResponse +from platform_api_external_client.api_client import ApiClient +from platform_api_external_client.configuration import Configuration +from platform_api_external_client.exceptions import OpenApiException +from platform_api_external_client.exceptions import ApiTypeError +from platform_api_external_client.exceptions import ApiValueError +from platform_api_external_client.exceptions import ApiKeyError +from platform_api_external_client.exceptions import ApiAttributeError +from platform_api_external_client.exceptions import ApiException + +# import models into sdk package +from platform_api_external_client.models.api_key_request import APIKeyRequest +from platform_api_external_client.models.api_key_response import APIKeyResponse +from platform_api_external_client.models.c_serve_recipe_input import CServeRecipeInput +from platform_api_external_client.models.c_serve_recipe_output import CServeRecipeOutput +from platform_api_external_client.models.c_serve_recipe_perf import CServeRecipePerf +from platform_api_external_client.models.c_serve_recipe_response import CServeRecipeResponse +from platform_api_external_client.models.create_c_serve_deployment_request import CreateCServeDeploymentRequest +from platform_api_external_client.models.create_c_serve_deployment_response import CreateCServeDeploymentResponse +from platform_api_external_client.models.create_checkout_request import CreateCheckoutRequest +from platform_api_external_client.models.create_checkout_response import CreateCheckoutResponse +from platform_api_external_client.models.create_compute_deployment_request import CreateComputeDeploymentRequest +from platform_api_external_client.models.create_compute_deployment_response import CreateComputeDeploymentResponse +from platform_api_external_client.models.create_inference_deployment_request import CreateInferenceDeploymentRequest +from platform_api_external_client.models.create_inference_deployment_response import CreateInferenceDeploymentResponse +from platform_api_external_client.models.credits_response import CreditsResponse +from platform_api_external_client.models.daily_bill_response import DailyBillResponse +from platform_api_external_client.models.deployment_status import DeploymentStatus +from platform_api_external_client.models.deployment_status_request import DeploymentStatusRequest +from platform_api_external_client.models.deployment_status_response import DeploymentStatusResponse +from platform_api_external_client.models.deployment_type import DeploymentType +from platform_api_external_client.models.deployment_usage_value import DeploymentUsageValue +from platform_api_external_client.models.get_c_serve_deployment_response import GetCServeDeploymentResponse +from platform_api_external_client.models.get_cluster_response import GetClusterResponse +from platform_api_external_client.models.get_compute_deployment_response import GetComputeDeploymentResponse +from platform_api_external_client.models.get_deployment_log_response import GetDeploymentLogResponse +from platform_api_external_client.models.get_deployment_response import GetDeploymentResponse +from platform_api_external_client.models.get_deployment_usage_response import GetDeploymentUsageResponse +from platform_api_external_client.models.get_inference_deployment_response import GetInferenceDeploymentResponse +from platform_api_external_client.models.get_payments_response import GetPaymentsResponse +from platform_api_external_client.models.http_validation_error import HTTPValidationError +from platform_api_external_client.models.hardware_instance_response import HardwareInstanceResponse +from platform_api_external_client.models.list_api_key_response import ListAPIKeyResponse +from platform_api_external_client.models.list_c_serve_recipe_response import ListCServeRecipeResponse +from platform_api_external_client.models.list_daily_bill_response import ListDailyBillResponse +from platform_api_external_client.models.list_get_cluster_response import ListGetClusterResponse +from platform_api_external_client.models.list_get_deployment_response import ListGetDeploymentResponse +from platform_api_external_client.models.list_hardware_instance_response import ListHardwareInstanceResponse +from platform_api_external_client.models.list_prebuilt_image_response import ListPrebuiltImageResponse +from platform_api_external_client.models.metric import Metric +from platform_api_external_client.models.prebuilt_image_response import PrebuiltImageResponse +from platform_api_external_client.models.service_status import ServiceStatus +from platform_api_external_client.models.user_support_email_request import UserSupportEmailRequest +from platform_api_external_client.models.validation_error import ValidationError +from platform_api_external_client.models.validation_error_loc_inner import ValidationErrorLocInner diff --git a/platform_api_external_client/api/__init__.py b/platform_api_external_client/api/__init__.py new file mode 100644 index 0000000..3d827f2 --- /dev/null +++ b/platform_api_external_client/api/__init__.py @@ -0,0 +1,5 @@ +# flake8: noqa + +# import apis into api package +from platform_api_external_client.api.external_api import EXTERNALApi + diff --git a/platform_api_python_client/api/external_api.py b/platform_api_external_client/api/external_api.py similarity index 83% rename from platform_api_python_client/api/external_api.py rename to platform_api_external_client/api/external_api.py index b2969d9..53d9752 100644 --- a/platform_api_python_client/api/external_api.py +++ b/platform_api_external_client/api/external_api.py @@ -19,40 +19,39 @@ from datetime import date from pydantic import StrictInt, StrictStr from typing import Any, Optional -from platform_api_python_client.models.api_key_request import APIKeyRequest -from platform_api_python_client.models.api_key_response import APIKeyResponse -from platform_api_python_client.models.add_hardware_request import AddHardwareRequest -from platform_api_python_client.models.client_secret_response import ClientSecretResponse -from platform_api_python_client.models.create_c_serve_deployment_request import CreateCServeDeploymentRequest -from platform_api_python_client.models.create_c_serve_deployment_response import CreateCServeDeploymentResponse -from platform_api_python_client.models.create_compute_deployment_response import CreateComputeDeploymentResponse -from platform_api_python_client.models.create_compute_deployment_v2_request import CreateComputeDeploymentV2Request -from platform_api_python_client.models.create_inference_deployment_response import CreateInferenceDeploymentResponse -from platform_api_python_client.models.create_inference_deployment_v2_request import CreateInferenceDeploymentV2Request -from platform_api_python_client.models.create_payment_request import CreatePaymentRequest -from platform_api_python_client.models.credits_response import CreditsResponse -from platform_api_python_client.models.deployment_status_request import DeploymentStatusRequest -from platform_api_python_client.models.deployment_status_response_v2 import DeploymentStatusResponseV2 -from platform_api_python_client.models.deployment_type import DeploymentType -from platform_api_python_client.models.feedback_request import FeedbackRequest -from platform_api_python_client.models.get_c_serve_deployment_response import GetCServeDeploymentResponse -from platform_api_python_client.models.get_compute_v2_deployment_response import GetComputeV2DeploymentResponse -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_v2_deployment_response import GetInferenceV2DeploymentResponse -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 -from platform_api_python_client.models.list_daily_bill_response import ListDailyBillResponse -from platform_api_python_client.models.list_get_cluster_response import ListGetClusterResponse -from platform_api_python_client.models.list_get_deployment_v2_response import ListGetDeploymentV2Response -from platform_api_python_client.models.list_hardware_instance_response import ListHardwareInstanceResponse -from platform_api_python_client.models.list_payment_method_response import ListPaymentMethodResponse -from platform_api_python_client.models.list_prebuilt_image_response import ListPrebuiltImageResponse -from platform_api_python_client.models.metric import Metric - -from platform_api_python_client.api_client import ApiClient, RequestSerialized -from platform_api_python_client.api_response import ApiResponse -from platform_api_python_client.rest import RESTResponseType +from platform_api_external_client.models.api_key_request import APIKeyRequest +from platform_api_external_client.models.api_key_response import APIKeyResponse +from platform_api_external_client.models.create_c_serve_deployment_request import CreateCServeDeploymentRequest +from platform_api_external_client.models.create_c_serve_deployment_response import CreateCServeDeploymentResponse +from platform_api_external_client.models.create_checkout_request import CreateCheckoutRequest +from platform_api_external_client.models.create_checkout_response import CreateCheckoutResponse +from platform_api_external_client.models.create_compute_deployment_request import CreateComputeDeploymentRequest +from platform_api_external_client.models.create_compute_deployment_response import CreateComputeDeploymentResponse +from platform_api_external_client.models.create_inference_deployment_request import CreateInferenceDeploymentRequest +from platform_api_external_client.models.create_inference_deployment_response import CreateInferenceDeploymentResponse +from platform_api_external_client.models.credits_response import CreditsResponse +from platform_api_external_client.models.deployment_status_request import DeploymentStatusRequest +from platform_api_external_client.models.deployment_status_response import DeploymentStatusResponse +from platform_api_external_client.models.deployment_type import DeploymentType +from platform_api_external_client.models.get_c_serve_deployment_response import GetCServeDeploymentResponse +from platform_api_external_client.models.get_compute_deployment_response import GetComputeDeploymentResponse +from platform_api_external_client.models.get_deployment_log_response import GetDeploymentLogResponse +from platform_api_external_client.models.get_deployment_usage_response import GetDeploymentUsageResponse +from platform_api_external_client.models.get_inference_deployment_response import GetInferenceDeploymentResponse +from platform_api_external_client.models.get_payments_response import GetPaymentsResponse +from platform_api_external_client.models.list_api_key_response import ListAPIKeyResponse +from platform_api_external_client.models.list_c_serve_recipe_response import ListCServeRecipeResponse +from platform_api_external_client.models.list_daily_bill_response import ListDailyBillResponse +from platform_api_external_client.models.list_get_cluster_response import ListGetClusterResponse +from platform_api_external_client.models.list_get_deployment_response import ListGetDeploymentResponse +from platform_api_external_client.models.list_hardware_instance_response import ListHardwareInstanceResponse +from platform_api_external_client.models.list_prebuilt_image_response import ListPrebuiltImageResponse +from platform_api_external_client.models.metric import Metric +from platform_api_external_client.models.user_support_email_request import UserSupportEmailRequest + +from platform_api_external_client.api_client import ApiClient, RequestSerialized +from platform_api_external_client.api_response import ApiResponse +from platform_api_external_client.rest import RESTResponseType class EXTERNALApi: @@ -69,9 +68,9 @@ def __init__(self, api_client=None) -> None: @validate_call - def add_feedback_request_support_feedback_post( + def add_user_request_support_user_requests_post( self, - feedback_request: FeedbackRequest, + user_support_email_request: UserSupportEmailRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -85,11 +84,11 @@ def add_feedback_request_support_feedback_post( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> object: - """Add Feedback Request + """Add User Request - :param feedback_request: (required) - :type feedback_request: FeedbackRequest + :param user_support_email_request: (required) + :type user_support_email_request: UserSupportEmailRequest :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 @@ -112,8 +111,8 @@ def add_feedback_request_support_feedback_post( :return: Returns the result object. """ # noqa: E501 - _param = self._add_feedback_request_support_feedback_post_serialize( - feedback_request=feedback_request, + _param = self._add_user_request_support_user_requests_post_serialize( + user_support_email_request=user_support_email_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -136,9 +135,9 @@ def add_feedback_request_support_feedback_post( @validate_call - def add_feedback_request_support_feedback_post_with_http_info( + def add_user_request_support_user_requests_post_with_http_info( self, - feedback_request: FeedbackRequest, + user_support_email_request: UserSupportEmailRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -152,11 +151,11 @@ def add_feedback_request_support_feedback_post_with_http_info( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[object]: - """Add Feedback Request + """Add User Request - :param feedback_request: (required) - :type feedback_request: FeedbackRequest + :param user_support_email_request: (required) + :type user_support_email_request: UserSupportEmailRequest :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 @@ -179,8 +178,8 @@ def add_feedback_request_support_feedback_post_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._add_feedback_request_support_feedback_post_serialize( - feedback_request=feedback_request, + _param = self._add_user_request_support_user_requests_post_serialize( + user_support_email_request=user_support_email_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -203,9 +202,9 @@ def add_feedback_request_support_feedback_post_with_http_info( @validate_call - def add_feedback_request_support_feedback_post_without_preload_content( + def add_user_request_support_user_requests_post_without_preload_content( self, - feedback_request: FeedbackRequest, + user_support_email_request: UserSupportEmailRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -219,11 +218,11 @@ def add_feedback_request_support_feedback_post_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """Add Feedback Request + """Add User Request - :param feedback_request: (required) - :type feedback_request: FeedbackRequest + :param user_support_email_request: (required) + :type user_support_email_request: UserSupportEmailRequest :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 @@ -246,8 +245,8 @@ def add_feedback_request_support_feedback_post_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._add_feedback_request_support_feedback_post_serialize( - feedback_request=feedback_request, + _param = self._add_user_request_support_user_requests_post_serialize( + user_support_email_request=user_support_email_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -265,9 +264,9 @@ def add_feedback_request_support_feedback_post_without_preload_content( return response_data.response - def _add_feedback_request_support_feedback_post_serialize( + def _add_user_request_support_user_requests_post_serialize( self, - feedback_request, + user_support_email_request, _request_auth, _content_type, _headers, @@ -293,8 +292,8 @@ def _add_feedback_request_support_feedback_post_serialize( # process the header parameters # process the form parameters # process the body parameter - if feedback_request is not None: - _body_params = feedback_request + if user_support_email_request is not None: + _body_params = user_support_email_request # set the HTTP header `Accept` @@ -326,7 +325,7 @@ def _add_feedback_request_support_feedback_post_serialize( return self.api_client.param_serialize( method='POST', - resource_path='/support/feedback', + resource_path='/support/user-requests', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -617,9 +616,9 @@ def _create_api_key_credentials_api_key_post_serialize( @validate_call - def create_compute_deployment_deployments_v2_compute_post( + def create_checkout_payments_checkout_post( self, - create_compute_deployment_v2_request: CreateComputeDeploymentV2Request, + create_checkout_request: CreateCheckoutRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -632,12 +631,12 @@ def create_compute_deployment_deployments_v2_compute_post( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> CreateComputeDeploymentResponse: - """Create Compute Deployment + ) -> CreateCheckoutResponse: + """Create Checkout - :param create_compute_deployment_v2_request: (required) - :type create_compute_deployment_v2_request: CreateComputeDeploymentV2Request + :param create_checkout_request: (required) + :type create_checkout_request: CreateCheckoutRequest :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 @@ -660,8 +659,8 @@ def create_compute_deployment_deployments_v2_compute_post( :return: Returns the result object. """ # noqa: E501 - _param = self._create_compute_deployment_deployments_v2_compute_post_serialize( - create_compute_deployment_v2_request=create_compute_deployment_v2_request, + _param = self._create_checkout_payments_checkout_post_serialize( + create_checkout_request=create_checkout_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -669,7 +668,7 @@ def create_compute_deployment_deployments_v2_compute_post( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "CreateComputeDeploymentResponse", + '200': "CreateCheckoutResponse", '422': "HTTPValidationError", } response_data = self.api_client.call_api( @@ -684,9 +683,9 @@ def create_compute_deployment_deployments_v2_compute_post( @validate_call - def create_compute_deployment_deployments_v2_compute_post_with_http_info( + def create_checkout_payments_checkout_post_with_http_info( self, - create_compute_deployment_v2_request: CreateComputeDeploymentV2Request, + create_checkout_request: CreateCheckoutRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -699,12 +698,12 @@ def create_compute_deployment_deployments_v2_compute_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[CreateComputeDeploymentResponse]: - """Create Compute Deployment + ) -> ApiResponse[CreateCheckoutResponse]: + """Create Checkout - :param create_compute_deployment_v2_request: (required) - :type create_compute_deployment_v2_request: CreateComputeDeploymentV2Request + :param create_checkout_request: (required) + :type create_checkout_request: CreateCheckoutRequest :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 @@ -727,8 +726,8 @@ def create_compute_deployment_deployments_v2_compute_post_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._create_compute_deployment_deployments_v2_compute_post_serialize( - create_compute_deployment_v2_request=create_compute_deployment_v2_request, + _param = self._create_checkout_payments_checkout_post_serialize( + create_checkout_request=create_checkout_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -736,7 +735,7 @@ def create_compute_deployment_deployments_v2_compute_post_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "CreateComputeDeploymentResponse", + '200': "CreateCheckoutResponse", '422': "HTTPValidationError", } response_data = self.api_client.call_api( @@ -751,9 +750,9 @@ def create_compute_deployment_deployments_v2_compute_post_with_http_info( @validate_call - def create_compute_deployment_deployments_v2_compute_post_without_preload_content( + def create_checkout_payments_checkout_post_without_preload_content( self, - create_compute_deployment_v2_request: CreateComputeDeploymentV2Request, + create_checkout_request: CreateCheckoutRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -767,11 +766,11 @@ def create_compute_deployment_deployments_v2_compute_post_without_preload_conten _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """Create Compute Deployment + """Create Checkout - :param create_compute_deployment_v2_request: (required) - :type create_compute_deployment_v2_request: CreateComputeDeploymentV2Request + :param create_checkout_request: (required) + :type create_checkout_request: CreateCheckoutRequest :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 @@ -794,8 +793,8 @@ def create_compute_deployment_deployments_v2_compute_post_without_preload_conten :return: Returns the result object. """ # noqa: E501 - _param = self._create_compute_deployment_deployments_v2_compute_post_serialize( - create_compute_deployment_v2_request=create_compute_deployment_v2_request, + _param = self._create_checkout_payments_checkout_post_serialize( + create_checkout_request=create_checkout_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -803,7 +802,7 @@ def create_compute_deployment_deployments_v2_compute_post_without_preload_conten ) _response_types_map: Dict[str, Optional[str]] = { - '200': "CreateComputeDeploymentResponse", + '200': "CreateCheckoutResponse", '422': "HTTPValidationError", } response_data = self.api_client.call_api( @@ -813,9 +812,9 @@ def create_compute_deployment_deployments_v2_compute_post_without_preload_conten return response_data.response - def _create_compute_deployment_deployments_v2_compute_post_serialize( + def _create_checkout_payments_checkout_post_serialize( self, - create_compute_deployment_v2_request, + create_checkout_request, _request_auth, _content_type, _headers, @@ -841,8 +840,8 @@ def _create_compute_deployment_deployments_v2_compute_post_serialize( # process the header parameters # process the form parameters # process the body parameter - if create_compute_deployment_v2_request is not None: - _body_params = create_compute_deployment_v2_request + if create_checkout_request is not None: + _body_params = create_checkout_request # set the HTTP header `Accept` @@ -874,7 +873,7 @@ def _create_compute_deployment_deployments_v2_compute_post_serialize( return self.api_client.param_serialize( method='POST', - resource_path='/deployments/v2/compute', + resource_path='/payments/checkout', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -891,9 +890,9 @@ def _create_compute_deployment_deployments_v2_compute_post_serialize( @validate_call - def create_cserve_deployment_deployments_v2_cserve_post( + def create_compute_deployment_deployments_compute_post( self, - create_c_serve_deployment_request: CreateCServeDeploymentRequest, + create_compute_deployment_request: CreateComputeDeploymentRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -906,12 +905,12 @@ def create_cserve_deployment_deployments_v2_cserve_post( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> CreateCServeDeploymentResponse: - """Create Cserve Deployment + ) -> CreateComputeDeploymentResponse: + """Create Compute Deployment - :param create_c_serve_deployment_request: (required) - :type create_c_serve_deployment_request: CreateCServeDeploymentRequest + :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 @@ -934,8 +933,8 @@ def create_cserve_deployment_deployments_v2_cserve_post( :return: Returns the result object. """ # noqa: E501 - _param = self._create_cserve_deployment_deployments_v2_cserve_post_serialize( - create_c_serve_deployment_request=create_c_serve_deployment_request, + _param = self._create_compute_deployment_deployments_compute_post_serialize( + create_compute_deployment_request=create_compute_deployment_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -943,7 +942,7 @@ def create_cserve_deployment_deployments_v2_cserve_post( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "CreateCServeDeploymentResponse", + '200': "CreateComputeDeploymentResponse", '422': "HTTPValidationError", } response_data = self.api_client.call_api( @@ -958,9 +957,9 @@ def create_cserve_deployment_deployments_v2_cserve_post( @validate_call - def create_cserve_deployment_deployments_v2_cserve_post_with_http_info( + def create_compute_deployment_deployments_compute_post_with_http_info( self, - create_c_serve_deployment_request: CreateCServeDeploymentRequest, + create_compute_deployment_request: CreateComputeDeploymentRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -973,12 +972,12 @@ def create_cserve_deployment_deployments_v2_cserve_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[CreateCServeDeploymentResponse]: - """Create Cserve Deployment + ) -> ApiResponse[CreateComputeDeploymentResponse]: + """Create Compute Deployment - :param create_c_serve_deployment_request: (required) - :type create_c_serve_deployment_request: CreateCServeDeploymentRequest + :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 @@ -1001,8 +1000,8 @@ def create_cserve_deployment_deployments_v2_cserve_post_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._create_cserve_deployment_deployments_v2_cserve_post_serialize( - create_c_serve_deployment_request=create_c_serve_deployment_request, + _param = self._create_compute_deployment_deployments_compute_post_serialize( + create_compute_deployment_request=create_compute_deployment_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -1010,7 +1009,7 @@ def create_cserve_deployment_deployments_v2_cserve_post_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "CreateCServeDeploymentResponse", + '200': "CreateComputeDeploymentResponse", '422': "HTTPValidationError", } response_data = self.api_client.call_api( @@ -1025,9 +1024,9 @@ def create_cserve_deployment_deployments_v2_cserve_post_with_http_info( @validate_call - def create_cserve_deployment_deployments_v2_cserve_post_without_preload_content( + def create_compute_deployment_deployments_compute_post_without_preload_content( self, - create_c_serve_deployment_request: CreateCServeDeploymentRequest, + create_compute_deployment_request: CreateComputeDeploymentRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -1041,11 +1040,11 @@ def create_cserve_deployment_deployments_v2_cserve_post_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """Create Cserve Deployment + """Create Compute Deployment - :param create_c_serve_deployment_request: (required) - :type create_c_serve_deployment_request: CreateCServeDeploymentRequest + :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 @@ -1068,8 +1067,8 @@ def create_cserve_deployment_deployments_v2_cserve_post_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._create_cserve_deployment_deployments_v2_cserve_post_serialize( - create_c_serve_deployment_request=create_c_serve_deployment_request, + _param = self._create_compute_deployment_deployments_compute_post_serialize( + create_compute_deployment_request=create_compute_deployment_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -1077,7 +1076,7 @@ def create_cserve_deployment_deployments_v2_cserve_post_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "CreateCServeDeploymentResponse", + '200': "CreateComputeDeploymentResponse", '422': "HTTPValidationError", } response_data = self.api_client.call_api( @@ -1087,9 +1086,9 @@ def create_cserve_deployment_deployments_v2_cserve_post_without_preload_content( return response_data.response - def _create_cserve_deployment_deployments_v2_cserve_post_serialize( + def _create_compute_deployment_deployments_compute_post_serialize( self, - create_c_serve_deployment_request, + create_compute_deployment_request, _request_auth, _content_type, _headers, @@ -1115,8 +1114,8 @@ def _create_cserve_deployment_deployments_v2_cserve_post_serialize( # process the header parameters # process the form parameters # process the body parameter - if create_c_serve_deployment_request is not None: - _body_params = create_c_serve_deployment_request + if create_compute_deployment_request is not None: + _body_params = create_compute_deployment_request # set the HTTP header `Accept` @@ -1148,7 +1147,7 @@ def _create_cserve_deployment_deployments_v2_cserve_post_serialize( return self.api_client.param_serialize( method='POST', - resource_path='/deployments/v2/cserve', + resource_path='/deployments/compute', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -1165,9 +1164,9 @@ def _create_cserve_deployment_deployments_v2_cserve_post_serialize( @validate_call - def create_hardware_request_support_hardware_request_post( + def create_cserve_deployment_deployments_cserve_post( self, - add_hardware_request: AddHardwareRequest, + create_c_serve_deployment_request: CreateCServeDeploymentRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -1180,12 +1179,12 @@ def create_hardware_request_support_hardware_request_post( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> object: - """Create Hardware Request + ) -> CreateCServeDeploymentResponse: + """Create Cserve Deployment - :param add_hardware_request: (required) - :type add_hardware_request: AddHardwareRequest + :param create_c_serve_deployment_request: (required) + :type create_c_serve_deployment_request: CreateCServeDeploymentRequest :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 @@ -1208,8 +1207,8 @@ def create_hardware_request_support_hardware_request_post( :return: Returns the result object. """ # noqa: E501 - _param = self._create_hardware_request_support_hardware_request_post_serialize( - add_hardware_request=add_hardware_request, + _param = self._create_cserve_deployment_deployments_cserve_post_serialize( + create_c_serve_deployment_request=create_c_serve_deployment_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -1217,7 +1216,7 @@ def create_hardware_request_support_hardware_request_post( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "object", + '200': "CreateCServeDeploymentResponse", '422': "HTTPValidationError", } response_data = self.api_client.call_api( @@ -1232,9 +1231,9 @@ def create_hardware_request_support_hardware_request_post( @validate_call - def create_hardware_request_support_hardware_request_post_with_http_info( + def create_cserve_deployment_deployments_cserve_post_with_http_info( self, - add_hardware_request: AddHardwareRequest, + create_c_serve_deployment_request: CreateCServeDeploymentRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -1247,12 +1246,12 @@ def create_hardware_request_support_hardware_request_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 Hardware Request + ) -> ApiResponse[CreateCServeDeploymentResponse]: + """Create Cserve Deployment - :param add_hardware_request: (required) - :type add_hardware_request: AddHardwareRequest + :param create_c_serve_deployment_request: (required) + :type create_c_serve_deployment_request: CreateCServeDeploymentRequest :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 @@ -1275,8 +1274,8 @@ def create_hardware_request_support_hardware_request_post_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._create_hardware_request_support_hardware_request_post_serialize( - add_hardware_request=add_hardware_request, + _param = self._create_cserve_deployment_deployments_cserve_post_serialize( + create_c_serve_deployment_request=create_c_serve_deployment_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -1284,7 +1283,7 @@ def create_hardware_request_support_hardware_request_post_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "object", + '200': "CreateCServeDeploymentResponse", '422': "HTTPValidationError", } response_data = self.api_client.call_api( @@ -1299,9 +1298,9 @@ def create_hardware_request_support_hardware_request_post_with_http_info( @validate_call - def create_hardware_request_support_hardware_request_post_without_preload_content( + def create_cserve_deployment_deployments_cserve_post_without_preload_content( self, - add_hardware_request: AddHardwareRequest, + create_c_serve_deployment_request: CreateCServeDeploymentRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -1315,11 +1314,11 @@ def create_hardware_request_support_hardware_request_post_without_preload_conten _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """Create Hardware Request + """Create Cserve Deployment - :param add_hardware_request: (required) - :type add_hardware_request: AddHardwareRequest + :param create_c_serve_deployment_request: (required) + :type create_c_serve_deployment_request: CreateCServeDeploymentRequest :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 @@ -1342,8 +1341,8 @@ def create_hardware_request_support_hardware_request_post_without_preload_conten :return: Returns the result object. """ # noqa: E501 - _param = self._create_hardware_request_support_hardware_request_post_serialize( - add_hardware_request=add_hardware_request, + _param = self._create_cserve_deployment_deployments_cserve_post_serialize( + create_c_serve_deployment_request=create_c_serve_deployment_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -1351,7 +1350,7 @@ def create_hardware_request_support_hardware_request_post_without_preload_conten ) _response_types_map: Dict[str, Optional[str]] = { - '200': "object", + '200': "CreateCServeDeploymentResponse", '422': "HTTPValidationError", } response_data = self.api_client.call_api( @@ -1361,9 +1360,9 @@ def create_hardware_request_support_hardware_request_post_without_preload_conten return response_data.response - def _create_hardware_request_support_hardware_request_post_serialize( + def _create_cserve_deployment_deployments_cserve_post_serialize( self, - add_hardware_request, + create_c_serve_deployment_request, _request_auth, _content_type, _headers, @@ -1389,8 +1388,8 @@ def _create_hardware_request_support_hardware_request_post_serialize( # process the header parameters # process the form parameters # process the body parameter - if add_hardware_request is not None: - _body_params = add_hardware_request + if create_c_serve_deployment_request is not None: + _body_params = create_c_serve_deployment_request # set the HTTP header `Accept` @@ -1422,7 +1421,7 @@ def _create_hardware_request_support_hardware_request_post_serialize( return self.api_client.param_serialize( method='POST', - resource_path='/support/hardware-request', + resource_path='/deployments/cserve', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -1439,9 +1438,9 @@ def _create_hardware_request_support_hardware_request_post_serialize( @validate_call - def create_inference_deployment_deployments_v2_inference_post( + def create_inference_deployment_deployments_inference_post( self, - create_inference_deployment_v2_request: CreateInferenceDeploymentV2Request, + create_inference_deployment_request: CreateInferenceDeploymentRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -1458,8 +1457,8 @@ def create_inference_deployment_deployments_v2_inference_post( """Create Inference Deployment - :param create_inference_deployment_v2_request: (required) - :type create_inference_deployment_v2_request: CreateInferenceDeploymentV2Request + :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 @@ -1482,8 +1481,8 @@ def create_inference_deployment_deployments_v2_inference_post( :return: Returns the result object. """ # noqa: E501 - _param = self._create_inference_deployment_deployments_v2_inference_post_serialize( - create_inference_deployment_v2_request=create_inference_deployment_v2_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,9 +1505,9 @@ def create_inference_deployment_deployments_v2_inference_post( @validate_call - def create_inference_deployment_deployments_v2_inference_post_with_http_info( + def create_inference_deployment_deployments_inference_post_with_http_info( self, - create_inference_deployment_v2_request: CreateInferenceDeploymentV2Request, + create_inference_deployment_request: CreateInferenceDeploymentRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -1525,8 +1524,8 @@ def create_inference_deployment_deployments_v2_inference_post_with_http_info( """Create Inference Deployment - :param create_inference_deployment_v2_request: (required) - :type create_inference_deployment_v2_request: CreateInferenceDeploymentV2Request + :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 @@ -1549,8 +1548,8 @@ def create_inference_deployment_deployments_v2_inference_post_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._create_inference_deployment_deployments_v2_inference_post_serialize( - create_inference_deployment_v2_request=create_inference_deployment_v2_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,9 +1572,9 @@ def create_inference_deployment_deployments_v2_inference_post_with_http_info( @validate_call - def create_inference_deployment_deployments_v2_inference_post_without_preload_content( + def create_inference_deployment_deployments_inference_post_without_preload_content( self, - create_inference_deployment_v2_request: CreateInferenceDeploymentV2Request, + create_inference_deployment_request: CreateInferenceDeploymentRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -1592,8 +1591,8 @@ def create_inference_deployment_deployments_v2_inference_post_without_preload_co """Create Inference Deployment - :param create_inference_deployment_v2_request: (required) - :type create_inference_deployment_v2_request: CreateInferenceDeploymentV2Request + :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 @@ -1616,8 +1615,8 @@ def create_inference_deployment_deployments_v2_inference_post_without_preload_co :return: Returns the result object. """ # noqa: E501 - _param = self._create_inference_deployment_deployments_v2_inference_post_serialize( - create_inference_deployment_v2_request=create_inference_deployment_v2_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, @@ -1635,9 +1634,9 @@ def create_inference_deployment_deployments_v2_inference_post_without_preload_co return response_data.response - def _create_inference_deployment_deployments_v2_inference_post_serialize( + def _create_inference_deployment_deployments_inference_post_serialize( self, - create_inference_deployment_v2_request, + create_inference_deployment_request, _request_auth, _content_type, _headers, @@ -1663,8 +1662,8 @@ def _create_inference_deployment_deployments_v2_inference_post_serialize( # process the header parameters # process the form parameters # process the body parameter - if create_inference_deployment_v2_request is not None: - _body_params = create_inference_deployment_v2_request + if create_inference_deployment_request is not None: + _body_params = create_inference_deployment_request # set the HTTP header `Accept` @@ -1696,7 +1695,7 @@ def _create_inference_deployment_deployments_v2_inference_post_serialize( return self.api_client.param_serialize( method='POST', - resource_path='/deployments/v2/inference', + resource_path='/deployments/inference', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -1713,9 +1712,9 @@ def _create_inference_deployment_deployments_v2_inference_post_serialize( @validate_call - def create_payment_payments_post( + def delete_api_key_credentials_api_key_id_delete( self, - create_payment_request: CreatePaymentRequest, + id: StrictStr, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -1728,12 +1727,12 @@ def create_payment_payments_post( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ClientSecretResponse: - """Create Payment + ) -> object: + """Delete Api Key - :param create_payment_request: (required) - :type create_payment_request: CreatePaymentRequest + :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 @@ -1756,8 +1755,8 @@ def create_payment_payments_post( :return: Returns the result object. """ # noqa: E501 - _param = self._create_payment_payments_post_serialize( - create_payment_request=create_payment_request, + _param = self._delete_api_key_credentials_api_key_id_delete_serialize( + id=id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -1765,7 +1764,7 @@ def create_payment_payments_post( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "ClientSecretResponse", + '200': "object", '422': "HTTPValidationError", } response_data = self.api_client.call_api( @@ -1780,9 +1779,9 @@ def create_payment_payments_post( @validate_call - def create_payment_payments_post_with_http_info( + def delete_api_key_credentials_api_key_id_delete_with_http_info( self, - create_payment_request: CreatePaymentRequest, + id: StrictStr, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -1795,12 +1794,12 @@ def create_payment_payments_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[ClientSecretResponse]: - """Create Payment + ) -> ApiResponse[object]: + """Delete Api Key - :param create_payment_request: (required) - :type create_payment_request: CreatePaymentRequest + :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 @@ -1823,8 +1822,8 @@ def create_payment_payments_post_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._create_payment_payments_post_serialize( - create_payment_request=create_payment_request, + _param = self._delete_api_key_credentials_api_key_id_delete_serialize( + id=id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -1832,7 +1831,7 @@ def create_payment_payments_post_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "ClientSecretResponse", + '200': "object", '422': "HTTPValidationError", } response_data = self.api_client.call_api( @@ -1847,9 +1846,9 @@ def create_payment_payments_post_with_http_info( @validate_call - def create_payment_payments_post_without_preload_content( + def delete_api_key_credentials_api_key_id_delete_without_preload_content( self, - create_payment_request: CreatePaymentRequest, + id: StrictStr, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -1863,11 +1862,11 @@ def create_payment_payments_post_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """Create Payment + """Delete Api Key - :param create_payment_request: (required) - :type create_payment_request: CreatePaymentRequest + :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 @@ -1890,8 +1889,8 @@ def create_payment_payments_post_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._create_payment_payments_post_serialize( - create_payment_request=create_payment_request, + _param = self._delete_api_key_credentials_api_key_id_delete_serialize( + id=id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -1899,7 +1898,7 @@ def create_payment_payments_post_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "ClientSecretResponse", + '200': "object", '422': "HTTPValidationError", } response_data = self.api_client.call_api( @@ -1909,9 +1908,9 @@ def create_payment_payments_post_without_preload_content( return response_data.response - def _create_payment_payments_post_serialize( + def _delete_api_key_credentials_api_key_id_delete_serialize( self, - create_payment_request, + id, _request_auth, _content_type, _headers, @@ -1933,12 +1932,12 @@ def _create_payment_payments_post_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_payment_request is not None: - _body_params = create_payment_request # set the HTTP header `Accept` @@ -1949,19 +1948,6 @@ def _create_payment_payments_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] = [ @@ -1969,8 +1955,8 @@ def _create_payment_payments_post_serialize( ] return self.api_client.param_serialize( - method='POST', - resource_path='/payments', + method='DELETE', + resource_path='/credentials/api-key/{id}', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -1987,7 +1973,7 @@ def _create_payment_payments_post_serialize( @validate_call - def create_payment_setup_payments_setup_post( + def get_api_keys_credentials_api_key_get( self, _request_timeout: Union[ None, @@ -2001,8 +1987,8 @@ def create_payment_setup_payments_setup_post( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ClientSecretResponse: - """Create Payment Setup + ) -> ListAPIKeyResponse: + """Get Api Keys :param _request_timeout: timeout setting for this request. If one @@ -2027,7 +2013,7 @@ def create_payment_setup_payments_setup_post( :return: Returns the result object. """ # noqa: E501 - _param = self._create_payment_setup_payments_setup_post_serialize( + _param = self._get_api_keys_credentials_api_key_get_serialize( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -2035,7 +2021,7 @@ def create_payment_setup_payments_setup_post( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "ClientSecretResponse", + '200': "ListAPIKeyResponse", } response_data = self.api_client.call_api( *_param, @@ -2049,7 +2035,7 @@ def create_payment_setup_payments_setup_post( @validate_call - def create_payment_setup_payments_setup_post_with_http_info( + def get_api_keys_credentials_api_key_get_with_http_info( self, _request_timeout: Union[ None, @@ -2063,8 +2049,8 @@ def create_payment_setup_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[ClientSecretResponse]: - """Create Payment Setup + ) -> ApiResponse[ListAPIKeyResponse]: + """Get Api Keys :param _request_timeout: timeout setting for this request. If one @@ -2089,7 +2075,7 @@ def create_payment_setup_payments_setup_post_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._create_payment_setup_payments_setup_post_serialize( + _param = self._get_api_keys_credentials_api_key_get_serialize( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -2097,7 +2083,7 @@ def create_payment_setup_payments_setup_post_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "ClientSecretResponse", + '200': "ListAPIKeyResponse", } response_data = self.api_client.call_api( *_param, @@ -2111,7 +2097,7 @@ def create_payment_setup_payments_setup_post_with_http_info( @validate_call - def create_payment_setup_payments_setup_post_without_preload_content( + def get_api_keys_credentials_api_key_get_without_preload_content( self, _request_timeout: Union[ None, @@ -2126,7 +2112,7 @@ def create_payment_setup_payments_setup_post_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """Create Payment Setup + """Get Api Keys :param _request_timeout: timeout setting for this request. If one @@ -2151,7 +2137,7 @@ def create_payment_setup_payments_setup_post_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._create_payment_setup_payments_setup_post_serialize( + _param = self._get_api_keys_credentials_api_key_get_serialize( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -2159,7 +2145,7 @@ def create_payment_setup_payments_setup_post_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "ClientSecretResponse", + '200': "ListAPIKeyResponse", } response_data = self.api_client.call_api( *_param, @@ -2168,7 +2154,7 @@ def create_payment_setup_payments_setup_post_without_preload_content( return response_data.response - def _create_payment_setup_payments_setup_post_serialize( + def _get_api_keys_credentials_api_key_get_serialize( self, _request_auth, _content_type, @@ -2212,8 +2198,8 @@ def _create_payment_setup_payments_setup_post_serialize( ] return self.api_client.param_serialize( - method='POST', - resource_path='/payments/setup', + method='GET', + resource_path='/credentials/api-key', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -2230,9 +2216,8 @@ def _create_payment_setup_payments_setup_post_serialize( @validate_call - def delete_api_key_credentials_api_key_id_delete( + def get_clusters_clusters_get( self, - id: StrictStr, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -2245,12 +2230,10 @@ 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 + ) -> ListGetClusterResponse: + """Get Clusters - :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 @@ -2273,8 +2256,7 @@ 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._get_clusters_clusters_get_serialize( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -2282,8 +2264,7 @@ def delete_api_key_credentials_api_key_id_delete( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "object", - '422': "HTTPValidationError", + '200': "ListGetClusterResponse", } response_data = self.api_client.call_api( *_param, @@ -2297,9 +2278,8 @@ def delete_api_key_credentials_api_key_id_delete( @validate_call - def delete_api_key_credentials_api_key_id_delete_with_http_info( + def get_clusters_clusters_get_with_http_info( self, - id: StrictStr, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -2312,12 +2292,10 @@ 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[ListGetClusterResponse]: + """Get Clusters - :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 @@ -2340,8 +2318,7 @@ 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._get_clusters_clusters_get_serialize( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -2349,8 +2326,7 @@ def delete_api_key_credentials_api_key_id_delete_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "object", - '422': "HTTPValidationError", + '200': "ListGetClusterResponse", } response_data = self.api_client.call_api( *_param, @@ -2364,9 +2340,8 @@ 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 get_clusters_clusters_get_without_preload_content( self, - id: StrictStr, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -2380,11 +2355,9 @@ 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 + """Get Clusters - :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 @@ -2407,8 +2380,7 @@ 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._get_clusters_clusters_get_serialize( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -2416,8 +2388,7 @@ def delete_api_key_credentials_api_key_id_delete_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "object", - '422': "HTTPValidationError", + '200': "ListGetClusterResponse", } response_data = self.api_client.call_api( *_param, @@ -2426,9 +2397,8 @@ 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 _get_clusters_clusters_get_serialize( self, - id, _request_auth, _content_type, _headers, @@ -2450,8 +2420,6 @@ 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 @@ -2473,8 +2441,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='GET', + resource_path='/clusters', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -2491,9 +2459,9 @@ def _delete_api_key_credentials_api_key_id_delete_serialize( @validate_call - def delete_payment_method_payments_methods_payment_method_delete( + def get_compute_deployment_deployments_compute_deployment_id_get( self, - payment_method: StrictStr, + deployment_id: StrictInt, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -2506,12 +2474,12 @@ def delete_payment_method_payments_methods_payment_method_delete( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> object: - """Delete Payment Method + ) -> GetComputeDeploymentResponse: + """Get Compute Deployment - :param payment_method: (required) - :type payment_method: 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 @@ -2534,8 +2502,8 @@ def delete_payment_method_payments_methods_payment_method_delete( :return: Returns the result object. """ # noqa: E501 - _param = self._delete_payment_method_payments_methods_payment_method_delete_serialize( - payment_method=payment_method, + _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, @@ -2543,7 +2511,7 @@ def delete_payment_method_payments_methods_payment_method_delete( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "object", + '200': "GetComputeDeploymentResponse", '422': "HTTPValidationError", } response_data = self.api_client.call_api( @@ -2558,9 +2526,9 @@ def delete_payment_method_payments_methods_payment_method_delete( @validate_call - def delete_payment_method_payments_methods_payment_method_delete_with_http_info( + def get_compute_deployment_deployments_compute_deployment_id_get_with_http_info( self, - payment_method: StrictStr, + deployment_id: StrictInt, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -2573,12 +2541,12 @@ def delete_payment_method_payments_methods_payment_method_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 Payment Method + ) -> ApiResponse[GetComputeDeploymentResponse]: + """Get Compute Deployment - :param payment_method: (required) - :type payment_method: 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 @@ -2601,8 +2569,8 @@ def delete_payment_method_payments_methods_payment_method_delete_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._delete_payment_method_payments_methods_payment_method_delete_serialize( - payment_method=payment_method, + _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, @@ -2610,7 +2578,7 @@ def delete_payment_method_payments_methods_payment_method_delete_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "object", + '200': "GetComputeDeploymentResponse", '422': "HTTPValidationError", } response_data = self.api_client.call_api( @@ -2625,9 +2593,9 @@ def delete_payment_method_payments_methods_payment_method_delete_with_http_info( @validate_call - def delete_payment_method_payments_methods_payment_method_delete_without_preload_content( + def get_compute_deployment_deployments_compute_deployment_id_get_without_preload_content( self, - payment_method: StrictStr, + deployment_id: StrictInt, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -2641,11 +2609,11 @@ def delete_payment_method_payments_methods_payment_method_delete_without_preload _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """Delete Payment Method + """Get Compute Deployment - :param payment_method: (required) - :type payment_method: 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 @@ -2668,8 +2636,8 @@ def delete_payment_method_payments_methods_payment_method_delete_without_preload :return: Returns the result object. """ # noqa: E501 - _param = self._delete_payment_method_payments_methods_payment_method_delete_serialize( - payment_method=payment_method, + _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, @@ -2677,7 +2645,7 @@ def delete_payment_method_payments_methods_payment_method_delete_without_preload ) _response_types_map: Dict[str, Optional[str]] = { - '200': "object", + '200': "GetComputeDeploymentResponse", '422': "HTTPValidationError", } response_data = self.api_client.call_api( @@ -2687,9 +2655,9 @@ def delete_payment_method_payments_methods_payment_method_delete_without_preload return response_data.response - def _delete_payment_method_payments_methods_payment_method_delete_serialize( + def _get_compute_deployment_deployments_compute_deployment_id_get_serialize( self, - payment_method, + deployment_id, _request_auth, _content_type, _headers, @@ -2711,8 +2679,8 @@ def _delete_payment_method_payments_methods_payment_method_delete_serialize( _body_params: Optional[bytes] = None # process the path parameters - if payment_method is not None: - _path_params['payment_method'] = payment_method + if deployment_id is not None: + _path_params['deployment_id'] = deployment_id # process the query parameters # process the header parameters # process the form parameters @@ -2734,8 +2702,8 @@ def _delete_payment_method_payments_methods_payment_method_delete_serialize( ] return self.api_client.param_serialize( - method='DELETE', - resource_path='/payments/methods/{payment_method}', + method='GET', + resource_path='/deployments/compute/{deployment_id}', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -2752,7 +2720,7 @@ def _delete_payment_method_payments_methods_payment_method_delete_serialize( @validate_call - def get_api_keys_credentials_api_key_get( + def get_credits_credits_get( self, _request_timeout: Union[ None, @@ -2766,8 +2734,8 @@ 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 + ) -> CreditsResponse: + """Get Credits :param _request_timeout: timeout setting for this request. If one @@ -2792,7 +2760,7 @@ 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._get_credits_credits_get_serialize( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -2800,7 +2768,7 @@ def get_api_keys_credentials_api_key_get( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "ListAPIKeyResponse", + '200': "CreditsResponse", } response_data = self.api_client.call_api( *_param, @@ -2814,7 +2782,7 @@ def get_api_keys_credentials_api_key_get( @validate_call - def get_api_keys_credentials_api_key_get_with_http_info( + def get_credits_credits_get_with_http_info( self, _request_timeout: Union[ None, @@ -2828,8 +2796,8 @@ 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[CreditsResponse]: + """Get Credits :param _request_timeout: timeout setting for this request. If one @@ -2854,7 +2822,7 @@ 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._get_credits_credits_get_serialize( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -2862,7 +2830,7 @@ def get_api_keys_credentials_api_key_get_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "ListAPIKeyResponse", + '200': "CreditsResponse", } response_data = self.api_client.call_api( *_param, @@ -2876,7 +2844,7 @@ 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 get_credits_credits_get_without_preload_content( self, _request_timeout: Union[ None, @@ -2891,7 +2859,7 @@ 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 + """Get Credits :param _request_timeout: timeout setting for this request. If one @@ -2916,7 +2884,7 @@ 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._get_credits_credits_get_serialize( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -2924,7 +2892,7 @@ def get_api_keys_credentials_api_key_get_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "ListAPIKeyResponse", + '200': "CreditsResponse", } response_data = self.api_client.call_api( *_param, @@ -2933,7 +2901,7 @@ 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 _get_credits_credits_get_serialize( self, _request_auth, _content_type, @@ -2978,7 +2946,7 @@ def _get_api_keys_credentials_api_key_get_serialize( return self.api_client.param_serialize( method='GET', - resource_path='/credentials/api-key', + resource_path='/credits', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -2995,8 +2963,9 @@ def _get_api_keys_credentials_api_key_get_serialize( @validate_call - def get_clusters_clusters_get( + def get_cserve_deployment_deployments_cserve_deployment_id_get( self, + deployment_id: StrictInt, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -3009,10 +2978,12 @@ 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 + ) -> GetCServeDeploymentResponse: + """Get Cserve 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 @@ -3035,7 +3006,8 @@ def get_clusters_clusters_get( :return: Returns the result object. """ # noqa: E501 - _param = self._get_clusters_clusters_get_serialize( + _param = self._get_cserve_deployment_deployments_cserve_deployment_id_get_serialize( + deployment_id=deployment_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -3043,7 +3015,8 @@ def get_clusters_clusters_get( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "ListGetClusterResponse", + '200': "GetCServeDeploymentResponse", + '422': "HTTPValidationError", } response_data = self.api_client.call_api( *_param, @@ -3057,759 +3030,7 @@ def get_clusters_clusters_get( @validate_call - def get_clusters_clusters_get_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[ListGetClusterResponse]: - """Get Clusters - - - :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_clusters_clusters_get_serialize( - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "ListGetClusterResponse", - } - 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_clusters_clusters_get_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: - """Get Clusters - - - :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_clusters_clusters_get_serialize( - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "ListGetClusterResponse", - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - return response_data.response - - - def _get_clusters_clusters_get_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='GET', - resource_path='/clusters', - 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_compute_deployment_deployments_v2_compute_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, - ) -> GetComputeV2DeploymentResponse: - """Get Compute 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_compute_deployment_deployments_v2_compute_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': "GetComputeV2DeploymentResponse", - '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_compute_deployment_deployments_v2_compute_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[GetComputeV2DeploymentResponse]: - """Get Compute 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_compute_deployment_deployments_v2_compute_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': "GetComputeV2DeploymentResponse", - '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_compute_deployment_deployments_v2_compute_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 Compute 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_compute_deployment_deployments_v2_compute_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': "GetComputeV2DeploymentResponse", - '422': "HTTPValidationError", - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - return response_data.response - - - def _get_compute_deployment_deployments_v2_compute_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/v2/compute/{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_credits_credits_get( - 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, - ) -> CreditsResponse: - """Get Credits - - - :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_credits_credits_get_serialize( - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "CreditsResponse", - } - 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_credits_credits_get_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[CreditsResponse]: - """Get Credits - - - :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_credits_credits_get_serialize( - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "CreditsResponse", - } - 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_credits_credits_get_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: - """Get Credits - - - :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_credits_credits_get_serialize( - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "CreditsResponse", - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - return response_data.response - - - def _get_credits_credits_get_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='GET', - resource_path='/credits', - 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_cserve_deployment_deployments_v2_cserve_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, - ) -> GetCServeDeploymentResponse: - """Get Cserve 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_cserve_deployment_deployments_v2_cserve_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': "GetCServeDeploymentResponse", - '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_cserve_deployment_deployments_v2_cserve_deployment_id_get_with_http_info( + def get_cserve_deployment_deployments_cserve_deployment_id_get_with_http_info( self, deployment_id: StrictInt, _request_timeout: Union[ @@ -3852,7 +3073,7 @@ def get_cserve_deployment_deployments_v2_cserve_deployment_id_get_with_http_info :return: Returns the result object. """ # noqa: E501 - _param = self._get_cserve_deployment_deployments_v2_cserve_deployment_id_get_serialize( + _param = self._get_cserve_deployment_deployments_cserve_deployment_id_get_serialize( deployment_id=deployment_id, _request_auth=_request_auth, _content_type=_content_type, @@ -3876,7 +3097,7 @@ def get_cserve_deployment_deployments_v2_cserve_deployment_id_get_with_http_info @validate_call - def get_cserve_deployment_deployments_v2_cserve_deployment_id_get_without_preload_content( + def get_cserve_deployment_deployments_cserve_deployment_id_get_without_preload_content( self, deployment_id: StrictInt, _request_timeout: Union[ @@ -3919,7 +3140,7 @@ def get_cserve_deployment_deployments_v2_cserve_deployment_id_get_without_preloa :return: Returns the result object. """ # noqa: E501 - _param = self._get_cserve_deployment_deployments_v2_cserve_deployment_id_get_serialize( + _param = self._get_cserve_deployment_deployments_cserve_deployment_id_get_serialize( deployment_id=deployment_id, _request_auth=_request_auth, _content_type=_content_type, @@ -3938,7 +3159,7 @@ def get_cserve_deployment_deployments_v2_cserve_deployment_id_get_without_preloa return response_data.response - def _get_cserve_deployment_deployments_v2_cserve_deployment_id_get_serialize( + def _get_cserve_deployment_deployments_cserve_deployment_id_get_serialize( self, deployment_id, _request_auth, @@ -3986,7 +3207,7 @@ def _get_cserve_deployment_deployments_v2_cserve_deployment_id_get_serialize( return self.api_client.param_serialize( method='GET', - resource_path='/deployments/v2/cserve/{deployment_id}', + resource_path='/deployments/cserve/{deployment_id}', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -4003,7 +3224,7 @@ def _get_cserve_deployment_deployments_v2_cserve_deployment_id_get_serialize( @validate_call - def get_cserve_recipe_deployments_v2_cserve_recipes_get( + def get_cserve_recipe_deployments_cserve_recipes_get( self, model: Optional[StrictStr] = None, cluster_id: Optional[StrictInt] = None, @@ -4049,7 +3270,7 @@ def get_cserve_recipe_deployments_v2_cserve_recipes_get( :return: Returns the result object. """ # noqa: E501 - _param = self._get_cserve_recipe_deployments_v2_cserve_recipes_get_serialize( + _param = self._get_cserve_recipe_deployments_cserve_recipes_get_serialize( model=model, cluster_id=cluster_id, _request_auth=_request_auth, @@ -4074,7 +3295,7 @@ def get_cserve_recipe_deployments_v2_cserve_recipes_get( @validate_call - def get_cserve_recipe_deployments_v2_cserve_recipes_get_with_http_info( + def get_cserve_recipe_deployments_cserve_recipes_get_with_http_info( self, model: Optional[StrictStr] = None, cluster_id: Optional[StrictInt] = None, @@ -4120,7 +3341,7 @@ def get_cserve_recipe_deployments_v2_cserve_recipes_get_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._get_cserve_recipe_deployments_v2_cserve_recipes_get_serialize( + _param = self._get_cserve_recipe_deployments_cserve_recipes_get_serialize( model=model, cluster_id=cluster_id, _request_auth=_request_auth, @@ -4145,7 +3366,7 @@ def get_cserve_recipe_deployments_v2_cserve_recipes_get_with_http_info( @validate_call - def get_cserve_recipe_deployments_v2_cserve_recipes_get_without_preload_content( + def get_cserve_recipe_deployments_cserve_recipes_get_without_preload_content( self, model: Optional[StrictStr] = None, cluster_id: Optional[StrictInt] = None, @@ -4191,7 +3412,7 @@ def get_cserve_recipe_deployments_v2_cserve_recipes_get_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._get_cserve_recipe_deployments_v2_cserve_recipes_get_serialize( + _param = self._get_cserve_recipe_deployments_cserve_recipes_get_serialize( model=model, cluster_id=cluster_id, _request_auth=_request_auth, @@ -4211,7 +3432,7 @@ def get_cserve_recipe_deployments_v2_cserve_recipes_get_without_preload_content( return response_data.response - def _get_cserve_recipe_deployments_v2_cserve_recipes_get_serialize( + def _get_cserve_recipe_deployments_cserve_recipes_get_serialize( self, model, cluster_id, @@ -4266,7 +3487,7 @@ def _get_cserve_recipe_deployments_v2_cserve_recipes_get_serialize( return self.api_client.param_serialize( method='GET', - resource_path='/deployments/v2/cserve/recipes', + resource_path='/deployments/cserve/recipes', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -4595,7 +3816,7 @@ def _get_deployment_logs_deployments_logs_deployment_id_get_serialize( @validate_call - def get_deployment_status_deployments_v2_status_deployment_id_get( + def get_deployment_status_deployments_status_deployment_id_get( self, deployment_id: StrictInt, _request_timeout: Union[ @@ -4610,7 +3831,7 @@ def get_deployment_status_deployments_v2_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, - ) -> DeploymentStatusResponseV2: + ) -> DeploymentStatusResponse: """Get Deployment Status @@ -4638,7 +3859,7 @@ def get_deployment_status_deployments_v2_status_deployment_id_get( :return: Returns the result object. """ # noqa: E501 - _param = self._get_deployment_status_deployments_v2_status_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, @@ -4647,7 +3868,7 @@ def get_deployment_status_deployments_v2_status_deployment_id_get( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "DeploymentStatusResponseV2", + '200': "DeploymentStatusResponse", '422': "HTTPValidationError", } response_data = self.api_client.call_api( @@ -4662,7 +3883,7 @@ def get_deployment_status_deployments_v2_status_deployment_id_get( @validate_call - def get_deployment_status_deployments_v2_status_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[ @@ -4677,7 +3898,7 @@ def get_deployment_status_deployments_v2_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[DeploymentStatusResponseV2]: + ) -> ApiResponse[DeploymentStatusResponse]: """Get Deployment Status @@ -4705,7 +3926,7 @@ def get_deployment_status_deployments_v2_status_deployment_id_get_with_http_info :return: Returns the result object. """ # noqa: E501 - _param = self._get_deployment_status_deployments_v2_status_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, @@ -4714,7 +3935,7 @@ def get_deployment_status_deployments_v2_status_deployment_id_get_with_http_info ) _response_types_map: Dict[str, Optional[str]] = { - '200': "DeploymentStatusResponseV2", + '200': "DeploymentStatusResponse", '422': "HTTPValidationError", } response_data = self.api_client.call_api( @@ -4729,7 +3950,7 @@ def get_deployment_status_deployments_v2_status_deployment_id_get_with_http_info @validate_call - def get_deployment_status_deployments_v2_status_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[ @@ -4772,7 +3993,7 @@ def get_deployment_status_deployments_v2_status_deployment_id_get_without_preloa :return: Returns the result object. """ # noqa: E501 - _param = self._get_deployment_status_deployments_v2_status_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, @@ -4781,7 +4002,7 @@ def get_deployment_status_deployments_v2_status_deployment_id_get_without_preloa ) _response_types_map: Dict[str, Optional[str]] = { - '200': "DeploymentStatusResponseV2", + '200': "DeploymentStatusResponse", '422': "HTTPValidationError", } response_data = self.api_client.call_api( @@ -4791,7 +4012,7 @@ def get_deployment_status_deployments_v2_status_deployment_id_get_without_preloa return response_data.response - def _get_deployment_status_deployments_v2_status_deployment_id_get_serialize( + def _get_deployment_status_deployments_status_deployment_id_get_serialize( self, deployment_id, _request_auth, @@ -4839,7 +4060,7 @@ def _get_deployment_status_deployments_v2_status_deployment_id_get_serialize( return self.api_client.param_serialize( method='GET', - resource_path='/deployments/v2/status/{deployment_id}', + resource_path='/deployments/status/{deployment_id}', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -4856,7 +4077,7 @@ def _get_deployment_status_deployments_v2_status_deployment_id_get_serialize( @validate_call - def get_deployments_deployments_v2_get( + def get_deployments_deployments_get( self, offset: Optional[StrictInt] = None, limit: Optional[StrictInt] = None, @@ -4874,7 +4095,7 @@ def get_deployments_deployments_v2_get( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ListGetDeploymentV2Response: + ) -> ListGetDeploymentResponse: """Get Deployments @@ -4908,7 +4129,7 @@ def get_deployments_deployments_v2_get( :return: Returns the result object. """ # noqa: E501 - _param = self._get_deployments_deployments_v2_get_serialize( + _param = self._get_deployments_deployments_get_serialize( offset=offset, limit=limit, type=type, @@ -4920,7 +4141,7 @@ def get_deployments_deployments_v2_get( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "ListGetDeploymentV2Response", + '200': "ListGetDeploymentResponse", '422': "HTTPValidationError", } response_data = self.api_client.call_api( @@ -4935,7 +4156,7 @@ def get_deployments_deployments_v2_get( @validate_call - def get_deployments_deployments_v2_get_with_http_info( + def get_deployments_deployments_get_with_http_info( self, offset: Optional[StrictInt] = None, limit: Optional[StrictInt] = None, @@ -4953,7 +4174,7 @@ def get_deployments_deployments_v2_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[ListGetDeploymentV2Response]: + ) -> ApiResponse[ListGetDeploymentResponse]: """Get Deployments @@ -4987,7 +4208,7 @@ def get_deployments_deployments_v2_get_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._get_deployments_deployments_v2_get_serialize( + _param = self._get_deployments_deployments_get_serialize( offset=offset, limit=limit, type=type, @@ -4999,7 +4220,7 @@ def get_deployments_deployments_v2_get_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "ListGetDeploymentV2Response", + '200': "ListGetDeploymentResponse", '422': "HTTPValidationError", } response_data = self.api_client.call_api( @@ -5014,7 +4235,7 @@ def get_deployments_deployments_v2_get_with_http_info( @validate_call - def get_deployments_deployments_v2_get_without_preload_content( + def get_deployments_deployments_get_without_preload_content( self, offset: Optional[StrictInt] = None, limit: Optional[StrictInt] = None, @@ -5066,7 +4287,7 @@ def get_deployments_deployments_v2_get_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._get_deployments_deployments_v2_get_serialize( + _param = self._get_deployments_deployments_get_serialize( offset=offset, limit=limit, type=type, @@ -5078,7 +4299,7 @@ def get_deployments_deployments_v2_get_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "ListGetDeploymentV2Response", + '200': "ListGetDeploymentResponse", '422': "HTTPValidationError", } response_data = self.api_client.call_api( @@ -5088,7 +4309,7 @@ def get_deployments_deployments_v2_get_without_preload_content( return response_data.response - def _get_deployments_deployments_v2_get_serialize( + def _get_deployments_deployments_get_serialize( self, offset, limit, @@ -5153,7 +4374,7 @@ def _get_deployments_deployments_v2_get_serialize( return self.api_client.param_serialize( method='GET', - resource_path='/deployments/v2', + resource_path='/deployments', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -5171,249 +4392,6 @@ def _get_deployments_deployments_v2_get_serialize( @validate_call def get_hardware_instances_hardware_instances_get( - 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, - ) -> ListHardwareInstanceResponse: - """Get Hardware Instances - - - :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_hardware_instances_hardware_instances_get_serialize( - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "ListHardwareInstanceResponse", - } - 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_hardware_instances_hardware_instances_get_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[ListHardwareInstanceResponse]: - """Get Hardware Instances - - - :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_hardware_instances_hardware_instances_get_serialize( - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "ListHardwareInstanceResponse", - } - 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_hardware_instances_hardware_instances_get_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: - """Get Hardware Instances - - - :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_hardware_instances_hardware_instances_get_serialize( - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "ListHardwareInstanceResponse", - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - return response_data.response - - - def _get_hardware_instances_hardware_instances_get_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='GET', - resource_path='/hardware-instances', - 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_hardware_instances_hardware_instances_v2_get( self, cluster_id: StrictInt, _request_timeout: Union[ @@ -5456,7 +4434,7 @@ def get_hardware_instances_hardware_instances_v2_get( :return: Returns the result object. """ # noqa: E501 - _param = self._get_hardware_instances_hardware_instances_v2_get_serialize( + _param = self._get_hardware_instances_hardware_instances_get_serialize( cluster_id=cluster_id, _request_auth=_request_auth, _content_type=_content_type, @@ -5480,7 +4458,7 @@ def get_hardware_instances_hardware_instances_v2_get( @validate_call - def get_hardware_instances_hardware_instances_v2_get_with_http_info( + def get_hardware_instances_hardware_instances_get_with_http_info( self, cluster_id: StrictInt, _request_timeout: Union[ @@ -5523,7 +4501,7 @@ def get_hardware_instances_hardware_instances_v2_get_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._get_hardware_instances_hardware_instances_v2_get_serialize( + _param = self._get_hardware_instances_hardware_instances_get_serialize( cluster_id=cluster_id, _request_auth=_request_auth, _content_type=_content_type, @@ -5547,7 +4525,7 @@ def get_hardware_instances_hardware_instances_v2_get_with_http_info( @validate_call - def get_hardware_instances_hardware_instances_v2_get_without_preload_content( + def get_hardware_instances_hardware_instances_get_without_preload_content( self, cluster_id: StrictInt, _request_timeout: Union[ @@ -5590,7 +4568,7 @@ def get_hardware_instances_hardware_instances_v2_get_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._get_hardware_instances_hardware_instances_v2_get_serialize( + _param = self._get_hardware_instances_hardware_instances_get_serialize( cluster_id=cluster_id, _request_auth=_request_auth, _content_type=_content_type, @@ -5609,7 +4587,7 @@ def get_hardware_instances_hardware_instances_v2_get_without_preload_content( return response_data.response - def _get_hardware_instances_hardware_instances_v2_get_serialize( + def _get_hardware_instances_hardware_instances_get_serialize( self, cluster_id, _request_auth, @@ -5659,7 +4637,7 @@ def _get_hardware_instances_hardware_instances_v2_get_serialize( return self.api_client.param_serialize( method='GET', - resource_path='/hardware-instances/v2', + resource_path='/hardware-instances', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -5676,7 +4654,7 @@ def _get_hardware_instances_hardware_instances_v2_get_serialize( @validate_call - def get_inference_deployment_deployments_v2_inference_deployment_id_get( + def get_inference_deployment_deployments_inference_deployment_id_get( self, deployment_id: StrictInt, _request_timeout: Union[ @@ -5691,7 +4669,7 @@ def get_inference_deployment_deployments_v2_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, - ) -> GetInferenceV2DeploymentResponse: + ) -> GetInferenceDeploymentResponse: """Get Inference Deployment @@ -5719,7 +4697,7 @@ def get_inference_deployment_deployments_v2_inference_deployment_id_get( :return: Returns the result object. """ # noqa: E501 - _param = self._get_inference_deployment_deployments_v2_inference_deployment_id_get_serialize( + _param = self._get_inference_deployment_deployments_inference_deployment_id_get_serialize( deployment_id=deployment_id, _request_auth=_request_auth, _content_type=_content_type, @@ -5728,7 +4706,7 @@ def get_inference_deployment_deployments_v2_inference_deployment_id_get( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "GetInferenceV2DeploymentResponse", + '200': "GetInferenceDeploymentResponse", '422': "HTTPValidationError", } response_data = self.api_client.call_api( @@ -5743,7 +4721,7 @@ def get_inference_deployment_deployments_v2_inference_deployment_id_get( @validate_call - def get_inference_deployment_deployments_v2_inference_deployment_id_get_with_http_info( + def get_inference_deployment_deployments_inference_deployment_id_get_with_http_info( self, deployment_id: StrictInt, _request_timeout: Union[ @@ -5758,7 +4736,7 @@ def get_inference_deployment_deployments_v2_inference_deployment_id_get_with_htt _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[GetInferenceV2DeploymentResponse]: + ) -> ApiResponse[GetInferenceDeploymentResponse]: """Get Inference Deployment @@ -5786,7 +4764,7 @@ def get_inference_deployment_deployments_v2_inference_deployment_id_get_with_htt :return: Returns the result object. """ # noqa: E501 - _param = self._get_inference_deployment_deployments_v2_inference_deployment_id_get_serialize( + _param = self._get_inference_deployment_deployments_inference_deployment_id_get_serialize( deployment_id=deployment_id, _request_auth=_request_auth, _content_type=_content_type, @@ -5795,7 +4773,7 @@ def get_inference_deployment_deployments_v2_inference_deployment_id_get_with_htt ) _response_types_map: Dict[str, Optional[str]] = { - '200': "GetInferenceV2DeploymentResponse", + '200': "GetInferenceDeploymentResponse", '422': "HTTPValidationError", } response_data = self.api_client.call_api( @@ -5810,7 +4788,7 @@ def get_inference_deployment_deployments_v2_inference_deployment_id_get_with_htt @validate_call - def get_inference_deployment_deployments_v2_inference_deployment_id_get_without_preload_content( + def get_inference_deployment_deployments_inference_deployment_id_get_without_preload_content( self, deployment_id: StrictInt, _request_timeout: Union[ @@ -5853,7 +4831,7 @@ def get_inference_deployment_deployments_v2_inference_deployment_id_get_without_ :return: Returns the result object. """ # noqa: E501 - _param = self._get_inference_deployment_deployments_v2_inference_deployment_id_get_serialize( + _param = self._get_inference_deployment_deployments_inference_deployment_id_get_serialize( deployment_id=deployment_id, _request_auth=_request_auth, _content_type=_content_type, @@ -5862,7 +4840,7 @@ def get_inference_deployment_deployments_v2_inference_deployment_id_get_without_ ) _response_types_map: Dict[str, Optional[str]] = { - '200': "GetInferenceV2DeploymentResponse", + '200': "GetInferenceDeploymentResponse", '422': "HTTPValidationError", } response_data = self.api_client.call_api( @@ -5872,7 +4850,7 @@ def get_inference_deployment_deployments_v2_inference_deployment_id_get_without_ return response_data.response - def _get_inference_deployment_deployments_v2_inference_deployment_id_get_serialize( + def _get_inference_deployment_deployments_inference_deployment_id_get_serialize( self, deployment_id, _request_auth, @@ -5920,7 +4898,7 @@ def _get_inference_deployment_deployments_v2_inference_deployment_id_get_seriali return self.api_client.param_serialize( method='GET', - resource_path='/deployments/v2/inference/{deployment_id}', + resource_path='/deployments/inference/{deployment_id}', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -5937,8 +4915,10 @@ def _get_inference_deployment_deployments_v2_inference_deployment_id_get_seriali @validate_call - def get_payment_methods_payments_methods_get( + def get_payments_payments_get( self, + limit: Optional[StrictInt] = None, + starting_after: Optional[StrictStr] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -5951,10 +4931,14 @@ def get_payment_methods_payments_methods_get( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ListPaymentMethodResponse: - """Get Payment Methods + ) -> GetPaymentsResponse: + """Get Payments + :param limit: + :type limit: int + :param starting_after: + :type starting_after: 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 @@ -5977,7 +4961,9 @@ def get_payment_methods_payments_methods_get( :return: Returns the result object. """ # noqa: E501 - _param = self._get_payment_methods_payments_methods_get_serialize( + _param = self._get_payments_payments_get_serialize( + limit=limit, + starting_after=starting_after, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -5985,7 +4971,8 @@ def get_payment_methods_payments_methods_get( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "ListPaymentMethodResponse", + '200': "GetPaymentsResponse", + '422': "HTTPValidationError", } response_data = self.api_client.call_api( *_param, @@ -5999,8 +4986,10 @@ def get_payment_methods_payments_methods_get( @validate_call - def get_payment_methods_payments_methods_get_with_http_info( + def get_payments_payments_get_with_http_info( self, + limit: Optional[StrictInt] = None, + starting_after: Optional[StrictStr] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -6013,10 +5002,14 @@ def get_payment_methods_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[ListPaymentMethodResponse]: - """Get Payment Methods + ) -> ApiResponse[GetPaymentsResponse]: + """Get Payments + :param limit: + :type limit: int + :param starting_after: + :type starting_after: 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 @@ -6039,7 +5032,9 @@ def get_payment_methods_payments_methods_get_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._get_payment_methods_payments_methods_get_serialize( + _param = self._get_payments_payments_get_serialize( + limit=limit, + starting_after=starting_after, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -6047,7 +5042,8 @@ def get_payment_methods_payments_methods_get_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "ListPaymentMethodResponse", + '200': "GetPaymentsResponse", + '422': "HTTPValidationError", } response_data = self.api_client.call_api( *_param, @@ -6061,8 +5057,10 @@ def get_payment_methods_payments_methods_get_with_http_info( @validate_call - def get_payment_methods_payments_methods_get_without_preload_content( + def get_payments_payments_get_without_preload_content( self, + limit: Optional[StrictInt] = None, + starting_after: Optional[StrictStr] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -6076,9 +5074,13 @@ def get_payment_methods_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 Methods + """Get Payments + :param limit: + :type limit: int + :param starting_after: + :type starting_after: 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 @@ -6101,7 +5103,9 @@ def get_payment_methods_payments_methods_get_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._get_payment_methods_payments_methods_get_serialize( + _param = self._get_payments_payments_get_serialize( + limit=limit, + starting_after=starting_after, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -6109,7 +5113,8 @@ def get_payment_methods_payments_methods_get_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "ListPaymentMethodResponse", + '200': "GetPaymentsResponse", + '422': "HTTPValidationError", } response_data = self.api_client.call_api( *_param, @@ -6118,8 +5123,10 @@ def get_payment_methods_payments_methods_get_without_preload_content( return response_data.response - def _get_payment_methods_payments_methods_get_serialize( + def _get_payments_payments_get_serialize( self, + limit, + starting_after, _request_auth, _content_type, _headers, @@ -6142,6 +5149,14 @@ def _get_payment_methods_payments_methods_get_serialize( # process the path parameters # process the query parameters + if limit is not None: + + _query_params.append(('limit', limit)) + + if starting_after is not None: + + _query_params.append(('starting_after', starting_after)) + # process the header parameters # process the form parameters # process the body parameter @@ -6163,7 +5178,7 @@ def _get_payment_methods_payments_methods_get_serialize( return self.api_client.param_serialize( method='GET', - resource_path='/payments/methods', + resource_path='/payments', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -7053,7 +6068,250 @@ def _get_usage_deployments_usage_deployment_id_get_serialize( @validate_call - def update_deployment_status_deployments_v2_status_deployment_id_put( + 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_deployment_status_deployments_status_deployment_id_put( self, deployment_id: StrictInt, deployment_status_request: DeploymentStatusRequest, @@ -7069,7 +6327,7 @@ def update_deployment_status_deployments_v2_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, - ) -> DeploymentStatusResponseV2: + ) -> DeploymentStatusResponse: """Update Deployment Status @@ -7099,7 +6357,7 @@ def update_deployment_status_deployments_v2_status_deployment_id_put( :return: Returns the result object. """ # noqa: E501 - _param = self._update_deployment_status_deployments_v2_status_deployment_id_put_serialize( + _param = self._update_deployment_status_deployments_status_deployment_id_put_serialize( deployment_id=deployment_id, deployment_status_request=deployment_status_request, _request_auth=_request_auth, @@ -7109,7 +6367,7 @@ def update_deployment_status_deployments_v2_status_deployment_id_put( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "DeploymentStatusResponseV2", + '200': "DeploymentStatusResponse", '422': "HTTPValidationError", } response_data = self.api_client.call_api( @@ -7124,7 +6382,7 @@ def update_deployment_status_deployments_v2_status_deployment_id_put( @validate_call - def update_deployment_status_deployments_v2_status_deployment_id_put_with_http_info( + def update_deployment_status_deployments_status_deployment_id_put_with_http_info( self, deployment_id: StrictInt, deployment_status_request: DeploymentStatusRequest, @@ -7140,7 +6398,7 @@ def update_deployment_status_deployments_v2_status_deployment_id_put_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[DeploymentStatusResponseV2]: + ) -> ApiResponse[DeploymentStatusResponse]: """Update Deployment Status @@ -7170,7 +6428,7 @@ def update_deployment_status_deployments_v2_status_deployment_id_put_with_http_i :return: Returns the result object. """ # noqa: E501 - _param = self._update_deployment_status_deployments_v2_status_deployment_id_put_serialize( + _param = self._update_deployment_status_deployments_status_deployment_id_put_serialize( deployment_id=deployment_id, deployment_status_request=deployment_status_request, _request_auth=_request_auth, @@ -7180,7 +6438,7 @@ def update_deployment_status_deployments_v2_status_deployment_id_put_with_http_i ) _response_types_map: Dict[str, Optional[str]] = { - '200': "DeploymentStatusResponseV2", + '200': "DeploymentStatusResponse", '422': "HTTPValidationError", } response_data = self.api_client.call_api( @@ -7195,7 +6453,7 @@ def update_deployment_status_deployments_v2_status_deployment_id_put_with_http_i @validate_call - def update_deployment_status_deployments_v2_status_deployment_id_put_without_preload_content( + def update_deployment_status_deployments_status_deployment_id_put_without_preload_content( self, deployment_id: StrictInt, deployment_status_request: DeploymentStatusRequest, @@ -7241,7 +6499,7 @@ def update_deployment_status_deployments_v2_status_deployment_id_put_without_pre :return: Returns the result object. """ # noqa: E501 - _param = self._update_deployment_status_deployments_v2_status_deployment_id_put_serialize( + _param = self._update_deployment_status_deployments_status_deployment_id_put_serialize( deployment_id=deployment_id, deployment_status_request=deployment_status_request, _request_auth=_request_auth, @@ -7251,7 +6509,7 @@ def update_deployment_status_deployments_v2_status_deployment_id_put_without_pre ) _response_types_map: Dict[str, Optional[str]] = { - '200': "DeploymentStatusResponseV2", + '200': "DeploymentStatusResponse", '422': "HTTPValidationError", } response_data = self.api_client.call_api( @@ -7261,7 +6519,7 @@ def update_deployment_status_deployments_v2_status_deployment_id_put_without_pre return response_data.response - def _update_deployment_status_deployments_v2_status_deployment_id_put_serialize( + def _update_deployment_status_deployments_status_deployment_id_put_serialize( self, deployment_id, deployment_status_request, @@ -7325,7 +6583,7 @@ def _update_deployment_status_deployments_v2_status_deployment_id_put_serialize( return self.api_client.param_serialize( method='PUT', - resource_path='/deployments/v2/status/{deployment_id}', + resource_path='/deployments/status/{deployment_id}', 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_external_client/api_client.py similarity index 98% rename from platform_api_python_client/api_client.py rename to platform_api_external_client/api_client.py index 4f02804..bb9ffde 100644 --- a/platform_api_python_client/api_client.py +++ b/platform_api_external_client/api_client.py @@ -26,11 +26,11 @@ from typing import Tuple, Optional, List, Dict, Union from pydantic import SecretStr -from platform_api_python_client.configuration import Configuration -from platform_api_python_client.api_response import ApiResponse, T as ApiResponseT -import platform_api_python_client.models -from platform_api_python_client import rest -from platform_api_python_client.exceptions import ( +from platform_api_external_client.configuration import Configuration +from platform_api_external_client.api_response import ApiResponse, T as ApiResponseT +import platform_api_external_client.models +from platform_api_external_client import rest +from platform_api_external_client.exceptions import ( ApiValueError, ApiException, BadRequestException, @@ -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/0.2.0/python' + self.user_agent = 'OpenAPI-Generator/1.0.0/python' self.client_side_validation = configuration.client_side_validation def __enter__(self): @@ -449,7 +449,7 @@ def __deserialize(self, data, klass): if klass in self.NATIVE_TYPES_MAPPING: klass = self.NATIVE_TYPES_MAPPING[klass] else: - klass = getattr(platform_api_python_client.models, klass) + klass = getattr(platform_api_external_client.models, klass) if klass in self.PRIMITIVE_TYPES: return self.__deserialize_primitive(data, klass) diff --git a/platform_api_python_client/api_response.py b/platform_api_external_client/api_response.py similarity index 100% rename from platform_api_python_client/api_response.py rename to platform_api_external_client/api_response.py diff --git a/platform_api_python_client/configuration.py b/platform_api_external_client/configuration.py similarity index 99% rename from platform_api_python_client/configuration.py rename to platform_api_external_client/configuration.py index b2696b4..12abe5f 100644 --- a/platform_api_python_client/configuration.py +++ b/platform_api_external_client/configuration.py @@ -121,7 +121,7 @@ def __init__(self, host=None, self.logger = {} """Logging Settings """ - self.logger["package_logger"] = logging.getLogger("platform_api_python_client") + self.logger["package_logger"] = logging.getLogger("platform_api_external_client") self.logger["urllib3_logger"] = logging.getLogger("urllib3") self.logger_format = '%(asctime)s %(levelname)s %(message)s' """Log format @@ -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: 0.2.0".\ + "SDK Package Version: 1.0.0".\ format(env=sys.platform, pyversion=sys.version) def get_host_settings(self): diff --git a/platform_api_python_client/exceptions.py b/platform_api_external_client/exceptions.py similarity index 100% rename from platform_api_python_client/exceptions.py rename to platform_api_external_client/exceptions.py diff --git a/platform_api_external_client/models/__init__.py b/platform_api_external_client/models/__init__.py new file mode 100644 index 0000000..c6de543 --- /dev/null +++ b/platform_api_external_client/models/__init__.py @@ -0,0 +1,60 @@ +# coding: utf-8 + +# flake8: noqa +""" + 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 models into model package +from platform_api_external_client.models.api_key_request import APIKeyRequest +from platform_api_external_client.models.api_key_response import APIKeyResponse +from platform_api_external_client.models.c_serve_recipe_input import CServeRecipeInput +from platform_api_external_client.models.c_serve_recipe_output import CServeRecipeOutput +from platform_api_external_client.models.c_serve_recipe_perf import CServeRecipePerf +from platform_api_external_client.models.c_serve_recipe_response import CServeRecipeResponse +from platform_api_external_client.models.create_c_serve_deployment_request import CreateCServeDeploymentRequest +from platform_api_external_client.models.create_c_serve_deployment_response import CreateCServeDeploymentResponse +from platform_api_external_client.models.create_checkout_request import CreateCheckoutRequest +from platform_api_external_client.models.create_checkout_response import CreateCheckoutResponse +from platform_api_external_client.models.create_compute_deployment_request import CreateComputeDeploymentRequest +from platform_api_external_client.models.create_compute_deployment_response import CreateComputeDeploymentResponse +from platform_api_external_client.models.create_inference_deployment_request import CreateInferenceDeploymentRequest +from platform_api_external_client.models.create_inference_deployment_response import CreateInferenceDeploymentResponse +from platform_api_external_client.models.credits_response import CreditsResponse +from platform_api_external_client.models.daily_bill_response import DailyBillResponse +from platform_api_external_client.models.deployment_status import DeploymentStatus +from platform_api_external_client.models.deployment_status_request import DeploymentStatusRequest +from platform_api_external_client.models.deployment_status_response import DeploymentStatusResponse +from platform_api_external_client.models.deployment_type import DeploymentType +from platform_api_external_client.models.deployment_usage_value import DeploymentUsageValue +from platform_api_external_client.models.get_c_serve_deployment_response import GetCServeDeploymentResponse +from platform_api_external_client.models.get_cluster_response import GetClusterResponse +from platform_api_external_client.models.get_compute_deployment_response import GetComputeDeploymentResponse +from platform_api_external_client.models.get_deployment_log_response import GetDeploymentLogResponse +from platform_api_external_client.models.get_deployment_response import GetDeploymentResponse +from platform_api_external_client.models.get_deployment_usage_response import GetDeploymentUsageResponse +from platform_api_external_client.models.get_inference_deployment_response import GetInferenceDeploymentResponse +from platform_api_external_client.models.get_payments_response import GetPaymentsResponse +from platform_api_external_client.models.http_validation_error import HTTPValidationError +from platform_api_external_client.models.hardware_instance_response import HardwareInstanceResponse +from platform_api_external_client.models.list_api_key_response import ListAPIKeyResponse +from platform_api_external_client.models.list_c_serve_recipe_response import ListCServeRecipeResponse +from platform_api_external_client.models.list_daily_bill_response import ListDailyBillResponse +from platform_api_external_client.models.list_get_cluster_response import ListGetClusterResponse +from platform_api_external_client.models.list_get_deployment_response import ListGetDeploymentResponse +from platform_api_external_client.models.list_hardware_instance_response import ListHardwareInstanceResponse +from platform_api_external_client.models.list_prebuilt_image_response import ListPrebuiltImageResponse +from platform_api_external_client.models.metric import Metric +from platform_api_external_client.models.prebuilt_image_response import PrebuiltImageResponse +from platform_api_external_client.models.service_status import ServiceStatus +from platform_api_external_client.models.user_support_email_request import UserSupportEmailRequest +from platform_api_external_client.models.validation_error import ValidationError +from platform_api_external_client.models.validation_error_loc_inner import ValidationErrorLocInner diff --git a/platform_api_python_client/models/api_key_request.py b/platform_api_external_client/models/api_key_request.py similarity index 100% rename from platform_api_python_client/models/api_key_request.py rename to platform_api_external_client/models/api_key_request.py diff --git a/platform_api_python_client/models/api_key_response.py b/platform_api_external_client/models/api_key_response.py similarity index 100% rename from platform_api_python_client/models/api_key_response.py rename to platform_api_external_client/models/api_key_response.py diff --git a/platform_api_python_client/models/c_serve_recipe_input.py b/platform_api_external_client/models/c_serve_recipe_input.py similarity index 100% rename from platform_api_python_client/models/c_serve_recipe_input.py rename to platform_api_external_client/models/c_serve_recipe_input.py diff --git a/platform_api_python_client/models/c_serve_recipe_output.py b/platform_api_external_client/models/c_serve_recipe_output.py similarity index 100% rename from platform_api_python_client/models/c_serve_recipe_output.py rename to platform_api_external_client/models/c_serve_recipe_output.py diff --git a/platform_api_python_client/models/c_serve_recipe_perf.py b/platform_api_external_client/models/c_serve_recipe_perf.py similarity index 97% rename from platform_api_python_client/models/c_serve_recipe_perf.py rename to platform_api_external_client/models/c_serve_recipe_perf.py index d2fb693..ba56dec 100644 --- a/platform_api_python_client/models/c_serve_recipe_perf.py +++ b/platform_api_external_client/models/c_serve_recipe_perf.py @@ -20,7 +20,7 @@ from pydantic import BaseModel, ConfigDict, Field, StrictInt from typing import Any, ClassVar, Dict, List from typing_extensions import Annotated -from platform_api_python_client.models.c_serve_recipe_output import CServeRecipeOutput +from platform_api_external_client.models.c_serve_recipe_output import CServeRecipeOutput from typing import Optional, Set from typing_extensions import Self diff --git a/platform_api_python_client/models/c_serve_recipe_response.py b/platform_api_external_client/models/c_serve_recipe_response.py similarity index 97% rename from platform_api_python_client/models/c_serve_recipe_response.py rename to platform_api_external_client/models/c_serve_recipe_response.py index 64882ce..11b7030 100644 --- a/platform_api_python_client/models/c_serve_recipe_response.py +++ b/platform_api_external_client/models/c_serve_recipe_response.py @@ -19,7 +19,7 @@ from pydantic import BaseModel, ConfigDict, StrictInt, StrictStr from typing import Any, ClassVar, Dict, List -from platform_api_python_client.models.c_serve_recipe_perf import CServeRecipePerf +from platform_api_external_client.models.c_serve_recipe_perf import CServeRecipePerf from typing import Optional, Set from typing_extensions import Self diff --git a/platform_api_python_client/models/create_c_serve_deployment_request.py b/platform_api_external_client/models/create_c_serve_deployment_request.py similarity index 89% rename from platform_api_python_client/models/create_c_serve_deployment_request.py rename to platform_api_external_client/models/create_c_serve_deployment_request.py index b33cf14..74e79e5 100644 --- a/platform_api_python_client/models/create_c_serve_deployment_request.py +++ b/platform_api_external_client/models/create_c_serve_deployment_request.py @@ -17,9 +17,10 @@ import re # noqa: F401 import json -from pydantic import BaseModel, ConfigDict, StrictInt, StrictStr +from pydantic import BaseModel, ConfigDict, Field, StrictInt, StrictStr from typing import Any, ClassVar, Dict, List, Optional -from platform_api_python_client.models.c_serve_recipe_input import CServeRecipeInput +from typing_extensions import Annotated +from platform_api_external_client.models.c_serve_recipe_input import CServeRecipeInput from typing import Optional, Set from typing_extensions import Self @@ -27,7 +28,7 @@ class CreateCServeDeploymentRequest(BaseModel): """ CreateCServeDeploymentRequest """ # noqa: E501 - name: StrictStr + name: Annotated[str, Field(strict=True, max_length=12)] cluster_id: StrictInt hardware_instance_id: StrictInt recipe: CServeRecipeInput @@ -36,7 +37,8 @@ class CreateCServeDeploymentRequest(BaseModel): min_scale: StrictInt max_scale: StrictInt concurrency: Optional[StrictInt] = None - __properties: ClassVar[List[str]] = ["name", "cluster_id", "hardware_instance_id", "recipe", "hf_token", "endpoint_certificate_authority", "min_scale", "max_scale", "concurrency"] + env_vars: Optional[Dict[str, StrictStr]] = None + __properties: ClassVar[List[str]] = ["name", "cluster_id", "hardware_instance_id", "recipe", "hf_token", "endpoint_certificate_authority", "min_scale", "max_scale", "concurrency", "env_vars"] model_config = ConfigDict( populate_by_name=True, @@ -110,7 +112,8 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "endpoint_certificate_authority": obj.get("endpoint_certificate_authority"), "min_scale": obj.get("min_scale"), "max_scale": obj.get("max_scale"), - "concurrency": obj.get("concurrency") + "concurrency": obj.get("concurrency"), + "env_vars": obj.get("env_vars") }) return _obj diff --git a/platform_api_python_client/models/create_c_serve_deployment_response.py b/platform_api_external_client/models/create_c_serve_deployment_response.py similarity index 100% rename from platform_api_python_client/models/create_c_serve_deployment_response.py rename to platform_api_external_client/models/create_c_serve_deployment_response.py diff --git a/platform_api_python_client/models/create_payment_request.py b/platform_api_external_client/models/create_checkout_request.py similarity index 83% rename from platform_api_python_client/models/create_payment_request.py rename to platform_api_external_client/models/create_checkout_request.py index 1d3457d..c3ecdce 100644 --- a/platform_api_python_client/models/create_payment_request.py +++ b/platform_api_external_client/models/create_checkout_request.py @@ -22,13 +22,13 @@ from typing import Optional, Set from typing_extensions import Self -class CreatePaymentRequest(BaseModel): +class CreateCheckoutRequest(BaseModel): """ - CreatePaymentRequest + CreateCheckoutRequest """ # noqa: E501 - amount: StrictInt - payment_method: StrictStr - __properties: ClassVar[List[str]] = ["amount", "payment_method"] + amount_credits: StrictInt + success_url: StrictStr + __properties: ClassVar[List[str]] = ["amount_credits", "success_url"] model_config = ConfigDict( populate_by_name=True, @@ -48,7 +48,7 @@ def to_json(self) -> str: @classmethod def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of CreatePaymentRequest from a JSON string""" + """Create an instance of CreateCheckoutRequest from a JSON string""" return cls.from_dict(json.loads(json_str)) def to_dict(self) -> Dict[str, Any]: @@ -73,7 +73,7 @@ def to_dict(self) -> Dict[str, Any]: @classmethod def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of CreatePaymentRequest from a dict""" + """Create an instance of CreateCheckoutRequest from a dict""" if obj is None: return None @@ -81,8 +81,8 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: return cls.model_validate(obj) _obj = cls.model_validate({ - "amount": obj.get("amount"), - "payment_method": obj.get("payment_method") + "amount_credits": obj.get("amount_credits"), + "success_url": obj.get("success_url") }) return _obj diff --git a/platform_api_python_client/models/add_hardware_request.py b/platform_api_external_client/models/create_checkout_response.py similarity index 87% rename from platform_api_python_client/models/add_hardware_request.py rename to platform_api_external_client/models/create_checkout_response.py index c0a52b3..49e270a 100644 --- a/platform_api_python_client/models/add_hardware_request.py +++ b/platform_api_external_client/models/create_checkout_response.py @@ -22,12 +22,12 @@ from typing import Optional, Set from typing_extensions import Self -class AddHardwareRequest(BaseModel): +class CreateCheckoutResponse(BaseModel): """ - AddHardwareRequest + CreateCheckoutResponse """ # noqa: E501 - message: StrictStr - __properties: ClassVar[List[str]] = ["message"] + url: StrictStr + __properties: ClassVar[List[str]] = ["url"] model_config = ConfigDict( populate_by_name=True, @@ -47,7 +47,7 @@ def to_json(self) -> str: @classmethod def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of AddHardwareRequest from a JSON string""" + """Create an instance of CreateCheckoutResponse from a JSON string""" return cls.from_dict(json.loads(json_str)) def to_dict(self) -> Dict[str, Any]: @@ -72,7 +72,7 @@ def to_dict(self) -> Dict[str, Any]: @classmethod def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of AddHardwareRequest from a dict""" + """Create an instance of CreateCheckoutResponse from a dict""" if obj is None: return None @@ -80,7 +80,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: return cls.model_validate(obj) _obj = cls.model_validate({ - "message": obj.get("message") + "url": obj.get("url") }) return _obj diff --git a/platform_api_python_client/models/create_compute_deployment_v2_request.py b/platform_api_external_client/models/create_compute_deployment_request.py similarity index 88% rename from platform_api_python_client/models/create_compute_deployment_v2_request.py rename to platform_api_external_client/models/create_compute_deployment_request.py index 7e5282e..f177d01 100644 --- a/platform_api_python_client/models/create_compute_deployment_v2_request.py +++ b/platform_api_external_client/models/create_compute_deployment_request.py @@ -17,16 +17,17 @@ import re # noqa: F401 import json -from pydantic import BaseModel, ConfigDict, StrictInt, StrictStr +from pydantic import BaseModel, ConfigDict, Field, StrictInt, StrictStr from typing import Any, ClassVar, Dict, List, Optional +from typing_extensions import Annotated from typing import Optional, Set from typing_extensions import Self -class CreateComputeDeploymentV2Request(BaseModel): +class CreateComputeDeploymentRequest(BaseModel): """ - CreateComputeDeploymentV2Request + CreateComputeDeploymentRequest """ # noqa: E501 - name: StrictStr + name: Annotated[str, Field(strict=True, max_length=12)] cluster_id: StrictInt hardware_instance_id: StrictInt image_url: StrictStr @@ -52,7 +53,7 @@ def to_json(self) -> str: @classmethod def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of CreateComputeDeploymentV2Request from a JSON string""" + """Create an instance of CreateComputeDeploymentRequest from a JSON string""" return cls.from_dict(json.loads(json_str)) def to_dict(self) -> Dict[str, Any]: @@ -87,7 +88,7 @@ def to_dict(self) -> Dict[str, Any]: @classmethod def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of CreateComputeDeploymentV2Request from a dict""" + """Create an instance of CreateComputeDeploymentRequest from a dict""" if obj is None: return None diff --git a/platform_api_python_client/models/create_compute_deployment_response.py b/platform_api_external_client/models/create_compute_deployment_response.py similarity index 100% rename from platform_api_python_client/models/create_compute_deployment_response.py rename to platform_api_external_client/models/create_compute_deployment_response.py diff --git a/platform_api_python_client/models/create_inference_deployment_v2_request.py b/platform_api_external_client/models/create_inference_deployment_request.py similarity index 91% rename from platform_api_python_client/models/create_inference_deployment_v2_request.py rename to platform_api_external_client/models/create_inference_deployment_request.py index 689de16..d2ac903 100644 --- a/platform_api_python_client/models/create_inference_deployment_v2_request.py +++ b/platform_api_external_client/models/create_inference_deployment_request.py @@ -17,16 +17,17 @@ import re # noqa: F401 import json -from pydantic import BaseModel, ConfigDict, StrictInt, StrictStr +from pydantic import BaseModel, ConfigDict, Field, StrictInt, StrictStr from typing import Any, ClassVar, Dict, List, Optional +from typing_extensions import Annotated from typing import Optional, Set from typing_extensions import Self -class CreateInferenceDeploymentV2Request(BaseModel): +class CreateInferenceDeploymentRequest(BaseModel): """ - CreateInferenceDeploymentV2Request + CreateInferenceDeploymentRequest """ # noqa: E501 - name: StrictStr + name: Annotated[str, Field(strict=True, max_length=12)] cluster_id: StrictInt hardware_instance_id: StrictInt image_url: StrictStr @@ -59,7 +60,7 @@ def to_json(self) -> str: @classmethod def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of CreateInferenceDeploymentV2Request from a JSON string""" + """Create an instance of CreateInferenceDeploymentRequest from a JSON string""" return cls.from_dict(json.loads(json_str)) def to_dict(self) -> Dict[str, Any]: @@ -114,7 +115,7 @@ def to_dict(self) -> Dict[str, Any]: @classmethod def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of CreateInferenceDeploymentV2Request from a dict""" + """Create an instance of CreateInferenceDeploymentRequest from a dict""" if obj is None: return None diff --git a/platform_api_python_client/models/create_inference_deployment_response.py b/platform_api_external_client/models/create_inference_deployment_response.py similarity index 100% rename from platform_api_python_client/models/create_inference_deployment_response.py rename to platform_api_external_client/models/create_inference_deployment_response.py diff --git a/platform_api_python_client/models/credits_response.py b/platform_api_external_client/models/credits_response.py similarity index 93% rename from platform_api_python_client/models/credits_response.py rename to platform_api_external_client/models/credits_response.py index 226055b..39456fa 100644 --- a/platform_api_python_client/models/credits_response.py +++ b/platform_api_external_client/models/credits_response.py @@ -17,8 +17,8 @@ import re # noqa: F401 import json -from pydantic import BaseModel, ConfigDict, StrictInt -from typing import Any, ClassVar, Dict, List +from pydantic import BaseModel, ConfigDict, StrictFloat, StrictInt +from typing import Any, ClassVar, Dict, List, Union from typing import Optional, Set from typing_extensions import Self @@ -26,7 +26,7 @@ class CreditsResponse(BaseModel): """ CreditsResponse """ # noqa: E501 - credits: StrictInt + credits: Union[StrictFloat, StrictInt] __properties: ClassVar[List[str]] = ["credits"] model_config = ConfigDict( diff --git a/platform_api_python_client/models/daily_bill_response.py b/platform_api_external_client/models/daily_bill_response.py similarity index 93% rename from platform_api_python_client/models/daily_bill_response.py rename to platform_api_external_client/models/daily_bill_response.py index 9850305..c3664e4 100644 --- a/platform_api_python_client/models/daily_bill_response.py +++ b/platform_api_external_client/models/daily_bill_response.py @@ -18,8 +18,8 @@ import json from datetime import date -from pydantic import BaseModel, ConfigDict, Field, StrictInt -from typing import Any, ClassVar, Dict, List +from pydantic import BaseModel, ConfigDict, Field, StrictFloat, StrictInt +from typing import Any, ClassVar, Dict, List, Union from typing import Optional, Set from typing_extensions import Self @@ -28,7 +28,7 @@ class DailyBillResponse(BaseModel): DailyBillResponse """ # noqa: E501 var_date: date = Field(alias="date") - credits: StrictInt + credits: Union[StrictFloat, StrictInt] __properties: ClassVar[List[str]] = ["date", "credits"] model_config = ConfigDict( diff --git a/platform_api_python_client/models/deployment_status.py b/platform_api_external_client/models/deployment_status.py similarity index 100% rename from platform_api_python_client/models/deployment_status.py rename to platform_api_external_client/models/deployment_status.py diff --git a/platform_api_python_client/models/deployment_status_request.py b/platform_api_external_client/models/deployment_status_request.py similarity index 96% rename from platform_api_python_client/models/deployment_status_request.py rename to platform_api_external_client/models/deployment_status_request.py index c93eeb2..9e0285e 100644 --- a/platform_api_python_client/models/deployment_status_request.py +++ b/platform_api_external_client/models/deployment_status_request.py @@ -19,7 +19,7 @@ from pydantic import BaseModel, ConfigDict from typing import Any, ClassVar, Dict, List -from platform_api_python_client.models.deployment_status import DeploymentStatus +from platform_api_external_client.models.deployment_status import DeploymentStatus from typing import Optional, Set from typing_extensions import Self diff --git a/platform_api_python_client/models/deployment_status_response_v2.py b/platform_api_external_client/models/deployment_status_response.py similarity index 87% rename from platform_api_python_client/models/deployment_status_response_v2.py rename to platform_api_external_client/models/deployment_status_response.py index 4bfdd65..8463727 100644 --- a/platform_api_python_client/models/deployment_status_response_v2.py +++ b/platform_api_external_client/models/deployment_status_response.py @@ -19,20 +19,20 @@ 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 platform_api_python_client.models.health_status import HealthStatus +from platform_api_external_client.models.deployment_status import DeploymentStatus +from platform_api_external_client.models.deployment_type import DeploymentType +from platform_api_external_client.models.service_status import ServiceStatus from typing import Optional, Set from typing_extensions import Self -class DeploymentStatusResponseV2(BaseModel): +class DeploymentStatusResponse(BaseModel): """ - DeploymentStatusResponseV2 + DeploymentStatusResponse """ # noqa: E501 id: StrictInt type: DeploymentType status: DeploymentStatus - service_status: Optional[HealthStatus] + service_status: Optional[ServiceStatus] error_message: Optional[StrictStr] endpoint_url: Optional[StrictStr] __properties: ClassVar[List[str]] = ["id", "type", "status", "service_status", "error_message", "endpoint_url"] @@ -55,7 +55,7 @@ def to_json(self) -> str: @classmethod def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of DeploymentStatusResponseV2 from a JSON string""" + """Create an instance of DeploymentStatusResponse from a JSON string""" return cls.from_dict(json.loads(json_str)) def to_dict(self) -> Dict[str, Any]: @@ -95,7 +95,7 @@ def to_dict(self) -> Dict[str, Any]: @classmethod def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of DeploymentStatusResponseV2 from a dict""" + """Create an instance of DeploymentStatusResponse from a dict""" if obj is None: return None diff --git a/platform_api_python_client/models/deployment_type.py b/platform_api_external_client/models/deployment_type.py similarity index 100% rename from platform_api_python_client/models/deployment_type.py rename to platform_api_external_client/models/deployment_type.py diff --git a/platform_api_python_client/models/deployment_usage_value.py b/platform_api_external_client/models/deployment_usage_value.py similarity index 100% rename from platform_api_python_client/models/deployment_usage_value.py rename to platform_api_external_client/models/deployment_usage_value.py diff --git a/platform_api_python_client/models/get_c_serve_deployment_response.py b/platform_api_external_client/models/get_c_serve_deployment_response.py similarity index 96% rename from platform_api_python_client/models/get_c_serve_deployment_response.py rename to platform_api_external_client/models/get_c_serve_deployment_response.py index 7468a48..3202d3b 100644 --- a/platform_api_python_client/models/get_c_serve_deployment_response.py +++ b/platform_api_external_client/models/get_c_serve_deployment_response.py @@ -21,8 +21,8 @@ from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictInt, StrictStr from typing import Any, ClassVar, Dict, List, Optional, Union from typing_extensions import Annotated -from platform_api_python_client.models.deployment_status import DeploymentStatus -from platform_api_python_client.models.deployment_type import DeploymentType +from platform_api_external_client.models.deployment_status import DeploymentStatus +from platform_api_external_client.models.deployment_type import DeploymentType from typing import Optional, Set from typing_extensions import Self @@ -63,7 +63,8 @@ class GetCServeDeploymentResponse(BaseModel): max_scale: StrictInt endpoint_certificate_authority: Optional[StrictStr] concurrency: Optional[StrictInt] - __properties: ClassVar[List[str]] = ["model", "is_embedding_model", "tensor_parallel_size", "pipeline_parallel_size", "block_size", "swap_space", "gpu_mem_util", "max_num_seqs", "use_prefix_caching", "offloading_num", "use_flashinfer", "max_model_len", "dtype", "tokenizer", "spec_proposer", "spec_draft_model", "spec_tokens", "spec_prompt_lookup_min", "spec_prompt_lookup_max", "seed", "cluster_id", "id", "name", "endpoint_url", "image_url", "type", "status", "created_at", "hardware_instance_id", "min_scale", "max_scale", "endpoint_certificate_authority", "concurrency"] + env_vars: Dict[str, StrictStr] + __properties: ClassVar[List[str]] = ["model", "is_embedding_model", "tensor_parallel_size", "pipeline_parallel_size", "block_size", "swap_space", "gpu_mem_util", "max_num_seqs", "use_prefix_caching", "offloading_num", "use_flashinfer", "max_model_len", "dtype", "tokenizer", "spec_proposer", "spec_draft_model", "spec_tokens", "spec_prompt_lookup_min", "spec_prompt_lookup_max", "seed", "cluster_id", "id", "name", "endpoint_url", "image_url", "type", "status", "created_at", "hardware_instance_id", "min_scale", "max_scale", "endpoint_certificate_authority", "concurrency", "env_vars"] model_config = ConfigDict( populate_by_name=True, @@ -203,7 +204,8 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "min_scale": obj.get("min_scale"), "max_scale": obj.get("max_scale"), "endpoint_certificate_authority": obj.get("endpoint_certificate_authority"), - "concurrency": obj.get("concurrency") + "concurrency": obj.get("concurrency"), + "env_vars": obj.get("env_vars") }) return _obj diff --git a/platform_api_python_client/models/get_cluster_response.py b/platform_api_external_client/models/get_cluster_response.py similarity index 100% rename from platform_api_python_client/models/get_cluster_response.py rename to platform_api_external_client/models/get_cluster_response.py diff --git a/platform_api_python_client/models/get_compute_v2_deployment_response.py b/platform_api_external_client/models/get_compute_deployment_response.py similarity index 91% rename from platform_api_python_client/models/get_compute_v2_deployment_response.py rename to platform_api_external_client/models/get_compute_deployment_response.py index 59d201a..7395802 100644 --- a/platform_api_python_client/models/get_compute_v2_deployment_response.py +++ b/platform_api_external_client/models/get_compute_deployment_response.py @@ -20,14 +20,14 @@ 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 platform_api_external_client.models.deployment_status import DeploymentStatus +from platform_api_external_client.models.deployment_type import DeploymentType from typing import Optional, Set from typing_extensions import Self -class GetComputeV2DeploymentResponse(BaseModel): +class GetComputeDeploymentResponse(BaseModel): """ - GetComputeV2DeploymentResponse + GetComputeDeploymentResponse """ # noqa: E501 cluster_id: StrictInt id: StrictInt @@ -62,7 +62,7 @@ def to_json(self) -> str: @classmethod def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of GetComputeV2DeploymentResponse from a JSON string""" + """Create an instance of GetComputeDeploymentResponse from a JSON string""" return cls.from_dict(json.loads(json_str)) def to_dict(self) -> Dict[str, Any]: @@ -107,7 +107,7 @@ def to_dict(self) -> Dict[str, Any]: @classmethod def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of GetComputeV2DeploymentResponse from a dict""" + """Create an instance of GetComputeDeploymentResponse from a dict""" if obj is None: return None diff --git a/platform_api_python_client/models/get_deployment_log_response.py b/platform_api_external_client/models/get_deployment_log_response.py similarity index 100% rename from platform_api_python_client/models/get_deployment_log_response.py rename to platform_api_external_client/models/get_deployment_log_response.py diff --git a/platform_api_python_client/models/get_deployment_v2_response.py b/platform_api_external_client/models/get_deployment_response.py similarity index 89% rename from platform_api_python_client/models/get_deployment_v2_response.py rename to platform_api_external_client/models/get_deployment_response.py index dfa1b09..aa2c0bd 100644 --- a/platform_api_python_client/models/get_deployment_v2_response.py +++ b/platform_api_external_client/models/get_deployment_response.py @@ -20,14 +20,14 @@ 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 platform_api_external_client.models.deployment_status import DeploymentStatus +from platform_api_external_client.models.deployment_type import DeploymentType from typing import Optional, Set from typing_extensions import Self -class GetDeploymentV2Response(BaseModel): +class GetDeploymentResponse(BaseModel): """ - GetDeploymentV2Response + GetDeploymentResponse """ # noqa: E501 cluster_id: StrictInt id: StrictInt @@ -58,7 +58,7 @@ def to_json(self) -> str: @classmethod def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of GetDeploymentV2Response from a JSON string""" + """Create an instance of GetDeploymentResponse from a JSON string""" return cls.from_dict(json.loads(json_str)) def to_dict(self) -> Dict[str, Any]: @@ -88,7 +88,7 @@ def to_dict(self) -> Dict[str, Any]: @classmethod def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of GetDeploymentV2Response from a dict""" + """Create an instance of GetDeploymentResponse from a dict""" if obj is None: return None diff --git a/platform_api_python_client/models/get_deployment_usage_response.py b/platform_api_external_client/models/get_deployment_usage_response.py similarity index 96% rename from platform_api_python_client/models/get_deployment_usage_response.py rename to platform_api_external_client/models/get_deployment_usage_response.py index 867c6d2..3005246 100644 --- a/platform_api_python_client/models/get_deployment_usage_response.py +++ b/platform_api_external_client/models/get_deployment_usage_response.py @@ -19,7 +19,7 @@ from pydantic import BaseModel, ConfigDict from typing import Any, ClassVar, Dict, List -from platform_api_python_client.models.deployment_usage_value import DeploymentUsageValue +from platform_api_external_client.models.deployment_usage_value import DeploymentUsageValue from typing import Optional, Set from typing_extensions import Self diff --git a/platform_api_python_client/models/get_inference_v2_deployment_response.py b/platform_api_external_client/models/get_inference_deployment_response.py similarity index 81% rename from platform_api_python_client/models/get_inference_v2_deployment_response.py rename to platform_api_external_client/models/get_inference_deployment_response.py index 98d3cb6..5c875c8 100644 --- a/platform_api_python_client/models/get_inference_v2_deployment_response.py +++ b/platform_api_external_client/models/get_inference_deployment_response.py @@ -20,14 +20,14 @@ 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 platform_api_external_client.models.deployment_status import DeploymentStatus +from platform_api_external_client.models.deployment_type import DeploymentType from typing import Optional, Set from typing_extensions import Self -class GetInferenceV2DeploymentResponse(BaseModel): +class GetInferenceDeploymentResponse(BaseModel): """ - GetInferenceV2DeploymentResponse + GetInferenceDeploymentResponse """ # noqa: E501 cluster_id: StrictInt id: StrictInt @@ -45,7 +45,9 @@ class GetInferenceV2DeploymentResponse(BaseModel): healthcheck: Optional[StrictStr] endpoint_certificate_authority: Optional[StrictStr] env_vars: Optional[Dict[str, StrictStr]] - __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", "concurrency", "healthcheck", "endpoint_certificate_authority", "env_vars"] + command: Optional[List[StrictStr]] + command_args: Optional[List[StrictStr]] + __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", "concurrency", "healthcheck", "endpoint_certificate_authority", "env_vars", "command", "command_args"] model_config = ConfigDict( populate_by_name=True, @@ -65,7 +67,7 @@ def to_json(self) -> str: @classmethod def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of GetInferenceV2DeploymentResponse from a JSON string""" + """Create an instance of GetInferenceDeploymentResponse from a JSON string""" return cls.from_dict(json.loads(json_str)) def to_dict(self) -> Dict[str, Any]: @@ -111,11 +113,21 @@ def to_dict(self) -> Dict[str, Any]: 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 GetInferenceV2DeploymentResponse from a dict""" + """Create an instance of GetInferenceDeploymentResponse from a dict""" if obj is None: return None @@ -138,7 +150,9 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "concurrency": obj.get("concurrency"), "healthcheck": obj.get("healthcheck"), "endpoint_certificate_authority": obj.get("endpoint_certificate_authority"), - "env_vars": obj.get("env_vars") + "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/list_payment_method_response.py b/platform_api_external_client/models/get_payments_response.py similarity index 81% rename from platform_api_python_client/models/list_payment_method_response.py rename to platform_api_external_client/models/get_payments_response.py index 5eb2451..906a802 100644 --- a/platform_api_python_client/models/list_payment_method_response.py +++ b/platform_api_external_client/models/get_payments_response.py @@ -17,17 +17,18 @@ import re # noqa: F401 import json -from pydantic import BaseModel, ConfigDict +from pydantic import BaseModel, ConfigDict, StrictBool from typing import Any, ClassVar, Dict, List from typing import Optional, Set from typing_extensions import Self -class ListPaymentMethodResponse(BaseModel): +class GetPaymentsResponse(BaseModel): """ - ListPaymentMethodResponse + GetPaymentsResponse """ # noqa: E501 - results: List[Dict[str, Any]] - __properties: ClassVar[List[str]] = ["results"] + has_more: StrictBool + payments: List[Dict[str, Any]] + __properties: ClassVar[List[str]] = ["has_more", "payments"] model_config = ConfigDict( populate_by_name=True, @@ -47,7 +48,7 @@ def to_json(self) -> str: @classmethod def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of ListPaymentMethodResponse from a JSON string""" + """Create an instance of GetPaymentsResponse from a JSON string""" return cls.from_dict(json.loads(json_str)) def to_dict(self) -> Dict[str, Any]: @@ -72,7 +73,7 @@ def to_dict(self) -> Dict[str, Any]: @classmethod def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of ListPaymentMethodResponse from a dict""" + """Create an instance of GetPaymentsResponse from a dict""" if obj is None: return None @@ -80,7 +81,8 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: return cls.model_validate(obj) _obj = cls.model_validate({ - "results": obj.get("results") + "has_more": obj.get("has_more"), + "payments": obj.get("payments") }) return _obj diff --git a/platform_api_python_client/models/hardware_instance_response.py b/platform_api_external_client/models/hardware_instance_response.py similarity index 100% rename from platform_api_python_client/models/hardware_instance_response.py rename to platform_api_external_client/models/hardware_instance_response.py diff --git a/platform_api_python_client/models/http_validation_error.py b/platform_api_external_client/models/http_validation_error.py similarity index 97% rename from platform_api_python_client/models/http_validation_error.py rename to platform_api_external_client/models/http_validation_error.py index 9ff09c8..9164cda 100644 --- a/platform_api_python_client/models/http_validation_error.py +++ b/platform_api_external_client/models/http_validation_error.py @@ -19,7 +19,7 @@ from pydantic import BaseModel, ConfigDict from typing import Any, ClassVar, Dict, List, Optional -from platform_api_python_client.models.validation_error import ValidationError +from platform_api_external_client.models.validation_error import ValidationError from typing import Optional, Set from typing_extensions import Self diff --git a/platform_api_python_client/models/list_api_key_response.py b/platform_api_external_client/models/list_api_key_response.py similarity index 97% rename from platform_api_python_client/models/list_api_key_response.py rename to platform_api_external_client/models/list_api_key_response.py index 88b5c53..9fbab3d 100644 --- a/platform_api_python_client/models/list_api_key_response.py +++ b/platform_api_external_client/models/list_api_key_response.py @@ -19,7 +19,7 @@ from pydantic import BaseModel, ConfigDict from typing import Any, ClassVar, Dict, List -from platform_api_python_client.models.api_key_response import APIKeyResponse +from platform_api_external_client.models.api_key_response import APIKeyResponse from typing import Optional, Set from typing_extensions import Self diff --git a/platform_api_python_client/models/list_c_serve_recipe_response.py b/platform_api_external_client/models/list_c_serve_recipe_response.py similarity index 96% rename from platform_api_python_client/models/list_c_serve_recipe_response.py rename to platform_api_external_client/models/list_c_serve_recipe_response.py index 5c9e646..1390c26 100644 --- a/platform_api_python_client/models/list_c_serve_recipe_response.py +++ b/platform_api_external_client/models/list_c_serve_recipe_response.py @@ -19,7 +19,7 @@ from pydantic import BaseModel, ConfigDict from typing import Any, ClassVar, Dict, List -from platform_api_python_client.models.c_serve_recipe_response import CServeRecipeResponse +from platform_api_external_client.models.c_serve_recipe_response import CServeRecipeResponse from typing import Optional, Set from typing_extensions import Self diff --git a/platform_api_python_client/models/list_daily_bill_response.py b/platform_api_external_client/models/list_daily_bill_response.py similarity index 97% rename from platform_api_python_client/models/list_daily_bill_response.py rename to platform_api_external_client/models/list_daily_bill_response.py index 6fe65c3..5f35f56 100644 --- a/platform_api_python_client/models/list_daily_bill_response.py +++ b/platform_api_external_client/models/list_daily_bill_response.py @@ -19,7 +19,7 @@ from pydantic import BaseModel, ConfigDict from typing import Any, ClassVar, Dict, List -from platform_api_python_client.models.daily_bill_response import DailyBillResponse +from platform_api_external_client.models.daily_bill_response import DailyBillResponse from typing import Optional, Set from typing_extensions import Self diff --git a/platform_api_python_client/models/list_get_cluster_response.py b/platform_api_external_client/models/list_get_cluster_response.py similarity index 97% rename from platform_api_python_client/models/list_get_cluster_response.py rename to platform_api_external_client/models/list_get_cluster_response.py index bd0d5cf..eb439a5 100644 --- a/platform_api_python_client/models/list_get_cluster_response.py +++ b/platform_api_external_client/models/list_get_cluster_response.py @@ -19,7 +19,7 @@ from pydantic import BaseModel, ConfigDict from typing import Any, ClassVar, Dict, List -from platform_api_python_client.models.get_cluster_response import GetClusterResponse +from platform_api_external_client.models.get_cluster_response import GetClusterResponse from typing import Optional, Set from typing_extensions import Self diff --git a/platform_api_python_client/models/list_get_deployment_v2_response.py b/platform_api_external_client/models/list_get_deployment_response.py similarity index 83% rename from platform_api_python_client/models/list_get_deployment_v2_response.py rename to platform_api_external_client/models/list_get_deployment_response.py index a7c0668..6ce2783 100644 --- a/platform_api_python_client/models/list_get_deployment_v2_response.py +++ b/platform_api_external_client/models/list_get_deployment_response.py @@ -19,15 +19,15 @@ from pydantic import BaseModel, ConfigDict from typing import Any, ClassVar, Dict, List -from platform_api_python_client.models.get_deployment_v2_response import GetDeploymentV2Response +from platform_api_external_client.models.get_deployment_response import GetDeploymentResponse from typing import Optional, Set from typing_extensions import Self -class ListGetDeploymentV2Response(BaseModel): +class ListGetDeploymentResponse(BaseModel): """ - ListGetDeploymentV2Response + ListGetDeploymentResponse """ # noqa: E501 - results: List[GetDeploymentV2Response] + results: List[GetDeploymentResponse] __properties: ClassVar[List[str]] = ["results"] model_config = ConfigDict( @@ -48,7 +48,7 @@ def to_json(self) -> str: @classmethod def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of ListGetDeploymentV2Response from a JSON string""" + """Create an instance of ListGetDeploymentResponse from a JSON string""" return cls.from_dict(json.loads(json_str)) def to_dict(self) -> Dict[str, Any]: @@ -80,7 +80,7 @@ def to_dict(self) -> Dict[str, Any]: @classmethod def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of ListGetDeploymentV2Response from a dict""" + """Create an instance of ListGetDeploymentResponse from a dict""" if obj is None: return None @@ -88,7 +88,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: return cls.model_validate(obj) _obj = cls.model_validate({ - "results": [GetDeploymentV2Response.from_dict(_item) for _item in obj["results"]] if obj.get("results") is not None else None + "results": [GetDeploymentResponse.from_dict(_item) for _item in obj["results"]] if obj.get("results") is not None else None }) return _obj diff --git a/platform_api_python_client/models/list_hardware_instance_response.py b/platform_api_external_client/models/list_hardware_instance_response.py similarity index 96% rename from platform_api_python_client/models/list_hardware_instance_response.py rename to platform_api_external_client/models/list_hardware_instance_response.py index 56b99c6..75cd3a9 100644 --- a/platform_api_python_client/models/list_hardware_instance_response.py +++ b/platform_api_external_client/models/list_hardware_instance_response.py @@ -19,7 +19,7 @@ from pydantic import BaseModel, ConfigDict from typing import Any, ClassVar, Dict, List -from platform_api_python_client.models.hardware_instance_response import HardwareInstanceResponse +from platform_api_external_client.models.hardware_instance_response import HardwareInstanceResponse from typing import Optional, Set from typing_extensions import Self diff --git a/platform_api_python_client/models/list_prebuilt_image_response.py b/platform_api_external_client/models/list_prebuilt_image_response.py similarity index 96% rename from platform_api_python_client/models/list_prebuilt_image_response.py rename to platform_api_external_client/models/list_prebuilt_image_response.py index 3db0fec..d97f855 100644 --- a/platform_api_python_client/models/list_prebuilt_image_response.py +++ b/platform_api_external_client/models/list_prebuilt_image_response.py @@ -19,7 +19,7 @@ from pydantic import BaseModel, ConfigDict from typing import Any, ClassVar, Dict, List -from platform_api_python_client.models.prebuilt_image_response import PrebuiltImageResponse +from platform_api_external_client.models.prebuilt_image_response import PrebuiltImageResponse from typing import Optional, Set from typing_extensions import Self diff --git a/platform_api_python_client/models/metric.py b/platform_api_external_client/models/metric.py similarity index 100% rename from platform_api_python_client/models/metric.py rename to platform_api_external_client/models/metric.py diff --git a/platform_api_python_client/models/prebuilt_image_response.py b/platform_api_external_client/models/prebuilt_image_response.py similarity index 80% rename from platform_api_python_client/models/prebuilt_image_response.py rename to platform_api_external_client/models/prebuilt_image_response.py index f5b7a1a..3f913dd 100644 --- a/platform_api_python_client/models/prebuilt_image_response.py +++ b/platform_api_external_client/models/prebuilt_image_response.py @@ -17,9 +17,9 @@ import re # noqa: F401 import json -from pydantic import BaseModel, ConfigDict, StrictStr -from typing import Any, ClassVar, Dict, List -from platform_api_python_client.models.deployment_type import DeploymentType +from pydantic import BaseModel, ConfigDict, StrictInt, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from platform_api_external_client.models.deployment_type import DeploymentType from typing import Optional, Set from typing_extensions import Self @@ -31,7 +31,9 @@ class PrebuiltImageResponse(BaseModel): label: StrictStr tags: List[StrictStr] type: DeploymentType - __properties: ClassVar[List[str]] = ["image_name", "label", "tags", "type"] + port: StrictInt + healthcheck: Optional[StrictStr] + __properties: ClassVar[List[str]] = ["image_name", "label", "tags", "type", "port", "healthcheck"] model_config = ConfigDict( populate_by_name=True, @@ -72,6 +74,11 @@ def to_dict(self) -> Dict[str, Any]: exclude=excluded_fields, exclude_none=True, ) + # 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 + return _dict @classmethod @@ -87,7 +94,9 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "image_name": obj.get("image_name"), "label": obj.get("label"), "tags": obj.get("tags"), - "type": obj.get("type") + "type": obj.get("type"), + "port": obj.get("port"), + "healthcheck": obj.get("healthcheck") }) return _obj diff --git a/platform_api_python_client/models/health_status.py b/platform_api_external_client/models/service_status.py similarity index 59% rename from platform_api_python_client/models/health_status.py rename to platform_api_external_client/models/service_status.py index 4aebfcb..f26db62 100644 --- a/platform_api_python_client/models/health_status.py +++ b/platform_api_external_client/models/service_status.py @@ -18,23 +18,30 @@ from typing_extensions import Self -class HealthStatus(str, Enum): +class ServiceStatus(str, Enum): """ - HealthStatus + ServiceStatus """ """ allowed enum values """ HEALTHY = 'Healthy' - PROGRESSING = 'Progressing' - DEGRADED = 'Degraded' MISSING = 'Missing' + SCALINGUP = 'ScalingUp' + PULLING = 'Pulling' + INITIALIZING = 'Initializing' + ERROR = 'Error' + CREATECONTAINERCONFIGERROR = 'CreateContainerConfigError' + CRASHLOOPBACKOFF = 'CrashLoopBackOff' + IMAGEPULLBACKOFF = 'ImagePullBackOff' + PROGRESSDEADLINEEXCEEDED = 'ProgressDeadlineExceeded' + NOTREADY = 'NotReady' UNKNOWN = 'Unknown' @classmethod def from_json(cls, json_str: str) -> Self: - """Create an instance of HealthStatus from a JSON string""" + """Create an instance of ServiceStatus from a JSON string""" return cls(json.loads(json_str)) diff --git a/platform_api_python_client/models/client_secret_response.py b/platform_api_external_client/models/user_support_email_request.py similarity index 84% rename from platform_api_python_client/models/client_secret_response.py rename to platform_api_external_client/models/user_support_email_request.py index 14874cf..3cefa80 100644 --- a/platform_api_python_client/models/client_secret_response.py +++ b/platform_api_external_client/models/user_support_email_request.py @@ -22,12 +22,13 @@ from typing import Optional, Set from typing_extensions import Self -class ClientSecretResponse(BaseModel): +class UserSupportEmailRequest(BaseModel): """ - ClientSecretResponse + UserSupportEmailRequest """ # noqa: E501 - client_secret: StrictStr - __properties: ClassVar[List[str]] = ["client_secret"] + message: StrictStr + subject: StrictStr + __properties: ClassVar[List[str]] = ["message", "subject"] model_config = ConfigDict( populate_by_name=True, @@ -47,7 +48,7 @@ def to_json(self) -> str: @classmethod def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of ClientSecretResponse from a JSON string""" + """Create an instance of UserSupportEmailRequest from a JSON string""" return cls.from_dict(json.loads(json_str)) def to_dict(self) -> Dict[str, Any]: @@ -72,7 +73,7 @@ def to_dict(self) -> Dict[str, Any]: @classmethod def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of ClientSecretResponse from a dict""" + """Create an instance of UserSupportEmailRequest from a dict""" if obj is None: return None @@ -80,7 +81,8 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: return cls.model_validate(obj) _obj = cls.model_validate({ - "client_secret": obj.get("client_secret") + "message": obj.get("message"), + "subject": obj.get("subject") }) return _obj diff --git a/platform_api_python_client/models/validation_error.py b/platform_api_external_client/models/validation_error.py similarity index 96% rename from platform_api_python_client/models/validation_error.py rename to platform_api_external_client/models/validation_error.py index a27db44..e687203 100644 --- a/platform_api_python_client/models/validation_error.py +++ b/platform_api_external_client/models/validation_error.py @@ -19,7 +19,7 @@ from pydantic import BaseModel, ConfigDict, StrictStr from typing import Any, ClassVar, Dict, List -from platform_api_python_client.models.validation_error_loc_inner import ValidationErrorLocInner +from platform_api_external_client.models.validation_error_loc_inner import ValidationErrorLocInner from typing import Optional, Set from typing_extensions import Self diff --git a/platform_api_python_client/models/validation_error_loc_inner.py b/platform_api_external_client/models/validation_error_loc_inner.py similarity index 100% rename from platform_api_python_client/models/validation_error_loc_inner.py rename to platform_api_external_client/models/validation_error_loc_inner.py diff --git a/platform_api_python_client/py.typed b/platform_api_external_client/py.typed similarity index 100% rename from platform_api_python_client/py.typed rename to platform_api_external_client/py.typed diff --git a/platform_api_python_client/rest.py b/platform_api_external_client/rest.py similarity index 99% rename from platform_api_python_client/rest.py rename to platform_api_external_client/rest.py index 8cbbf58..a9c9a2d 100644 --- a/platform_api_python_client/rest.py +++ b/platform_api_external_client/rest.py @@ -19,7 +19,7 @@ import urllib3 -from platform_api_python_client.exceptions import ApiException, ApiValueError +from platform_api_external_client.exceptions import ApiException, ApiValueError SUPPORTED_SOCKS_PROXIES = {"socks5", "socks5h", "socks4", "socks4a"} RESTResponseType = urllib3.HTTPResponse diff --git a/platform_api_python_client/__init__.py b/platform_api_python_client/__init__.py deleted file mode 100644 index fcc1261..0000000 --- a/platform_api_python_client/__init__.py +++ /dev/null @@ -1,78 +0,0 @@ -# coding: utf-8 - -# flake8: noqa - -""" - 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 - - -__version__ = "0.2.0" - -# import apis into sdk package -from platform_api_python_client.api.external_api import EXTERNALApi - -# import ApiClient -from platform_api_python_client.api_response import ApiResponse -from platform_api_python_client.api_client import ApiClient -from platform_api_python_client.configuration import Configuration -from platform_api_python_client.exceptions import OpenApiException -from platform_api_python_client.exceptions import ApiTypeError -from platform_api_python_client.exceptions import ApiValueError -from platform_api_python_client.exceptions import ApiKeyError -from platform_api_python_client.exceptions import ApiAttributeError -from platform_api_python_client.exceptions import ApiException - -# import models into sdk package -from platform_api_python_client.models.api_key_request import APIKeyRequest -from platform_api_python_client.models.api_key_response import APIKeyResponse -from platform_api_python_client.models.add_hardware_request import AddHardwareRequest -from platform_api_python_client.models.c_serve_recipe_input import CServeRecipeInput -from platform_api_python_client.models.c_serve_recipe_output import CServeRecipeOutput -from platform_api_python_client.models.c_serve_recipe_perf import CServeRecipePerf -from platform_api_python_client.models.c_serve_recipe_response import CServeRecipeResponse -from platform_api_python_client.models.client_secret_response import ClientSecretResponse -from platform_api_python_client.models.create_c_serve_deployment_request import CreateCServeDeploymentRequest -from platform_api_python_client.models.create_c_serve_deployment_response import CreateCServeDeploymentResponse -from platform_api_python_client.models.create_compute_deployment_response import CreateComputeDeploymentResponse -from platform_api_python_client.models.create_compute_deployment_v2_request import CreateComputeDeploymentV2Request -from platform_api_python_client.models.create_inference_deployment_response import CreateInferenceDeploymentResponse -from platform_api_python_client.models.create_inference_deployment_v2_request import CreateInferenceDeploymentV2Request -from platform_api_python_client.models.create_payment_request import CreatePaymentRequest -from platform_api_python_client.models.credits_response import CreditsResponse -from platform_api_python_client.models.daily_bill_response import DailyBillResponse -from platform_api_python_client.models.deployment_status import DeploymentStatus -from platform_api_python_client.models.deployment_status_request import DeploymentStatusRequest -from platform_api_python_client.models.deployment_status_response_v2 import DeploymentStatusResponseV2 -from platform_api_python_client.models.deployment_type import DeploymentType -from platform_api_python_client.models.deployment_usage_value import DeploymentUsageValue -from platform_api_python_client.models.feedback_request import FeedbackRequest -from platform_api_python_client.models.get_c_serve_deployment_response import GetCServeDeploymentResponse -from platform_api_python_client.models.get_cluster_response import GetClusterResponse -from platform_api_python_client.models.get_compute_v2_deployment_response import GetComputeV2DeploymentResponse -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_deployment_v2_response import GetDeploymentV2Response -from platform_api_python_client.models.get_inference_v2_deployment_response import GetInferenceV2DeploymentResponse -from platform_api_python_client.models.http_validation_error import HTTPValidationError -from platform_api_python_client.models.hardware_instance_response import HardwareInstanceResponse -from platform_api_python_client.models.health_status import HealthStatus -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 -from platform_api_python_client.models.list_daily_bill_response import ListDailyBillResponse -from platform_api_python_client.models.list_get_cluster_response import ListGetClusterResponse -from platform_api_python_client.models.list_get_deployment_v2_response import ListGetDeploymentV2Response -from platform_api_python_client.models.list_hardware_instance_response import ListHardwareInstanceResponse -from platform_api_python_client.models.list_payment_method_response import ListPaymentMethodResponse -from platform_api_python_client.models.list_prebuilt_image_response import ListPrebuiltImageResponse -from platform_api_python_client.models.metric import Metric -from platform_api_python_client.models.prebuilt_image_response import PrebuiltImageResponse -from platform_api_python_client.models.validation_error import ValidationError -from platform_api_python_client.models.validation_error_loc_inner import ValidationErrorLocInner diff --git a/platform_api_python_client/api/__init__.py b/platform_api_python_client/api/__init__.py deleted file mode 100644 index bd125dd..0000000 --- a/platform_api_python_client/api/__init__.py +++ /dev/null @@ -1,5 +0,0 @@ -# flake8: noqa - -# import apis into api package -from platform_api_python_client.api.external_api import EXTERNALApi - diff --git a/platform_api_python_client/models/__init__.py b/platform_api_python_client/models/__init__.py deleted file mode 100644 index 30952fa..0000000 --- a/platform_api_python_client/models/__init__.py +++ /dev/null @@ -1,61 +0,0 @@ -# coding: utf-8 - -# flake8: noqa -""" - 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 models into model package -from platform_api_python_client.models.api_key_request import APIKeyRequest -from platform_api_python_client.models.api_key_response import APIKeyResponse -from platform_api_python_client.models.add_hardware_request import AddHardwareRequest -from platform_api_python_client.models.c_serve_recipe_input import CServeRecipeInput -from platform_api_python_client.models.c_serve_recipe_output import CServeRecipeOutput -from platform_api_python_client.models.c_serve_recipe_perf import CServeRecipePerf -from platform_api_python_client.models.c_serve_recipe_response import CServeRecipeResponse -from platform_api_python_client.models.client_secret_response import ClientSecretResponse -from platform_api_python_client.models.create_c_serve_deployment_request import CreateCServeDeploymentRequest -from platform_api_python_client.models.create_c_serve_deployment_response import CreateCServeDeploymentResponse -from platform_api_python_client.models.create_compute_deployment_response import CreateComputeDeploymentResponse -from platform_api_python_client.models.create_compute_deployment_v2_request import CreateComputeDeploymentV2Request -from platform_api_python_client.models.create_inference_deployment_response import CreateInferenceDeploymentResponse -from platform_api_python_client.models.create_inference_deployment_v2_request import CreateInferenceDeploymentV2Request -from platform_api_python_client.models.create_payment_request import CreatePaymentRequest -from platform_api_python_client.models.credits_response import CreditsResponse -from platform_api_python_client.models.daily_bill_response import DailyBillResponse -from platform_api_python_client.models.deployment_status import DeploymentStatus -from platform_api_python_client.models.deployment_status_request import DeploymentStatusRequest -from platform_api_python_client.models.deployment_status_response_v2 import DeploymentStatusResponseV2 -from platform_api_python_client.models.deployment_type import DeploymentType -from platform_api_python_client.models.deployment_usage_value import DeploymentUsageValue -from platform_api_python_client.models.feedback_request import FeedbackRequest -from platform_api_python_client.models.get_c_serve_deployment_response import GetCServeDeploymentResponse -from platform_api_python_client.models.get_cluster_response import GetClusterResponse -from platform_api_python_client.models.get_compute_v2_deployment_response import GetComputeV2DeploymentResponse -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_deployment_v2_response import GetDeploymentV2Response -from platform_api_python_client.models.get_inference_v2_deployment_response import GetInferenceV2DeploymentResponse -from platform_api_python_client.models.http_validation_error import HTTPValidationError -from platform_api_python_client.models.hardware_instance_response import HardwareInstanceResponse -from platform_api_python_client.models.health_status import HealthStatus -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 -from platform_api_python_client.models.list_daily_bill_response import ListDailyBillResponse -from platform_api_python_client.models.list_get_cluster_response import ListGetClusterResponse -from platform_api_python_client.models.list_get_deployment_v2_response import ListGetDeploymentV2Response -from platform_api_python_client.models.list_hardware_instance_response import ListHardwareInstanceResponse -from platform_api_python_client.models.list_payment_method_response import ListPaymentMethodResponse -from platform_api_python_client.models.list_prebuilt_image_response import ListPrebuiltImageResponse -from platform_api_python_client.models.metric import Metric -from platform_api_python_client.models.prebuilt_image_response import PrebuiltImageResponse -from platform_api_python_client.models.validation_error import ValidationError -from platform_api_python_client.models.validation_error_loc_inner import ValidationErrorLocInner diff --git a/platform_api_python_client/models/feedback_request.py b/platform_api_python_client/models/feedback_request.py deleted file mode 100644 index c14962a..0000000 --- a/platform_api_python_client/models/feedback_request.py +++ /dev/null @@ -1,91 +0,0 @@ -# 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, StrictBool, StrictInt, StrictStr -from typing import Any, ClassVar, Dict, List -from typing import Optional, Set -from typing_extensions import Self - -class FeedbackRequest(BaseModel): - """ - FeedbackRequest - """ # noqa: E501 - message: StrictStr - rating: StrictInt - follow_up: StrictBool - __properties: ClassVar[List[str]] = ["message", "rating", "follow_up"] - - 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 FeedbackRequest 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 FeedbackRequest from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "message": obj.get("message"), - "rating": obj.get("rating"), - "follow_up": obj.get("follow_up") - }) - return _obj - - diff --git a/setup.py b/setup.py index 0991974..c167c2b 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 = "0.2.0" +VERSION = "0.3.0" PYTHON_REQUIRES = ">= 3.8" REQUIRES = [ "urllib3 >= 1.25.3, < 3.0.0", diff --git a/test/test_api_key_request.py b/test/test_api_key_request.py index 1e7ed6e..85acdcc 100644 --- a/test/test_api_key_request.py +++ b/test/test_api_key_request.py @@ -14,7 +14,7 @@ import unittest -from platform_api_python_client.models.api_key_request import APIKeyRequest +from platform_api_external_client.models.api_key_request import APIKeyRequest class TestAPIKeyRequest(unittest.TestCase): """APIKeyRequest unit test stubs""" diff --git a/test/test_api_key_response.py b/test/test_api_key_response.py index 38bb61b..b37e29e 100644 --- a/test/test_api_key_response.py +++ b/test/test_api_key_response.py @@ -14,7 +14,7 @@ import unittest -from platform_api_python_client.models.api_key_response import APIKeyResponse +from platform_api_external_client.models.api_key_response import APIKeyResponse class TestAPIKeyResponse(unittest.TestCase): """APIKeyResponse unit test stubs""" diff --git a/test/test_c_serve_recipe_input.py b/test/test_c_serve_recipe_input.py index f817c2b..3862d67 100644 --- a/test/test_c_serve_recipe_input.py +++ b/test/test_c_serve_recipe_input.py @@ -14,7 +14,7 @@ import unittest -from platform_api_python_client.models.c_serve_recipe_input import CServeRecipeInput +from platform_api_external_client.models.c_serve_recipe_input import CServeRecipeInput class TestCServeRecipeInput(unittest.TestCase): """CServeRecipeInput unit test stubs""" diff --git a/test/test_c_serve_recipe_output.py b/test/test_c_serve_recipe_output.py index 712f6b2..08c9177 100644 --- a/test/test_c_serve_recipe_output.py +++ b/test/test_c_serve_recipe_output.py @@ -14,7 +14,7 @@ import unittest -from platform_api_python_client.models.c_serve_recipe_output import CServeRecipeOutput +from platform_api_external_client.models.c_serve_recipe_output import CServeRecipeOutput class TestCServeRecipeOutput(unittest.TestCase): """CServeRecipeOutput unit test stubs""" diff --git a/test/test_c_serve_recipe_perf.py b/test/test_c_serve_recipe_perf.py index 18672ac..b9ca26e 100644 --- a/test/test_c_serve_recipe_perf.py +++ b/test/test_c_serve_recipe_perf.py @@ -14,7 +14,7 @@ import unittest -from platform_api_python_client.models.c_serve_recipe_perf import CServeRecipePerf +from platform_api_external_client.models.c_serve_recipe_perf import CServeRecipePerf class TestCServeRecipePerf(unittest.TestCase): """CServeRecipePerf unit test stubs""" @@ -35,7 +35,7 @@ def make_instance(self, include_optional) -> CServeRecipePerf: model = CServeRecipePerf() if include_optional: return CServeRecipePerf( - recipe = platform_api_python_client.models.c_serve_recipe.CServeRecipe( + recipe = platform_api_external_client.models.c_serve_recipe.CServeRecipe( model = '', is_embedding_model = True, tensor_parallel_size = 56, @@ -70,7 +70,7 @@ def make_instance(self, include_optional) -> CServeRecipePerf: ) else: return CServeRecipePerf( - recipe = platform_api_python_client.models.c_serve_recipe.CServeRecipe( + recipe = platform_api_external_client.models.c_serve_recipe.CServeRecipe( model = '', is_embedding_model = True, tensor_parallel_size = 56, diff --git a/test/test_c_serve_recipe_response.py b/test/test_c_serve_recipe_response.py index 9d6fd50..147c6cf 100644 --- a/test/test_c_serve_recipe_response.py +++ b/test/test_c_serve_recipe_response.py @@ -14,7 +14,7 @@ import unittest -from platform_api_python_client.models.c_serve_recipe_response import CServeRecipeResponse +from platform_api_external_client.models.c_serve_recipe_response import CServeRecipeResponse class TestCServeRecipeResponse(unittest.TestCase): """CServeRecipeResponse unit test stubs""" @@ -37,8 +37,8 @@ def make_instance(self, include_optional) -> CServeRecipeResponse: return CServeRecipeResponse( model = '', cluster_id = 56, - fastest = platform_api_python_client.models.c_serve_recipe_perf.CServeRecipePerf( - recipe = platform_api_python_client.models.c_serve_recipe.CServeRecipe( + fastest = platform_api_external_client.models.c_serve_recipe_perf.CServeRecipePerf( + recipe = platform_api_external_client.models.c_serve_recipe.CServeRecipe( model = '', is_embedding_model = True, tensor_parallel_size = 56, @@ -70,8 +70,8 @@ def make_instance(self, include_optional) -> CServeRecipeResponse: null ] ], ), - cheapest = platform_api_python_client.models.c_serve_recipe_perf.CServeRecipePerf( - recipe = platform_api_python_client.models.c_serve_recipe.CServeRecipe( + cheapest = platform_api_external_client.models.c_serve_recipe_perf.CServeRecipePerf( + recipe = platform_api_external_client.models.c_serve_recipe.CServeRecipe( model = '', is_embedding_model = True, tensor_parallel_size = 56, @@ -103,8 +103,8 @@ def make_instance(self, include_optional) -> CServeRecipeResponse: null ] ], ), - best_value = platform_api_python_client.models.c_serve_recipe_perf.CServeRecipePerf( - recipe = platform_api_python_client.models.c_serve_recipe.CServeRecipe( + best_value = platform_api_external_client.models.c_serve_recipe_perf.CServeRecipePerf( + recipe = platform_api_external_client.models.c_serve_recipe.CServeRecipe( model = '', is_embedding_model = True, tensor_parallel_size = 56, @@ -141,8 +141,8 @@ def make_instance(self, include_optional) -> CServeRecipeResponse: return CServeRecipeResponse( model = '', cluster_id = 56, - fastest = platform_api_python_client.models.c_serve_recipe_perf.CServeRecipePerf( - recipe = platform_api_python_client.models.c_serve_recipe.CServeRecipe( + fastest = platform_api_external_client.models.c_serve_recipe_perf.CServeRecipePerf( + recipe = platform_api_external_client.models.c_serve_recipe.CServeRecipe( model = '', is_embedding_model = True, tensor_parallel_size = 56, @@ -174,8 +174,8 @@ def make_instance(self, include_optional) -> CServeRecipeResponse: null ] ], ), - cheapest = platform_api_python_client.models.c_serve_recipe_perf.CServeRecipePerf( - recipe = platform_api_python_client.models.c_serve_recipe.CServeRecipe( + cheapest = platform_api_external_client.models.c_serve_recipe_perf.CServeRecipePerf( + recipe = platform_api_external_client.models.c_serve_recipe.CServeRecipe( model = '', is_embedding_model = True, tensor_parallel_size = 56, @@ -207,8 +207,8 @@ def make_instance(self, include_optional) -> CServeRecipeResponse: null ] ], ), - best_value = platform_api_python_client.models.c_serve_recipe_perf.CServeRecipePerf( - recipe = platform_api_python_client.models.c_serve_recipe.CServeRecipe( + best_value = platform_api_external_client.models.c_serve_recipe_perf.CServeRecipePerf( + recipe = platform_api_external_client.models.c_serve_recipe.CServeRecipe( model = '', is_embedding_model = True, tensor_parallel_size = 56, diff --git a/test/test_client_secret_response.py b/test/test_client_secret_response.py deleted file mode 100644 index 6c5a545..0000000 --- a/test/test_client_secret_response.py +++ /dev/null @@ -1,52 +0,0 @@ -# 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.client_secret_response import ClientSecretResponse - -class TestClientSecretResponse(unittest.TestCase): - """ClientSecretResponse unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> ClientSecretResponse: - """Test ClientSecretResponse - 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 `ClientSecretResponse` - """ - model = ClientSecretResponse() - if include_optional: - return ClientSecretResponse( - client_secret = '' - ) - else: - return ClientSecretResponse( - client_secret = '', - ) - """ - - def testClientSecretResponse(self): - """Test ClientSecretResponse""" - # 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_deployment_request.py b/test/test_create_c_serve_deployment_request.py index bc4bab1..2d9820e 100644 --- a/test/test_create_c_serve_deployment_request.py +++ b/test/test_create_c_serve_deployment_request.py @@ -14,7 +14,7 @@ import unittest -from platform_api_python_client.models.create_c_serve_deployment_request import CreateCServeDeploymentRequest +from platform_api_external_client.models.create_c_serve_deployment_request import CreateCServeDeploymentRequest class TestCreateCServeDeploymentRequest(unittest.TestCase): """CreateCServeDeploymentRequest unit test stubs""" @@ -38,7 +38,7 @@ def make_instance(self, include_optional) -> CreateCServeDeploymentRequest: name = '', cluster_id = 56, hardware_instance_id = 56, - recipe = platform_api_python_client.models.c_serve_recipe.CServeRecipe( + recipe = platform_api_external_client.models.c_serve_recipe.CServeRecipe( model = '', is_embedding_model = True, tensor_parallel_size = 56, @@ -63,14 +63,17 @@ def make_instance(self, include_optional) -> CreateCServeDeploymentRequest: endpoint_certificate_authority = '', min_scale = 56, max_scale = 56, - concurrency = 56 + concurrency = 56, + env_vars = { + 'key' : '' + } ) else: return CreateCServeDeploymentRequest( name = '', cluster_id = 56, hardware_instance_id = 56, - recipe = platform_api_python_client.models.c_serve_recipe.CServeRecipe( + recipe = platform_api_external_client.models.c_serve_recipe.CServeRecipe( model = '', is_embedding_model = True, tensor_parallel_size = 56, diff --git a/test/test_create_c_serve_deployment_response.py b/test/test_create_c_serve_deployment_response.py index e1fe90b..8969df4 100644 --- a/test/test_create_c_serve_deployment_response.py +++ b/test/test_create_c_serve_deployment_response.py @@ -14,7 +14,7 @@ import unittest -from platform_api_python_client.models.create_c_serve_deployment_response import CreateCServeDeploymentResponse +from platform_api_external_client.models.create_c_serve_deployment_response import CreateCServeDeploymentResponse class TestCreateCServeDeploymentResponse(unittest.TestCase): """CreateCServeDeploymentResponse unit test stubs""" diff --git a/test/test_create_payment_request.py b/test/test_create_checkout_request.py similarity index 54% rename from test/test_create_payment_request.py rename to test/test_create_checkout_request.py index 40a4eb2..a765136 100644 --- a/test/test_create_payment_request.py +++ b/test/test_create_checkout_request.py @@ -14,10 +14,10 @@ import unittest -from platform_api_python_client.models.create_payment_request import CreatePaymentRequest +from platform_api_external_client.models.create_checkout_request import CreateCheckoutRequest -class TestCreatePaymentRequest(unittest.TestCase): - """CreatePaymentRequest unit test stubs""" +class TestCreateCheckoutRequest(unittest.TestCase): + """CreateCheckoutRequest unit test stubs""" def setUp(self): pass @@ -25,28 +25,28 @@ def setUp(self): def tearDown(self): pass - def make_instance(self, include_optional) -> CreatePaymentRequest: - """Test CreatePaymentRequest + def make_instance(self, include_optional) -> CreateCheckoutRequest: + """Test CreateCheckoutRequest 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 `CreatePaymentRequest` + # uncomment below to create an instance of `CreateCheckoutRequest` """ - model = CreatePaymentRequest() + model = CreateCheckoutRequest() if include_optional: - return CreatePaymentRequest( - amount = 56, - payment_method = '' + return CreateCheckoutRequest( + amount_credits = 56, + success_url = '' ) else: - return CreatePaymentRequest( - amount = 56, - payment_method = '', + return CreateCheckoutRequest( + amount_credits = 56, + success_url = '', ) """ - def testCreatePaymentRequest(self): - """Test CreatePaymentRequest""" + def testCreateCheckoutRequest(self): + """Test CreateCheckoutRequest""" # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) diff --git a/test/test_add_hardware_request.py b/test/test_create_checkout_response.py similarity index 57% rename from test/test_add_hardware_request.py rename to test/test_create_checkout_response.py index c79f49e..5198a76 100644 --- a/test/test_add_hardware_request.py +++ b/test/test_create_checkout_response.py @@ -14,10 +14,10 @@ import unittest -from platform_api_python_client.models.add_hardware_request import AddHardwareRequest +from platform_api_external_client.models.create_checkout_response import CreateCheckoutResponse -class TestAddHardwareRequest(unittest.TestCase): - """AddHardwareRequest unit test stubs""" +class TestCreateCheckoutResponse(unittest.TestCase): + """CreateCheckoutResponse unit test stubs""" def setUp(self): pass @@ -25,26 +25,26 @@ def setUp(self): def tearDown(self): pass - def make_instance(self, include_optional) -> AddHardwareRequest: - """Test AddHardwareRequest + def make_instance(self, include_optional) -> CreateCheckoutResponse: + """Test CreateCheckoutResponse 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 `AddHardwareRequest` + # uncomment below to create an instance of `CreateCheckoutResponse` """ - model = AddHardwareRequest() + model = CreateCheckoutResponse() if include_optional: - return AddHardwareRequest( - message = '' + return CreateCheckoutResponse( + url = '' ) else: - return AddHardwareRequest( - message = '', + return CreateCheckoutResponse( + url = '', ) """ - def testAddHardwareRequest(self): - """Test AddHardwareRequest""" + def testCreateCheckoutResponse(self): + """Test CreateCheckoutResponse""" # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) diff --git a/test/test_create_compute_deployment_v2_request.py b/test/test_create_compute_deployment_request.py similarity index 69% rename from test/test_create_compute_deployment_v2_request.py rename to test/test_create_compute_deployment_request.py index cbb26f6..2678919 100644 --- a/test/test_create_compute_deployment_v2_request.py +++ b/test/test_create_compute_deployment_request.py @@ -14,10 +14,10 @@ import unittest -from platform_api_python_client.models.create_compute_deployment_v2_request import CreateComputeDeploymentV2Request +from platform_api_external_client.models.create_compute_deployment_request import CreateComputeDeploymentRequest -class TestCreateComputeDeploymentV2Request(unittest.TestCase): - """CreateComputeDeploymentV2Request unit test stubs""" +class TestCreateComputeDeploymentRequest(unittest.TestCase): + """CreateComputeDeploymentRequest unit test stubs""" def setUp(self): pass @@ -25,16 +25,16 @@ def setUp(self): def tearDown(self): pass - def make_instance(self, include_optional) -> CreateComputeDeploymentV2Request: - """Test CreateComputeDeploymentV2Request + def make_instance(self, include_optional) -> CreateComputeDeploymentRequest: + """Test CreateComputeDeploymentRequest 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 `CreateComputeDeploymentV2Request` + # uncomment below to create an instance of `CreateComputeDeploymentRequest` """ - model = CreateComputeDeploymentV2Request() + model = CreateComputeDeploymentRequest() if include_optional: - return CreateComputeDeploymentV2Request( + return CreateComputeDeploymentRequest( name = '', cluster_id = 56, hardware_instance_id = 56, @@ -43,7 +43,7 @@ def make_instance(self, include_optional) -> CreateComputeDeploymentV2Request: ssh_password = '' ) else: - return CreateComputeDeploymentV2Request( + return CreateComputeDeploymentRequest( name = '', cluster_id = 56, hardware_instance_id = 56, @@ -51,8 +51,8 @@ def make_instance(self, include_optional) -> CreateComputeDeploymentV2Request: ) """ - def testCreateComputeDeploymentV2Request(self): - """Test CreateComputeDeploymentV2Request""" + def testCreateComputeDeploymentRequest(self): + """Test CreateComputeDeploymentRequest""" # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) diff --git a/test/test_create_compute_deployment_response.py b/test/test_create_compute_deployment_response.py index 093f2d2..e7c9a1d 100644 --- a/test/test_create_compute_deployment_response.py +++ b/test/test_create_compute_deployment_response.py @@ -14,7 +14,7 @@ import unittest -from platform_api_python_client.models.create_compute_deployment_response import CreateComputeDeploymentResponse +from platform_api_external_client.models.create_compute_deployment_response import CreateComputeDeploymentResponse class TestCreateComputeDeploymentResponse(unittest.TestCase): """CreateComputeDeploymentResponse unit test stubs""" diff --git a/test/test_create_inference_deployment_v2_request.py b/test/test_create_inference_deployment_request.py similarity index 74% rename from test/test_create_inference_deployment_v2_request.py rename to test/test_create_inference_deployment_request.py index 2c03d91..48dd14e 100644 --- a/test/test_create_inference_deployment_v2_request.py +++ b/test/test_create_inference_deployment_request.py @@ -14,10 +14,10 @@ import unittest -from platform_api_python_client.models.create_inference_deployment_v2_request import CreateInferenceDeploymentV2Request +from platform_api_external_client.models.create_inference_deployment_request import CreateInferenceDeploymentRequest -class TestCreateInferenceDeploymentV2Request(unittest.TestCase): - """CreateInferenceDeploymentV2Request unit test stubs""" +class TestCreateInferenceDeploymentRequest(unittest.TestCase): + """CreateInferenceDeploymentRequest unit test stubs""" def setUp(self): pass @@ -25,16 +25,16 @@ def setUp(self): def tearDown(self): pass - def make_instance(self, include_optional) -> CreateInferenceDeploymentV2Request: - """Test CreateInferenceDeploymentV2Request + def make_instance(self, include_optional) -> CreateInferenceDeploymentRequest: + """Test CreateInferenceDeploymentRequest 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 `CreateInferenceDeploymentV2Request` + # uncomment below to create an instance of `CreateInferenceDeploymentRequest` """ - model = CreateInferenceDeploymentV2Request() + model = CreateInferenceDeploymentRequest() if include_optional: - return CreateInferenceDeploymentV2Request( + return CreateInferenceDeploymentRequest( name = '', cluster_id = 56, hardware_instance_id = 56, @@ -56,7 +56,7 @@ def make_instance(self, include_optional) -> CreateInferenceDeploymentV2Request: endpoint_certificate_authority = '' ) else: - return CreateInferenceDeploymentV2Request( + return CreateInferenceDeploymentRequest( name = '', cluster_id = 56, hardware_instance_id = 56, @@ -67,8 +67,8 @@ def make_instance(self, include_optional) -> CreateInferenceDeploymentV2Request: ) """ - def testCreateInferenceDeploymentV2Request(self): - """Test CreateInferenceDeploymentV2Request""" + def testCreateInferenceDeploymentRequest(self): + """Test CreateInferenceDeploymentRequest""" # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) diff --git a/test/test_create_inference_deployment_response.py b/test/test_create_inference_deployment_response.py index fc7bfa4..16ad7e4 100644 --- a/test/test_create_inference_deployment_response.py +++ b/test/test_create_inference_deployment_response.py @@ -14,7 +14,7 @@ import unittest -from platform_api_python_client.models.create_inference_deployment_response import CreateInferenceDeploymentResponse +from platform_api_external_client.models.create_inference_deployment_response import CreateInferenceDeploymentResponse class TestCreateInferenceDeploymentResponse(unittest.TestCase): """CreateInferenceDeploymentResponse unit test stubs""" diff --git a/test/test_credits_response.py b/test/test_credits_response.py index 51d5962..a9f42a4 100644 --- a/test/test_credits_response.py +++ b/test/test_credits_response.py @@ -14,7 +14,7 @@ import unittest -from platform_api_python_client.models.credits_response import CreditsResponse +from platform_api_external_client.models.credits_response import CreditsResponse class TestCreditsResponse(unittest.TestCase): """CreditsResponse unit test stubs""" @@ -35,11 +35,11 @@ def make_instance(self, include_optional) -> CreditsResponse: model = CreditsResponse() if include_optional: return CreditsResponse( - credits = 56 + credits = 1.337 ) else: return CreditsResponse( - credits = 56, + credits = 1.337, ) """ diff --git a/test/test_daily_bill_response.py b/test/test_daily_bill_response.py index 0cf6b2a..3cffe32 100644 --- a/test/test_daily_bill_response.py +++ b/test/test_daily_bill_response.py @@ -14,7 +14,7 @@ import unittest -from platform_api_python_client.models.daily_bill_response import DailyBillResponse +from platform_api_external_client.models.daily_bill_response import DailyBillResponse class TestDailyBillResponse(unittest.TestCase): """DailyBillResponse unit test stubs""" @@ -36,12 +36,12 @@ def make_instance(self, include_optional) -> DailyBillResponse: if include_optional: return DailyBillResponse( var_date = datetime.datetime.strptime('1975-12-30', '%Y-%m-%d').date(), - credits = 56 + credits = 1.337 ) else: return DailyBillResponse( var_date = datetime.datetime.strptime('1975-12-30', '%Y-%m-%d').date(), - credits = 56, + credits = 1.337, ) """ diff --git a/test/test_deployment_status.py b/test/test_deployment_status.py index 4df85c2..df87231 100644 --- a/test/test_deployment_status.py +++ b/test/test_deployment_status.py @@ -14,7 +14,7 @@ import unittest -from platform_api_python_client.models.deployment_status import DeploymentStatus +from platform_api_external_client.models.deployment_status import DeploymentStatus class TestDeploymentStatus(unittest.TestCase): """DeploymentStatus unit test stubs""" diff --git a/test/test_deployment_status_request.py b/test/test_deployment_status_request.py index 7dfaea0..89d729a 100644 --- a/test/test_deployment_status_request.py +++ b/test/test_deployment_status_request.py @@ -14,7 +14,7 @@ import unittest -from platform_api_python_client.models.deployment_status_request import DeploymentStatusRequest +from platform_api_external_client.models.deployment_status_request import DeploymentStatusRequest class TestDeploymentStatusRequest(unittest.TestCase): """DeploymentStatusRequest unit test stubs""" diff --git a/test/test_deployment_status_response_v2.py b/test/test_deployment_status_response.py similarity index 73% rename from test/test_deployment_status_response_v2.py rename to test/test_deployment_status_response.py index e43541f..6c84906 100644 --- a/test/test_deployment_status_response_v2.py +++ b/test/test_deployment_status_response.py @@ -14,10 +14,10 @@ import unittest -from platform_api_python_client.models.deployment_status_response_v2 import DeploymentStatusResponseV2 +from platform_api_external_client.models.deployment_status_response import DeploymentStatusResponse -class TestDeploymentStatusResponseV2(unittest.TestCase): - """DeploymentStatusResponseV2 unit test stubs""" +class TestDeploymentStatusResponse(unittest.TestCase): + """DeploymentStatusResponse unit test stubs""" def setUp(self): pass @@ -25,16 +25,16 @@ def setUp(self): def tearDown(self): pass - def make_instance(self, include_optional) -> DeploymentStatusResponseV2: - """Test DeploymentStatusResponseV2 + def make_instance(self, include_optional) -> DeploymentStatusResponse: + """Test DeploymentStatusResponse 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 `DeploymentStatusResponseV2` + # uncomment below to create an instance of `DeploymentStatusResponse` """ - model = DeploymentStatusResponseV2() + model = DeploymentStatusResponse() if include_optional: - return DeploymentStatusResponseV2( + return DeploymentStatusResponse( id = 56, type = 'inference', status = 'active', @@ -43,7 +43,7 @@ def make_instance(self, include_optional) -> DeploymentStatusResponseV2: endpoint_url = '' ) else: - return DeploymentStatusResponseV2( + return DeploymentStatusResponse( id = 56, type = 'inference', status = 'active', @@ -53,8 +53,8 @@ def make_instance(self, include_optional) -> DeploymentStatusResponseV2: ) """ - def testDeploymentStatusResponseV2(self): - """Test DeploymentStatusResponseV2""" + def testDeploymentStatusResponse(self): + """Test DeploymentStatusResponse""" # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) diff --git a/test/test_deployment_type.py b/test/test_deployment_type.py index 1029576..20aa39e 100644 --- a/test/test_deployment_type.py +++ b/test/test_deployment_type.py @@ -14,7 +14,7 @@ import unittest -from platform_api_python_client.models.deployment_type import DeploymentType +from platform_api_external_client.models.deployment_type import DeploymentType class TestDeploymentType(unittest.TestCase): """DeploymentType unit test stubs""" diff --git a/test/test_deployment_usage_value.py b/test/test_deployment_usage_value.py index 9e518ab..b0f211a 100644 --- a/test/test_deployment_usage_value.py +++ b/test/test_deployment_usage_value.py @@ -14,7 +14,7 @@ import unittest -from platform_api_python_client.models.deployment_usage_value import DeploymentUsageValue +from platform_api_external_client.models.deployment_usage_value import DeploymentUsageValue class TestDeploymentUsageValue(unittest.TestCase): """DeploymentUsageValue unit test stubs""" diff --git a/test/test_external_api.py b/test/test_external_api.py index b556b63..8624da9 100644 --- a/test/test_external_api.py +++ b/test/test_external_api.py @@ -14,7 +14,7 @@ import unittest -from platform_api_python_client.api.external_api import EXTERNALApi +from platform_api_external_client.api.external_api import EXTERNALApi class TestEXTERNALApi(unittest.TestCase): @@ -26,10 +26,10 @@ def setUp(self) -> None: def tearDown(self) -> None: pass - def test_add_feedback_request_support_feedback_post(self) -> None: - """Test case for add_feedback_request_support_feedback_post + def test_add_user_request_support_user_requests_post(self) -> None: + """Test case for add_user_request_support_user_requests_post - Add Feedback Request + Add User Request """ pass @@ -40,48 +40,34 @@ def test_create_api_key_credentials_api_key_post(self) -> None: """ pass - def test_create_compute_deployment_deployments_v2_compute_post(self) -> None: - """Test case for create_compute_deployment_deployments_v2_compute_post + def test_create_checkout_payments_checkout_post(self) -> None: + """Test case for create_checkout_payments_checkout_post - Create Compute Deployment + Create Checkout """ pass - def test_create_cserve_deployment_deployments_v2_cserve_post(self) -> None: - """Test case for create_cserve_deployment_deployments_v2_cserve_post + def test_create_compute_deployment_deployments_compute_post(self) -> None: + """Test case for create_compute_deployment_deployments_compute_post - Create Cserve Deployment + Create Compute Deployment """ pass - def test_create_hardware_request_support_hardware_request_post(self) -> None: - """Test case for create_hardware_request_support_hardware_request_post + def test_create_cserve_deployment_deployments_cserve_post(self) -> None: + """Test case for create_cserve_deployment_deployments_cserve_post - Create Hardware Request + Create Cserve Deployment """ pass - def test_create_inference_deployment_deployments_v2_inference_post(self) -> None: - """Test case for create_inference_deployment_deployments_v2_inference_post + def test_create_inference_deployment_deployments_inference_post(self) -> None: + """Test case for create_inference_deployment_deployments_inference_post Create Inference Deployment """ pass - def test_create_payment_payments_post(self) -> None: - """Test case for create_payment_payments_post - - Create Payment - """ - pass - - def test_create_payment_setup_payments_setup_post(self) -> None: - """Test case for create_payment_setup_payments_setup_post - - Create Payment Setup - """ - pass - def test_delete_api_key_credentials_api_key_id_delete(self) -> None: """Test case for delete_api_key_credentials_api_key_id_delete @@ -89,13 +75,6 @@ def test_delete_api_key_credentials_api_key_id_delete(self) -> None: """ pass - def test_delete_payment_method_payments_methods_payment_method_delete(self) -> None: - """Test case for delete_payment_method_payments_methods_payment_method_delete - - Delete Payment Method - """ - pass - def test_get_api_keys_credentials_api_key_get(self) -> None: """Test case for get_api_keys_credentials_api_key_get @@ -110,8 +89,8 @@ def test_get_clusters_clusters_get(self) -> None: """ pass - def test_get_compute_deployment_deployments_v2_compute_deployment_id_get(self) -> None: - """Test case for get_compute_deployment_deployments_v2_compute_deployment_id_get + def test_get_compute_deployment_deployments_compute_deployment_id_get(self) -> None: + """Test case for get_compute_deployment_deployments_compute_deployment_id_get Get Compute Deployment """ @@ -124,15 +103,15 @@ def test_get_credits_credits_get(self) -> None: """ pass - def test_get_cserve_deployment_deployments_v2_cserve_deployment_id_get(self) -> None: - """Test case for get_cserve_deployment_deployments_v2_cserve_deployment_id_get + def test_get_cserve_deployment_deployments_cserve_deployment_id_get(self) -> None: + """Test case for get_cserve_deployment_deployments_cserve_deployment_id_get Get Cserve Deployment """ pass - def test_get_cserve_recipe_deployments_v2_cserve_recipes_get(self) -> None: - """Test case for get_cserve_recipe_deployments_v2_cserve_recipes_get + def test_get_cserve_recipe_deployments_cserve_recipes_get(self) -> None: + """Test case for get_cserve_recipe_deployments_cserve_recipes_get Get Cserve Recipe """ @@ -145,15 +124,15 @@ def test_get_deployment_logs_deployments_logs_deployment_id_get(self) -> None: """ pass - def test_get_deployment_status_deployments_v2_status_deployment_id_get(self) -> None: - """Test case for get_deployment_status_deployments_v2_status_deployment_id_get + def test_get_deployment_status_deployments_status_deployment_id_get(self) -> None: + """Test case for get_deployment_status_deployments_status_deployment_id_get Get Deployment Status """ pass - def test_get_deployments_deployments_v2_get(self) -> None: - """Test case for get_deployments_deployments_v2_get + def test_get_deployments_deployments_get(self) -> None: + """Test case for get_deployments_deployments_get Get Deployments """ @@ -166,24 +145,17 @@ def test_get_hardware_instances_hardware_instances_get(self) -> None: """ pass - def test_get_hardware_instances_hardware_instances_v2_get(self) -> None: - """Test case for get_hardware_instances_hardware_instances_v2_get - - Get Hardware Instances - """ - pass - - def test_get_inference_deployment_deployments_v2_inference_deployment_id_get(self) -> None: - """Test case for get_inference_deployment_deployments_v2_inference_deployment_id_get + def test_get_inference_deployment_deployments_inference_deployment_id_get(self) -> None: + """Test case for get_inference_deployment_deployments_inference_deployment_id_get Get Inference Deployment """ pass - def test_get_payment_methods_payments_methods_get(self) -> None: - """Test case for get_payment_methods_payments_methods_get + def test_get_payments_payments_get(self) -> None: + """Test case for get_payments_payments_get - Get Payment Methods + Get Payments """ pass @@ -208,8 +180,15 @@ def test_get_usage_deployments_usage_deployment_id_get(self) -> None: """ pass - def test_update_deployment_status_deployments_v2_status_deployment_id_put(self) -> None: - """Test case for update_deployment_status_deployments_v2_status_deployment_id_put + def test_setup_stripe_customer_payments_setup_post(self) -> None: + """Test case for setup_stripe_customer_payments_setup_post + + Setup Stripe Customer + """ + pass + + def test_update_deployment_status_deployments_status_deployment_id_put(self) -> None: + """Test case for update_deployment_status_deployments_status_deployment_id_put Update Deployment Status """ diff --git a/test/test_get_c_serve_deployment_response.py b/test/test_get_c_serve_deployment_response.py index 98503cf..6c6fbf8 100644 --- a/test/test_get_c_serve_deployment_response.py +++ b/test/test_get_c_serve_deployment_response.py @@ -14,7 +14,7 @@ import unittest -from platform_api_python_client.models.get_c_serve_deployment_response import GetCServeDeploymentResponse +from platform_api_external_client.models.get_c_serve_deployment_response import GetCServeDeploymentResponse class TestGetCServeDeploymentResponse(unittest.TestCase): """GetCServeDeploymentResponse unit test stubs""" @@ -67,7 +67,10 @@ def make_instance(self, include_optional) -> GetCServeDeploymentResponse: min_scale = 56, max_scale = 56, endpoint_certificate_authority = '', - concurrency = 56 + concurrency = 56, + env_vars = { + 'key' : '' + } ) else: return GetCServeDeploymentResponse( @@ -104,6 +107,9 @@ def make_instance(self, include_optional) -> GetCServeDeploymentResponse: max_scale = 56, endpoint_certificate_authority = '', concurrency = 56, + env_vars = { + 'key' : '' + }, ) """ diff --git a/test/test_get_cluster_response.py b/test/test_get_cluster_response.py index 2e1b653..fc850c4 100644 --- a/test/test_get_cluster_response.py +++ b/test/test_get_cluster_response.py @@ -14,7 +14,7 @@ import unittest -from platform_api_python_client.models.get_cluster_response import GetClusterResponse +from platform_api_external_client.models.get_cluster_response import GetClusterResponse class TestGetClusterResponse(unittest.TestCase): """GetClusterResponse unit test stubs""" diff --git a/test/test_get_compute_v2_deployment_response.py b/test/test_get_compute_deployment_response.py similarity index 74% rename from test/test_get_compute_v2_deployment_response.py rename to test/test_get_compute_deployment_response.py index e5bc385..5e82e5f 100644 --- a/test/test_get_compute_v2_deployment_response.py +++ b/test/test_get_compute_deployment_response.py @@ -14,10 +14,10 @@ import unittest -from platform_api_python_client.models.get_compute_v2_deployment_response import GetComputeV2DeploymentResponse +from platform_api_external_client.models.get_compute_deployment_response import GetComputeDeploymentResponse -class TestGetComputeV2DeploymentResponse(unittest.TestCase): - """GetComputeV2DeploymentResponse unit test stubs""" +class TestGetComputeDeploymentResponse(unittest.TestCase): + """GetComputeDeploymentResponse unit test stubs""" def setUp(self): pass @@ -25,16 +25,16 @@ def setUp(self): def tearDown(self): pass - def make_instance(self, include_optional) -> GetComputeV2DeploymentResponse: - """Test GetComputeV2DeploymentResponse + def make_instance(self, include_optional) -> GetComputeDeploymentResponse: + """Test GetComputeDeploymentResponse 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 `GetComputeV2DeploymentResponse` + # uncomment below to create an instance of `GetComputeDeploymentResponse` """ - model = GetComputeV2DeploymentResponse() + model = GetComputeDeploymentResponse() if include_optional: - return GetComputeV2DeploymentResponse( + return GetComputeDeploymentResponse( cluster_id = 56, id = 56, name = '', @@ -52,7 +52,7 @@ def make_instance(self, include_optional) -> GetComputeV2DeploymentResponse: } ) else: - return GetComputeV2DeploymentResponse( + return GetComputeDeploymentResponse( cluster_id = 56, id = 56, name = '', @@ -71,8 +71,8 @@ def make_instance(self, include_optional) -> GetComputeV2DeploymentResponse: ) """ - def testGetComputeV2DeploymentResponse(self): - """Test GetComputeV2DeploymentResponse""" + def testGetComputeDeploymentResponse(self): + """Test GetComputeDeploymentResponse""" # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) diff --git a/test/test_get_deployment_log_response.py b/test/test_get_deployment_log_response.py index 4fe4110..2b78d43 100644 --- a/test/test_get_deployment_log_response.py +++ b/test/test_get_deployment_log_response.py @@ -14,7 +14,7 @@ import unittest -from platform_api_python_client.models.get_deployment_log_response import GetDeploymentLogResponse +from platform_api_external_client.models.get_deployment_log_response import GetDeploymentLogResponse class TestGetDeploymentLogResponse(unittest.TestCase): """GetDeploymentLogResponse unit test stubs""" diff --git a/test/test_get_deployment_v2_response.py b/test/test_get_deployment_response.py similarity index 75% rename from test/test_get_deployment_v2_response.py rename to test/test_get_deployment_response.py index 85038ae..3bc1991 100644 --- a/test/test_get_deployment_v2_response.py +++ b/test/test_get_deployment_response.py @@ -14,10 +14,10 @@ import unittest -from platform_api_python_client.models.get_deployment_v2_response import GetDeploymentV2Response +from platform_api_external_client.models.get_deployment_response import GetDeploymentResponse -class TestGetDeploymentV2Response(unittest.TestCase): - """GetDeploymentV2Response unit test stubs""" +class TestGetDeploymentResponse(unittest.TestCase): + """GetDeploymentResponse unit test stubs""" def setUp(self): pass @@ -25,16 +25,16 @@ def setUp(self): def tearDown(self): pass - def make_instance(self, include_optional) -> GetDeploymentV2Response: - """Test GetDeploymentV2Response + def make_instance(self, include_optional) -> GetDeploymentResponse: + """Test GetDeploymentResponse 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 `GetDeploymentV2Response` + # uncomment below to create an instance of `GetDeploymentResponse` """ - model = GetDeploymentV2Response() + model = GetDeploymentResponse() if include_optional: - return GetDeploymentV2Response( + return GetDeploymentResponse( cluster_id = 56, id = 56, name = '', @@ -46,7 +46,7 @@ def make_instance(self, include_optional) -> GetDeploymentV2Response: hardware_instance_id = 56 ) else: - return GetDeploymentV2Response( + return GetDeploymentResponse( cluster_id = 56, id = 56, name = '', @@ -59,8 +59,8 @@ def make_instance(self, include_optional) -> GetDeploymentV2Response: ) """ - def testGetDeploymentV2Response(self): - """Test GetDeploymentV2Response""" + def testGetDeploymentResponse(self): + """Test GetDeploymentResponse""" # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) diff --git a/test/test_get_deployment_usage_response.py b/test/test_get_deployment_usage_response.py index 8f4b11b..2c135ec 100644 --- a/test/test_get_deployment_usage_response.py +++ b/test/test_get_deployment_usage_response.py @@ -14,7 +14,7 @@ import unittest -from platform_api_python_client.models.get_deployment_usage_response import GetDeploymentUsageResponse +from platform_api_external_client.models.get_deployment_usage_response import GetDeploymentUsageResponse class TestGetDeploymentUsageResponse(unittest.TestCase): """GetDeploymentUsageResponse unit test stubs""" @@ -36,7 +36,7 @@ def make_instance(self, include_optional) -> GetDeploymentUsageResponse: if include_optional: return GetDeploymentUsageResponse( values = [ - platform_api_python_client.models.deployment_usage_value.DeploymentUsageValue( + platform_api_external_client.models.deployment_usage_value.DeploymentUsageValue( timestamp = 56, value = 1.337, ) ] @@ -44,7 +44,7 @@ def make_instance(self, include_optional) -> GetDeploymentUsageResponse: else: return GetDeploymentUsageResponse( values = [ - platform_api_python_client.models.deployment_usage_value.DeploymentUsageValue( + platform_api_external_client.models.deployment_usage_value.DeploymentUsageValue( timestamp = 56, value = 1.337, ) ], diff --git a/test/test_get_inference_v2_deployment_response.py b/test/test_get_inference_deployment_response.py similarity index 70% rename from test/test_get_inference_v2_deployment_response.py rename to test/test_get_inference_deployment_response.py index 8424b75..dcf1768 100644 --- a/test/test_get_inference_v2_deployment_response.py +++ b/test/test_get_inference_deployment_response.py @@ -14,10 +14,10 @@ import unittest -from platform_api_python_client.models.get_inference_v2_deployment_response import GetInferenceV2DeploymentResponse +from platform_api_external_client.models.get_inference_deployment_response import GetInferenceDeploymentResponse -class TestGetInferenceV2DeploymentResponse(unittest.TestCase): - """GetInferenceV2DeploymentResponse unit test stubs""" +class TestGetInferenceDeploymentResponse(unittest.TestCase): + """GetInferenceDeploymentResponse unit test stubs""" def setUp(self): pass @@ -25,16 +25,16 @@ def setUp(self): def tearDown(self): pass - def make_instance(self, include_optional) -> GetInferenceV2DeploymentResponse: - """Test GetInferenceV2DeploymentResponse + def make_instance(self, include_optional) -> GetInferenceDeploymentResponse: + """Test GetInferenceDeploymentResponse 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 `GetInferenceV2DeploymentResponse` + # uncomment below to create an instance of `GetInferenceDeploymentResponse` """ - model = GetInferenceV2DeploymentResponse() + model = GetInferenceDeploymentResponse() if include_optional: - return GetInferenceV2DeploymentResponse( + return GetInferenceDeploymentResponse( cluster_id = 56, id = 56, name = '', @@ -52,10 +52,16 @@ def make_instance(self, include_optional) -> GetInferenceV2DeploymentResponse: endpoint_certificate_authority = '', env_vars = { 'key' : '' - } + }, + command = [ + '' + ], + command_args = [ + '' + ] ) else: - return GetInferenceV2DeploymentResponse( + return GetInferenceDeploymentResponse( cluster_id = 56, id = 56, name = '', @@ -74,11 +80,17 @@ def make_instance(self, include_optional) -> GetInferenceV2DeploymentResponse: env_vars = { 'key' : '' }, + command = [ + '' + ], + command_args = [ + '' + ], ) """ - def testGetInferenceV2DeploymentResponse(self): - """Test GetInferenceV2DeploymentResponse""" + def testGetInferenceDeploymentResponse(self): + """Test GetInferenceDeploymentResponse""" # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) diff --git a/test/test_list_payment_method_response.py b/test/test_get_payments_response.py similarity index 58% rename from test/test_list_payment_method_response.py rename to test/test_get_payments_response.py index 5c91222..d2041f9 100644 --- a/test/test_list_payment_method_response.py +++ b/test/test_get_payments_response.py @@ -14,10 +14,10 @@ import unittest -from platform_api_python_client.models.list_payment_method_response import ListPaymentMethodResponse +from platform_api_external_client.models.get_payments_response import GetPaymentsResponse -class TestListPaymentMethodResponse(unittest.TestCase): - """ListPaymentMethodResponse unit test stubs""" +class TestGetPaymentsResponse(unittest.TestCase): + """GetPaymentsResponse unit test stubs""" def setUp(self): pass @@ -25,30 +25,32 @@ def setUp(self): def tearDown(self): pass - def make_instance(self, include_optional) -> ListPaymentMethodResponse: - """Test ListPaymentMethodResponse + def make_instance(self, include_optional) -> GetPaymentsResponse: + """Test GetPaymentsResponse 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 `ListPaymentMethodResponse` + # uncomment below to create an instance of `GetPaymentsResponse` """ - model = ListPaymentMethodResponse() + model = GetPaymentsResponse() if include_optional: - return ListPaymentMethodResponse( - results = [ + return GetPaymentsResponse( + has_more = True, + payments = [ None ] ) else: - return ListPaymentMethodResponse( - results = [ + return GetPaymentsResponse( + has_more = True, + payments = [ None ], ) """ - def testListPaymentMethodResponse(self): - """Test ListPaymentMethodResponse""" + def testGetPaymentsResponse(self): + """Test GetPaymentsResponse""" # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) diff --git a/test/test_hardware_instance_response.py b/test/test_hardware_instance_response.py index 918b488..80976ce 100644 --- a/test/test_hardware_instance_response.py +++ b/test/test_hardware_instance_response.py @@ -14,7 +14,7 @@ import unittest -from platform_api_python_client.models.hardware_instance_response import HardwareInstanceResponse +from platform_api_external_client.models.hardware_instance_response import HardwareInstanceResponse class TestHardwareInstanceResponse(unittest.TestCase): """HardwareInstanceResponse unit test stubs""" diff --git a/test/test_http_validation_error.py b/test/test_http_validation_error.py index b87c23f..1e6013c 100644 --- a/test/test_http_validation_error.py +++ b/test/test_http_validation_error.py @@ -14,7 +14,7 @@ import unittest -from platform_api_python_client.models.http_validation_error import HTTPValidationError +from platform_api_external_client.models.http_validation_error import HTTPValidationError class TestHTTPValidationError(unittest.TestCase): """HTTPValidationError unit test stubs""" @@ -36,7 +36,7 @@ def make_instance(self, include_optional) -> HTTPValidationError: if include_optional: return HTTPValidationError( detail = [ - platform_api_python_client.models.validation_error.ValidationError( + platform_api_external_client.models.validation_error.ValidationError( loc = [ null ], diff --git a/test/test_list_api_key_response.py b/test/test_list_api_key_response.py index 829e245..331e17e 100644 --- a/test/test_list_api_key_response.py +++ b/test/test_list_api_key_response.py @@ -14,7 +14,7 @@ import unittest -from platform_api_python_client.models.list_api_key_response import ListAPIKeyResponse +from platform_api_external_client.models.list_api_key_response import ListAPIKeyResponse class TestListAPIKeyResponse(unittest.TestCase): """ListAPIKeyResponse unit test stubs""" @@ -36,7 +36,7 @@ def make_instance(self, include_optional) -> ListAPIKeyResponse: if include_optional: return ListAPIKeyResponse( results = [ - platform_api_python_client.models.api_key_response.APIKeyResponse( + platform_api_external_client.models.api_key_response.APIKeyResponse( name = '', id = '', created_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), ) @@ -45,7 +45,7 @@ def make_instance(self, include_optional) -> ListAPIKeyResponse: else: return ListAPIKeyResponse( results = [ - platform_api_python_client.models.api_key_response.APIKeyResponse( + platform_api_external_client.models.api_key_response.APIKeyResponse( name = '', id = '', created_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), ) diff --git a/test/test_list_c_serve_recipe_response.py b/test/test_list_c_serve_recipe_response.py index 7aed9ea..50cf61a 100644 --- a/test/test_list_c_serve_recipe_response.py +++ b/test/test_list_c_serve_recipe_response.py @@ -14,7 +14,7 @@ import unittest -from platform_api_python_client.models.list_c_serve_recipe_response import ListCServeRecipeResponse +from platform_api_external_client.models.list_c_serve_recipe_response import ListCServeRecipeResponse class TestListCServeRecipeResponse(unittest.TestCase): """ListCServeRecipeResponse unit test stubs""" @@ -36,11 +36,11 @@ def make_instance(self, include_optional) -> ListCServeRecipeResponse: if include_optional: return ListCServeRecipeResponse( results = [ - platform_api_python_client.models.c_serve_recipe_response.CServeRecipeResponse( + platform_api_external_client.models.c_serve_recipe_response.CServeRecipeResponse( model = '', cluster_id = 56, - fastest = platform_api_python_client.models.c_serve_recipe_perf.CServeRecipePerf( - recipe = platform_api_python_client.models.c_serve_recipe.CServeRecipe( + fastest = platform_api_external_client.models.c_serve_recipe_perf.CServeRecipePerf( + recipe = platform_api_external_client.models.c_serve_recipe.CServeRecipe( model = '', is_embedding_model = True, tensor_parallel_size = 56, @@ -72,8 +72,8 @@ def make_instance(self, include_optional) -> ListCServeRecipeResponse: null ] ], ), - cheapest = platform_api_python_client.models.c_serve_recipe_perf.CServeRecipePerf( - recipe = platform_api_python_client.models.c_serve_recipe.CServeRecipe( + cheapest = platform_api_external_client.models.c_serve_recipe_perf.CServeRecipePerf( + recipe = platform_api_external_client.models.c_serve_recipe.CServeRecipe( model = '', is_embedding_model = True, tensor_parallel_size = 56, @@ -111,11 +111,11 @@ def make_instance(self, include_optional) -> ListCServeRecipeResponse: else: return ListCServeRecipeResponse( results = [ - platform_api_python_client.models.c_serve_recipe_response.CServeRecipeResponse( + platform_api_external_client.models.c_serve_recipe_response.CServeRecipeResponse( model = '', cluster_id = 56, - fastest = platform_api_python_client.models.c_serve_recipe_perf.CServeRecipePerf( - recipe = platform_api_python_client.models.c_serve_recipe.CServeRecipe( + fastest = platform_api_external_client.models.c_serve_recipe_perf.CServeRecipePerf( + recipe = platform_api_external_client.models.c_serve_recipe.CServeRecipe( model = '', is_embedding_model = True, tensor_parallel_size = 56, @@ -147,8 +147,8 @@ def make_instance(self, include_optional) -> ListCServeRecipeResponse: null ] ], ), - cheapest = platform_api_python_client.models.c_serve_recipe_perf.CServeRecipePerf( - recipe = platform_api_python_client.models.c_serve_recipe.CServeRecipe( + cheapest = platform_api_external_client.models.c_serve_recipe_perf.CServeRecipePerf( + recipe = platform_api_external_client.models.c_serve_recipe.CServeRecipe( model = '', is_embedding_model = True, tensor_parallel_size = 56, diff --git a/test/test_list_daily_bill_response.py b/test/test_list_daily_bill_response.py index ac97ef0..5f9c1fc 100644 --- a/test/test_list_daily_bill_response.py +++ b/test/test_list_daily_bill_response.py @@ -14,7 +14,7 @@ import unittest -from platform_api_python_client.models.list_daily_bill_response import ListDailyBillResponse +from platform_api_external_client.models.list_daily_bill_response import ListDailyBillResponse class TestListDailyBillResponse(unittest.TestCase): """ListDailyBillResponse unit test stubs""" @@ -36,17 +36,17 @@ def make_instance(self, include_optional) -> ListDailyBillResponse: if include_optional: return ListDailyBillResponse( results = [ - platform_api_python_client.models.daily_bill_response.DailyBillResponse( + platform_api_external_client.models.daily_bill_response.DailyBillResponse( date = datetime.datetime.strptime('1975-12-30', '%Y-%m-%d').date(), - credits = 56, ) + credits = 1.337, ) ] ) else: return ListDailyBillResponse( results = [ - platform_api_python_client.models.daily_bill_response.DailyBillResponse( + platform_api_external_client.models.daily_bill_response.DailyBillResponse( date = datetime.datetime.strptime('1975-12-30', '%Y-%m-%d').date(), - credits = 56, ) + credits = 1.337, ) ], ) """ diff --git a/test/test_list_get_cluster_response.py b/test/test_list_get_cluster_response.py index dff2eca..7d5a841 100644 --- a/test/test_list_get_cluster_response.py +++ b/test/test_list_get_cluster_response.py @@ -14,7 +14,7 @@ import unittest -from platform_api_python_client.models.list_get_cluster_response import ListGetClusterResponse +from platform_api_external_client.models.list_get_cluster_response import ListGetClusterResponse class TestListGetClusterResponse(unittest.TestCase): """ListGetClusterResponse unit test stubs""" @@ -36,7 +36,7 @@ def make_instance(self, include_optional) -> ListGetClusterResponse: if include_optional: return ListGetClusterResponse( results = [ - platform_api_python_client.models.get_cluster_response.GetClusterResponse( + platform_api_external_client.models.get_cluster_response.GetClusterResponse( id = 56, display_name = '', ) ] @@ -44,7 +44,7 @@ def make_instance(self, include_optional) -> ListGetClusterResponse: else: return ListGetClusterResponse( results = [ - platform_api_python_client.models.get_cluster_response.GetClusterResponse( + platform_api_external_client.models.get_cluster_response.GetClusterResponse( id = 56, display_name = '', ) ], diff --git a/test/test_list_get_deployment_v2_response.py b/test/test_list_get_deployment_response.py similarity index 73% rename from test/test_list_get_deployment_v2_response.py rename to test/test_list_get_deployment_response.py index 44a836b..b5446b7 100644 --- a/test/test_list_get_deployment_v2_response.py +++ b/test/test_list_get_deployment_response.py @@ -14,10 +14,10 @@ import unittest -from platform_api_python_client.models.list_get_deployment_v2_response import ListGetDeploymentV2Response +from platform_api_external_client.models.list_get_deployment_response import ListGetDeploymentResponse -class TestListGetDeploymentV2Response(unittest.TestCase): - """ListGetDeploymentV2Response unit test stubs""" +class TestListGetDeploymentResponse(unittest.TestCase): + """ListGetDeploymentResponse unit test stubs""" def setUp(self): pass @@ -25,18 +25,18 @@ def setUp(self): def tearDown(self): pass - def make_instance(self, include_optional) -> ListGetDeploymentV2Response: - """Test ListGetDeploymentV2Response + def make_instance(self, include_optional) -> ListGetDeploymentResponse: + """Test ListGetDeploymentResponse 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 `ListGetDeploymentV2Response` + # uncomment below to create an instance of `ListGetDeploymentResponse` """ - model = ListGetDeploymentV2Response() + model = ListGetDeploymentResponse() if include_optional: - return ListGetDeploymentV2Response( + return ListGetDeploymentResponse( results = [ - platform_api_python_client.models.get_deployment_v2_response.GetDeploymentV2Response( + platform_api_external_client.models.get_deployment_response.GetDeploymentResponse( cluster_id = 56, id = 56, name = '', @@ -49,9 +49,9 @@ def make_instance(self, include_optional) -> ListGetDeploymentV2Response: ] ) else: - return ListGetDeploymentV2Response( + return ListGetDeploymentResponse( results = [ - platform_api_python_client.models.get_deployment_v2_response.GetDeploymentV2Response( + platform_api_external_client.models.get_deployment_response.GetDeploymentResponse( cluster_id = 56, id = 56, name = '', @@ -65,8 +65,8 @@ def make_instance(self, include_optional) -> ListGetDeploymentV2Response: ) """ - def testListGetDeploymentV2Response(self): - """Test ListGetDeploymentV2Response""" + def testListGetDeploymentResponse(self): + """Test ListGetDeploymentResponse""" # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) diff --git a/test/test_list_hardware_instance_response.py b/test/test_list_hardware_instance_response.py index 93b37dd..7548db3 100644 --- a/test/test_list_hardware_instance_response.py +++ b/test/test_list_hardware_instance_response.py @@ -14,7 +14,7 @@ import unittest -from platform_api_python_client.models.list_hardware_instance_response import ListHardwareInstanceResponse +from platform_api_external_client.models.list_hardware_instance_response import ListHardwareInstanceResponse class TestListHardwareInstanceResponse(unittest.TestCase): """ListHardwareInstanceResponse unit test stubs""" @@ -36,7 +36,7 @@ def make_instance(self, include_optional) -> ListHardwareInstanceResponse: if include_optional: return ListHardwareInstanceResponse( results = [ - platform_api_python_client.models.hardware_instance_response.HardwareInstanceResponse( + platform_api_external_client.models.hardware_instance_response.HardwareInstanceResponse( id = 56, name = '', gpu_type = '', @@ -49,7 +49,7 @@ def make_instance(self, include_optional) -> ListHardwareInstanceResponse: else: return ListHardwareInstanceResponse( results = [ - platform_api_python_client.models.hardware_instance_response.HardwareInstanceResponse( + platform_api_external_client.models.hardware_instance_response.HardwareInstanceResponse( id = 56, name = '', gpu_type = '', diff --git a/test/test_list_prebuilt_image_response.py b/test/test_list_prebuilt_image_response.py index 7229b4e..09735b0 100644 --- a/test/test_list_prebuilt_image_response.py +++ b/test/test_list_prebuilt_image_response.py @@ -14,7 +14,7 @@ import unittest -from platform_api_python_client.models.list_prebuilt_image_response import ListPrebuiltImageResponse +from platform_api_external_client.models.list_prebuilt_image_response import ListPrebuiltImageResponse class TestListPrebuiltImageResponse(unittest.TestCase): """ListPrebuiltImageResponse unit test stubs""" @@ -36,25 +36,29 @@ def make_instance(self, include_optional) -> ListPrebuiltImageResponse: if include_optional: return ListPrebuiltImageResponse( results = [ - platform_api_python_client.models.prebuilt_image_response.PrebuiltImageResponse( + platform_api_external_client.models.prebuilt_image_response.PrebuiltImageResponse( image_name = '', label = '', tags = [ '' ], - type = 'inference', ) + type = 'inference', + port = 56, + healthcheck = '', ) ] ) else: return ListPrebuiltImageResponse( results = [ - platform_api_python_client.models.prebuilt_image_response.PrebuiltImageResponse( + platform_api_external_client.models.prebuilt_image_response.PrebuiltImageResponse( image_name = '', label = '', tags = [ '' ], - type = 'inference', ) + type = 'inference', + port = 56, + healthcheck = '', ) ], ) """ diff --git a/test/test_metric.py b/test/test_metric.py index 3708260..001b75a 100644 --- a/test/test_metric.py +++ b/test/test_metric.py @@ -14,7 +14,7 @@ import unittest -from platform_api_python_client.models.metric import Metric +from platform_api_external_client.models.metric import Metric class TestMetric(unittest.TestCase): """Metric unit test stubs""" diff --git a/test/test_prebuilt_image_response.py b/test/test_prebuilt_image_response.py index a000a93..467d533 100644 --- a/test/test_prebuilt_image_response.py +++ b/test/test_prebuilt_image_response.py @@ -14,7 +14,7 @@ import unittest -from platform_api_python_client.models.prebuilt_image_response import PrebuiltImageResponse +from platform_api_external_client.models.prebuilt_image_response import PrebuiltImageResponse class TestPrebuiltImageResponse(unittest.TestCase): """PrebuiltImageResponse unit test stubs""" @@ -40,7 +40,9 @@ def make_instance(self, include_optional) -> PrebuiltImageResponse: tags = [ '' ], - type = 'inference' + type = 'inference', + port = 56, + healthcheck = '' ) else: return PrebuiltImageResponse( @@ -50,6 +52,8 @@ def make_instance(self, include_optional) -> PrebuiltImageResponse: '' ], type = 'inference', + port = 56, + healthcheck = '', ) """ diff --git a/test/test_health_status.py b/test/test_service_status.py similarity index 64% rename from test/test_health_status.py rename to test/test_service_status.py index e2f1b3e..924dff1 100644 --- a/test/test_health_status.py +++ b/test/test_service_status.py @@ -14,10 +14,10 @@ import unittest -from platform_api_python_client.models.health_status import HealthStatus +from platform_api_external_client.models.service_status import ServiceStatus -class TestHealthStatus(unittest.TestCase): - """HealthStatus unit test stubs""" +class TestServiceStatus(unittest.TestCase): + """ServiceStatus unit test stubs""" def setUp(self): pass @@ -25,9 +25,9 @@ def setUp(self): def tearDown(self): pass - def testHealthStatus(self): - """Test HealthStatus""" - # inst = HealthStatus() + def testServiceStatus(self): + """Test ServiceStatus""" + # inst = ServiceStatus() if __name__ == '__main__': unittest.main() diff --git a/test/test_feedback_request.py b/test/test_user_support_email_request.py similarity index 58% rename from test/test_feedback_request.py rename to test/test_user_support_email_request.py index fa917eb..0e2e3db 100644 --- a/test/test_feedback_request.py +++ b/test/test_user_support_email_request.py @@ -14,10 +14,10 @@ import unittest -from platform_api_python_client.models.feedback_request import FeedbackRequest +from platform_api_external_client.models.user_support_email_request import UserSupportEmailRequest -class TestFeedbackRequest(unittest.TestCase): - """FeedbackRequest unit test stubs""" +class TestUserSupportEmailRequest(unittest.TestCase): + """UserSupportEmailRequest unit test stubs""" def setUp(self): pass @@ -25,30 +25,28 @@ def setUp(self): def tearDown(self): pass - def make_instance(self, include_optional) -> FeedbackRequest: - """Test FeedbackRequest + def make_instance(self, include_optional) -> UserSupportEmailRequest: + """Test UserSupportEmailRequest 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 `FeedbackRequest` + # uncomment below to create an instance of `UserSupportEmailRequest` """ - model = FeedbackRequest() + model = UserSupportEmailRequest() if include_optional: - return FeedbackRequest( + return UserSupportEmailRequest( message = '', - rating = 56, - follow_up = True + subject = '' ) else: - return FeedbackRequest( + return UserSupportEmailRequest( message = '', - rating = 56, - follow_up = True, + subject = '', ) """ - def testFeedbackRequest(self): - """Test FeedbackRequest""" + def testUserSupportEmailRequest(self): + """Test UserSupportEmailRequest""" # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) diff --git a/test/test_validation_error.py b/test/test_validation_error.py index bcf6cfd..23f93a1 100644 --- a/test/test_validation_error.py +++ b/test/test_validation_error.py @@ -14,7 +14,7 @@ import unittest -from platform_api_python_client.models.validation_error import ValidationError +from platform_api_external_client.models.validation_error import ValidationError class TestValidationError(unittest.TestCase): """ValidationError unit test stubs""" diff --git a/test/test_validation_error_loc_inner.py b/test/test_validation_error_loc_inner.py index cda1710..08fa3f9 100644 --- a/test/test_validation_error_loc_inner.py +++ b/test/test_validation_error_loc_inner.py @@ -14,7 +14,7 @@ import unittest -from platform_api_python_client.models.validation_error_loc_inner import ValidationErrorLocInner +from platform_api_external_client.models.validation_error_loc_inner import ValidationErrorLocInner class TestValidationErrorLocInner(unittest.TestCase): """ValidationErrorLocInner unit test stubs"""