platform-api-python-client 3.2.7__tar.gz → 4.0.1__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-3.2.7 → platform_api_python_client-4.0.1}/PKG-INFO +1 -1
- {platform_api_python_client-3.2.7 → platform_api_python_client-4.0.1}/README.md +2 -1
- {platform_api_python_client-3.2.7 → platform_api_python_client-4.0.1}/platform_api_python_client/__init__.py +2 -1
- {platform_api_python_client-3.2.7 → platform_api_python_client-4.0.1}/platform_api_python_client/api_client.py +1 -1
- {platform_api_python_client-3.2.7 → platform_api_python_client-4.0.1}/platform_api_python_client/configuration.py +1 -1
- {platform_api_python_client-3.2.7 → platform_api_python_client-4.0.1}/platform_api_python_client/models/__init__.py +1 -0
- {platform_api_python_client-3.2.7 → platform_api_python_client-4.0.1}/platform_api_python_client/models/create_c_serve_v2_deployment_request.py +15 -1
- {platform_api_python_client-3.2.7 → platform_api_python_client-4.0.1}/platform_api_python_client/models/create_inference_deployment_request.py +15 -1
- {platform_api_python_client-3.2.7 → platform_api_python_client-4.0.1}/platform_api_python_client/models/create_rag_deployment_request.py +15 -1
- {platform_api_python_client-3.2.7 → platform_api_python_client-4.0.1}/platform_api_python_client/models/create_url_response.py +3 -2
- {platform_api_python_client-3.2.7 → platform_api_python_client-4.0.1}/platform_api_python_client/models/deployment_status_response.py +11 -3
- {platform_api_python_client-3.2.7 → platform_api_python_client-4.0.1}/platform_api_python_client/models/get_c_serve_v2_deployment_response.py +15 -1
- {platform_api_python_client-3.2.7 → platform_api_python_client-4.0.1}/platform_api_python_client/models/get_inference_deployment_response.py +15 -1
- {platform_api_python_client-3.2.7 → platform_api_python_client-4.0.1}/platform_api_python_client/models/get_rag_deployment_response.py +15 -1
- platform_api_python_client-4.0.1/platform_api_python_client/models/pod_status.py +45 -0
- {platform_api_python_client-3.2.7 → platform_api_python_client-4.0.1}/platform_api_python_client/models/user_vault_type.py +1 -0
- {platform_api_python_client-3.2.7 → platform_api_python_client-4.0.1}/platform_api_python_client.egg-info/PKG-INFO +1 -1
- {platform_api_python_client-3.2.7 → platform_api_python_client-4.0.1}/platform_api_python_client.egg-info/SOURCES.txt +2 -0
- {platform_api_python_client-3.2.7 → platform_api_python_client-4.0.1}/pyproject.toml +1 -1
- {platform_api_python_client-3.2.7 → platform_api_python_client-4.0.1}/setup.py +1 -1
- {platform_api_python_client-3.2.7 → platform_api_python_client-4.0.1}/test/test_create_c_serve_v2_deployment_request.py +2 -0
- {platform_api_python_client-3.2.7 → platform_api_python_client-4.0.1}/test/test_create_inference_deployment_request.py +2 -0
- {platform_api_python_client-3.2.7 → platform_api_python_client-4.0.1}/test/test_create_rag_deployment_request.py +2 -0
- {platform_api_python_client-3.2.7 → platform_api_python_client-4.0.1}/test/test_create_url_response.py +2 -2
- {platform_api_python_client-3.2.7 → platform_api_python_client-4.0.1}/test/test_deployment_status_response.py +6 -1
- {platform_api_python_client-3.2.7 → platform_api_python_client-4.0.1}/test/test_get_c_serve_v2_deployment_response.py +2 -0
- {platform_api_python_client-3.2.7 → platform_api_python_client-4.0.1}/test/test_get_inference_deployment_response.py +2 -0
- {platform_api_python_client-3.2.7 → platform_api_python_client-4.0.1}/test/test_get_rag_deployment_response.py +2 -0
- platform_api_python_client-4.0.1/test/test_pod_status.py +33 -0
- {platform_api_python_client-3.2.7 → platform_api_python_client-4.0.1}/platform_api_python_client/api/__init__.py +0 -0
- {platform_api_python_client-3.2.7 → platform_api_python_client-4.0.1}/platform_api_python_client/api/external_api.py +0 -0
- {platform_api_python_client-3.2.7 → platform_api_python_client-4.0.1}/platform_api_python_client/api_response.py +0 -0
- {platform_api_python_client-3.2.7 → platform_api_python_client-4.0.1}/platform_api_python_client/exceptions.py +0 -0
- {platform_api_python_client-3.2.7 → platform_api_python_client-4.0.1}/platform_api_python_client/models/api_key_request.py +0 -0
- {platform_api_python_client-3.2.7 → platform_api_python_client-4.0.1}/platform_api_python_client/models/api_key_response.py +0 -0
- {platform_api_python_client-3.2.7 → platform_api_python_client-4.0.1}/platform_api_python_client/models/c_serve_recipe.py +0 -0
- {platform_api_python_client-3.2.7 → platform_api_python_client-4.0.1}/platform_api_python_client/models/c_serve_recipe_perf.py +0 -0
- {platform_api_python_client-3.2.7 → platform_api_python_client-4.0.1}/platform_api_python_client/models/c_serve_recipe_response.py +0 -0
- {platform_api_python_client-3.2.7 → platform_api_python_client-4.0.1}/platform_api_python_client/models/c_serve_v2_recipe.py +0 -0
- {platform_api_python_client-3.2.7 → platform_api_python_client-4.0.1}/platform_api_python_client/models/create_c_serve_deployment_request.py +0 -0
- {platform_api_python_client-3.2.7 → platform_api_python_client-4.0.1}/platform_api_python_client/models/create_c_serve_deployment_response.py +0 -0
- {platform_api_python_client-3.2.7 → platform_api_python_client-4.0.1}/platform_api_python_client/models/create_c_serve_v2_deployment_response.py +0 -0
- {platform_api_python_client-3.2.7 → platform_api_python_client-4.0.1}/platform_api_python_client/models/create_checkout_request.py +0 -0
- {platform_api_python_client-3.2.7 → platform_api_python_client-4.0.1}/platform_api_python_client/models/create_checkout_session_response.py +0 -0
- {platform_api_python_client-3.2.7 → platform_api_python_client-4.0.1}/platform_api_python_client/models/create_compute_deployment_request.py +0 -0
- {platform_api_python_client-3.2.7 → platform_api_python_client-4.0.1}/platform_api_python_client/models/create_compute_deployment_response.py +0 -0
- {platform_api_python_client-3.2.7 → platform_api_python_client-4.0.1}/platform_api_python_client/models/create_inference_deployment_response.py +0 -0
- {platform_api_python_client-3.2.7 → platform_api_python_client-4.0.1}/platform_api_python_client/models/create_rag_deployment_response.py +0 -0
- {platform_api_python_client-3.2.7 → platform_api_python_client-4.0.1}/platform_api_python_client/models/create_setup_checkout_request.py +0 -0
- {platform_api_python_client-3.2.7 → platform_api_python_client-4.0.1}/platform_api_python_client/models/create_url_request.py +0 -0
- {platform_api_python_client-3.2.7 → platform_api_python_client-4.0.1}/platform_api_python_client/models/credits_response.py +0 -0
- {platform_api_python_client-3.2.7 → platform_api_python_client-4.0.1}/platform_api_python_client/models/daily_bill_response.py +0 -0
- {platform_api_python_client-3.2.7 → platform_api_python_client-4.0.1}/platform_api_python_client/models/deployment_status.py +0 -0
- {platform_api_python_client-3.2.7 → platform_api_python_client-4.0.1}/platform_api_python_client/models/deployment_status_request.py +0 -0
- {platform_api_python_client-3.2.7 → platform_api_python_client-4.0.1}/platform_api_python_client/models/deployment_type.py +0 -0
- {platform_api_python_client-3.2.7 → platform_api_python_client-4.0.1}/platform_api_python_client/models/deployment_usage_value.py +0 -0
- {platform_api_python_client-3.2.7 → platform_api_python_client-4.0.1}/platform_api_python_client/models/get_autocharge_preferences_response.py +0 -0
- {platform_api_python_client-3.2.7 → platform_api_python_client-4.0.1}/platform_api_python_client/models/get_c_serve_deployment_response.py +0 -0
- {platform_api_python_client-3.2.7 → platform_api_python_client-4.0.1}/platform_api_python_client/models/get_cluster_response.py +0 -0
- {platform_api_python_client-3.2.7 → platform_api_python_client-4.0.1}/platform_api_python_client/models/get_compute_deployment_response.py +0 -0
- {platform_api_python_client-3.2.7 → platform_api_python_client-4.0.1}/platform_api_python_client/models/get_deployment_log_response.py +0 -0
- {platform_api_python_client-3.2.7 → platform_api_python_client-4.0.1}/platform_api_python_client/models/get_deployment_response.py +0 -0
- {platform_api_python_client-3.2.7 → platform_api_python_client-4.0.1}/platform_api_python_client/models/get_deployment_usage_response.py +0 -0
- {platform_api_python_client-3.2.7 → platform_api_python_client-4.0.1}/platform_api_python_client/models/get_payment_response.py +0 -0
- {platform_api_python_client-3.2.7 → platform_api_python_client-4.0.1}/platform_api_python_client/models/hardware_instance_response.py +0 -0
- {platform_api_python_client-3.2.7 → platform_api_python_client-4.0.1}/platform_api_python_client/models/http_validation_error.py +0 -0
- {platform_api_python_client-3.2.7 → platform_api_python_client-4.0.1}/platform_api_python_client/models/list_api_key_response.py +0 -0
- {platform_api_python_client-3.2.7 → platform_api_python_client-4.0.1}/platform_api_python_client/models/list_c_serve_recipe_response.py +0 -0
- {platform_api_python_client-3.2.7 → platform_api_python_client-4.0.1}/platform_api_python_client/models/list_daily_bill_response.py +0 -0
- {platform_api_python_client-3.2.7 → platform_api_python_client-4.0.1}/platform_api_python_client/models/list_get_cluster_response.py +0 -0
- {platform_api_python_client-3.2.7 → platform_api_python_client-4.0.1}/platform_api_python_client/models/list_get_deployment_response.py +0 -0
- {platform_api_python_client-3.2.7 → platform_api_python_client-4.0.1}/platform_api_python_client/models/list_hardware_instance_response.py +0 -0
- {platform_api_python_client-3.2.7 → platform_api_python_client-4.0.1}/platform_api_python_client/models/list_payments_response.py +0 -0
- {platform_api_python_client-3.2.7 → platform_api_python_client-4.0.1}/platform_api_python_client/models/list_prebuilt_image_response.py +0 -0
- {platform_api_python_client-3.2.7 → platform_api_python_client-4.0.1}/platform_api_python_client/models/list_user_vault_items_response.py +0 -0
- {platform_api_python_client-3.2.7 → platform_api_python_client-4.0.1}/platform_api_python_client/models/metric.py +0 -0
- {platform_api_python_client-3.2.7 → platform_api_python_client-4.0.1}/platform_api_python_client/models/payment_method_response.py +0 -0
- {platform_api_python_client-3.2.7 → platform_api_python_client-4.0.1}/platform_api_python_client/models/prebuilt_image_response.py +0 -0
- {platform_api_python_client-3.2.7 → platform_api_python_client-4.0.1}/platform_api_python_client/models/service_status.py +0 -0
- {platform_api_python_client-3.2.7 → platform_api_python_client-4.0.1}/platform_api_python_client/models/update_autocharge_preferences_request.py +0 -0
- {platform_api_python_client-3.2.7 → platform_api_python_client-4.0.1}/platform_api_python_client/models/update_deployment_response.py +0 -0
- {platform_api_python_client-3.2.7 → platform_api_python_client-4.0.1}/platform_api_python_client/models/user_support_email_request.py +0 -0
- {platform_api_python_client-3.2.7 → platform_api_python_client-4.0.1}/platform_api_python_client/models/user_vault_item.py +0 -0
- {platform_api_python_client-3.2.7 → platform_api_python_client-4.0.1}/platform_api_python_client/models/validation_error.py +0 -0
- {platform_api_python_client-3.2.7 → platform_api_python_client-4.0.1}/platform_api_python_client/models/validation_error_loc_inner.py +0 -0
- {platform_api_python_client-3.2.7 → platform_api_python_client-4.0.1}/platform_api_python_client/py.typed +0 -0
- {platform_api_python_client-3.2.7 → platform_api_python_client-4.0.1}/platform_api_python_client/rest.py +0 -0
- {platform_api_python_client-3.2.7 → platform_api_python_client-4.0.1}/platform_api_python_client.egg-info/dependency_links.txt +0 -0
- {platform_api_python_client-3.2.7 → platform_api_python_client-4.0.1}/platform_api_python_client.egg-info/requires.txt +0 -0
- {platform_api_python_client-3.2.7 → platform_api_python_client-4.0.1}/platform_api_python_client.egg-info/top_level.txt +0 -0
- {platform_api_python_client-3.2.7 → platform_api_python_client-4.0.1}/setup.cfg +0 -0
- {platform_api_python_client-3.2.7 → platform_api_python_client-4.0.1}/test/test_api_key_request.py +0 -0
- {platform_api_python_client-3.2.7 → platform_api_python_client-4.0.1}/test/test_api_key_response.py +0 -0
- {platform_api_python_client-3.2.7 → platform_api_python_client-4.0.1}/test/test_c_serve_recipe.py +0 -0
- {platform_api_python_client-3.2.7 → platform_api_python_client-4.0.1}/test/test_c_serve_recipe_perf.py +0 -0
- {platform_api_python_client-3.2.7 → platform_api_python_client-4.0.1}/test/test_c_serve_recipe_response.py +0 -0
- {platform_api_python_client-3.2.7 → platform_api_python_client-4.0.1}/test/test_c_serve_v2_recipe.py +0 -0
- {platform_api_python_client-3.2.7 → platform_api_python_client-4.0.1}/test/test_create_c_serve_deployment_request.py +0 -0
- {platform_api_python_client-3.2.7 → platform_api_python_client-4.0.1}/test/test_create_c_serve_deployment_response.py +0 -0
- {platform_api_python_client-3.2.7 → platform_api_python_client-4.0.1}/test/test_create_c_serve_v2_deployment_response.py +0 -0
- {platform_api_python_client-3.2.7 → platform_api_python_client-4.0.1}/test/test_create_checkout_request.py +0 -0
- {platform_api_python_client-3.2.7 → platform_api_python_client-4.0.1}/test/test_create_checkout_session_response.py +0 -0
- {platform_api_python_client-3.2.7 → platform_api_python_client-4.0.1}/test/test_create_compute_deployment_request.py +0 -0
- {platform_api_python_client-3.2.7 → platform_api_python_client-4.0.1}/test/test_create_compute_deployment_response.py +0 -0
- {platform_api_python_client-3.2.7 → platform_api_python_client-4.0.1}/test/test_create_inference_deployment_response.py +0 -0
- {platform_api_python_client-3.2.7 → platform_api_python_client-4.0.1}/test/test_create_rag_deployment_response.py +0 -0
- {platform_api_python_client-3.2.7 → platform_api_python_client-4.0.1}/test/test_create_setup_checkout_request.py +0 -0
- {platform_api_python_client-3.2.7 → platform_api_python_client-4.0.1}/test/test_create_url_request.py +0 -0
- {platform_api_python_client-3.2.7 → platform_api_python_client-4.0.1}/test/test_credits_response.py +0 -0
- {platform_api_python_client-3.2.7 → platform_api_python_client-4.0.1}/test/test_daily_bill_response.py +0 -0
- {platform_api_python_client-3.2.7 → platform_api_python_client-4.0.1}/test/test_deployment_status.py +0 -0
- {platform_api_python_client-3.2.7 → platform_api_python_client-4.0.1}/test/test_deployment_status_request.py +0 -0
- {platform_api_python_client-3.2.7 → platform_api_python_client-4.0.1}/test/test_deployment_type.py +0 -0
- {platform_api_python_client-3.2.7 → platform_api_python_client-4.0.1}/test/test_deployment_usage_value.py +0 -0
- {platform_api_python_client-3.2.7 → platform_api_python_client-4.0.1}/test/test_external_api.py +0 -0
- {platform_api_python_client-3.2.7 → platform_api_python_client-4.0.1}/test/test_get_autocharge_preferences_response.py +0 -0
- {platform_api_python_client-3.2.7 → platform_api_python_client-4.0.1}/test/test_get_c_serve_deployment_response.py +0 -0
- {platform_api_python_client-3.2.7 → platform_api_python_client-4.0.1}/test/test_get_cluster_response.py +0 -0
- {platform_api_python_client-3.2.7 → platform_api_python_client-4.0.1}/test/test_get_compute_deployment_response.py +0 -0
- {platform_api_python_client-3.2.7 → platform_api_python_client-4.0.1}/test/test_get_deployment_log_response.py +0 -0
- {platform_api_python_client-3.2.7 → platform_api_python_client-4.0.1}/test/test_get_deployment_response.py +0 -0
- {platform_api_python_client-3.2.7 → platform_api_python_client-4.0.1}/test/test_get_deployment_usage_response.py +0 -0
- {platform_api_python_client-3.2.7 → platform_api_python_client-4.0.1}/test/test_get_payment_response.py +0 -0
- {platform_api_python_client-3.2.7 → platform_api_python_client-4.0.1}/test/test_hardware_instance_response.py +0 -0
- {platform_api_python_client-3.2.7 → platform_api_python_client-4.0.1}/test/test_http_validation_error.py +0 -0
- {platform_api_python_client-3.2.7 → platform_api_python_client-4.0.1}/test/test_list_api_key_response.py +0 -0
- {platform_api_python_client-3.2.7 → platform_api_python_client-4.0.1}/test/test_list_c_serve_recipe_response.py +0 -0
- {platform_api_python_client-3.2.7 → platform_api_python_client-4.0.1}/test/test_list_daily_bill_response.py +0 -0
- {platform_api_python_client-3.2.7 → platform_api_python_client-4.0.1}/test/test_list_get_cluster_response.py +0 -0
- {platform_api_python_client-3.2.7 → platform_api_python_client-4.0.1}/test/test_list_get_deployment_response.py +0 -0
- {platform_api_python_client-3.2.7 → platform_api_python_client-4.0.1}/test/test_list_hardware_instance_response.py +0 -0
- {platform_api_python_client-3.2.7 → platform_api_python_client-4.0.1}/test/test_list_payments_response.py +0 -0
- {platform_api_python_client-3.2.7 → platform_api_python_client-4.0.1}/test/test_list_prebuilt_image_response.py +0 -0
- {platform_api_python_client-3.2.7 → platform_api_python_client-4.0.1}/test/test_list_user_vault_items_response.py +0 -0
- {platform_api_python_client-3.2.7 → platform_api_python_client-4.0.1}/test/test_metric.py +0 -0
- {platform_api_python_client-3.2.7 → platform_api_python_client-4.0.1}/test/test_payment_method_response.py +0 -0
- {platform_api_python_client-3.2.7 → platform_api_python_client-4.0.1}/test/test_prebuilt_image_response.py +0 -0
- {platform_api_python_client-3.2.7 → platform_api_python_client-4.0.1}/test/test_service_status.py +0 -0
- {platform_api_python_client-3.2.7 → platform_api_python_client-4.0.1}/test/test_update_autocharge_preferences_request.py +0 -0
- {platform_api_python_client-3.2.7 → platform_api_python_client-4.0.1}/test/test_update_deployment_response.py +0 -0
- {platform_api_python_client-3.2.7 → platform_api_python_client-4.0.1}/test/test_user_support_email_request.py +0 -0
- {platform_api_python_client-3.2.7 → platform_api_python_client-4.0.1}/test/test_user_vault_item.py +0 -0
- {platform_api_python_client-3.2.7 → platform_api_python_client-4.0.1}/test/test_user_vault_type.py +0 -0
- {platform_api_python_client-3.2.7 → platform_api_python_client-4.0.1}/test/test_validation_error.py +0 -0
- {platform_api_python_client-3.2.7 → platform_api_python_client-4.0.1}/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:
|
|
7
|
+
- Package version: 4.0.1
|
|
8
8
|
- Generator version: 7.9.0
|
|
9
9
|
- Build package: org.openapitools.codegen.languages.PythonClientCodegen
|
|
10
10
|
|
|
@@ -193,6 +193,7 @@ Class | Method | HTTP request | Description
|
|
|
193
193
|
- [ListUserVaultItemsResponse](docs/ListUserVaultItemsResponse.md)
|
|
194
194
|
- [Metric](docs/Metric.md)
|
|
195
195
|
- [PaymentMethodResponse](docs/PaymentMethodResponse.md)
|
|
196
|
+
- [PodStatus](docs/PodStatus.md)
|
|
196
197
|
- [PrebuiltImageResponse](docs/PrebuiltImageResponse.md)
|
|
197
198
|
- [ServiceStatus](docs/ServiceStatus.md)
|
|
198
199
|
- [UpdateAutochargePreferencesRequest](docs/UpdateAutochargePreferencesRequest.md)
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
""" # noqa: E501
|
|
15
15
|
|
|
16
16
|
|
|
17
|
-
__version__ = "
|
|
17
|
+
__version__ = "4.0.1"
|
|
18
18
|
|
|
19
19
|
# import apis into sdk package
|
|
20
20
|
from platform_api_python_client.api.external_api import EXTERNALApi
|
|
@@ -83,6 +83,7 @@ from platform_api_python_client.models.list_prebuilt_image_response import ListP
|
|
|
83
83
|
from platform_api_python_client.models.list_user_vault_items_response import ListUserVaultItemsResponse
|
|
84
84
|
from platform_api_python_client.models.metric import Metric
|
|
85
85
|
from platform_api_python_client.models.payment_method_response import PaymentMethodResponse
|
|
86
|
+
from platform_api_python_client.models.pod_status import PodStatus
|
|
86
87
|
from platform_api_python_client.models.prebuilt_image_response import PrebuiltImageResponse
|
|
87
88
|
from platform_api_python_client.models.service_status import ServiceStatus
|
|
88
89
|
from platform_api_python_client.models.update_autocharge_preferences_request import UpdateAutochargePreferencesRequest
|
|
@@ -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/
|
|
93
|
+
self.user_agent = 'OpenAPI-Generator/4.0.1/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:
|
|
395
|
+
"SDK Package Version: 4.0.1".\
|
|
396
396
|
format(env=sys.platform, pyversion=sys.version)
|
|
397
397
|
|
|
398
398
|
def get_host_settings(self):
|
|
@@ -66,6 +66,7 @@ from platform_api_python_client.models.list_prebuilt_image_response import ListP
|
|
|
66
66
|
from platform_api_python_client.models.list_user_vault_items_response import ListUserVaultItemsResponse
|
|
67
67
|
from platform_api_python_client.models.metric import Metric
|
|
68
68
|
from platform_api_python_client.models.payment_method_response import PaymentMethodResponse
|
|
69
|
+
from platform_api_python_client.models.pod_status import PodStatus
|
|
69
70
|
from platform_api_python_client.models.prebuilt_image_response import PrebuiltImageResponse
|
|
70
71
|
from platform_api_python_client.models.service_status import ServiceStatus
|
|
71
72
|
from platform_api_python_client.models.update_autocharge_preferences_request import UpdateAutochargePreferencesRequest
|
|
@@ -33,12 +33,14 @@ class CreateCServeV2DeploymentRequest(BaseModel):
|
|
|
33
33
|
hardware_instance_id: StrictInt
|
|
34
34
|
recipe: CServeV2Recipe
|
|
35
35
|
hf_token: Optional[StrictStr] = None
|
|
36
|
+
endpoint_bearer_token: Optional[StrictStr] = None
|
|
36
37
|
endpoint_certificate_authority: Optional[StrictStr] = None
|
|
37
38
|
min_scale: StrictInt
|
|
38
39
|
max_scale: StrictInt
|
|
40
|
+
initial_scale: Optional[StrictInt] = None
|
|
39
41
|
concurrency: Optional[StrictInt] = None
|
|
40
42
|
env_vars: Optional[Dict[str, StrictStr]] = None
|
|
41
|
-
__properties: ClassVar[List[str]] = ["name", "cluster_id", "hardware_instance_id", "recipe", "hf_token", "endpoint_certificate_authority", "min_scale", "max_scale", "concurrency", "env_vars"]
|
|
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"]
|
|
42
44
|
|
|
43
45
|
@field_validator('name')
|
|
44
46
|
def name_validate_regular_expression(cls, value):
|
|
@@ -94,11 +96,21 @@ class CreateCServeV2DeploymentRequest(BaseModel):
|
|
|
94
96
|
if self.hf_token is None and "hf_token" in self.model_fields_set:
|
|
95
97
|
_dict['hf_token'] = None
|
|
96
98
|
|
|
99
|
+
# set to None if endpoint_bearer_token (nullable) is None
|
|
100
|
+
# and model_fields_set contains the field
|
|
101
|
+
if self.endpoint_bearer_token is None and "endpoint_bearer_token" in self.model_fields_set:
|
|
102
|
+
_dict['endpoint_bearer_token'] = None
|
|
103
|
+
|
|
97
104
|
# set to None if endpoint_certificate_authority (nullable) is None
|
|
98
105
|
# and model_fields_set contains the field
|
|
99
106
|
if self.endpoint_certificate_authority is None and "endpoint_certificate_authority" in self.model_fields_set:
|
|
100
107
|
_dict['endpoint_certificate_authority'] = None
|
|
101
108
|
|
|
109
|
+
# set to None if initial_scale (nullable) is None
|
|
110
|
+
# and model_fields_set contains the field
|
|
111
|
+
if self.initial_scale is None and "initial_scale" in self.model_fields_set:
|
|
112
|
+
_dict['initial_scale'] = None
|
|
113
|
+
|
|
102
114
|
# set to None if concurrency (nullable) is None
|
|
103
115
|
# and model_fields_set contains the field
|
|
104
116
|
if self.concurrency is None and "concurrency" in self.model_fields_set:
|
|
@@ -121,9 +133,11 @@ class CreateCServeV2DeploymentRequest(BaseModel):
|
|
|
121
133
|
"hardware_instance_id": obj.get("hardware_instance_id"),
|
|
122
134
|
"recipe": CServeV2Recipe.from_dict(obj["recipe"]) if obj.get("recipe") is not None else None,
|
|
123
135
|
"hf_token": obj.get("hf_token"),
|
|
136
|
+
"endpoint_bearer_token": obj.get("endpoint_bearer_token"),
|
|
124
137
|
"endpoint_certificate_authority": obj.get("endpoint_certificate_authority"),
|
|
125
138
|
"min_scale": obj.get("min_scale"),
|
|
126
139
|
"max_scale": obj.get("max_scale"),
|
|
140
|
+
"initial_scale": obj.get("initial_scale"),
|
|
127
141
|
"concurrency": obj.get("concurrency"),
|
|
128
142
|
"env_vars": obj.get("env_vars")
|
|
129
143
|
})
|
|
@@ -34,12 +34,14 @@ class CreateInferenceDeploymentRequest(BaseModel):
|
|
|
34
34
|
port: StrictInt
|
|
35
35
|
min_scale: StrictInt
|
|
36
36
|
max_scale: StrictInt
|
|
37
|
+
initial_scale: Optional[StrictInt] = None
|
|
37
38
|
concurrency: Optional[StrictInt] = None
|
|
38
39
|
healthcheck: Optional[StrictStr] = None
|
|
39
40
|
env_vars: Optional[Dict[str, StrictStr]] = None
|
|
40
41
|
command: Optional[StrictStr] = None
|
|
42
|
+
endpoint_bearer_token: Optional[StrictStr] = None
|
|
41
43
|
endpoint_certificate_authority: Optional[StrictStr] = None
|
|
42
|
-
__properties: ClassVar[List[str]] = ["name", "cluster_id", "hardware_instance_id", "image_url", "port", "min_scale", "max_scale", "concurrency", "healthcheck", "env_vars", "command", "endpoint_certificate_authority"]
|
|
44
|
+
__properties: ClassVar[List[str]] = ["name", "cluster_id", "hardware_instance_id", "image_url", "port", "min_scale", "max_scale", "initial_scale", "concurrency", "healthcheck", "env_vars", "command", "endpoint_bearer_token", "endpoint_certificate_authority"]
|
|
43
45
|
|
|
44
46
|
@field_validator('name')
|
|
45
47
|
def name_validate_regular_expression(cls, value):
|
|
@@ -87,6 +89,11 @@ class CreateInferenceDeploymentRequest(BaseModel):
|
|
|
87
89
|
exclude=excluded_fields,
|
|
88
90
|
exclude_none=True,
|
|
89
91
|
)
|
|
92
|
+
# set to None if initial_scale (nullable) is None
|
|
93
|
+
# and model_fields_set contains the field
|
|
94
|
+
if self.initial_scale is None and "initial_scale" in self.model_fields_set:
|
|
95
|
+
_dict['initial_scale'] = None
|
|
96
|
+
|
|
90
97
|
# set to None if concurrency (nullable) is None
|
|
91
98
|
# and model_fields_set contains the field
|
|
92
99
|
if self.concurrency is None and "concurrency" in self.model_fields_set:
|
|
@@ -107,6 +114,11 @@ class CreateInferenceDeploymentRequest(BaseModel):
|
|
|
107
114
|
if self.command is None and "command" in self.model_fields_set:
|
|
108
115
|
_dict['command'] = None
|
|
109
116
|
|
|
117
|
+
# set to None if endpoint_bearer_token (nullable) is None
|
|
118
|
+
# and model_fields_set contains the field
|
|
119
|
+
if self.endpoint_bearer_token is None and "endpoint_bearer_token" in self.model_fields_set:
|
|
120
|
+
_dict['endpoint_bearer_token'] = None
|
|
121
|
+
|
|
110
122
|
# set to None if endpoint_certificate_authority (nullable) is None
|
|
111
123
|
# and model_fields_set contains the field
|
|
112
124
|
if self.endpoint_certificate_authority is None and "endpoint_certificate_authority" in self.model_fields_set:
|
|
@@ -131,10 +143,12 @@ class CreateInferenceDeploymentRequest(BaseModel):
|
|
|
131
143
|
"port": obj.get("port"),
|
|
132
144
|
"min_scale": obj.get("min_scale"),
|
|
133
145
|
"max_scale": obj.get("max_scale"),
|
|
146
|
+
"initial_scale": obj.get("initial_scale"),
|
|
134
147
|
"concurrency": obj.get("concurrency"),
|
|
135
148
|
"healthcheck": obj.get("healthcheck"),
|
|
136
149
|
"env_vars": obj.get("env_vars"),
|
|
137
150
|
"command": obj.get("command"),
|
|
151
|
+
"endpoint_bearer_token": obj.get("endpoint_bearer_token"),
|
|
138
152
|
"endpoint_certificate_authority": obj.get("endpoint_certificate_authority")
|
|
139
153
|
})
|
|
140
154
|
return _obj
|
|
@@ -37,10 +37,12 @@ class CreateRagDeploymentRequest(BaseModel):
|
|
|
37
37
|
centml_api_key: StrictStr
|
|
38
38
|
min_scale: Optional[StrictInt] = 1
|
|
39
39
|
max_scale: Optional[StrictInt] = 1
|
|
40
|
+
initial_scale: Optional[StrictInt] = None
|
|
41
|
+
endpoint_bearer_token: Optional[StrictStr] = None
|
|
40
42
|
endpoint_certificate_authority: Optional[StrictStr] = None
|
|
41
43
|
concurrency: Optional[StrictInt] = None
|
|
42
44
|
env_vars: Optional[Dict[str, StrictStr]] = None
|
|
43
|
-
__properties: ClassVar[List[str]] = ["name", "cluster_id", "hardware_instance_id", "recipe", "hf_token", "llm_model", "centml_api_key", "min_scale", "max_scale", "endpoint_certificate_authority", "concurrency", "env_vars"]
|
|
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"]
|
|
44
46
|
|
|
45
47
|
@field_validator('name')
|
|
46
48
|
def name_validate_regular_expression(cls, value):
|
|
@@ -96,6 +98,16 @@ class CreateRagDeploymentRequest(BaseModel):
|
|
|
96
98
|
if self.hf_token is None and "hf_token" in self.model_fields_set:
|
|
97
99
|
_dict['hf_token'] = None
|
|
98
100
|
|
|
101
|
+
# set to None if initial_scale (nullable) is None
|
|
102
|
+
# and model_fields_set contains the field
|
|
103
|
+
if self.initial_scale is None and "initial_scale" in self.model_fields_set:
|
|
104
|
+
_dict['initial_scale'] = None
|
|
105
|
+
|
|
106
|
+
# set to None if endpoint_bearer_token (nullable) is None
|
|
107
|
+
# and model_fields_set contains the field
|
|
108
|
+
if self.endpoint_bearer_token is None and "endpoint_bearer_token" in self.model_fields_set:
|
|
109
|
+
_dict['endpoint_bearer_token'] = None
|
|
110
|
+
|
|
99
111
|
# set to None if endpoint_certificate_authority (nullable) is None
|
|
100
112
|
# and model_fields_set contains the field
|
|
101
113
|
if self.endpoint_certificate_authority is None and "endpoint_certificate_authority" in self.model_fields_set:
|
|
@@ -127,6 +139,8 @@ class CreateRagDeploymentRequest(BaseModel):
|
|
|
127
139
|
"centml_api_key": obj.get("centml_api_key"),
|
|
128
140
|
"min_scale": obj.get("min_scale") if obj.get("min_scale") is not None else 1,
|
|
129
141
|
"max_scale": obj.get("max_scale") if obj.get("max_scale") is not None else 1,
|
|
142
|
+
"initial_scale": obj.get("initial_scale"),
|
|
143
|
+
"endpoint_bearer_token": obj.get("endpoint_bearer_token"),
|
|
130
144
|
"endpoint_certificate_authority": obj.get("endpoint_certificate_authority"),
|
|
131
145
|
"concurrency": obj.get("concurrency"),
|
|
132
146
|
"env_vars": obj.get("env_vars")
|
|
@@ -17,8 +17,9 @@ import pprint
|
|
|
17
17
|
import re # noqa: F401
|
|
18
18
|
import json
|
|
19
19
|
|
|
20
|
-
from pydantic import BaseModel, ConfigDict,
|
|
20
|
+
from pydantic import BaseModel, ConfigDict, Field
|
|
21
21
|
from typing import Any, ClassVar, Dict, List
|
|
22
|
+
from typing_extensions import Annotated
|
|
22
23
|
from typing import Optional, Set
|
|
23
24
|
from typing_extensions import Self
|
|
24
25
|
|
|
@@ -26,7 +27,7 @@ class CreateUrlResponse(BaseModel):
|
|
|
26
27
|
"""
|
|
27
28
|
CreateUrlResponse
|
|
28
29
|
""" # noqa: E501
|
|
29
|
-
url:
|
|
30
|
+
url: Annotated[str, Field(min_length=1, strict=True)]
|
|
30
31
|
__properties: ClassVar[List[str]] = ["url"]
|
|
31
32
|
|
|
32
33
|
model_config = ConfigDict(
|
|
@@ -17,8 +17,9 @@ import pprint
|
|
|
17
17
|
import re # noqa: F401
|
|
18
18
|
import json
|
|
19
19
|
|
|
20
|
-
from pydantic import BaseModel, ConfigDict, StrictInt, StrictStr
|
|
20
|
+
from pydantic import BaseModel, ConfigDict, Field, StrictInt, StrictStr
|
|
21
21
|
from typing import Any, ClassVar, Dict, List, Optional
|
|
22
|
+
from typing_extensions import Annotated
|
|
22
23
|
from platform_api_python_client.models.deployment_status import DeploymentStatus
|
|
23
24
|
from platform_api_python_client.models.deployment_type import DeploymentType
|
|
24
25
|
from platform_api_python_client.models.service_status import ServiceStatus
|
|
@@ -35,7 +36,8 @@ class DeploymentStatusResponse(BaseModel):
|
|
|
35
36
|
service_status: Optional[ServiceStatus] = None
|
|
36
37
|
error_message: Optional[StrictStr] = None
|
|
37
38
|
endpoint_url: Optional[StrictStr] = None
|
|
38
|
-
|
|
39
|
+
pod_status: Optional[List[Annotated[List[Any], Field(min_length=2, max_length=2)]]] = None
|
|
40
|
+
__properties: ClassVar[List[str]] = ["id", "type", "status", "service_status", "error_message", "endpoint_url", "pod_status"]
|
|
39
41
|
|
|
40
42
|
model_config = ConfigDict(
|
|
41
43
|
populate_by_name=True,
|
|
@@ -91,6 +93,11 @@ class DeploymentStatusResponse(BaseModel):
|
|
|
91
93
|
if self.endpoint_url is None and "endpoint_url" in self.model_fields_set:
|
|
92
94
|
_dict['endpoint_url'] = None
|
|
93
95
|
|
|
96
|
+
# set to None if pod_status (nullable) is None
|
|
97
|
+
# and model_fields_set contains the field
|
|
98
|
+
if self.pod_status is None and "pod_status" in self.model_fields_set:
|
|
99
|
+
_dict['pod_status'] = None
|
|
100
|
+
|
|
94
101
|
return _dict
|
|
95
102
|
|
|
96
103
|
@classmethod
|
|
@@ -108,7 +115,8 @@ class DeploymentStatusResponse(BaseModel):
|
|
|
108
115
|
"status": obj.get("status"),
|
|
109
116
|
"service_status": obj.get("service_status"),
|
|
110
117
|
"error_message": obj.get("error_message"),
|
|
111
|
-
"endpoint_url": obj.get("endpoint_url")
|
|
118
|
+
"endpoint_url": obj.get("endpoint_url"),
|
|
119
|
+
"pod_status": obj.get("pod_status")
|
|
112
120
|
})
|
|
113
121
|
return _obj
|
|
114
122
|
|
|
@@ -42,10 +42,12 @@ class GetCServeV2DeploymentResponse(BaseModel):
|
|
|
42
42
|
recipe: CServeV2Recipe
|
|
43
43
|
min_scale: StrictInt
|
|
44
44
|
max_scale: StrictInt
|
|
45
|
+
initial_scale: Optional[StrictInt] = None
|
|
45
46
|
endpoint_certificate_authority: Optional[StrictStr] = None
|
|
47
|
+
endpoint_bearer_token: Optional[StrictStr] = None
|
|
46
48
|
concurrency: Optional[StrictInt] = None
|
|
47
49
|
env_vars: Optional[Dict[str, StrictStr]] = None
|
|
48
|
-
__properties: ClassVar[List[str]] = ["cluster_id", "id", "name", "endpoint_url", "image_url", "type", "status", "created_at", "hardware_instance_id", "recipe", "min_scale", "max_scale", "endpoint_certificate_authority", "concurrency", "env_vars"]
|
|
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"]
|
|
49
51
|
|
|
50
52
|
model_config = ConfigDict(
|
|
51
53
|
populate_by_name=True,
|
|
@@ -94,11 +96,21 @@ class GetCServeV2DeploymentResponse(BaseModel):
|
|
|
94
96
|
if self.image_url is None and "image_url" in self.model_fields_set:
|
|
95
97
|
_dict['image_url'] = None
|
|
96
98
|
|
|
99
|
+
# set to None if initial_scale (nullable) is None
|
|
100
|
+
# and model_fields_set contains the field
|
|
101
|
+
if self.initial_scale is None and "initial_scale" in self.model_fields_set:
|
|
102
|
+
_dict['initial_scale'] = None
|
|
103
|
+
|
|
97
104
|
# set to None if endpoint_certificate_authority (nullable) is None
|
|
98
105
|
# and model_fields_set contains the field
|
|
99
106
|
if self.endpoint_certificate_authority is None and "endpoint_certificate_authority" in self.model_fields_set:
|
|
100
107
|
_dict['endpoint_certificate_authority'] = None
|
|
101
108
|
|
|
109
|
+
# set to None if endpoint_bearer_token (nullable) is None
|
|
110
|
+
# and model_fields_set contains the field
|
|
111
|
+
if self.endpoint_bearer_token is None and "endpoint_bearer_token" in self.model_fields_set:
|
|
112
|
+
_dict['endpoint_bearer_token'] = None
|
|
113
|
+
|
|
102
114
|
# set to None if concurrency (nullable) is None
|
|
103
115
|
# and model_fields_set contains the field
|
|
104
116
|
if self.concurrency is None and "concurrency" in self.model_fields_set:
|
|
@@ -128,7 +140,9 @@ class GetCServeV2DeploymentResponse(BaseModel):
|
|
|
128
140
|
"recipe": CServeV2Recipe.from_dict(obj["recipe"]) if obj.get("recipe") is not None else None,
|
|
129
141
|
"min_scale": obj.get("min_scale"),
|
|
130
142
|
"max_scale": obj.get("max_scale"),
|
|
143
|
+
"initial_scale": obj.get("initial_scale"),
|
|
131
144
|
"endpoint_certificate_authority": obj.get("endpoint_certificate_authority"),
|
|
145
|
+
"endpoint_bearer_token": obj.get("endpoint_bearer_token"),
|
|
132
146
|
"concurrency": obj.get("concurrency"),
|
|
133
147
|
"env_vars": obj.get("env_vars")
|
|
134
148
|
})
|
|
@@ -41,13 +41,15 @@ class GetInferenceDeploymentResponse(BaseModel):
|
|
|
41
41
|
container_port: StrictInt
|
|
42
42
|
min_scale: StrictInt
|
|
43
43
|
max_scale: StrictInt
|
|
44
|
+
initial_scale: Optional[StrictInt] = None
|
|
44
45
|
concurrency: Optional[StrictInt] = None
|
|
45
46
|
healthcheck: Optional[StrictStr] = None
|
|
46
47
|
endpoint_certificate_authority: Optional[StrictStr] = None
|
|
48
|
+
endpoint_bearer_token: Optional[StrictStr] = None
|
|
47
49
|
env_vars: Optional[Dict[str, StrictStr]] = None
|
|
48
50
|
command: Optional[List[StrictStr]] = None
|
|
49
51
|
command_args: Optional[List[StrictStr]] = None
|
|
50
|
-
__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"]
|
|
52
|
+
__properties: ClassVar[List[str]] = ["cluster_id", "id", "name", "endpoint_url", "image_url", "type", "status", "created_at", "hardware_instance_id", "container_port", "min_scale", "max_scale", "initial_scale", "concurrency", "healthcheck", "endpoint_certificate_authority", "endpoint_bearer_token", "env_vars", "command", "command_args"]
|
|
51
53
|
|
|
52
54
|
model_config = ConfigDict(
|
|
53
55
|
populate_by_name=True,
|
|
@@ -93,6 +95,11 @@ class GetInferenceDeploymentResponse(BaseModel):
|
|
|
93
95
|
if self.image_url is None and "image_url" in self.model_fields_set:
|
|
94
96
|
_dict['image_url'] = None
|
|
95
97
|
|
|
98
|
+
# set to None if initial_scale (nullable) is None
|
|
99
|
+
# and model_fields_set contains the field
|
|
100
|
+
if self.initial_scale is None and "initial_scale" in self.model_fields_set:
|
|
101
|
+
_dict['initial_scale'] = None
|
|
102
|
+
|
|
96
103
|
# set to None if concurrency (nullable) is None
|
|
97
104
|
# and model_fields_set contains the field
|
|
98
105
|
if self.concurrency is None and "concurrency" in self.model_fields_set:
|
|
@@ -108,6 +115,11 @@ class GetInferenceDeploymentResponse(BaseModel):
|
|
|
108
115
|
if self.endpoint_certificate_authority is None and "endpoint_certificate_authority" in self.model_fields_set:
|
|
109
116
|
_dict['endpoint_certificate_authority'] = None
|
|
110
117
|
|
|
118
|
+
# set to None if endpoint_bearer_token (nullable) is None
|
|
119
|
+
# and model_fields_set contains the field
|
|
120
|
+
if self.endpoint_bearer_token is None and "endpoint_bearer_token" in self.model_fields_set:
|
|
121
|
+
_dict['endpoint_bearer_token'] = None
|
|
122
|
+
|
|
111
123
|
# set to None if env_vars (nullable) is None
|
|
112
124
|
# and model_fields_set contains the field
|
|
113
125
|
if self.env_vars is None and "env_vars" in self.model_fields_set:
|
|
@@ -147,9 +159,11 @@ class GetInferenceDeploymentResponse(BaseModel):
|
|
|
147
159
|
"container_port": obj.get("container_port"),
|
|
148
160
|
"min_scale": obj.get("min_scale"),
|
|
149
161
|
"max_scale": obj.get("max_scale"),
|
|
162
|
+
"initial_scale": obj.get("initial_scale"),
|
|
150
163
|
"concurrency": obj.get("concurrency"),
|
|
151
164
|
"healthcheck": obj.get("healthcheck"),
|
|
152
165
|
"endpoint_certificate_authority": obj.get("endpoint_certificate_authority"),
|
|
166
|
+
"endpoint_bearer_token": obj.get("endpoint_bearer_token"),
|
|
153
167
|
"env_vars": obj.get("env_vars"),
|
|
154
168
|
"command": obj.get("command"),
|
|
155
169
|
"command_args": obj.get("command_args")
|
|
@@ -44,10 +44,12 @@ class GetRagDeploymentResponse(BaseModel):
|
|
|
44
44
|
centml_api_key: StrictStr
|
|
45
45
|
min_scale: Optional[StrictInt] = 1
|
|
46
46
|
max_scale: Optional[StrictInt] = 1
|
|
47
|
+
initial_scale: Optional[StrictInt] = None
|
|
47
48
|
endpoint_certificate_authority: Optional[StrictStr] = None
|
|
49
|
+
endpoint_bearer_token: Optional[StrictStr] = None
|
|
48
50
|
concurrency: Optional[StrictInt] = None
|
|
49
51
|
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", "llm_model", "centml_api_key", "min_scale", "max_scale", "endpoint_certificate_authority", "concurrency", "env_vars"]
|
|
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"]
|
|
51
53
|
|
|
52
54
|
model_config = ConfigDict(
|
|
53
55
|
populate_by_name=True,
|
|
@@ -96,11 +98,21 @@ class GetRagDeploymentResponse(BaseModel):
|
|
|
96
98
|
if self.image_url is None and "image_url" in self.model_fields_set:
|
|
97
99
|
_dict['image_url'] = None
|
|
98
100
|
|
|
101
|
+
# set to None if initial_scale (nullable) is None
|
|
102
|
+
# and model_fields_set contains the field
|
|
103
|
+
if self.initial_scale is None and "initial_scale" in self.model_fields_set:
|
|
104
|
+
_dict['initial_scale'] = None
|
|
105
|
+
|
|
99
106
|
# set to None if endpoint_certificate_authority (nullable) is None
|
|
100
107
|
# and model_fields_set contains the field
|
|
101
108
|
if self.endpoint_certificate_authority is None and "endpoint_certificate_authority" in self.model_fields_set:
|
|
102
109
|
_dict['endpoint_certificate_authority'] = None
|
|
103
110
|
|
|
111
|
+
# set to None if endpoint_bearer_token (nullable) is None
|
|
112
|
+
# and model_fields_set contains the field
|
|
113
|
+
if self.endpoint_bearer_token is None and "endpoint_bearer_token" in self.model_fields_set:
|
|
114
|
+
_dict['endpoint_bearer_token'] = None
|
|
115
|
+
|
|
104
116
|
# set to None if concurrency (nullable) is None
|
|
105
117
|
# and model_fields_set contains the field
|
|
106
118
|
if self.concurrency is None and "concurrency" in self.model_fields_set:
|
|
@@ -132,7 +144,9 @@ class GetRagDeploymentResponse(BaseModel):
|
|
|
132
144
|
"centml_api_key": obj.get("centml_api_key"),
|
|
133
145
|
"min_scale": obj.get("min_scale") if obj.get("min_scale") is not None else 1,
|
|
134
146
|
"max_scale": obj.get("max_scale") if obj.get("max_scale") is not None else 1,
|
|
147
|
+
"initial_scale": obj.get("initial_scale"),
|
|
135
148
|
"endpoint_certificate_authority": obj.get("endpoint_certificate_authority"),
|
|
149
|
+
"endpoint_bearer_token": obj.get("endpoint_bearer_token"),
|
|
136
150
|
"concurrency": obj.get("concurrency"),
|
|
137
151
|
"env_vars": obj.get("env_vars")
|
|
138
152
|
})
|
|
@@ -0,0 +1,45 @@
|
|
|
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 json
|
|
17
|
+
from enum import Enum
|
|
18
|
+
from typing_extensions import Self
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
class PodStatus(str, Enum):
|
|
22
|
+
"""
|
|
23
|
+
PodStatus
|
|
24
|
+
"""
|
|
25
|
+
|
|
26
|
+
"""
|
|
27
|
+
allowed enum values
|
|
28
|
+
"""
|
|
29
|
+
SCALINGUP = 'ScalingUp'
|
|
30
|
+
PULLING = 'Pulling'
|
|
31
|
+
INITIALIZING = 'Initializing'
|
|
32
|
+
ERROR = 'Error'
|
|
33
|
+
CREATECONTAINERCONFIGERROR = 'CreateContainerConfigError'
|
|
34
|
+
CRASHLOOPBACKOFF = 'CrashLoopBackOff'
|
|
35
|
+
IMAGEPULLBACKOFF = 'ImagePullBackOff'
|
|
36
|
+
PROGRESSDEADLINEEXCEEDED = 'ProgressDeadlineExceeded'
|
|
37
|
+
RUNNING = 'Running'
|
|
38
|
+
NOTREADY = 'NotReady'
|
|
39
|
+
|
|
40
|
+
@classmethod
|
|
41
|
+
def from_json(cls, json_str: str) -> Self:
|
|
42
|
+
"""Create an instance of PodStatus from a JSON string"""
|
|
43
|
+
return cls(json.loads(json_str))
|
|
44
|
+
|
|
45
|
+
|
|
@@ -69,6 +69,7 @@ platform_api_python_client/models/list_prebuilt_image_response.py
|
|
|
69
69
|
platform_api_python_client/models/list_user_vault_items_response.py
|
|
70
70
|
platform_api_python_client/models/metric.py
|
|
71
71
|
platform_api_python_client/models/payment_method_response.py
|
|
72
|
+
platform_api_python_client/models/pod_status.py
|
|
72
73
|
platform_api_python_client/models/prebuilt_image_response.py
|
|
73
74
|
platform_api_python_client/models/service_status.py
|
|
74
75
|
platform_api_python_client/models/update_autocharge_preferences_request.py
|
|
@@ -131,6 +132,7 @@ test/test_list_prebuilt_image_response.py
|
|
|
131
132
|
test/test_list_user_vault_items_response.py
|
|
132
133
|
test/test_metric.py
|
|
133
134
|
test/test_payment_method_response.py
|
|
135
|
+
test/test_pod_status.py
|
|
134
136
|
test/test_prebuilt_image_response.py
|
|
135
137
|
test/test_service_status.py
|
|
136
138
|
test/test_update_autocharge_preferences_request.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 = "
|
|
24
|
+
VERSION = "4.0.1"
|
|
25
25
|
PYTHON_REQUIRES = ">= 3.8"
|
|
26
26
|
REQUIRES = [
|
|
27
27
|
"urllib3 >= 1.25.3, < 3.0.0",
|
|
@@ -40,9 +40,11 @@ class TestCreateCServeV2DeploymentRequest(unittest.TestCase):
|
|
|
40
40
|
hardware_instance_id = 56,
|
|
41
41
|
recipe = { },
|
|
42
42
|
hf_token = '',
|
|
43
|
+
endpoint_bearer_token = '',
|
|
43
44
|
endpoint_certificate_authority = '',
|
|
44
45
|
min_scale = 56,
|
|
45
46
|
max_scale = 56,
|
|
47
|
+
initial_scale = 56,
|
|
46
48
|
concurrency = 56,
|
|
47
49
|
env_vars = {
|
|
48
50
|
'key' : ''
|
|
@@ -42,12 +42,14 @@ class TestCreateInferenceDeploymentRequest(unittest.TestCase):
|
|
|
42
42
|
port = 56,
|
|
43
43
|
min_scale = 56,
|
|
44
44
|
max_scale = 56,
|
|
45
|
+
initial_scale = 56,
|
|
45
46
|
concurrency = 56,
|
|
46
47
|
healthcheck = '',
|
|
47
48
|
env_vars = {
|
|
48
49
|
'key' : ''
|
|
49
50
|
},
|
|
50
51
|
command = '',
|
|
52
|
+
endpoint_bearer_token = '',
|
|
51
53
|
endpoint_certificate_authority = ''
|
|
52
54
|
)
|
|
53
55
|
else:
|
|
@@ -40,7 +40,12 @@ class TestDeploymentStatusResponse(unittest.TestCase):
|
|
|
40
40
|
status = 'active',
|
|
41
41
|
service_status = 'Healthy',
|
|
42
42
|
error_message = '',
|
|
43
|
-
endpoint_url = ''
|
|
43
|
+
endpoint_url = '',
|
|
44
|
+
pod_status = [
|
|
45
|
+
[
|
|
46
|
+
null
|
|
47
|
+
]
|
|
48
|
+
]
|
|
44
49
|
)
|
|
45
50
|
else:
|
|
46
51
|
return DeploymentStatusResponse(
|
|
@@ -47,7 +47,9 @@ class TestGetCServeV2DeploymentResponse(unittest.TestCase):
|
|
|
47
47
|
recipe = { },
|
|
48
48
|
min_scale = 56,
|
|
49
49
|
max_scale = 56,
|
|
50
|
+
initial_scale = 56,
|
|
50
51
|
endpoint_certificate_authority = '',
|
|
52
|
+
endpoint_bearer_token = '',
|
|
51
53
|
concurrency = 56,
|
|
52
54
|
env_vars = {
|
|
53
55
|
'key' : ''
|
|
@@ -47,9 +47,11 @@ class TestGetInferenceDeploymentResponse(unittest.TestCase):
|
|
|
47
47
|
container_port = 56,
|
|
48
48
|
min_scale = 56,
|
|
49
49
|
max_scale = 56,
|
|
50
|
+
initial_scale = 56,
|
|
50
51
|
concurrency = 56,
|
|
51
52
|
healthcheck = '',
|
|
52
53
|
endpoint_certificate_authority = '',
|
|
54
|
+
endpoint_bearer_token = '',
|
|
53
55
|
env_vars = {
|
|
54
56
|
'key' : ''
|
|
55
57
|
},
|
|
@@ -49,7 +49,9 @@ class TestGetRagDeploymentResponse(unittest.TestCase):
|
|
|
49
49
|
centml_api_key = '',
|
|
50
50
|
min_scale = 56,
|
|
51
51
|
max_scale = 56,
|
|
52
|
+
initial_scale = 56,
|
|
52
53
|
endpoint_certificate_authority = '',
|
|
54
|
+
endpoint_bearer_token = '',
|
|
53
55
|
concurrency = 56,
|
|
54
56
|
env_vars = {
|
|
55
57
|
'key' : ''
|
|
@@ -0,0 +1,33 @@
|
|
|
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.pod_status import PodStatus
|
|
18
|
+
|
|
19
|
+
class TestPodStatus(unittest.TestCase):
|
|
20
|
+
"""PodStatus unit test stubs"""
|
|
21
|
+
|
|
22
|
+
def setUp(self):
|
|
23
|
+
pass
|
|
24
|
+
|
|
25
|
+
def tearDown(self):
|
|
26
|
+
pass
|
|
27
|
+
|
|
28
|
+
def testPodStatus(self):
|
|
29
|
+
"""Test PodStatus"""
|
|
30
|
+
# inst = PodStatus()
|
|
31
|
+
|
|
32
|
+
if __name__ == '__main__':
|
|
33
|
+
unittest.main()
|
|
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-3.2.7 → platform_api_python_client-4.0.1}/test/test_api_key_request.py
RENAMED
|
File without changes
|
{platform_api_python_client-3.2.7 → platform_api_python_client-4.0.1}/test/test_api_key_response.py
RENAMED
|
File without changes
|
{platform_api_python_client-3.2.7 → platform_api_python_client-4.0.1}/test/test_c_serve_recipe.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{platform_api_python_client-3.2.7 → platform_api_python_client-4.0.1}/test/test_c_serve_v2_recipe.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
|
{platform_api_python_client-3.2.7 → platform_api_python_client-4.0.1}/test/test_credits_response.py
RENAMED
|
File without changes
|
|
File without changes
|
{platform_api_python_client-3.2.7 → platform_api_python_client-4.0.1}/test/test_deployment_status.py
RENAMED
|
File without changes
|
|
File without changes
|
{platform_api_python_client-3.2.7 → platform_api_python_client-4.0.1}/test/test_deployment_type.py
RENAMED
|
File without changes
|
|
File without changes
|
{platform_api_python_client-3.2.7 → platform_api_python_client-4.0.1}/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
|
|
File without changes
|
|
File without changes
|
{platform_api_python_client-3.2.7 → platform_api_python_client-4.0.1}/test/test_service_status.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{platform_api_python_client-3.2.7 → platform_api_python_client-4.0.1}/test/test_user_vault_item.py
RENAMED
|
File without changes
|
{platform_api_python_client-3.2.7 → platform_api_python_client-4.0.1}/test/test_user_vault_type.py
RENAMED
|
File without changes
|
{platform_api_python_client-3.2.7 → platform_api_python_client-4.0.1}/test/test_validation_error.py
RENAMED
|
File without changes
|
|
File without changes
|