platform-api-python-client 4.0.10__tar.gz → 4.0.12__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {platform_api_python_client-4.0.10 → platform_api_python_client-4.0.12}/PKG-INFO +1 -1
- {platform_api_python_client-4.0.10 → platform_api_python_client-4.0.12}/README.md +2 -1
- {platform_api_python_client-4.0.10 → platform_api_python_client-4.0.12}/platform_api_python_client/__init__.py +2 -1
- {platform_api_python_client-4.0.10 → platform_api_python_client-4.0.12}/platform_api_python_client/api_client.py +1 -1
- {platform_api_python_client-4.0.10 → platform_api_python_client-4.0.12}/platform_api_python_client/configuration.py +1 -1
- {platform_api_python_client-4.0.10 → platform_api_python_client-4.0.12}/platform_api_python_client/models/__init__.py +1 -0
- {platform_api_python_client-4.0.10 → platform_api_python_client-4.0.12}/platform_api_python_client/models/create_c_serve_v2_deployment_request.py +8 -1
- {platform_api_python_client-4.0.10 → platform_api_python_client-4.0.12}/platform_api_python_client/models/create_rag_deployment_request.py +8 -1
- platform_api_python_client-4.0.12/platform_api_python_client/models/deployment_usage.py +97 -0
- {platform_api_python_client-4.0.10 → platform_api_python_client-4.0.12}/platform_api_python_client/models/get_c_serve_v2_deployment_response.py +8 -1
- {platform_api_python_client-4.0.10 → platform_api_python_client-4.0.12}/platform_api_python_client/models/get_deployment_usage_response.py +3 -3
- {platform_api_python_client-4.0.10 → platform_api_python_client-4.0.12}/platform_api_python_client/models/get_rag_deployment_response.py +8 -1
- {platform_api_python_client-4.0.10 → platform_api_python_client-4.0.12}/platform_api_python_client/models/metric.py +4 -0
- {platform_api_python_client-4.0.10 → platform_api_python_client-4.0.12}/platform_api_python_client.egg-info/PKG-INFO +1 -1
- {platform_api_python_client-4.0.10 → platform_api_python_client-4.0.12}/platform_api_python_client.egg-info/SOURCES.txt +2 -0
- {platform_api_python_client-4.0.10 → platform_api_python_client-4.0.12}/pyproject.toml +1 -1
- {platform_api_python_client-4.0.10 → platform_api_python_client-4.0.12}/setup.py +1 -1
- {platform_api_python_client-4.0.10 → platform_api_python_client-4.0.12}/test/test_create_c_serve_v2_deployment_request.py +1 -0
- {platform_api_python_client-4.0.10 → platform_api_python_client-4.0.12}/test/test_create_rag_deployment_request.py +1 -0
- platform_api_python_client-4.0.12/test/test_deployment_usage.py +66 -0
- {platform_api_python_client-4.0.10 → platform_api_python_client-4.0.12}/test/test_get_c_serve_v2_deployment_response.py +1 -0
- {platform_api_python_client-4.0.10 → platform_api_python_client-4.0.12}/test/test_get_deployment_usage_response.py +18 -6
- {platform_api_python_client-4.0.10 → platform_api_python_client-4.0.12}/test/test_get_rag_deployment_response.py +1 -0
- {platform_api_python_client-4.0.10 → platform_api_python_client-4.0.12}/platform_api_python_client/api/__init__.py +0 -0
- {platform_api_python_client-4.0.10 → platform_api_python_client-4.0.12}/platform_api_python_client/api/external_api.py +0 -0
- {platform_api_python_client-4.0.10 → platform_api_python_client-4.0.12}/platform_api_python_client/api_response.py +0 -0
- {platform_api_python_client-4.0.10 → platform_api_python_client-4.0.12}/platform_api_python_client/exceptions.py +0 -0
- {platform_api_python_client-4.0.10 → platform_api_python_client-4.0.12}/platform_api_python_client/models/api_key_request.py +0 -0
- {platform_api_python_client-4.0.10 → platform_api_python_client-4.0.12}/platform_api_python_client/models/api_key_response.py +0 -0
- {platform_api_python_client-4.0.10 → platform_api_python_client-4.0.12}/platform_api_python_client/models/c_serve_recipe_perf.py +0 -0
- {platform_api_python_client-4.0.10 → platform_api_python_client-4.0.12}/platform_api_python_client/models/c_serve_recipe_response.py +0 -0
- {platform_api_python_client-4.0.10 → platform_api_python_client-4.0.12}/platform_api_python_client/models/c_serve_v2_recipe.py +0 -0
- {platform_api_python_client-4.0.10 → platform_api_python_client-4.0.12}/platform_api_python_client/models/create_c_serve_v2_deployment_response.py +0 -0
- {platform_api_python_client-4.0.10 → platform_api_python_client-4.0.12}/platform_api_python_client/models/create_checkout_request.py +0 -0
- {platform_api_python_client-4.0.10 → platform_api_python_client-4.0.12}/platform_api_python_client/models/create_checkout_session_response.py +0 -0
- {platform_api_python_client-4.0.10 → platform_api_python_client-4.0.12}/platform_api_python_client/models/create_compute_deployment_request.py +0 -0
- {platform_api_python_client-4.0.10 → platform_api_python_client-4.0.12}/platform_api_python_client/models/create_compute_deployment_response.py +0 -0
- {platform_api_python_client-4.0.10 → platform_api_python_client-4.0.12}/platform_api_python_client/models/create_inference_deployment_request.py +0 -0
- {platform_api_python_client-4.0.10 → platform_api_python_client-4.0.12}/platform_api_python_client/models/create_inference_deployment_response.py +0 -0
- {platform_api_python_client-4.0.10 → platform_api_python_client-4.0.12}/platform_api_python_client/models/create_rag_deployment_response.py +0 -0
- {platform_api_python_client-4.0.10 → platform_api_python_client-4.0.12}/platform_api_python_client/models/create_setup_checkout_request.py +0 -0
- {platform_api_python_client-4.0.10 → platform_api_python_client-4.0.12}/platform_api_python_client/models/create_url_request.py +0 -0
- {platform_api_python_client-4.0.10 → platform_api_python_client-4.0.12}/platform_api_python_client/models/create_url_response.py +0 -0
- {platform_api_python_client-4.0.10 → platform_api_python_client-4.0.12}/platform_api_python_client/models/credits_response.py +0 -0
- {platform_api_python_client-4.0.10 → platform_api_python_client-4.0.12}/platform_api_python_client/models/daily_bill_response.py +0 -0
- {platform_api_python_client-4.0.10 → platform_api_python_client-4.0.12}/platform_api_python_client/models/deployment_status.py +0 -0
- {platform_api_python_client-4.0.10 → platform_api_python_client-4.0.12}/platform_api_python_client/models/deployment_status_request.py +0 -0
- {platform_api_python_client-4.0.10 → platform_api_python_client-4.0.12}/platform_api_python_client/models/deployment_status_response.py +0 -0
- {platform_api_python_client-4.0.10 → platform_api_python_client-4.0.12}/platform_api_python_client/models/deployment_type.py +0 -0
- {platform_api_python_client-4.0.10 → platform_api_python_client-4.0.12}/platform_api_python_client/models/deployment_usage_value.py +0 -0
- {platform_api_python_client-4.0.10 → platform_api_python_client-4.0.12}/platform_api_python_client/models/get_autocharge_preferences_response.py +0 -0
- {platform_api_python_client-4.0.10 → platform_api_python_client-4.0.12}/platform_api_python_client/models/get_cluster_response.py +0 -0
- {platform_api_python_client-4.0.10 → platform_api_python_client-4.0.12}/platform_api_python_client/models/get_compute_deployment_response.py +0 -0
- {platform_api_python_client-4.0.10 → platform_api_python_client-4.0.12}/platform_api_python_client/models/get_deployment_log_response.py +0 -0
- {platform_api_python_client-4.0.10 → platform_api_python_client-4.0.12}/platform_api_python_client/models/get_deployment_response.py +0 -0
- {platform_api_python_client-4.0.10 → platform_api_python_client-4.0.12}/platform_api_python_client/models/get_inference_deployment_response.py +0 -0
- {platform_api_python_client-4.0.10 → platform_api_python_client-4.0.12}/platform_api_python_client/models/get_payment_response.py +0 -0
- {platform_api_python_client-4.0.10 → platform_api_python_client-4.0.12}/platform_api_python_client/models/hardware_instance_response.py +0 -0
- {platform_api_python_client-4.0.10 → platform_api_python_client-4.0.12}/platform_api_python_client/models/http_validation_error.py +0 -0
- {platform_api_python_client-4.0.10 → platform_api_python_client-4.0.12}/platform_api_python_client/models/list_api_key_response.py +0 -0
- {platform_api_python_client-4.0.10 → platform_api_python_client-4.0.12}/platform_api_python_client/models/list_c_serve_recipe_response.py +0 -0
- {platform_api_python_client-4.0.10 → platform_api_python_client-4.0.12}/platform_api_python_client/models/list_daily_bill_response.py +0 -0
- {platform_api_python_client-4.0.10 → platform_api_python_client-4.0.12}/platform_api_python_client/models/list_get_cluster_response.py +0 -0
- {platform_api_python_client-4.0.10 → platform_api_python_client-4.0.12}/platform_api_python_client/models/list_get_deployment_response.py +0 -0
- {platform_api_python_client-4.0.10 → platform_api_python_client-4.0.12}/platform_api_python_client/models/list_hardware_instance_response.py +0 -0
- {platform_api_python_client-4.0.10 → platform_api_python_client-4.0.12}/platform_api_python_client/models/list_payments_response.py +0 -0
- {platform_api_python_client-4.0.10 → platform_api_python_client-4.0.12}/platform_api_python_client/models/list_prebuilt_image_response.py +0 -0
- {platform_api_python_client-4.0.10 → platform_api_python_client-4.0.12}/platform_api_python_client/models/list_user_vault_items_response.py +0 -0
- {platform_api_python_client-4.0.10 → platform_api_python_client-4.0.12}/platform_api_python_client/models/payment_method_response.py +0 -0
- {platform_api_python_client-4.0.10 → platform_api_python_client-4.0.12}/platform_api_python_client/models/pod_status.py +0 -0
- {platform_api_python_client-4.0.10 → platform_api_python_client-4.0.12}/platform_api_python_client/models/prebuilt_image_response.py +0 -0
- {platform_api_python_client-4.0.10 → platform_api_python_client-4.0.12}/platform_api_python_client/models/service_status.py +0 -0
- {platform_api_python_client-4.0.10 → platform_api_python_client-4.0.12}/platform_api_python_client/models/setup_user_response.py +0 -0
- {platform_api_python_client-4.0.10 → platform_api_python_client-4.0.12}/platform_api_python_client/models/ticket_category.py +0 -0
- {platform_api_python_client-4.0.10 → platform_api_python_client-4.0.12}/platform_api_python_client/models/ticket_priority.py +0 -0
- {platform_api_python_client-4.0.10 → platform_api_python_client-4.0.12}/platform_api_python_client/models/update_autocharge_preferences_request.py +0 -0
- {platform_api_python_client-4.0.10 → platform_api_python_client-4.0.12}/platform_api_python_client/models/update_deployment_response.py +0 -0
- {platform_api_python_client-4.0.10 → platform_api_python_client-4.0.12}/platform_api_python_client/models/user_vault_item.py +0 -0
- {platform_api_python_client-4.0.10 → platform_api_python_client-4.0.12}/platform_api_python_client/models/user_vault_type.py +0 -0
- {platform_api_python_client-4.0.10 → platform_api_python_client-4.0.12}/platform_api_python_client/models/validation_error.py +0 -0
- {platform_api_python_client-4.0.10 → platform_api_python_client-4.0.12}/platform_api_python_client/models/validation_error_loc_inner.py +0 -0
- {platform_api_python_client-4.0.10 → platform_api_python_client-4.0.12}/platform_api_python_client/py.typed +0 -0
- {platform_api_python_client-4.0.10 → platform_api_python_client-4.0.12}/platform_api_python_client/rest.py +0 -0
- {platform_api_python_client-4.0.10 → platform_api_python_client-4.0.12}/platform_api_python_client.egg-info/dependency_links.txt +0 -0
- {platform_api_python_client-4.0.10 → platform_api_python_client-4.0.12}/platform_api_python_client.egg-info/requires.txt +0 -0
- {platform_api_python_client-4.0.10 → platform_api_python_client-4.0.12}/platform_api_python_client.egg-info/top_level.txt +0 -0
- {platform_api_python_client-4.0.10 → platform_api_python_client-4.0.12}/setup.cfg +0 -0
- {platform_api_python_client-4.0.10 → platform_api_python_client-4.0.12}/test/test_api_key_request.py +0 -0
- {platform_api_python_client-4.0.10 → platform_api_python_client-4.0.12}/test/test_api_key_response.py +0 -0
- {platform_api_python_client-4.0.10 → platform_api_python_client-4.0.12}/test/test_c_serve_recipe_perf.py +0 -0
- {platform_api_python_client-4.0.10 → platform_api_python_client-4.0.12}/test/test_c_serve_recipe_response.py +0 -0
- {platform_api_python_client-4.0.10 → platform_api_python_client-4.0.12}/test/test_c_serve_v2_recipe.py +0 -0
- {platform_api_python_client-4.0.10 → platform_api_python_client-4.0.12}/test/test_create_c_serve_v2_deployment_response.py +0 -0
- {platform_api_python_client-4.0.10 → platform_api_python_client-4.0.12}/test/test_create_checkout_request.py +0 -0
- {platform_api_python_client-4.0.10 → platform_api_python_client-4.0.12}/test/test_create_checkout_session_response.py +0 -0
- {platform_api_python_client-4.0.10 → platform_api_python_client-4.0.12}/test/test_create_compute_deployment_request.py +0 -0
- {platform_api_python_client-4.0.10 → platform_api_python_client-4.0.12}/test/test_create_compute_deployment_response.py +0 -0
- {platform_api_python_client-4.0.10 → platform_api_python_client-4.0.12}/test/test_create_inference_deployment_request.py +0 -0
- {platform_api_python_client-4.0.10 → platform_api_python_client-4.0.12}/test/test_create_inference_deployment_response.py +0 -0
- {platform_api_python_client-4.0.10 → platform_api_python_client-4.0.12}/test/test_create_rag_deployment_response.py +0 -0
- {platform_api_python_client-4.0.10 → platform_api_python_client-4.0.12}/test/test_create_setup_checkout_request.py +0 -0
- {platform_api_python_client-4.0.10 → platform_api_python_client-4.0.12}/test/test_create_url_request.py +0 -0
- {platform_api_python_client-4.0.10 → platform_api_python_client-4.0.12}/test/test_create_url_response.py +0 -0
- {platform_api_python_client-4.0.10 → platform_api_python_client-4.0.12}/test/test_credits_response.py +0 -0
- {platform_api_python_client-4.0.10 → platform_api_python_client-4.0.12}/test/test_daily_bill_response.py +0 -0
- {platform_api_python_client-4.0.10 → platform_api_python_client-4.0.12}/test/test_deployment_status.py +0 -0
- {platform_api_python_client-4.0.10 → platform_api_python_client-4.0.12}/test/test_deployment_status_request.py +0 -0
- {platform_api_python_client-4.0.10 → platform_api_python_client-4.0.12}/test/test_deployment_status_response.py +0 -0
- {platform_api_python_client-4.0.10 → platform_api_python_client-4.0.12}/test/test_deployment_type.py +0 -0
- {platform_api_python_client-4.0.10 → platform_api_python_client-4.0.12}/test/test_deployment_usage_value.py +0 -0
- {platform_api_python_client-4.0.10 → platform_api_python_client-4.0.12}/test/test_external_api.py +0 -0
- {platform_api_python_client-4.0.10 → platform_api_python_client-4.0.12}/test/test_get_autocharge_preferences_response.py +0 -0
- {platform_api_python_client-4.0.10 → platform_api_python_client-4.0.12}/test/test_get_cluster_response.py +0 -0
- {platform_api_python_client-4.0.10 → platform_api_python_client-4.0.12}/test/test_get_compute_deployment_response.py +0 -0
- {platform_api_python_client-4.0.10 → platform_api_python_client-4.0.12}/test/test_get_deployment_log_response.py +0 -0
- {platform_api_python_client-4.0.10 → platform_api_python_client-4.0.12}/test/test_get_deployment_response.py +0 -0
- {platform_api_python_client-4.0.10 → platform_api_python_client-4.0.12}/test/test_get_inference_deployment_response.py +0 -0
- {platform_api_python_client-4.0.10 → platform_api_python_client-4.0.12}/test/test_get_payment_response.py +0 -0
- {platform_api_python_client-4.0.10 → platform_api_python_client-4.0.12}/test/test_hardware_instance_response.py +0 -0
- {platform_api_python_client-4.0.10 → platform_api_python_client-4.0.12}/test/test_http_validation_error.py +0 -0
- {platform_api_python_client-4.0.10 → platform_api_python_client-4.0.12}/test/test_list_api_key_response.py +0 -0
- {platform_api_python_client-4.0.10 → platform_api_python_client-4.0.12}/test/test_list_c_serve_recipe_response.py +0 -0
- {platform_api_python_client-4.0.10 → platform_api_python_client-4.0.12}/test/test_list_daily_bill_response.py +0 -0
- {platform_api_python_client-4.0.10 → platform_api_python_client-4.0.12}/test/test_list_get_cluster_response.py +0 -0
- {platform_api_python_client-4.0.10 → platform_api_python_client-4.0.12}/test/test_list_get_deployment_response.py +0 -0
- {platform_api_python_client-4.0.10 → platform_api_python_client-4.0.12}/test/test_list_hardware_instance_response.py +0 -0
- {platform_api_python_client-4.0.10 → platform_api_python_client-4.0.12}/test/test_list_payments_response.py +0 -0
- {platform_api_python_client-4.0.10 → platform_api_python_client-4.0.12}/test/test_list_prebuilt_image_response.py +0 -0
- {platform_api_python_client-4.0.10 → platform_api_python_client-4.0.12}/test/test_list_user_vault_items_response.py +0 -0
- {platform_api_python_client-4.0.10 → platform_api_python_client-4.0.12}/test/test_metric.py +0 -0
- {platform_api_python_client-4.0.10 → platform_api_python_client-4.0.12}/test/test_payment_method_response.py +0 -0
- {platform_api_python_client-4.0.10 → platform_api_python_client-4.0.12}/test/test_pod_status.py +0 -0
- {platform_api_python_client-4.0.10 → platform_api_python_client-4.0.12}/test/test_prebuilt_image_response.py +0 -0
- {platform_api_python_client-4.0.10 → platform_api_python_client-4.0.12}/test/test_service_status.py +0 -0
- {platform_api_python_client-4.0.10 → platform_api_python_client-4.0.12}/test/test_setup_user_response.py +0 -0
- {platform_api_python_client-4.0.10 → platform_api_python_client-4.0.12}/test/test_ticket_category.py +0 -0
- {platform_api_python_client-4.0.10 → platform_api_python_client-4.0.12}/test/test_ticket_priority.py +0 -0
- {platform_api_python_client-4.0.10 → platform_api_python_client-4.0.12}/test/test_update_autocharge_preferences_request.py +0 -0
- {platform_api_python_client-4.0.10 → platform_api_python_client-4.0.12}/test/test_update_deployment_response.py +0 -0
- {platform_api_python_client-4.0.10 → platform_api_python_client-4.0.12}/test/test_user_vault_item.py +0 -0
- {platform_api_python_client-4.0.10 → platform_api_python_client-4.0.12}/test/test_user_vault_type.py +0 -0
- {platform_api_python_client-4.0.10 → platform_api_python_client-4.0.12}/test/test_validation_error.py +0 -0
- {platform_api_python_client-4.0.10 → platform_api_python_client-4.0.12}/test/test_validation_error_loc_inner.py +0 -0
|
@@ -4,7 +4,7 @@ No description provided (generated by Openapi Generator https://github.com/opena
|
|
|
4
4
|
This Python package is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project:
|
|
5
5
|
|
|
6
6
|
- API version: 0.1.0
|
|
7
|
-
- Package version: 4.0.
|
|
7
|
+
- Package version: 4.0.12
|
|
8
8
|
- Generator version: 7.9.0
|
|
9
9
|
- Build package: org.openapitools.codegen.languages.PythonClientCodegen
|
|
10
10
|
|
|
@@ -163,6 +163,7 @@ Class | Method | HTTP request | Description
|
|
|
163
163
|
- [DeploymentStatusRequest](docs/DeploymentStatusRequest.md)
|
|
164
164
|
- [DeploymentStatusResponse](docs/DeploymentStatusResponse.md)
|
|
165
165
|
- [DeploymentType](docs/DeploymentType.md)
|
|
166
|
+
- [DeploymentUsage](docs/DeploymentUsage.md)
|
|
166
167
|
- [DeploymentUsageValue](docs/DeploymentUsageValue.md)
|
|
167
168
|
- [GetAutochargePreferencesResponse](docs/GetAutochargePreferencesResponse.md)
|
|
168
169
|
- [GetCServeV2DeploymentResponse](docs/GetCServeV2DeploymentResponse.md)
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
""" # noqa: E501
|
|
15
15
|
|
|
16
16
|
|
|
17
|
-
__version__ = "4.0.
|
|
17
|
+
__version__ = "4.0.12"
|
|
18
18
|
|
|
19
19
|
# import apis into sdk package
|
|
20
20
|
from platform_api_python_client.api.external_api import EXTERNALApi
|
|
@@ -55,6 +55,7 @@ from platform_api_python_client.models.deployment_status import DeploymentStatus
|
|
|
55
55
|
from platform_api_python_client.models.deployment_status_request import DeploymentStatusRequest
|
|
56
56
|
from platform_api_python_client.models.deployment_status_response import DeploymentStatusResponse
|
|
57
57
|
from platform_api_python_client.models.deployment_type import DeploymentType
|
|
58
|
+
from platform_api_python_client.models.deployment_usage import DeploymentUsage
|
|
58
59
|
from platform_api_python_client.models.deployment_usage_value import DeploymentUsageValue
|
|
59
60
|
from platform_api_python_client.models.get_autocharge_preferences_response import GetAutochargePreferencesResponse
|
|
60
61
|
from platform_api_python_client.models.get_c_serve_v2_deployment_response import GetCServeV2DeploymentResponse
|
|
@@ -90,7 +90,7 @@ class ApiClient:
|
|
|
90
90
|
self.default_headers[header_name] = header_value
|
|
91
91
|
self.cookie = cookie
|
|
92
92
|
# Set default User-Agent.
|
|
93
|
-
self.user_agent = 'OpenAPI-Generator/4.0.
|
|
93
|
+
self.user_agent = 'OpenAPI-Generator/4.0.12/python'
|
|
94
94
|
self.client_side_validation = configuration.client_side_validation
|
|
95
95
|
|
|
96
96
|
def __enter__(self):
|
|
@@ -392,7 +392,7 @@ class Configuration:
|
|
|
392
392
|
"OS: {env}\n"\
|
|
393
393
|
"Python Version: {pyversion}\n"\
|
|
394
394
|
"Version of the API: 0.1.0\n"\
|
|
395
|
-
"SDK Package Version: 4.0.
|
|
395
|
+
"SDK Package Version: 4.0.12".\
|
|
396
396
|
format(env=sys.platform, pyversion=sys.version)
|
|
397
397
|
|
|
398
398
|
def get_host_settings(self):
|
|
@@ -38,6 +38,7 @@ from platform_api_python_client.models.deployment_status import DeploymentStatus
|
|
|
38
38
|
from platform_api_python_client.models.deployment_status_request import DeploymentStatusRequest
|
|
39
39
|
from platform_api_python_client.models.deployment_status_response import DeploymentStatusResponse
|
|
40
40
|
from platform_api_python_client.models.deployment_type import DeploymentType
|
|
41
|
+
from platform_api_python_client.models.deployment_usage import DeploymentUsage
|
|
41
42
|
from platform_api_python_client.models.deployment_usage_value import DeploymentUsageValue
|
|
42
43
|
from platform_api_python_client.models.get_autocharge_preferences_response import GetAutochargePreferencesResponse
|
|
43
44
|
from platform_api_python_client.models.get_c_serve_v2_deployment_response import GetCServeV2DeploymentResponse
|
|
@@ -32,6 +32,7 @@ class CreateCServeV2DeploymentRequest(BaseModel):
|
|
|
32
32
|
cluster_id: StrictInt
|
|
33
33
|
hardware_instance_id: StrictInt
|
|
34
34
|
recipe: CServeV2Recipe
|
|
35
|
+
cserve_version: Optional[StrictStr] = None
|
|
35
36
|
hf_token: Optional[StrictStr] = None
|
|
36
37
|
endpoint_bearer_token: Optional[StrictStr] = None
|
|
37
38
|
endpoint_certificate_authority: Optional[StrictStr] = None
|
|
@@ -40,7 +41,7 @@ class CreateCServeV2DeploymentRequest(BaseModel):
|
|
|
40
41
|
initial_scale: Optional[StrictInt] = None
|
|
41
42
|
concurrency: Optional[StrictInt] = None
|
|
42
43
|
env_vars: Optional[Dict[str, StrictStr]] = None
|
|
43
|
-
__properties: ClassVar[List[str]] = ["name", "cluster_id", "hardware_instance_id", "recipe", "hf_token", "endpoint_bearer_token", "endpoint_certificate_authority", "min_scale", "max_scale", "initial_scale", "concurrency", "env_vars"]
|
|
44
|
+
__properties: ClassVar[List[str]] = ["name", "cluster_id", "hardware_instance_id", "recipe", "cserve_version", "hf_token", "endpoint_bearer_token", "endpoint_certificate_authority", "min_scale", "max_scale", "initial_scale", "concurrency", "env_vars"]
|
|
44
45
|
|
|
45
46
|
@field_validator('name')
|
|
46
47
|
def name_validate_regular_expression(cls, value):
|
|
@@ -91,6 +92,11 @@ class CreateCServeV2DeploymentRequest(BaseModel):
|
|
|
91
92
|
# override the default output from pydantic by calling `to_dict()` of recipe
|
|
92
93
|
if self.recipe:
|
|
93
94
|
_dict['recipe'] = self.recipe.to_dict()
|
|
95
|
+
# set to None if cserve_version (nullable) is None
|
|
96
|
+
# and model_fields_set contains the field
|
|
97
|
+
if self.cserve_version is None and "cserve_version" in self.model_fields_set:
|
|
98
|
+
_dict['cserve_version'] = None
|
|
99
|
+
|
|
94
100
|
# set to None if hf_token (nullable) is None
|
|
95
101
|
# and model_fields_set contains the field
|
|
96
102
|
if self.hf_token is None and "hf_token" in self.model_fields_set:
|
|
@@ -132,6 +138,7 @@ class CreateCServeV2DeploymentRequest(BaseModel):
|
|
|
132
138
|
"cluster_id": obj.get("cluster_id"),
|
|
133
139
|
"hardware_instance_id": obj.get("hardware_instance_id"),
|
|
134
140
|
"recipe": CServeV2Recipe.from_dict(obj["recipe"]) if obj.get("recipe") is not None else None,
|
|
141
|
+
"cserve_version": obj.get("cserve_version"),
|
|
135
142
|
"hf_token": obj.get("hf_token"),
|
|
136
143
|
"endpoint_bearer_token": obj.get("endpoint_bearer_token"),
|
|
137
144
|
"endpoint_certificate_authority": obj.get("endpoint_certificate_authority"),
|
|
@@ -32,6 +32,7 @@ class CreateRagDeploymentRequest(BaseModel):
|
|
|
32
32
|
cluster_id: StrictInt
|
|
33
33
|
hardware_instance_id: StrictInt
|
|
34
34
|
recipe: CServeV2Recipe
|
|
35
|
+
cserve_version: Optional[StrictStr] = None
|
|
35
36
|
hf_token: Optional[StrictStr] = None
|
|
36
37
|
llm_model: StrictStr
|
|
37
38
|
centml_api_key: StrictStr
|
|
@@ -42,7 +43,7 @@ class CreateRagDeploymentRequest(BaseModel):
|
|
|
42
43
|
endpoint_certificate_authority: Optional[StrictStr] = None
|
|
43
44
|
concurrency: Optional[StrictInt] = None
|
|
44
45
|
env_vars: Optional[Dict[str, StrictStr]] = None
|
|
45
|
-
__properties: ClassVar[List[str]] = ["name", "cluster_id", "hardware_instance_id", "recipe", "hf_token", "llm_model", "centml_api_key", "min_scale", "max_scale", "initial_scale", "endpoint_bearer_token", "endpoint_certificate_authority", "concurrency", "env_vars"]
|
|
46
|
+
__properties: ClassVar[List[str]] = ["name", "cluster_id", "hardware_instance_id", "recipe", "cserve_version", "hf_token", "llm_model", "centml_api_key", "min_scale", "max_scale", "initial_scale", "endpoint_bearer_token", "endpoint_certificate_authority", "concurrency", "env_vars"]
|
|
46
47
|
|
|
47
48
|
@field_validator('name')
|
|
48
49
|
def name_validate_regular_expression(cls, value):
|
|
@@ -93,6 +94,11 @@ class CreateRagDeploymentRequest(BaseModel):
|
|
|
93
94
|
# override the default output from pydantic by calling `to_dict()` of recipe
|
|
94
95
|
if self.recipe:
|
|
95
96
|
_dict['recipe'] = self.recipe.to_dict()
|
|
97
|
+
# set to None if cserve_version (nullable) is None
|
|
98
|
+
# and model_fields_set contains the field
|
|
99
|
+
if self.cserve_version is None and "cserve_version" in self.model_fields_set:
|
|
100
|
+
_dict['cserve_version'] = None
|
|
101
|
+
|
|
96
102
|
# set to None if hf_token (nullable) is None
|
|
97
103
|
# and model_fields_set contains the field
|
|
98
104
|
if self.hf_token is None and "hf_token" in self.model_fields_set:
|
|
@@ -134,6 +140,7 @@ class CreateRagDeploymentRequest(BaseModel):
|
|
|
134
140
|
"cluster_id": obj.get("cluster_id"),
|
|
135
141
|
"hardware_instance_id": obj.get("hardware_instance_id"),
|
|
136
142
|
"recipe": CServeV2Recipe.from_dict(obj["recipe"]) if obj.get("recipe") is not None else None,
|
|
143
|
+
"cserve_version": obj.get("cserve_version"),
|
|
137
144
|
"hf_token": obj.get("hf_token"),
|
|
138
145
|
"llm_model": obj.get("llm_model"),
|
|
139
146
|
"centml_api_key": obj.get("centml_api_key"),
|
|
@@ -0,0 +1,97 @@
|
|
|
1
|
+
# coding: utf-8
|
|
2
|
+
|
|
3
|
+
"""
|
|
4
|
+
Platform External API
|
|
5
|
+
|
|
6
|
+
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
7
|
+
|
|
8
|
+
The version of the OpenAPI document: 0.1.0
|
|
9
|
+
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
|
10
|
+
|
|
11
|
+
Do not edit the class manually.
|
|
12
|
+
""" # noqa: E501
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
from __future__ import annotations
|
|
16
|
+
import pprint
|
|
17
|
+
import re # noqa: F401
|
|
18
|
+
import json
|
|
19
|
+
|
|
20
|
+
from pydantic import BaseModel, ConfigDict, StrictStr
|
|
21
|
+
from typing import Any, ClassVar, Dict, List
|
|
22
|
+
from platform_api_python_client.models.deployment_usage_value import DeploymentUsageValue
|
|
23
|
+
from typing import Optional, Set
|
|
24
|
+
from typing_extensions import Self
|
|
25
|
+
|
|
26
|
+
class DeploymentUsage(BaseModel):
|
|
27
|
+
"""
|
|
28
|
+
DeploymentUsage
|
|
29
|
+
""" # noqa: E501
|
|
30
|
+
metric: Dict[str, StrictStr]
|
|
31
|
+
values: List[DeploymentUsageValue]
|
|
32
|
+
__properties: ClassVar[List[str]] = ["metric", "values"]
|
|
33
|
+
|
|
34
|
+
model_config = ConfigDict(
|
|
35
|
+
populate_by_name=True,
|
|
36
|
+
validate_assignment=True,
|
|
37
|
+
protected_namespaces=(),
|
|
38
|
+
)
|
|
39
|
+
|
|
40
|
+
|
|
41
|
+
def to_str(self) -> str:
|
|
42
|
+
"""Returns the string representation of the model using alias"""
|
|
43
|
+
return pprint.pformat(self.model_dump(by_alias=True))
|
|
44
|
+
|
|
45
|
+
def to_json(self) -> str:
|
|
46
|
+
"""Returns the JSON representation of the model using alias"""
|
|
47
|
+
# TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
|
|
48
|
+
return json.dumps(self.to_dict())
|
|
49
|
+
|
|
50
|
+
@classmethod
|
|
51
|
+
def from_json(cls, json_str: str) -> Optional[Self]:
|
|
52
|
+
"""Create an instance of DeploymentUsage from a JSON string"""
|
|
53
|
+
return cls.from_dict(json.loads(json_str))
|
|
54
|
+
|
|
55
|
+
def to_dict(self) -> Dict[str, Any]:
|
|
56
|
+
"""Return the dictionary representation of the model using alias.
|
|
57
|
+
|
|
58
|
+
This has the following differences from calling pydantic's
|
|
59
|
+
`self.model_dump(by_alias=True)`:
|
|
60
|
+
|
|
61
|
+
* `None` is only added to the output dict for nullable fields that
|
|
62
|
+
were set at model initialization. Other fields with value `None`
|
|
63
|
+
are ignored.
|
|
64
|
+
"""
|
|
65
|
+
excluded_fields: Set[str] = set([
|
|
66
|
+
])
|
|
67
|
+
|
|
68
|
+
_dict = self.model_dump(
|
|
69
|
+
by_alias=True,
|
|
70
|
+
exclude=excluded_fields,
|
|
71
|
+
exclude_none=True,
|
|
72
|
+
)
|
|
73
|
+
# override the default output from pydantic by calling `to_dict()` of each item in values (list)
|
|
74
|
+
_items = []
|
|
75
|
+
if self.values:
|
|
76
|
+
for _item_values in self.values:
|
|
77
|
+
if _item_values:
|
|
78
|
+
_items.append(_item_values.to_dict())
|
|
79
|
+
_dict['values'] = _items
|
|
80
|
+
return _dict
|
|
81
|
+
|
|
82
|
+
@classmethod
|
|
83
|
+
def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
|
|
84
|
+
"""Create an instance of DeploymentUsage from a dict"""
|
|
85
|
+
if obj is None:
|
|
86
|
+
return None
|
|
87
|
+
|
|
88
|
+
if not isinstance(obj, dict):
|
|
89
|
+
return cls.model_validate(obj)
|
|
90
|
+
|
|
91
|
+
_obj = cls.model_validate({
|
|
92
|
+
"metric": obj.get("metric"),
|
|
93
|
+
"values": [DeploymentUsageValue.from_dict(_item) for _item in obj["values"]] if obj.get("values") is not None else None
|
|
94
|
+
})
|
|
95
|
+
return _obj
|
|
96
|
+
|
|
97
|
+
|
|
@@ -40,6 +40,7 @@ class GetCServeV2DeploymentResponse(BaseModel):
|
|
|
40
40
|
created_at: datetime
|
|
41
41
|
hardware_instance_id: StrictInt
|
|
42
42
|
recipe: CServeV2Recipe
|
|
43
|
+
cserve_version: Optional[StrictStr] = None
|
|
43
44
|
min_scale: StrictInt
|
|
44
45
|
max_scale: StrictInt
|
|
45
46
|
initial_scale: Optional[StrictInt] = None
|
|
@@ -47,7 +48,7 @@ class GetCServeV2DeploymentResponse(BaseModel):
|
|
|
47
48
|
endpoint_bearer_token: Optional[StrictStr] = None
|
|
48
49
|
concurrency: Optional[StrictInt] = None
|
|
49
50
|
env_vars: Optional[Dict[str, StrictStr]] = None
|
|
50
|
-
__properties: ClassVar[List[str]] = ["cluster_id", "id", "name", "endpoint_url", "image_url", "type", "status", "created_at", "hardware_instance_id", "recipe", "min_scale", "max_scale", "initial_scale", "endpoint_certificate_authority", "endpoint_bearer_token", "concurrency", "env_vars"]
|
|
51
|
+
__properties: ClassVar[List[str]] = ["cluster_id", "id", "name", "endpoint_url", "image_url", "type", "status", "created_at", "hardware_instance_id", "recipe", "cserve_version", "min_scale", "max_scale", "initial_scale", "endpoint_certificate_authority", "endpoint_bearer_token", "concurrency", "env_vars"]
|
|
51
52
|
|
|
52
53
|
model_config = ConfigDict(
|
|
53
54
|
populate_by_name=True,
|
|
@@ -96,6 +97,11 @@ class GetCServeV2DeploymentResponse(BaseModel):
|
|
|
96
97
|
if self.image_url is None and "image_url" in self.model_fields_set:
|
|
97
98
|
_dict['image_url'] = None
|
|
98
99
|
|
|
100
|
+
# set to None if cserve_version (nullable) is None
|
|
101
|
+
# and model_fields_set contains the field
|
|
102
|
+
if self.cserve_version is None and "cserve_version" in self.model_fields_set:
|
|
103
|
+
_dict['cserve_version'] = None
|
|
104
|
+
|
|
99
105
|
# set to None if initial_scale (nullable) is None
|
|
100
106
|
# and model_fields_set contains the field
|
|
101
107
|
if self.initial_scale is None and "initial_scale" in self.model_fields_set:
|
|
@@ -138,6 +144,7 @@ class GetCServeV2DeploymentResponse(BaseModel):
|
|
|
138
144
|
"created_at": obj.get("created_at"),
|
|
139
145
|
"hardware_instance_id": obj.get("hardware_instance_id"),
|
|
140
146
|
"recipe": CServeV2Recipe.from_dict(obj["recipe"]) if obj.get("recipe") is not None else None,
|
|
147
|
+
"cserve_version": obj.get("cserve_version"),
|
|
141
148
|
"min_scale": obj.get("min_scale"),
|
|
142
149
|
"max_scale": obj.get("max_scale"),
|
|
143
150
|
"initial_scale": obj.get("initial_scale"),
|
|
@@ -19,7 +19,7 @@ import json
|
|
|
19
19
|
|
|
20
20
|
from pydantic import BaseModel, ConfigDict
|
|
21
21
|
from typing import Any, ClassVar, Dict, List
|
|
22
|
-
from platform_api_python_client.models.
|
|
22
|
+
from platform_api_python_client.models.deployment_usage import DeploymentUsage
|
|
23
23
|
from typing import Optional, Set
|
|
24
24
|
from typing_extensions import Self
|
|
25
25
|
|
|
@@ -27,7 +27,7 @@ class GetDeploymentUsageResponse(BaseModel):
|
|
|
27
27
|
"""
|
|
28
28
|
GetDeploymentUsageResponse
|
|
29
29
|
""" # noqa: E501
|
|
30
|
-
values: List[
|
|
30
|
+
values: List[DeploymentUsage]
|
|
31
31
|
__properties: ClassVar[List[str]] = ["values"]
|
|
32
32
|
|
|
33
33
|
model_config = ConfigDict(
|
|
@@ -88,7 +88,7 @@ class GetDeploymentUsageResponse(BaseModel):
|
|
|
88
88
|
return cls.model_validate(obj)
|
|
89
89
|
|
|
90
90
|
_obj = cls.model_validate({
|
|
91
|
-
"values": [
|
|
91
|
+
"values": [DeploymentUsage.from_dict(_item) for _item in obj["values"]] if obj.get("values") is not None else None
|
|
92
92
|
})
|
|
93
93
|
return _obj
|
|
94
94
|
|
|
@@ -40,6 +40,7 @@ class GetRagDeploymentResponse(BaseModel):
|
|
|
40
40
|
created_at: datetime
|
|
41
41
|
hardware_instance_id: StrictInt
|
|
42
42
|
recipe: CServeV2Recipe
|
|
43
|
+
cserve_version: Optional[StrictStr] = None
|
|
43
44
|
llm_model: StrictStr
|
|
44
45
|
centml_api_key: StrictStr
|
|
45
46
|
min_scale: Optional[StrictInt] = 1
|
|
@@ -49,7 +50,7 @@ class GetRagDeploymentResponse(BaseModel):
|
|
|
49
50
|
endpoint_bearer_token: Optional[StrictStr] = None
|
|
50
51
|
concurrency: Optional[StrictInt] = None
|
|
51
52
|
env_vars: Optional[Dict[str, StrictStr]] = None
|
|
52
|
-
__properties: ClassVar[List[str]] = ["cluster_id", "id", "name", "endpoint_url", "image_url", "type", "status", "created_at", "hardware_instance_id", "recipe", "llm_model", "centml_api_key", "min_scale", "max_scale", "initial_scale", "endpoint_certificate_authority", "endpoint_bearer_token", "concurrency", "env_vars"]
|
|
53
|
+
__properties: ClassVar[List[str]] = ["cluster_id", "id", "name", "endpoint_url", "image_url", "type", "status", "created_at", "hardware_instance_id", "recipe", "cserve_version", "llm_model", "centml_api_key", "min_scale", "max_scale", "initial_scale", "endpoint_certificate_authority", "endpoint_bearer_token", "concurrency", "env_vars"]
|
|
53
54
|
|
|
54
55
|
model_config = ConfigDict(
|
|
55
56
|
populate_by_name=True,
|
|
@@ -98,6 +99,11 @@ class GetRagDeploymentResponse(BaseModel):
|
|
|
98
99
|
if self.image_url is None and "image_url" in self.model_fields_set:
|
|
99
100
|
_dict['image_url'] = None
|
|
100
101
|
|
|
102
|
+
# set to None if cserve_version (nullable) is None
|
|
103
|
+
# and model_fields_set contains the field
|
|
104
|
+
if self.cserve_version is None and "cserve_version" in self.model_fields_set:
|
|
105
|
+
_dict['cserve_version'] = None
|
|
106
|
+
|
|
101
107
|
# set to None if initial_scale (nullable) is None
|
|
102
108
|
# and model_fields_set contains the field
|
|
103
109
|
if self.initial_scale is None and "initial_scale" in self.model_fields_set:
|
|
@@ -140,6 +146,7 @@ class GetRagDeploymentResponse(BaseModel):
|
|
|
140
146
|
"created_at": obj.get("created_at"),
|
|
141
147
|
"hardware_instance_id": obj.get("hardware_instance_id"),
|
|
142
148
|
"recipe": CServeV2Recipe.from_dict(obj["recipe"]) if obj.get("recipe") is not None else None,
|
|
149
|
+
"cserve_version": obj.get("cserve_version"),
|
|
143
150
|
"llm_model": obj.get("llm_model"),
|
|
144
151
|
"centml_api_key": obj.get("centml_api_key"),
|
|
145
152
|
"min_scale": obj.get("min_scale") if obj.get("min_scale") is not None else 1,
|
|
@@ -30,9 +30,13 @@ class Metric(str, Enum):
|
|
|
30
30
|
MEMORY = 'memory'
|
|
31
31
|
GPU = 'gpu'
|
|
32
32
|
HTTP_REQUESTS = 'http_requests'
|
|
33
|
+
HTTP_REQUESTS_BY_STATUS = 'http_requests_by_status'
|
|
34
|
+
ERROR_CODE = 'error_code'
|
|
33
35
|
REQUEST_LATENCY_50_PERCENTILE = 'request_latency_50_percentile'
|
|
34
36
|
REQUEST_LATENCY_90_PERCENTILE = 'request_latency_90_percentile'
|
|
35
37
|
REQUEST_LATENCY_99_PERCENTILE = 'request_latency_99_percentile'
|
|
38
|
+
TOKENS_PER_SECOND = 'tokens_per_second'
|
|
39
|
+
TIME_TO_FIRST_TOKEN = 'time_to_first_token'
|
|
36
40
|
|
|
37
41
|
@classmethod
|
|
38
42
|
def from_json(cls, json_str: str) -> Self:
|
|
@@ -41,6 +41,7 @@ platform_api_python_client/models/deployment_status.py
|
|
|
41
41
|
platform_api_python_client/models/deployment_status_request.py
|
|
42
42
|
platform_api_python_client/models/deployment_status_response.py
|
|
43
43
|
platform_api_python_client/models/deployment_type.py
|
|
44
|
+
platform_api_python_client/models/deployment_usage.py
|
|
44
45
|
platform_api_python_client/models/deployment_usage_value.py
|
|
45
46
|
platform_api_python_client/models/get_autocharge_preferences_response.py
|
|
46
47
|
platform_api_python_client/models/get_c_serve_v2_deployment_response.py
|
|
@@ -101,6 +102,7 @@ test/test_deployment_status.py
|
|
|
101
102
|
test/test_deployment_status_request.py
|
|
102
103
|
test/test_deployment_status_response.py
|
|
103
104
|
test/test_deployment_type.py
|
|
105
|
+
test/test_deployment_usage.py
|
|
104
106
|
test/test_deployment_usage_value.py
|
|
105
107
|
test/test_external_api.py
|
|
106
108
|
test/test_get_autocharge_preferences_response.py
|
|
@@ -21,7 +21,7 @@ from setuptools import setup, find_packages # noqa: H301
|
|
|
21
21
|
# prerequisite: setuptools
|
|
22
22
|
# http://pypi.python.org/pypi/setuptools
|
|
23
23
|
NAME = "platform-api-python-client"
|
|
24
|
-
VERSION = "4.0.
|
|
24
|
+
VERSION = "4.0.12"
|
|
25
25
|
PYTHON_REQUIRES = ">= 3.8"
|
|
26
26
|
REQUIRES = [
|
|
27
27
|
"urllib3 >= 1.25.3, < 3.0.0",
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
# coding: utf-8
|
|
2
|
+
|
|
3
|
+
"""
|
|
4
|
+
Platform External API
|
|
5
|
+
|
|
6
|
+
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
7
|
+
|
|
8
|
+
The version of the OpenAPI document: 0.1.0
|
|
9
|
+
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
|
10
|
+
|
|
11
|
+
Do not edit the class manually.
|
|
12
|
+
""" # noqa: E501
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
import unittest
|
|
16
|
+
|
|
17
|
+
from platform_api_python_client.models.deployment_usage import DeploymentUsage
|
|
18
|
+
|
|
19
|
+
class TestDeploymentUsage(unittest.TestCase):
|
|
20
|
+
"""DeploymentUsage unit test stubs"""
|
|
21
|
+
|
|
22
|
+
def setUp(self):
|
|
23
|
+
pass
|
|
24
|
+
|
|
25
|
+
def tearDown(self):
|
|
26
|
+
pass
|
|
27
|
+
|
|
28
|
+
def make_instance(self, include_optional) -> DeploymentUsage:
|
|
29
|
+
"""Test DeploymentUsage
|
|
30
|
+
include_optional is a boolean, when False only required
|
|
31
|
+
params are included, when True both required and
|
|
32
|
+
optional params are included """
|
|
33
|
+
# uncomment below to create an instance of `DeploymentUsage`
|
|
34
|
+
"""
|
|
35
|
+
model = DeploymentUsage()
|
|
36
|
+
if include_optional:
|
|
37
|
+
return DeploymentUsage(
|
|
38
|
+
metric = {
|
|
39
|
+
'key' : ''
|
|
40
|
+
},
|
|
41
|
+
values = [
|
|
42
|
+
platform_api_python_client.models.deployment_usage_value.DeploymentUsageValue(
|
|
43
|
+
timestamp = 56,
|
|
44
|
+
value = 1.337, )
|
|
45
|
+
]
|
|
46
|
+
)
|
|
47
|
+
else:
|
|
48
|
+
return DeploymentUsage(
|
|
49
|
+
metric = {
|
|
50
|
+
'key' : ''
|
|
51
|
+
},
|
|
52
|
+
values = [
|
|
53
|
+
platform_api_python_client.models.deployment_usage_value.DeploymentUsageValue(
|
|
54
|
+
timestamp = 56,
|
|
55
|
+
value = 1.337, )
|
|
56
|
+
],
|
|
57
|
+
)
|
|
58
|
+
"""
|
|
59
|
+
|
|
60
|
+
def testDeploymentUsage(self):
|
|
61
|
+
"""Test DeploymentUsage"""
|
|
62
|
+
# inst_req_only = self.make_instance(include_optional=False)
|
|
63
|
+
# inst_req_and_optional = self.make_instance(include_optional=True)
|
|
64
|
+
|
|
65
|
+
if __name__ == '__main__':
|
|
66
|
+
unittest.main()
|
|
@@ -45,6 +45,7 @@ class TestGetCServeV2DeploymentResponse(unittest.TestCase):
|
|
|
45
45
|
created_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'),
|
|
46
46
|
hardware_instance_id = 56,
|
|
47
47
|
recipe = { },
|
|
48
|
+
cserve_version = '',
|
|
48
49
|
min_scale = 56,
|
|
49
50
|
max_scale = 56,
|
|
50
51
|
initial_scale = 56,
|
|
@@ -36,17 +36,29 @@ class TestGetDeploymentUsageResponse(unittest.TestCase):
|
|
|
36
36
|
if include_optional:
|
|
37
37
|
return GetDeploymentUsageResponse(
|
|
38
38
|
values = [
|
|
39
|
-
platform_api_python_client.models.
|
|
40
|
-
|
|
41
|
-
|
|
39
|
+
platform_api_python_client.models.deployment_usage.DeploymentUsage(
|
|
40
|
+
metric = {
|
|
41
|
+
'key' : ''
|
|
42
|
+
},
|
|
43
|
+
values = [
|
|
44
|
+
platform_api_python_client.models.deployment_usage_value.DeploymentUsageValue(
|
|
45
|
+
timestamp = 56,
|
|
46
|
+
value = 1.337, )
|
|
47
|
+
], )
|
|
42
48
|
]
|
|
43
49
|
)
|
|
44
50
|
else:
|
|
45
51
|
return GetDeploymentUsageResponse(
|
|
46
52
|
values = [
|
|
47
|
-
platform_api_python_client.models.
|
|
48
|
-
|
|
49
|
-
|
|
53
|
+
platform_api_python_client.models.deployment_usage.DeploymentUsage(
|
|
54
|
+
metric = {
|
|
55
|
+
'key' : ''
|
|
56
|
+
},
|
|
57
|
+
values = [
|
|
58
|
+
platform_api_python_client.models.deployment_usage_value.DeploymentUsageValue(
|
|
59
|
+
timestamp = 56,
|
|
60
|
+
value = 1.337, )
|
|
61
|
+
], )
|
|
50
62
|
],
|
|
51
63
|
)
|
|
52
64
|
"""
|
|
@@ -45,6 +45,7 @@ class TestGetRagDeploymentResponse(unittest.TestCase):
|
|
|
45
45
|
created_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'),
|
|
46
46
|
hardware_instance_id = 56,
|
|
47
47
|
recipe = { },
|
|
48
|
+
cserve_version = '',
|
|
48
49
|
llm_model = '',
|
|
49
50
|
centml_api_key = '',
|
|
50
51
|
min_scale = 56,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{platform_api_python_client-4.0.10 → platform_api_python_client-4.0.12}/test/test_api_key_request.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{platform_api_python_client-4.0.10 → platform_api_python_client-4.0.12}/test/test_deployment_type.py
RENAMED
|
File without changes
|
|
File without changes
|
{platform_api_python_client-4.0.10 → platform_api_python_client-4.0.12}/test/test_external_api.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{platform_api_python_client-4.0.10 → platform_api_python_client-4.0.12}/test/test_pod_status.py
RENAMED
|
File without changes
|
|
File without changes
|
{platform_api_python_client-4.0.10 → platform_api_python_client-4.0.12}/test/test_service_status.py
RENAMED
|
File without changes
|
|
File without changes
|
{platform_api_python_client-4.0.10 → platform_api_python_client-4.0.12}/test/test_ticket_category.py
RENAMED
|
File without changes
|
{platform_api_python_client-4.0.10 → platform_api_python_client-4.0.12}/test/test_ticket_priority.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{platform_api_python_client-4.0.10 → platform_api_python_client-4.0.12}/test/test_user_vault_item.py
RENAMED
|
File without changes
|
{platform_api_python_client-4.0.10 → platform_api_python_client-4.0.12}/test/test_user_vault_type.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|