platform-api-python-client 0.3.0__tar.gz → 0.3.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-0.3.0 → platform_api_python_client-0.3.1}/PKG-INFO +1 -1
- {platform_api_python_client-0.3.0 → platform_api_python_client-0.3.1}/README.md +2 -2
- platform_api_python_client-0.3.1/platform_api_python_client/__init__.py +77 -0
- platform_api_python_client-0.3.1/platform_api_python_client/api/__init__.py +5 -0
- {platform_api_python_client-0.3.0/platform_api_external_client → platform_api_python_client-0.3.1/platform_api_python_client}/api/external_api.py +33 -33
- {platform_api_python_client-0.3.0/platform_api_external_client → platform_api_python_client-0.3.1/platform_api_python_client}/api_client.py +6 -6
- {platform_api_python_client-0.3.0/platform_api_external_client → platform_api_python_client-0.3.1/platform_api_python_client}/configuration.py +2 -2
- platform_api_python_client-0.3.1/platform_api_python_client/models/__init__.py +60 -0
- {platform_api_python_client-0.3.0/platform_api_external_client → platform_api_python_client-0.3.1/platform_api_python_client}/models/c_serve_recipe_perf.py +1 -1
- {platform_api_python_client-0.3.0/platform_api_external_client → platform_api_python_client-0.3.1/platform_api_python_client}/models/c_serve_recipe_response.py +1 -1
- {platform_api_python_client-0.3.0/platform_api_external_client → platform_api_python_client-0.3.1/platform_api_python_client}/models/create_c_serve_deployment_request.py +1 -1
- {platform_api_python_client-0.3.0/platform_api_external_client → platform_api_python_client-0.3.1/platform_api_python_client}/models/deployment_status_request.py +1 -1
- {platform_api_python_client-0.3.0/platform_api_external_client → platform_api_python_client-0.3.1/platform_api_python_client}/models/deployment_status_response.py +3 -3
- {platform_api_python_client-0.3.0/platform_api_external_client → platform_api_python_client-0.3.1/platform_api_python_client}/models/get_c_serve_deployment_response.py +2 -2
- {platform_api_python_client-0.3.0/platform_api_external_client → platform_api_python_client-0.3.1/platform_api_python_client}/models/get_compute_deployment_response.py +2 -2
- {platform_api_python_client-0.3.0/platform_api_external_client → platform_api_python_client-0.3.1/platform_api_python_client}/models/get_deployment_response.py +2 -2
- {platform_api_python_client-0.3.0/platform_api_external_client → platform_api_python_client-0.3.1/platform_api_python_client}/models/get_deployment_usage_response.py +1 -1
- {platform_api_python_client-0.3.0/platform_api_external_client → platform_api_python_client-0.3.1/platform_api_python_client}/models/get_inference_deployment_response.py +2 -2
- {platform_api_python_client-0.3.0/platform_api_external_client → platform_api_python_client-0.3.1/platform_api_python_client}/models/http_validation_error.py +1 -1
- {platform_api_python_client-0.3.0/platform_api_external_client → platform_api_python_client-0.3.1/platform_api_python_client}/models/list_api_key_response.py +1 -1
- {platform_api_python_client-0.3.0/platform_api_external_client → platform_api_python_client-0.3.1/platform_api_python_client}/models/list_c_serve_recipe_response.py +1 -1
- {platform_api_python_client-0.3.0/platform_api_external_client → platform_api_python_client-0.3.1/platform_api_python_client}/models/list_daily_bill_response.py +1 -1
- {platform_api_python_client-0.3.0/platform_api_external_client → platform_api_python_client-0.3.1/platform_api_python_client}/models/list_get_cluster_response.py +1 -1
- {platform_api_python_client-0.3.0/platform_api_external_client → platform_api_python_client-0.3.1/platform_api_python_client}/models/list_get_deployment_response.py +1 -1
- {platform_api_python_client-0.3.0/platform_api_external_client → platform_api_python_client-0.3.1/platform_api_python_client}/models/list_hardware_instance_response.py +1 -1
- {platform_api_python_client-0.3.0/platform_api_external_client → platform_api_python_client-0.3.1/platform_api_python_client}/models/list_prebuilt_image_response.py +1 -1
- {platform_api_python_client-0.3.0/platform_api_external_client → platform_api_python_client-0.3.1/platform_api_python_client}/models/prebuilt_image_response.py +1 -1
- {platform_api_python_client-0.3.0/platform_api_external_client → platform_api_python_client-0.3.1/platform_api_python_client}/models/validation_error.py +1 -1
- {platform_api_python_client-0.3.0/platform_api_external_client → platform_api_python_client-0.3.1/platform_api_python_client}/rest.py +1 -1
- {platform_api_python_client-0.3.0 → platform_api_python_client-0.3.1}/platform_api_python_client.egg-info/PKG-INFO +1 -1
- platform_api_python_client-0.3.1/platform_api_python_client.egg-info/SOURCES.txt +108 -0
- platform_api_python_client-0.3.1/platform_api_python_client.egg-info/top_level.txt +1 -0
- {platform_api_python_client-0.3.0 → platform_api_python_client-0.3.1}/pyproject.toml +1 -1
- {platform_api_python_client-0.3.0 → platform_api_python_client-0.3.1}/setup.py +1 -1
- {platform_api_python_client-0.3.0 → platform_api_python_client-0.3.1}/test/test_api_key_request.py +1 -1
- {platform_api_python_client-0.3.0 → platform_api_python_client-0.3.1}/test/test_api_key_response.py +1 -1
- {platform_api_python_client-0.3.0 → platform_api_python_client-0.3.1}/test/test_c_serve_recipe_input.py +1 -1
- {platform_api_python_client-0.3.0 → platform_api_python_client-0.3.1}/test/test_c_serve_recipe_output.py +1 -1
- {platform_api_python_client-0.3.0 → platform_api_python_client-0.3.1}/test/test_c_serve_recipe_perf.py +3 -3
- {platform_api_python_client-0.3.0 → platform_api_python_client-0.3.1}/test/test_c_serve_recipe_response.py +13 -13
- {platform_api_python_client-0.3.0 → platform_api_python_client-0.3.1}/test/test_create_c_serve_deployment_request.py +3 -3
- {platform_api_python_client-0.3.0 → platform_api_python_client-0.3.1}/test/test_create_c_serve_deployment_response.py +1 -1
- {platform_api_python_client-0.3.0 → platform_api_python_client-0.3.1}/test/test_create_checkout_request.py +1 -1
- {platform_api_python_client-0.3.0 → platform_api_python_client-0.3.1}/test/test_create_checkout_response.py +1 -1
- {platform_api_python_client-0.3.0 → platform_api_python_client-0.3.1}/test/test_create_compute_deployment_request.py +1 -1
- {platform_api_python_client-0.3.0 → platform_api_python_client-0.3.1}/test/test_create_compute_deployment_response.py +1 -1
- {platform_api_python_client-0.3.0 → platform_api_python_client-0.3.1}/test/test_create_inference_deployment_request.py +1 -1
- {platform_api_python_client-0.3.0 → platform_api_python_client-0.3.1}/test/test_create_inference_deployment_response.py +1 -1
- {platform_api_python_client-0.3.0 → platform_api_python_client-0.3.1}/test/test_credits_response.py +1 -1
- {platform_api_python_client-0.3.0 → platform_api_python_client-0.3.1}/test/test_daily_bill_response.py +1 -1
- {platform_api_python_client-0.3.0 → platform_api_python_client-0.3.1}/test/test_deployment_status.py +1 -1
- {platform_api_python_client-0.3.0 → platform_api_python_client-0.3.1}/test/test_deployment_status_request.py +1 -1
- {platform_api_python_client-0.3.0 → platform_api_python_client-0.3.1}/test/test_deployment_status_response.py +1 -1
- {platform_api_python_client-0.3.0 → platform_api_python_client-0.3.1}/test/test_deployment_type.py +1 -1
- {platform_api_python_client-0.3.0 → platform_api_python_client-0.3.1}/test/test_deployment_usage_value.py +1 -1
- {platform_api_python_client-0.3.0 → platform_api_python_client-0.3.1}/test/test_external_api.py +1 -1
- {platform_api_python_client-0.3.0 → platform_api_python_client-0.3.1}/test/test_get_c_serve_deployment_response.py +1 -1
- {platform_api_python_client-0.3.0 → platform_api_python_client-0.3.1}/test/test_get_cluster_response.py +1 -1
- {platform_api_python_client-0.3.0 → platform_api_python_client-0.3.1}/test/test_get_compute_deployment_response.py +1 -1
- {platform_api_python_client-0.3.0 → platform_api_python_client-0.3.1}/test/test_get_deployment_log_response.py +1 -1
- {platform_api_python_client-0.3.0 → platform_api_python_client-0.3.1}/test/test_get_deployment_response.py +1 -1
- {platform_api_python_client-0.3.0 → platform_api_python_client-0.3.1}/test/test_get_deployment_usage_response.py +3 -3
- {platform_api_python_client-0.3.0 → platform_api_python_client-0.3.1}/test/test_get_inference_deployment_response.py +1 -1
- {platform_api_python_client-0.3.0 → platform_api_python_client-0.3.1}/test/test_get_payments_response.py +1 -1
- {platform_api_python_client-0.3.0 → platform_api_python_client-0.3.1}/test/test_hardware_instance_response.py +1 -1
- {platform_api_python_client-0.3.0 → platform_api_python_client-0.3.1}/test/test_http_validation_error.py +2 -2
- {platform_api_python_client-0.3.0 → platform_api_python_client-0.3.1}/test/test_list_api_key_response.py +3 -3
- {platform_api_python_client-0.3.0 → platform_api_python_client-0.3.1}/test/test_list_c_serve_recipe_response.py +11 -11
- {platform_api_python_client-0.3.0 → platform_api_python_client-0.3.1}/test/test_list_daily_bill_response.py +3 -3
- {platform_api_python_client-0.3.0 → platform_api_python_client-0.3.1}/test/test_list_get_cluster_response.py +3 -3
- {platform_api_python_client-0.3.0 → platform_api_python_client-0.3.1}/test/test_list_get_deployment_response.py +3 -3
- {platform_api_python_client-0.3.0 → platform_api_python_client-0.3.1}/test/test_list_hardware_instance_response.py +3 -3
- {platform_api_python_client-0.3.0 → platform_api_python_client-0.3.1}/test/test_list_prebuilt_image_response.py +3 -3
- {platform_api_python_client-0.3.0 → platform_api_python_client-0.3.1}/test/test_metric.py +1 -1
- {platform_api_python_client-0.3.0 → platform_api_python_client-0.3.1}/test/test_prebuilt_image_response.py +1 -1
- {platform_api_python_client-0.3.0 → platform_api_python_client-0.3.1}/test/test_service_status.py +1 -1
- {platform_api_python_client-0.3.0 → platform_api_python_client-0.3.1}/test/test_user_support_email_request.py +1 -1
- {platform_api_python_client-0.3.0 → platform_api_python_client-0.3.1}/test/test_validation_error.py +1 -1
- {platform_api_python_client-0.3.0 → platform_api_python_client-0.3.1}/test/test_validation_error_loc_inner.py +1 -1
- platform_api_python_client-0.3.0/platform_api_external_client/__init__.py +0 -77
- platform_api_python_client-0.3.0/platform_api_external_client/api/__init__.py +0 -5
- platform_api_python_client-0.3.0/platform_api_external_client/models/__init__.py +0 -60
- platform_api_python_client-0.3.0/platform_api_python_client.egg-info/SOURCES.txt +0 -108
- platform_api_python_client-0.3.0/platform_api_python_client.egg-info/top_level.txt +0 -1
- {platform_api_python_client-0.3.0/platform_api_external_client → platform_api_python_client-0.3.1/platform_api_python_client}/api_response.py +0 -0
- {platform_api_python_client-0.3.0/platform_api_external_client → platform_api_python_client-0.3.1/platform_api_python_client}/exceptions.py +0 -0
- {platform_api_python_client-0.3.0/platform_api_external_client → platform_api_python_client-0.3.1/platform_api_python_client}/models/api_key_request.py +0 -0
- {platform_api_python_client-0.3.0/platform_api_external_client → platform_api_python_client-0.3.1/platform_api_python_client}/models/api_key_response.py +0 -0
- {platform_api_python_client-0.3.0/platform_api_external_client → platform_api_python_client-0.3.1/platform_api_python_client}/models/c_serve_recipe_input.py +0 -0
- {platform_api_python_client-0.3.0/platform_api_external_client → platform_api_python_client-0.3.1/platform_api_python_client}/models/c_serve_recipe_output.py +0 -0
- {platform_api_python_client-0.3.0/platform_api_external_client → platform_api_python_client-0.3.1/platform_api_python_client}/models/create_c_serve_deployment_response.py +0 -0
- {platform_api_python_client-0.3.0/platform_api_external_client → platform_api_python_client-0.3.1/platform_api_python_client}/models/create_checkout_request.py +0 -0
- {platform_api_python_client-0.3.0/platform_api_external_client → platform_api_python_client-0.3.1/platform_api_python_client}/models/create_checkout_response.py +0 -0
- {platform_api_python_client-0.3.0/platform_api_external_client → platform_api_python_client-0.3.1/platform_api_python_client}/models/create_compute_deployment_request.py +0 -0
- {platform_api_python_client-0.3.0/platform_api_external_client → platform_api_python_client-0.3.1/platform_api_python_client}/models/create_compute_deployment_response.py +0 -0
- {platform_api_python_client-0.3.0/platform_api_external_client → platform_api_python_client-0.3.1/platform_api_python_client}/models/create_inference_deployment_request.py +0 -0
- {platform_api_python_client-0.3.0/platform_api_external_client → platform_api_python_client-0.3.1/platform_api_python_client}/models/create_inference_deployment_response.py +0 -0
- {platform_api_python_client-0.3.0/platform_api_external_client → platform_api_python_client-0.3.1/platform_api_python_client}/models/credits_response.py +0 -0
- {platform_api_python_client-0.3.0/platform_api_external_client → platform_api_python_client-0.3.1/platform_api_python_client}/models/daily_bill_response.py +0 -0
- {platform_api_python_client-0.3.0/platform_api_external_client → platform_api_python_client-0.3.1/platform_api_python_client}/models/deployment_status.py +0 -0
- {platform_api_python_client-0.3.0/platform_api_external_client → platform_api_python_client-0.3.1/platform_api_python_client}/models/deployment_type.py +0 -0
- {platform_api_python_client-0.3.0/platform_api_external_client → platform_api_python_client-0.3.1/platform_api_python_client}/models/deployment_usage_value.py +0 -0
- {platform_api_python_client-0.3.0/platform_api_external_client → platform_api_python_client-0.3.1/platform_api_python_client}/models/get_cluster_response.py +0 -0
- {platform_api_python_client-0.3.0/platform_api_external_client → platform_api_python_client-0.3.1/platform_api_python_client}/models/get_deployment_log_response.py +0 -0
- {platform_api_python_client-0.3.0/platform_api_external_client → platform_api_python_client-0.3.1/platform_api_python_client}/models/get_payments_response.py +0 -0
- {platform_api_python_client-0.3.0/platform_api_external_client → platform_api_python_client-0.3.1/platform_api_python_client}/models/hardware_instance_response.py +0 -0
- {platform_api_python_client-0.3.0/platform_api_external_client → platform_api_python_client-0.3.1/platform_api_python_client}/models/metric.py +0 -0
- {platform_api_python_client-0.3.0/platform_api_external_client → platform_api_python_client-0.3.1/platform_api_python_client}/models/service_status.py +0 -0
- {platform_api_python_client-0.3.0/platform_api_external_client → platform_api_python_client-0.3.1/platform_api_python_client}/models/user_support_email_request.py +0 -0
- {platform_api_python_client-0.3.0/platform_api_external_client → platform_api_python_client-0.3.1/platform_api_python_client}/models/validation_error_loc_inner.py +0 -0
- {platform_api_python_client-0.3.0/platform_api_external_client → platform_api_python_client-0.3.1/platform_api_python_client}/py.typed +0 -0
- {platform_api_python_client-0.3.0 → platform_api_python_client-0.3.1}/platform_api_python_client.egg-info/dependency_links.txt +0 -0
- {platform_api_python_client-0.3.0 → platform_api_python_client-0.3.1}/platform_api_python_client.egg-info/requires.txt +0 -0
- {platform_api_python_client-0.3.0 → platform_api_python_client-0.3.1}/setup.cfg +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: 0.3.
|
|
7
|
+
- Package version: 0.3.1
|
|
8
8
|
- Generator version: 7.9.0
|
|
9
9
|
- Build package: org.openapitools.codegen.languages.PythonClientCodegen
|
|
10
10
|
|
|
@@ -76,7 +76,7 @@ configuration = platform_api_python_client.Configuration(
|
|
|
76
76
|
with platform_api_python_client.ApiClient(configuration) as api_client:
|
|
77
77
|
# Create an instance of the API class
|
|
78
78
|
api_instance = platform_api_python_client.EXTERNALApi(api_client)
|
|
79
|
-
|
|
79
|
+
user_support_email_request = platform_api_python_client.UserSupportEmailRequest() # UserSupportEmailRequest |
|
|
80
80
|
|
|
81
81
|
try:
|
|
82
82
|
# Add User Request
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
# coding: utf-8
|
|
2
|
+
|
|
3
|
+
# flake8: noqa
|
|
4
|
+
|
|
5
|
+
"""
|
|
6
|
+
Platform External API
|
|
7
|
+
|
|
8
|
+
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
9
|
+
|
|
10
|
+
The version of the OpenAPI document: 0.1.0
|
|
11
|
+
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
|
12
|
+
|
|
13
|
+
Do not edit the class manually.
|
|
14
|
+
""" # noqa: E501
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
__version__ = "0.3.1"
|
|
18
|
+
|
|
19
|
+
# import apis into sdk package
|
|
20
|
+
from platform_api_python_client.api.external_api import EXTERNALApi
|
|
21
|
+
|
|
22
|
+
# import ApiClient
|
|
23
|
+
from platform_api_python_client.api_response import ApiResponse
|
|
24
|
+
from platform_api_python_client.api_client import ApiClient
|
|
25
|
+
from platform_api_python_client.configuration import Configuration
|
|
26
|
+
from platform_api_python_client.exceptions import OpenApiException
|
|
27
|
+
from platform_api_python_client.exceptions import ApiTypeError
|
|
28
|
+
from platform_api_python_client.exceptions import ApiValueError
|
|
29
|
+
from platform_api_python_client.exceptions import ApiKeyError
|
|
30
|
+
from platform_api_python_client.exceptions import ApiAttributeError
|
|
31
|
+
from platform_api_python_client.exceptions import ApiException
|
|
32
|
+
|
|
33
|
+
# import models into sdk package
|
|
34
|
+
from platform_api_python_client.models.api_key_request import APIKeyRequest
|
|
35
|
+
from platform_api_python_client.models.api_key_response import APIKeyResponse
|
|
36
|
+
from platform_api_python_client.models.c_serve_recipe_input import CServeRecipeInput
|
|
37
|
+
from platform_api_python_client.models.c_serve_recipe_output import CServeRecipeOutput
|
|
38
|
+
from platform_api_python_client.models.c_serve_recipe_perf import CServeRecipePerf
|
|
39
|
+
from platform_api_python_client.models.c_serve_recipe_response import CServeRecipeResponse
|
|
40
|
+
from platform_api_python_client.models.create_c_serve_deployment_request import CreateCServeDeploymentRequest
|
|
41
|
+
from platform_api_python_client.models.create_c_serve_deployment_response import CreateCServeDeploymentResponse
|
|
42
|
+
from platform_api_python_client.models.create_checkout_request import CreateCheckoutRequest
|
|
43
|
+
from platform_api_python_client.models.create_checkout_response import CreateCheckoutResponse
|
|
44
|
+
from platform_api_python_client.models.create_compute_deployment_request import CreateComputeDeploymentRequest
|
|
45
|
+
from platform_api_python_client.models.create_compute_deployment_response import CreateComputeDeploymentResponse
|
|
46
|
+
from platform_api_python_client.models.create_inference_deployment_request import CreateInferenceDeploymentRequest
|
|
47
|
+
from platform_api_python_client.models.create_inference_deployment_response import CreateInferenceDeploymentResponse
|
|
48
|
+
from platform_api_python_client.models.credits_response import CreditsResponse
|
|
49
|
+
from platform_api_python_client.models.daily_bill_response import DailyBillResponse
|
|
50
|
+
from platform_api_python_client.models.deployment_status import DeploymentStatus
|
|
51
|
+
from platform_api_python_client.models.deployment_status_request import DeploymentStatusRequest
|
|
52
|
+
from platform_api_python_client.models.deployment_status_response import DeploymentStatusResponse
|
|
53
|
+
from platform_api_python_client.models.deployment_type import DeploymentType
|
|
54
|
+
from platform_api_python_client.models.deployment_usage_value import DeploymentUsageValue
|
|
55
|
+
from platform_api_python_client.models.get_c_serve_deployment_response import GetCServeDeploymentResponse
|
|
56
|
+
from platform_api_python_client.models.get_cluster_response import GetClusterResponse
|
|
57
|
+
from platform_api_python_client.models.get_compute_deployment_response import GetComputeDeploymentResponse
|
|
58
|
+
from platform_api_python_client.models.get_deployment_log_response import GetDeploymentLogResponse
|
|
59
|
+
from platform_api_python_client.models.get_deployment_response import GetDeploymentResponse
|
|
60
|
+
from platform_api_python_client.models.get_deployment_usage_response import GetDeploymentUsageResponse
|
|
61
|
+
from platform_api_python_client.models.get_inference_deployment_response import GetInferenceDeploymentResponse
|
|
62
|
+
from platform_api_python_client.models.get_payments_response import GetPaymentsResponse
|
|
63
|
+
from platform_api_python_client.models.http_validation_error import HTTPValidationError
|
|
64
|
+
from platform_api_python_client.models.hardware_instance_response import HardwareInstanceResponse
|
|
65
|
+
from platform_api_python_client.models.list_api_key_response import ListAPIKeyResponse
|
|
66
|
+
from platform_api_python_client.models.list_c_serve_recipe_response import ListCServeRecipeResponse
|
|
67
|
+
from platform_api_python_client.models.list_daily_bill_response import ListDailyBillResponse
|
|
68
|
+
from platform_api_python_client.models.list_get_cluster_response import ListGetClusterResponse
|
|
69
|
+
from platform_api_python_client.models.list_get_deployment_response import ListGetDeploymentResponse
|
|
70
|
+
from platform_api_python_client.models.list_hardware_instance_response import ListHardwareInstanceResponse
|
|
71
|
+
from platform_api_python_client.models.list_prebuilt_image_response import ListPrebuiltImageResponse
|
|
72
|
+
from platform_api_python_client.models.metric import Metric
|
|
73
|
+
from platform_api_python_client.models.prebuilt_image_response import PrebuiltImageResponse
|
|
74
|
+
from platform_api_python_client.models.service_status import ServiceStatus
|
|
75
|
+
from platform_api_python_client.models.user_support_email_request import UserSupportEmailRequest
|
|
76
|
+
from platform_api_python_client.models.validation_error import ValidationError
|
|
77
|
+
from platform_api_python_client.models.validation_error_loc_inner import ValidationErrorLocInner
|
|
@@ -19,39 +19,39 @@ from typing_extensions import Annotated
|
|
|
19
19
|
from datetime import date
|
|
20
20
|
from pydantic import StrictInt, StrictStr
|
|
21
21
|
from typing import Any, Optional
|
|
22
|
-
from
|
|
23
|
-
from
|
|
24
|
-
from
|
|
25
|
-
from
|
|
26
|
-
from
|
|
27
|
-
from
|
|
28
|
-
from
|
|
29
|
-
from
|
|
30
|
-
from
|
|
31
|
-
from
|
|
32
|
-
from
|
|
33
|
-
from
|
|
34
|
-
from
|
|
35
|
-
from
|
|
36
|
-
from
|
|
37
|
-
from
|
|
38
|
-
from
|
|
39
|
-
from
|
|
40
|
-
from
|
|
41
|
-
from
|
|
42
|
-
from
|
|
43
|
-
from
|
|
44
|
-
from
|
|
45
|
-
from
|
|
46
|
-
from
|
|
47
|
-
from
|
|
48
|
-
from
|
|
49
|
-
from
|
|
50
|
-
from
|
|
51
|
-
|
|
52
|
-
from
|
|
53
|
-
from
|
|
54
|
-
from
|
|
22
|
+
from platform_api_python_client.models.api_key_request import APIKeyRequest
|
|
23
|
+
from platform_api_python_client.models.api_key_response import APIKeyResponse
|
|
24
|
+
from platform_api_python_client.models.create_c_serve_deployment_request import CreateCServeDeploymentRequest
|
|
25
|
+
from platform_api_python_client.models.create_c_serve_deployment_response import CreateCServeDeploymentResponse
|
|
26
|
+
from platform_api_python_client.models.create_checkout_request import CreateCheckoutRequest
|
|
27
|
+
from platform_api_python_client.models.create_checkout_response import CreateCheckoutResponse
|
|
28
|
+
from platform_api_python_client.models.create_compute_deployment_request import CreateComputeDeploymentRequest
|
|
29
|
+
from platform_api_python_client.models.create_compute_deployment_response import CreateComputeDeploymentResponse
|
|
30
|
+
from platform_api_python_client.models.create_inference_deployment_request import CreateInferenceDeploymentRequest
|
|
31
|
+
from platform_api_python_client.models.create_inference_deployment_response import CreateInferenceDeploymentResponse
|
|
32
|
+
from platform_api_python_client.models.credits_response import CreditsResponse
|
|
33
|
+
from platform_api_python_client.models.deployment_status_request import DeploymentStatusRequest
|
|
34
|
+
from platform_api_python_client.models.deployment_status_response import DeploymentStatusResponse
|
|
35
|
+
from platform_api_python_client.models.deployment_type import DeploymentType
|
|
36
|
+
from platform_api_python_client.models.get_c_serve_deployment_response import GetCServeDeploymentResponse
|
|
37
|
+
from platform_api_python_client.models.get_compute_deployment_response import GetComputeDeploymentResponse
|
|
38
|
+
from platform_api_python_client.models.get_deployment_log_response import GetDeploymentLogResponse
|
|
39
|
+
from platform_api_python_client.models.get_deployment_usage_response import GetDeploymentUsageResponse
|
|
40
|
+
from platform_api_python_client.models.get_inference_deployment_response import GetInferenceDeploymentResponse
|
|
41
|
+
from platform_api_python_client.models.get_payments_response import GetPaymentsResponse
|
|
42
|
+
from platform_api_python_client.models.list_api_key_response import ListAPIKeyResponse
|
|
43
|
+
from platform_api_python_client.models.list_c_serve_recipe_response import ListCServeRecipeResponse
|
|
44
|
+
from platform_api_python_client.models.list_daily_bill_response import ListDailyBillResponse
|
|
45
|
+
from platform_api_python_client.models.list_get_cluster_response import ListGetClusterResponse
|
|
46
|
+
from platform_api_python_client.models.list_get_deployment_response import ListGetDeploymentResponse
|
|
47
|
+
from platform_api_python_client.models.list_hardware_instance_response import ListHardwareInstanceResponse
|
|
48
|
+
from platform_api_python_client.models.list_prebuilt_image_response import ListPrebuiltImageResponse
|
|
49
|
+
from platform_api_python_client.models.metric import Metric
|
|
50
|
+
from platform_api_python_client.models.user_support_email_request import UserSupportEmailRequest
|
|
51
|
+
|
|
52
|
+
from platform_api_python_client.api_client import ApiClient, RequestSerialized
|
|
53
|
+
from platform_api_python_client.api_response import ApiResponse
|
|
54
|
+
from platform_api_python_client.rest import RESTResponseType
|
|
55
55
|
|
|
56
56
|
|
|
57
57
|
class EXTERNALApi:
|
|
@@ -26,11 +26,11 @@ from urllib.parse import quote
|
|
|
26
26
|
from typing import Tuple, Optional, List, Dict, Union
|
|
27
27
|
from pydantic import SecretStr
|
|
28
28
|
|
|
29
|
-
from
|
|
30
|
-
from
|
|
31
|
-
import
|
|
32
|
-
from
|
|
33
|
-
from
|
|
29
|
+
from platform_api_python_client.configuration import Configuration
|
|
30
|
+
from platform_api_python_client.api_response import ApiResponse, T as ApiResponseT
|
|
31
|
+
import platform_api_python_client.models
|
|
32
|
+
from platform_api_python_client import rest
|
|
33
|
+
from platform_api_python_client.exceptions import (
|
|
34
34
|
ApiValueError,
|
|
35
35
|
ApiException,
|
|
36
36
|
BadRequestException,
|
|
@@ -449,7 +449,7 @@ class ApiClient:
|
|
|
449
449
|
if klass in self.NATIVE_TYPES_MAPPING:
|
|
450
450
|
klass = self.NATIVE_TYPES_MAPPING[klass]
|
|
451
451
|
else:
|
|
452
|
-
klass = getattr(
|
|
452
|
+
klass = getattr(platform_api_python_client.models, klass)
|
|
453
453
|
|
|
454
454
|
if klass in self.PRIMITIVE_TYPES:
|
|
455
455
|
return self.__deserialize_primitive(data, klass)
|
|
@@ -121,7 +121,7 @@ class Configuration:
|
|
|
121
121
|
self.logger = {}
|
|
122
122
|
"""Logging Settings
|
|
123
123
|
"""
|
|
124
|
-
self.logger["package_logger"] = logging.getLogger("
|
|
124
|
+
self.logger["package_logger"] = logging.getLogger("platform_api_python_client")
|
|
125
125
|
self.logger["urllib3_logger"] = logging.getLogger("urllib3")
|
|
126
126
|
self.logger_format = '%(asctime)s %(levelname)s %(message)s'
|
|
127
127
|
"""Log format
|
|
@@ -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: 0.3.0".\
|
|
396
396
|
format(env=sys.platform, pyversion=sys.version)
|
|
397
397
|
|
|
398
398
|
def get_host_settings(self):
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
# coding: utf-8
|
|
2
|
+
|
|
3
|
+
# flake8: noqa
|
|
4
|
+
"""
|
|
5
|
+
Platform External API
|
|
6
|
+
|
|
7
|
+
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
8
|
+
|
|
9
|
+
The version of the OpenAPI document: 0.1.0
|
|
10
|
+
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
|
11
|
+
|
|
12
|
+
Do not edit the class manually.
|
|
13
|
+
""" # noqa: E501
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
# import models into model package
|
|
17
|
+
from platform_api_python_client.models.api_key_request import APIKeyRequest
|
|
18
|
+
from platform_api_python_client.models.api_key_response import APIKeyResponse
|
|
19
|
+
from platform_api_python_client.models.c_serve_recipe_input import CServeRecipeInput
|
|
20
|
+
from platform_api_python_client.models.c_serve_recipe_output import CServeRecipeOutput
|
|
21
|
+
from platform_api_python_client.models.c_serve_recipe_perf import CServeRecipePerf
|
|
22
|
+
from platform_api_python_client.models.c_serve_recipe_response import CServeRecipeResponse
|
|
23
|
+
from platform_api_python_client.models.create_c_serve_deployment_request import CreateCServeDeploymentRequest
|
|
24
|
+
from platform_api_python_client.models.create_c_serve_deployment_response import CreateCServeDeploymentResponse
|
|
25
|
+
from platform_api_python_client.models.create_checkout_request import CreateCheckoutRequest
|
|
26
|
+
from platform_api_python_client.models.create_checkout_response import CreateCheckoutResponse
|
|
27
|
+
from platform_api_python_client.models.create_compute_deployment_request import CreateComputeDeploymentRequest
|
|
28
|
+
from platform_api_python_client.models.create_compute_deployment_response import CreateComputeDeploymentResponse
|
|
29
|
+
from platform_api_python_client.models.create_inference_deployment_request import CreateInferenceDeploymentRequest
|
|
30
|
+
from platform_api_python_client.models.create_inference_deployment_response import CreateInferenceDeploymentResponse
|
|
31
|
+
from platform_api_python_client.models.credits_response import CreditsResponse
|
|
32
|
+
from platform_api_python_client.models.daily_bill_response import DailyBillResponse
|
|
33
|
+
from platform_api_python_client.models.deployment_status import DeploymentStatus
|
|
34
|
+
from platform_api_python_client.models.deployment_status_request import DeploymentStatusRequest
|
|
35
|
+
from platform_api_python_client.models.deployment_status_response import DeploymentStatusResponse
|
|
36
|
+
from platform_api_python_client.models.deployment_type import DeploymentType
|
|
37
|
+
from platform_api_python_client.models.deployment_usage_value import DeploymentUsageValue
|
|
38
|
+
from platform_api_python_client.models.get_c_serve_deployment_response import GetCServeDeploymentResponse
|
|
39
|
+
from platform_api_python_client.models.get_cluster_response import GetClusterResponse
|
|
40
|
+
from platform_api_python_client.models.get_compute_deployment_response import GetComputeDeploymentResponse
|
|
41
|
+
from platform_api_python_client.models.get_deployment_log_response import GetDeploymentLogResponse
|
|
42
|
+
from platform_api_python_client.models.get_deployment_response import GetDeploymentResponse
|
|
43
|
+
from platform_api_python_client.models.get_deployment_usage_response import GetDeploymentUsageResponse
|
|
44
|
+
from platform_api_python_client.models.get_inference_deployment_response import GetInferenceDeploymentResponse
|
|
45
|
+
from platform_api_python_client.models.get_payments_response import GetPaymentsResponse
|
|
46
|
+
from platform_api_python_client.models.http_validation_error import HTTPValidationError
|
|
47
|
+
from platform_api_python_client.models.hardware_instance_response import HardwareInstanceResponse
|
|
48
|
+
from platform_api_python_client.models.list_api_key_response import ListAPIKeyResponse
|
|
49
|
+
from platform_api_python_client.models.list_c_serve_recipe_response import ListCServeRecipeResponse
|
|
50
|
+
from platform_api_python_client.models.list_daily_bill_response import ListDailyBillResponse
|
|
51
|
+
from platform_api_python_client.models.list_get_cluster_response import ListGetClusterResponse
|
|
52
|
+
from platform_api_python_client.models.list_get_deployment_response import ListGetDeploymentResponse
|
|
53
|
+
from platform_api_python_client.models.list_hardware_instance_response import ListHardwareInstanceResponse
|
|
54
|
+
from platform_api_python_client.models.list_prebuilt_image_response import ListPrebuiltImageResponse
|
|
55
|
+
from platform_api_python_client.models.metric import Metric
|
|
56
|
+
from platform_api_python_client.models.prebuilt_image_response import PrebuiltImageResponse
|
|
57
|
+
from platform_api_python_client.models.service_status import ServiceStatus
|
|
58
|
+
from platform_api_python_client.models.user_support_email_request import UserSupportEmailRequest
|
|
59
|
+
from platform_api_python_client.models.validation_error import ValidationError
|
|
60
|
+
from platform_api_python_client.models.validation_error_loc_inner import ValidationErrorLocInner
|
|
@@ -20,7 +20,7 @@ import json
|
|
|
20
20
|
from pydantic import BaseModel, ConfigDict, Field, StrictInt
|
|
21
21
|
from typing import Any, ClassVar, Dict, List
|
|
22
22
|
from typing_extensions import Annotated
|
|
23
|
-
from
|
|
23
|
+
from platform_api_python_client.models.c_serve_recipe_output import CServeRecipeOutput
|
|
24
24
|
from typing import Optional, Set
|
|
25
25
|
from typing_extensions import Self
|
|
26
26
|
|
|
@@ -19,7 +19,7 @@ import json
|
|
|
19
19
|
|
|
20
20
|
from pydantic import BaseModel, ConfigDict, StrictInt, StrictStr
|
|
21
21
|
from typing import Any, ClassVar, Dict, List
|
|
22
|
-
from
|
|
22
|
+
from platform_api_python_client.models.c_serve_recipe_perf import CServeRecipePerf
|
|
23
23
|
from typing import Optional, Set
|
|
24
24
|
from typing_extensions import Self
|
|
25
25
|
|
|
@@ -20,7 +20,7 @@ import json
|
|
|
20
20
|
from pydantic import BaseModel, ConfigDict, Field, StrictInt, StrictStr
|
|
21
21
|
from typing import Any, ClassVar, Dict, List, Optional
|
|
22
22
|
from typing_extensions import Annotated
|
|
23
|
-
from
|
|
23
|
+
from platform_api_python_client.models.c_serve_recipe_input import CServeRecipeInput
|
|
24
24
|
from typing import Optional, Set
|
|
25
25
|
from typing_extensions import Self
|
|
26
26
|
|
|
@@ -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
|
|
22
|
+
from platform_api_python_client.models.deployment_status import DeploymentStatus
|
|
23
23
|
from typing import Optional, Set
|
|
24
24
|
from typing_extensions import Self
|
|
25
25
|
|
|
@@ -19,9 +19,9 @@ import json
|
|
|
19
19
|
|
|
20
20
|
from pydantic import BaseModel, ConfigDict, StrictInt, StrictStr
|
|
21
21
|
from typing import Any, ClassVar, Dict, List, Optional
|
|
22
|
-
from
|
|
23
|
-
from
|
|
24
|
-
from
|
|
22
|
+
from platform_api_python_client.models.deployment_status import DeploymentStatus
|
|
23
|
+
from platform_api_python_client.models.deployment_type import DeploymentType
|
|
24
|
+
from platform_api_python_client.models.service_status import ServiceStatus
|
|
25
25
|
from typing import Optional, Set
|
|
26
26
|
from typing_extensions import Self
|
|
27
27
|
|
|
@@ -21,8 +21,8 @@ from datetime import datetime
|
|
|
21
21
|
from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictInt, StrictStr
|
|
22
22
|
from typing import Any, ClassVar, Dict, List, Optional, Union
|
|
23
23
|
from typing_extensions import Annotated
|
|
24
|
-
from
|
|
25
|
-
from
|
|
24
|
+
from platform_api_python_client.models.deployment_status import DeploymentStatus
|
|
25
|
+
from platform_api_python_client.models.deployment_type import DeploymentType
|
|
26
26
|
from typing import Optional, Set
|
|
27
27
|
from typing_extensions import Self
|
|
28
28
|
|
|
@@ -20,8 +20,8 @@ import json
|
|
|
20
20
|
from datetime import datetime
|
|
21
21
|
from pydantic import BaseModel, ConfigDict, StrictInt, StrictStr
|
|
22
22
|
from typing import Any, ClassVar, Dict, List, Optional
|
|
23
|
-
from
|
|
24
|
-
from
|
|
23
|
+
from platform_api_python_client.models.deployment_status import DeploymentStatus
|
|
24
|
+
from platform_api_python_client.models.deployment_type import DeploymentType
|
|
25
25
|
from typing import Optional, Set
|
|
26
26
|
from typing_extensions import Self
|
|
27
27
|
|
|
@@ -20,8 +20,8 @@ import json
|
|
|
20
20
|
from datetime import datetime
|
|
21
21
|
from pydantic import BaseModel, ConfigDict, StrictInt, StrictStr
|
|
22
22
|
from typing import Any, ClassVar, Dict, List, Optional
|
|
23
|
-
from
|
|
24
|
-
from
|
|
23
|
+
from platform_api_python_client.models.deployment_status import DeploymentStatus
|
|
24
|
+
from platform_api_python_client.models.deployment_type import DeploymentType
|
|
25
25
|
from typing import Optional, Set
|
|
26
26
|
from typing_extensions import Self
|
|
27
27
|
|
|
@@ -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
|
|
22
|
+
from platform_api_python_client.models.deployment_usage_value import DeploymentUsageValue
|
|
23
23
|
from typing import Optional, Set
|
|
24
24
|
from typing_extensions import Self
|
|
25
25
|
|
|
@@ -20,8 +20,8 @@ import json
|
|
|
20
20
|
from datetime import datetime
|
|
21
21
|
from pydantic import BaseModel, ConfigDict, StrictInt, StrictStr
|
|
22
22
|
from typing import Any, ClassVar, Dict, List, Optional
|
|
23
|
-
from
|
|
24
|
-
from
|
|
23
|
+
from platform_api_python_client.models.deployment_status import DeploymentStatus
|
|
24
|
+
from platform_api_python_client.models.deployment_type import DeploymentType
|
|
25
25
|
from typing import Optional, Set
|
|
26
26
|
from typing_extensions import Self
|
|
27
27
|
|
|
@@ -19,7 +19,7 @@ import json
|
|
|
19
19
|
|
|
20
20
|
from pydantic import BaseModel, ConfigDict
|
|
21
21
|
from typing import Any, ClassVar, Dict, List, Optional
|
|
22
|
-
from
|
|
22
|
+
from platform_api_python_client.models.validation_error import ValidationError
|
|
23
23
|
from typing import Optional, Set
|
|
24
24
|
from typing_extensions import Self
|
|
25
25
|
|
|
@@ -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
|
|
22
|
+
from platform_api_python_client.models.api_key_response import APIKeyResponse
|
|
23
23
|
from typing import Optional, Set
|
|
24
24
|
from typing_extensions import Self
|
|
25
25
|
|
|
@@ -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
|
|
22
|
+
from platform_api_python_client.models.c_serve_recipe_response import CServeRecipeResponse
|
|
23
23
|
from typing import Optional, Set
|
|
24
24
|
from typing_extensions import Self
|
|
25
25
|
|
|
@@ -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
|
|
22
|
+
from platform_api_python_client.models.daily_bill_response import DailyBillResponse
|
|
23
23
|
from typing import Optional, Set
|
|
24
24
|
from typing_extensions import Self
|
|
25
25
|
|
|
@@ -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
|
|
22
|
+
from platform_api_python_client.models.get_cluster_response import GetClusterResponse
|
|
23
23
|
from typing import Optional, Set
|
|
24
24
|
from typing_extensions import Self
|
|
25
25
|
|
|
@@ -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
|
|
22
|
+
from platform_api_python_client.models.get_deployment_response import GetDeploymentResponse
|
|
23
23
|
from typing import Optional, Set
|
|
24
24
|
from typing_extensions import Self
|
|
25
25
|
|
|
@@ -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
|
|
22
|
+
from platform_api_python_client.models.hardware_instance_response import HardwareInstanceResponse
|
|
23
23
|
from typing import Optional, Set
|
|
24
24
|
from typing_extensions import Self
|
|
25
25
|
|
|
@@ -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
|
|
22
|
+
from platform_api_python_client.models.prebuilt_image_response import PrebuiltImageResponse
|
|
23
23
|
from typing import Optional, Set
|
|
24
24
|
from typing_extensions import Self
|
|
25
25
|
|
|
@@ -19,7 +19,7 @@ import json
|
|
|
19
19
|
|
|
20
20
|
from pydantic import BaseModel, ConfigDict, StrictInt, StrictStr
|
|
21
21
|
from typing import Any, ClassVar, Dict, List, Optional
|
|
22
|
-
from
|
|
22
|
+
from platform_api_python_client.models.deployment_type import DeploymentType
|
|
23
23
|
from typing import Optional, Set
|
|
24
24
|
from typing_extensions import Self
|
|
25
25
|
|
|
@@ -19,7 +19,7 @@ import json
|
|
|
19
19
|
|
|
20
20
|
from pydantic import BaseModel, ConfigDict, StrictStr
|
|
21
21
|
from typing import Any, ClassVar, Dict, List
|
|
22
|
-
from
|
|
22
|
+
from platform_api_python_client.models.validation_error_loc_inner import ValidationErrorLocInner
|
|
23
23
|
from typing import Optional, Set
|
|
24
24
|
from typing_extensions import Self
|
|
25
25
|
|
|
@@ -19,7 +19,7 @@ import ssl
|
|
|
19
19
|
|
|
20
20
|
import urllib3
|
|
21
21
|
|
|
22
|
-
from
|
|
22
|
+
from platform_api_python_client.exceptions import ApiException, ApiValueError
|
|
23
23
|
|
|
24
24
|
SUPPORTED_SOCKS_PROXIES = {"socks5", "socks5h", "socks4", "socks4a"}
|
|
25
25
|
RESTResponseType = urllib3.HTTPResponse
|