Skip to content

Commit 988a22a

Browse files
Update clients to latest platform release (4.0.3)
1 parent 0849eab commit 988a22a

31 files changed

+665
-558
lines changed

README.md

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ No description provided (generated by Openapi Generator https://github.com/opena
44
This Python package is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project:
55

66
- API version: 0.1.0
7-
- Package version: 4.0.1
7+
- Package version: 4.0.3
88
- Generator version: 7.9.0
99
- Build package: org.openapitools.codegen.languages.PythonClientCodegen
1010

@@ -76,15 +76,15 @@ configuration = platform_api_python_client.Configuration(
7676
with platform_api_python_client.ApiClient(configuration) as api_client:
7777
# Create an instance of the API class
7878
api_instance = platform_api_python_client.EXTERNALApi(api_client)
79-
user_support_email_request = platform_api_python_client.UserSupportEmailRequest() # UserSupportEmailRequest |
79+
api_key_request = platform_api_python_client.APIKeyRequest() # APIKeyRequest |
8080

8181
try:
82-
# Add User Request
83-
api_response = api_instance.add_user_request_support_user_requests_post(user_support_email_request)
84-
print("The response of EXTERNALApi->add_user_request_support_user_requests_post:\n")
82+
# Create Api Key
83+
api_response = api_instance.create_api_key_credentials_api_key_post(api_key_request)
84+
print("The response of EXTERNALApi->create_api_key_credentials_api_key_post:\n")
8585
pprint(api_response)
8686
except ApiException as e:
87-
print("Exception when calling EXTERNALApi->add_user_request_support_user_requests_post: %s\n" % e)
87+
print("Exception when calling EXTERNALApi->create_api_key_credentials_api_key_post: %s\n" % e)
8888

8989
```
9090

@@ -94,7 +94,6 @@ All URIs are relative to *http://localhost*
9494

9595
Class | Method | HTTP request | Description
9696
------------ | ------------- | ------------- | -------------
97-
*EXTERNALApi* | [**add_user_request_support_user_requests_post**](docs/EXTERNALApi.md#add_user_request_support_user_requests_post) | **POST** /support/user-requests | Add User Request
9897
*EXTERNALApi* | [**create_api_key_credentials_api_key_post**](docs/EXTERNALApi.md#create_api_key_credentials_api_key_post) | **POST** /credentials/api-key | Create Api Key
9998
*EXTERNALApi* | [**create_checkout_payments_checkout_post**](docs/EXTERNALApi.md#create_checkout_payments_checkout_post) | **POST** /payments/checkout | Create Checkout
10099
*EXTERNALApi* | [**create_compute_deployment_deployments_compute_post**](docs/EXTERNALApi.md#create_compute_deployment_deployments_compute_post) | **POST** /deployments/compute | Create Compute Deployment
@@ -103,6 +102,7 @@ Class | Method | HTTP request | Description
103102
*EXTERNALApi* | [**create_inference_deployment_deployments_inference_post**](docs/EXTERNALApi.md#create_inference_deployment_deployments_inference_post) | **POST** /deployments/inference | Create Inference Deployment
104103
*EXTERNALApi* | [**create_rag_deployment_deployments_rag_post**](docs/EXTERNALApi.md#create_rag_deployment_deployments_rag_post) | **POST** /deployments/rag | Create Rag Deployment
105104
*EXTERNALApi* | [**create_setup_payments_setup_checkout_post**](docs/EXTERNALApi.md#create_setup_payments_setup_checkout_post) | **POST** /payments/setup_checkout | Create Setup
105+
*EXTERNALApi* | [**create_support_ticket_support_post**](docs/EXTERNALApi.md#create_support_ticket_support_post) | **POST** /support | Create Support Ticket
106106
*EXTERNALApi* | [**delete_api_key_credentials_api_key_id_delete**](docs/EXTERNALApi.md#delete_api_key_credentials_api_key_id_delete) | **DELETE** /credentials/api-key/{id} | Delete Api Key
107107
*EXTERNALApi* | [**delete_autocharge_preferences_autocharge_preferences_delete**](docs/EXTERNALApi.md#delete_autocharge_preferences_autocharge_preferences_delete) | **DELETE** /autocharge/preferences | Delete Autocharge Preferences
108108
*EXTERNALApi* | [**delete_payment_method_payments_methods_delete**](docs/EXTERNALApi.md#delete_payment_method_payments_methods_delete) | **DELETE** /payments/methods | Delete Payment Method
@@ -196,9 +196,10 @@ Class | Method | HTTP request | Description
196196
- [PodStatus](docs/PodStatus.md)
197197
- [PrebuiltImageResponse](docs/PrebuiltImageResponse.md)
198198
- [ServiceStatus](docs/ServiceStatus.md)
199+
- [TicketCategory](docs/TicketCategory.md)
200+
- [TicketPriority](docs/TicketPriority.md)
199201
- [UpdateAutochargePreferencesRequest](docs/UpdateAutochargePreferencesRequest.md)
200202
- [UpdateDeploymentResponse](docs/UpdateDeploymentResponse.md)
201-
- [UserSupportEmailRequest](docs/UserSupportEmailRequest.md)
202203
- [UserVaultItem](docs/UserVaultItem.md)
203204
- [UserVaultType](docs/UserVaultType.md)
204205
- [ValidationError](docs/ValidationError.md)

docs/CServeRecipe.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ Base class for deployment planner
77
Name | Type | Description | Notes
88
------------ | ------------- | ------------- | -------------
99
**model** | **str** | |
10+
**revision** | **str** | | [optional]
1011
**is_embedding_model** | **bool** | | [optional] [default to False]
1112
**tensor_parallel_size** | **int** | |
1213
**pipeline_parallel_size** | **int** | |

docs/CServeV2Recipe.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ Inputs to start deployment
77
Name | Type | Description | Notes
88
------------ | ------------- | ------------- | -------------
99
**model** | **str** | |
10+
**revision** | **str** | | [optional]
1011
**is_embedding_model** | **bool** | | [optional] [default to False]
1112

1213
## Example

docs/EXTERNALApi.md

Lines changed: 85 additions & 78 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ All URIs are relative to *http://localhost*
44

55
Method | HTTP request | Description
66
------------- | ------------- | -------------
7-
[**add_user_request_support_user_requests_post**](EXTERNALApi.md#add_user_request_support_user_requests_post) | **POST** /support/user-requests | Add User Request
87
[**create_api_key_credentials_api_key_post**](EXTERNALApi.md#create_api_key_credentials_api_key_post) | **POST** /credentials/api-key | Create Api Key
98
[**create_checkout_payments_checkout_post**](EXTERNALApi.md#create_checkout_payments_checkout_post) | **POST** /payments/checkout | Create Checkout
109
[**create_compute_deployment_deployments_compute_post**](EXTERNALApi.md#create_compute_deployment_deployments_compute_post) | **POST** /deployments/compute | Create Compute Deployment
@@ -13,6 +12,7 @@ Method | HTTP request | Description
1312
[**create_inference_deployment_deployments_inference_post**](EXTERNALApi.md#create_inference_deployment_deployments_inference_post) | **POST** /deployments/inference | Create Inference Deployment
1413
[**create_rag_deployment_deployments_rag_post**](EXTERNALApi.md#create_rag_deployment_deployments_rag_post) | **POST** /deployments/rag | Create Rag Deployment
1514
[**create_setup_payments_setup_checkout_post**](EXTERNALApi.md#create_setup_payments_setup_checkout_post) | **POST** /payments/setup_checkout | Create Setup
15+
[**create_support_ticket_support_post**](EXTERNALApi.md#create_support_ticket_support_post) | **POST** /support | Create Support Ticket
1616
[**delete_api_key_credentials_api_key_id_delete**](EXTERNALApi.md#delete_api_key_credentials_api_key_id_delete) | **DELETE** /credentials/api-key/{id} | Delete Api Key
1717
[**delete_autocharge_preferences_autocharge_preferences_delete**](EXTERNALApi.md#delete_autocharge_preferences_autocharge_preferences_delete) | **DELETE** /autocharge/preferences | Delete Autocharge Preferences
1818
[**delete_payment_method_payments_methods_delete**](EXTERNALApi.md#delete_payment_method_payments_methods_delete) | **DELETE** /payments/methods | Delete Payment Method
@@ -49,83 +49,6 @@ Method | HTTP request | Description
4949
[**upload_url_file_url_upload_post**](EXTERNALApi.md#upload_url_file_url_upload_post) | **POST** /file_url/upload | Upload Url
5050

5151

52-
# **add_user_request_support_user_requests_post**
53-
> object add_user_request_support_user_requests_post(user_support_email_request)
54-
55-
Add User Request
56-
57-
### Example
58-
59-
* Bearer Authentication (HTTPBearer):
60-
61-
```python
62-
import platform_api_python_client
63-
from platform_api_python_client.models.user_support_email_request import UserSupportEmailRequest
64-
from platform_api_python_client.rest import ApiException
65-
from pprint import pprint
66-
67-
# Defining the host is optional and defaults to http://localhost
68-
# See configuration.py for a list of all supported configuration parameters.
69-
configuration = platform_api_python_client.Configuration(
70-
host = "http://localhost"
71-
)
72-
73-
# The client must configure the authentication and authorization parameters
74-
# in accordance with the API server security policy.
75-
# Examples for each auth method are provided below, use the example that
76-
# satisfies your auth use case.
77-
78-
# Configure Bearer authorization: HTTPBearer
79-
configuration = platform_api_python_client.Configuration(
80-
access_token = os.environ["BEARER_TOKEN"]
81-
)
82-
83-
# Enter a context with an instance of the API client
84-
with platform_api_python_client.ApiClient(configuration) as api_client:
85-
# Create an instance of the API class
86-
api_instance = platform_api_python_client.EXTERNALApi(api_client)
87-
user_support_email_request = platform_api_python_client.UserSupportEmailRequest() # UserSupportEmailRequest |
88-
89-
try:
90-
# Add User Request
91-
api_response = api_instance.add_user_request_support_user_requests_post(user_support_email_request)
92-
print("The response of EXTERNALApi->add_user_request_support_user_requests_post:\n")
93-
pprint(api_response)
94-
except Exception as e:
95-
print("Exception when calling EXTERNALApi->add_user_request_support_user_requests_post: %s\n" % e)
96-
```
97-
98-
99-
100-
### Parameters
101-
102-
103-
Name | Type | Description | Notes
104-
------------- | ------------- | ------------- | -------------
105-
**user_support_email_request** | [**UserSupportEmailRequest**](UserSupportEmailRequest.md)| |
106-
107-
### Return type
108-
109-
**object**
110-
111-
### Authorization
112-
113-
[HTTPBearer](../README.md#HTTPBearer)
114-
115-
### HTTP request headers
116-
117-
- **Content-Type**: application/json
118-
- **Accept**: application/json
119-
120-
### HTTP response details
121-
122-
| Status code | Description | Response headers |
123-
|-------------|-------------|------------------|
124-
**200** | Successful Response | - |
125-
**422** | Validation Error | - |
126-
127-
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
128-
12952
# **create_api_key_credentials_api_key_post**
13053
> APIKeyResponse create_api_key_credentials_api_key_post(api_key_request)
13154
@@ -750,6 +673,90 @@ Name | Type | Description | Notes
750673

751674
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
752675

676+
# **create_support_ticket_support_post**
677+
> object create_support_ticket_support_post(message, category, priority, upload_file=upload_file)
678+
679+
Create Support Ticket
680+
681+
### Example
682+
683+
* Bearer Authentication (HTTPBearer):
684+
685+
```python
686+
import platform_api_python_client
687+
from platform_api_python_client.models.ticket_category import TicketCategory
688+
from platform_api_python_client.models.ticket_priority import TicketPriority
689+
from platform_api_python_client.rest import ApiException
690+
from pprint import pprint
691+
692+
# Defining the host is optional and defaults to http://localhost
693+
# See configuration.py for a list of all supported configuration parameters.
694+
configuration = platform_api_python_client.Configuration(
695+
host = "http://localhost"
696+
)
697+
698+
# The client must configure the authentication and authorization parameters
699+
# in accordance with the API server security policy.
700+
# Examples for each auth method are provided below, use the example that
701+
# satisfies your auth use case.
702+
703+
# Configure Bearer authorization: HTTPBearer
704+
configuration = platform_api_python_client.Configuration(
705+
access_token = os.environ["BEARER_TOKEN"]
706+
)
707+
708+
# Enter a context with an instance of the API client
709+
with platform_api_python_client.ApiClient(configuration) as api_client:
710+
# Create an instance of the API class
711+
api_instance = platform_api_python_client.EXTERNALApi(api_client)
712+
message = 'message_example' # str |
713+
category = platform_api_python_client.TicketCategory() # TicketCategory |
714+
priority = platform_api_python_client.TicketPriority() # TicketPriority |
715+
upload_file = None # bytearray | (optional)
716+
717+
try:
718+
# Create Support Ticket
719+
api_response = api_instance.create_support_ticket_support_post(message, category, priority, upload_file=upload_file)
720+
print("The response of EXTERNALApi->create_support_ticket_support_post:\n")
721+
pprint(api_response)
722+
except Exception as e:
723+
print("Exception when calling EXTERNALApi->create_support_ticket_support_post: %s\n" % e)
724+
```
725+
726+
727+
728+
### Parameters
729+
730+
731+
Name | Type | Description | Notes
732+
------------- | ------------- | ------------- | -------------
733+
**message** | **str**| |
734+
**category** | [**TicketCategory**](TicketCategory.md)| |
735+
**priority** | [**TicketPriority**](TicketPriority.md)| |
736+
**upload_file** | **bytearray**| | [optional]
737+
738+
### Return type
739+
740+
**object**
741+
742+
### Authorization
743+
744+
[HTTPBearer](../README.md#HTTPBearer)
745+
746+
### HTTP request headers
747+
748+
- **Content-Type**: multipart/form-data
749+
- **Accept**: application/json
750+
751+
### HTTP response details
752+
753+
| Status code | Description | Response headers |
754+
|-------------|-------------|------------------|
755+
**200** | Successful Response | - |
756+
**422** | Validation Error | - |
757+
758+
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
759+
753760
# **delete_api_key_credentials_api_key_id_delete**
754761
> object delete_api_key_credentials_api_key_id_delete(id)
755762

docs/GetCServeDeploymentResponse.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
Name | Type | Description | Notes
77
------------ | ------------- | ------------- | -------------
88
**model** | **str** | |
9+
**revision** | **str** | | [optional]
910
**is_embedding_model** | **bool** | | [optional] [default to False]
1011
**tensor_parallel_size** | **int** | |
1112
**pipeline_parallel_size** | **int** | |

docs/Metric.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,14 @@
99

1010
* `GPU` (value: `'gpu'`)
1111

12+
* `HTTP_REQUESTS` (value: `'http_requests'`)
13+
14+
* `REQUEST_LATENCY_50_PERCENTILE` (value: `'request_latency_50_percentile'`)
15+
16+
* `REQUEST_LATENCY_90_PERCENTILE` (value: `'request_latency_90_percentile'`)
17+
18+
* `REQUEST_LATENCY_99_PERCENTILE` (value: `'request_latency_99_percentile'`)
19+
1220
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
1321

1422

docs/TicketCategory.md

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
# TicketCategory
2+
3+
4+
## Enum
5+
6+
* `GENERAL_QUESTIONS` (value: `'general_questions'`)
7+
8+
* `SALES_QUESTIONS` (value: `'sales_questions'`)
9+
10+
* `PERFORMANCE_QUESTIONS` (value: `'performance_questions'`)
11+
12+
* `BILLING_AND_FINANCE` (value: `'billing_and_finance'`)
13+
14+
* `DATA_PRIVACY_ACCOUNT_DELETION` (value: `'data_privacy_account_deletion'`)
15+
16+
* `ADD_A_NEW_CLUSTER` (value: `'add_a_new_cluster'`)
17+
18+
* `REQUEST_A_NEW_SERVERLESS_MODEL` (value: `'request_a_new_serverless_model'`)
19+
20+
* `OTHER` (value: `'other'`)
21+
22+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
23+
24+

docs/TicketPriority.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
# TicketPriority
2+
3+
4+
## Enum
5+
6+
* `URGENT` (value: `'urgent'`)
7+
8+
* `HIGH` (value: `'high'`)
9+
10+
* `NORMAL` (value: `'normal'`)
11+
12+
* `LOW` (value: `'low'`)
13+
14+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
15+
16+

docs/UserSupportEmailRequest.md

Lines changed: 0 additions & 31 deletions
This file was deleted.

platform_api_python_client/__init__.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
""" # noqa: E501
1515

1616

17-
__version__ = "4.0.1"
17+
__version__ = "4.0.3"
1818

1919
# import apis into sdk package
2020
from platform_api_python_client.api.external_api import EXTERNALApi
@@ -86,9 +86,10 @@
8686
from platform_api_python_client.models.pod_status import PodStatus
8787
from platform_api_python_client.models.prebuilt_image_response import PrebuiltImageResponse
8888
from platform_api_python_client.models.service_status import ServiceStatus
89+
from platform_api_python_client.models.ticket_category import TicketCategory
90+
from platform_api_python_client.models.ticket_priority import TicketPriority
8991
from platform_api_python_client.models.update_autocharge_preferences_request import UpdateAutochargePreferencesRequest
9092
from platform_api_python_client.models.update_deployment_response import UpdateDeploymentResponse
91-
from platform_api_python_client.models.user_support_email_request import UserSupportEmailRequest
9293
from platform_api_python_client.models.user_vault_item import UserVaultItem
9394
from platform_api_python_client.models.user_vault_type import UserVaultType
9495
from platform_api_python_client.models.validation_error import ValidationError

0 commit comments

Comments
 (0)