Skip to content

Commit 3270e65

Browse files
Update clients to latest platform release (4.26.1)
1 parent 65621e8 commit 3270e65

39 files changed

Lines changed: 985 additions & 52 deletions

‎README.md‎

Lines changed: 5 additions & 1 deletion
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.25.0
7+
- Package version: 4.26.1
88
- Generator version: 7.9.0
99
- Build package: org.openapitools.codegen.languages.PythonClientCodegen
1010

@@ -132,6 +132,7 @@ Class | Method | HTTP request | Description
132132
*EXTERNALApi* | [**get_deployments_deployments_get**](docs/EXTERNALApi.md#get_deployments_deployments_get) | **GET** /deployments | Get Deployments
133133
*EXTERNALApi* | [**get_dynamo_deployment_deployments_dynamo_deployment_id_get**](docs/EXTERNALApi.md#get_dynamo_deployment_deployments_dynamo_deployment_id_get) | **GET** /deployments/dynamo/{deployment_id} | Get Dynamo Deployment
134134
*EXTERNALApi* | [**get_hardware_instances_hardware_instances_get**](docs/EXTERNALApi.md#get_hardware_instances_hardware_instances_get) | **GET** /hardware-instances | Get Hardware Instances
135+
*EXTERNALApi* | [**get_hardware_presets_hardware_presets_get**](docs/EXTERNALApi.md#get_hardware_presets_hardware_presets_get) | **GET** /hardware-presets | Get Hardware Presets
135136
*EXTERNALApi* | [**get_inference_deployment_deployments_inference_deployment_id_get**](docs/EXTERNALApi.md#get_inference_deployment_deployments_inference_deployment_id_get) | **GET** /deployments/inference/{deployment_id} | Get Inference Deployment
136137
*EXTERNALApi* | [**get_inference_v3_deployment_deployments_inference_v3_deployment_id_get**](docs/EXTERNALApi.md#get_inference_v3_deployment_deployments_inference_v3_deployment_id_get) | **GET** /deployments/inference_v3/{deployment_id} | Get Inference V3 Deployment
137138
*EXTERNALApi* | [**get_job_deployment_deployments_job_deployment_id_get**](docs/EXTERNALApi.md#get_job_deployment_deployments_job_deployment_id_get) | **GET** /deployments/job/{deployment_id} | Get Job Deployment
@@ -236,6 +237,7 @@ Class | Method | HTTP request | Description
236237
- [GpuTypeCapacity](docs/GpuTypeCapacity.md)
237238
- [HTTPValidationError](docs/HTTPValidationError.md)
238239
- [HardwareInstanceResponse](docs/HardwareInstanceResponse.md)
240+
- [HardwarePresetResponse](docs/HardwarePresetResponse.md)
239241
- [ImagePullSecretCredentials](docs/ImagePullSecretCredentials.md)
240242
- [IngressNginx](docs/IngressNginx.md)
241243
- [InviteUserRequest](docs/InviteUserRequest.md)
@@ -252,6 +254,7 @@ Class | Method | HTTP request | Description
252254
- [ListGetClusterResponse](docs/ListGetClusterResponse.md)
253255
- [ListGetDeploymentResponse](docs/ListGetDeploymentResponse.md)
254256
- [ListHardwareInstanceResponse](docs/ListHardwareInstanceResponse.md)
257+
- [ListHardwarePresetResponse](docs/ListHardwarePresetResponse.md)
255258
- [ListPrebuiltImageResponse](docs/ListPrebuiltImageResponse.md)
256259
- [ListServiceAccountsResponse](docs/ListServiceAccountsResponse.md)
257260
- [ListUserVaultItemsResponse](docs/ListUserVaultItemsResponse.md)
@@ -287,6 +290,7 @@ Class | Method | HTTP request | Description
287290
- [VaultScope](docs/VaultScope.md)
288291
- [VolumeAccessMode](docs/VolumeAccessMode.md)
289292
- [VolumeBackend](docs/VolumeBackend.md)
293+
- [VolumeMount](docs/VolumeMount.md)
290294
- [VolumeStatus](docs/VolumeStatus.md)
291295
- [VolumeStatusResponse](docs/VolumeStatusResponse.md)
292296

‎docs/CreateCServeV3DeploymentRequest.md‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@ Name | Type | Description | Notes
1919
**endpoint_certificate_authority** | **str** | | [optional]
2020
**min_replicas** | **int** | |
2121
**max_replicas** | **int** | |
22-
**initial_replicas** | **int** | | [optional]
2322
**concurrency** | **int** | | [optional]
2423
**cooldown_period** | **int** | | [optional]
2524
**env_vars** | **Dict[str, str]** | | [optional]

‎docs/CreateComputeDeploymentRequest.md‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ Name | Type | Description | Notes
1414
**image_pull_secret_credentials** | [**ImagePullSecretCredentials**](ImagePullSecretCredentials.md) | | [optional]
1515
**ssh_public_key** | **str** | |
1616
**enable_logging** | **bool** | | [optional] [default to False]
17+
**volume_mounts** | [**List[VolumeMount]**](VolumeMount.md) | | [optional]
1718

1819
## Example
1920

‎docs/CreateInferenceV3DeploymentRequest.md‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@ Name | Type | Description | Notes
1717
**port** | **int** | |
1818
**min_replicas** | **int** | |
1919
**max_replicas** | **int** | |
20-
**initial_replicas** | **int** | | [optional]
2120
**concurrency** | **int** | | [optional]
2221
**cooldown_period** | **int** | | [optional]
2322
**healthcheck** | **str** | | [optional]

‎docs/DeploymentResponse.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,6 @@ Name | Type | Description | Notes
3434
**backend_protocol** | [**BackendProtocol**](BackendProtocol.md) | | [optional]
3535
**recipe** | [**CServeV2Recipe**](CServeV2Recipe.md) | |
3636
**cserve_version** | **str** | | [optional]
37-
**initial_replicas** | **int** | | [optional]
3837
**session_affinity** | **bool** | Enable best-effort sticky routing via the `X-Session-Id` request header. Requests carrying the same header value land on the same pod, improving KV cache reuse for agentic workloads. Requests without the header are routed at random. Affinity is NOT durable: scaling, rollouts, restarts, or readiness-probe transitions will remap sessions to different pods. Do not use for irreplaceable in-pod state. | [optional] [default to False]
3938
**container_port** | **int** | |
4039
**healthcheck** | **str** | | [optional]
@@ -45,6 +44,7 @@ Name | Type | Description | Notes
4544
**config_file** | [**ConfigFileMount**](ConfigFileMount.md) | | [optional]
4645
**metrics** | [**MetricsConfig**](MetricsConfig.md) | | [optional]
4746
**exposed_port** | **int** | |
47+
**volume_mounts** | [**List[VolumeMount]**](VolumeMount.md) | | [optional]
4848
**ssh_public_key** | **str** | | [optional]
4949
**ssh_password** | **str** | | [optional]
5050

‎docs/EXTERNALApi.md‎

Lines changed: 73 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@ Method | HTTP request | Description
4242
[**get_deployments_deployments_get**](EXTERNALApi.md#get_deployments_deployments_get) | **GET** /deployments | Get Deployments
4343
[**get_dynamo_deployment_deployments_dynamo_deployment_id_get**](EXTERNALApi.md#get_dynamo_deployment_deployments_dynamo_deployment_id_get) | **GET** /deployments/dynamo/{deployment_id} | Get Dynamo Deployment
4444
[**get_hardware_instances_hardware_instances_get**](EXTERNALApi.md#get_hardware_instances_hardware_instances_get) | **GET** /hardware-instances | Get Hardware Instances
45+
[**get_hardware_presets_hardware_presets_get**](EXTERNALApi.md#get_hardware_presets_hardware_presets_get) | **GET** /hardware-presets | Get Hardware Presets
4546
[**get_inference_deployment_deployments_inference_deployment_id_get**](EXTERNALApi.md#get_inference_deployment_deployments_inference_deployment_id_get) | **GET** /deployments/inference/{deployment_id} | Get Inference Deployment
4647
[**get_inference_v3_deployment_deployments_inference_v3_deployment_id_get**](EXTERNALApi.md#get_inference_v3_deployment_deployments_inference_v3_deployment_id_get) | **GET** /deployments/inference_v3/{deployment_id} | Get Inference V3 Deployment
4748
[**get_job_deployment_deployments_job_deployment_id_get**](EXTERNALApi.md#get_job_deployment_deployments_job_deployment_id_get) | **GET** /deployments/job/{deployment_id} | Get Job Deployment
@@ -3020,6 +3021,78 @@ Name | Type | Description | Notes
30203021

30213022
[[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)
30223023

3024+
# **get_hardware_presets_hardware_presets_get**
3025+
> ListHardwarePresetResponse get_hardware_presets_hardware_presets_get()
3026+
3027+
Get Hardware Presets
3028+
3029+
### Example
3030+
3031+
* Bearer Authentication (HTTPBearer):
3032+
3033+
```python
3034+
import platform_api_python_client
3035+
from platform_api_python_client.models.list_hardware_preset_response import ListHardwarePresetResponse
3036+
from platform_api_python_client.rest import ApiException
3037+
from pprint import pprint
3038+
3039+
# Defining the host is optional and defaults to http://localhost
3040+
# See configuration.py for a list of all supported configuration parameters.
3041+
configuration = platform_api_python_client.Configuration(
3042+
host = "http://localhost"
3043+
)
3044+
3045+
# The client must configure the authentication and authorization parameters
3046+
# in accordance with the API server security policy.
3047+
# Examples for each auth method are provided below, use the example that
3048+
# satisfies your auth use case.
3049+
3050+
# Configure Bearer authorization: HTTPBearer
3051+
configuration = platform_api_python_client.Configuration(
3052+
access_token = os.environ["BEARER_TOKEN"]
3053+
)
3054+
3055+
# Enter a context with an instance of the API client
3056+
with platform_api_python_client.ApiClient(configuration) as api_client:
3057+
# Create an instance of the API class
3058+
api_instance = platform_api_python_client.EXTERNALApi(api_client)
3059+
3060+
try:
3061+
# Get Hardware Presets
3062+
api_response = api_instance.get_hardware_presets_hardware_presets_get()
3063+
print("The response of EXTERNALApi->get_hardware_presets_hardware_presets_get:\n")
3064+
pprint(api_response)
3065+
except Exception as e:
3066+
print("Exception when calling EXTERNALApi->get_hardware_presets_hardware_presets_get: %s\n" % e)
3067+
```
3068+
3069+
3070+
3071+
### Parameters
3072+
3073+
This endpoint does not need any parameter.
3074+
3075+
### Return type
3076+
3077+
[**ListHardwarePresetResponse**](ListHardwarePresetResponse.md)
3078+
3079+
### Authorization
3080+
3081+
[HTTPBearer](../README.md#HTTPBearer)
3082+
3083+
### HTTP request headers
3084+
3085+
- **Content-Type**: Not defined
3086+
- **Accept**: application/json
3087+
3088+
### HTTP response details
3089+
3090+
| Status code | Description | Response headers |
3091+
|-------------|-------------|------------------|
3092+
**200** | Successful Response | - |
3093+
3094+
[[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)
3095+
30233096
# **get_inference_deployment_deployments_inference_deployment_id_get**
30243097
> GetInferenceDeploymentResponse get_inference_deployment_deployments_inference_deployment_id_get(deployment_id)
30253098

‎docs/GetCServeV3DeploymentResponse.md‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@ Name | Type | Description | Notes
2121
**cserve_version** | **str** | | [optional]
2222
**min_replicas** | **int** | |
2323
**max_replicas** | **int** | |
24-
**initial_replicas** | **int** | | [optional]
2524
**endpoint_certificate_authority** | **str** | | [optional]
2625
**endpoint_bearer_token** | **str** | | [optional]
2726
**concurrency** | **int** | | [optional]

‎docs/GetComputeDeploymentResponse.md‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ Name | Type | Description | Notes
1818
**revision_number** | **int** | |
1919
**user_annotations** | **Dict[str, str]** | | [optional]
2020
**exposed_port** | **int** | |
21+
**volume_mounts** | [**List[VolumeMount]**](VolumeMount.md) | | [optional]
2122
**ssh_public_key** | **str** | | [optional]
2223
**ssh_password** | **str** | | [optional]
2324
**env_vars** | **Dict[str, str]** | | [optional]

‎docs/GetInferenceV3DeploymentResponse.md‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@ Name | Type | Description | Notes
2020
**container_port** | **int** | |
2121
**min_replicas** | **int** | |
2222
**max_replicas** | **int** | |
23-
**initial_replicas** | **int** | | [optional]
2423
**concurrency** | **int** | | [optional]
2524
**cooldown_period** | **int** | | [optional] [default to 1800]
2625
**healthcheck** | **str** | | [optional]

‎docs/HardwarePresetResponse.md‎

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
# HardwarePresetResponse
2+
3+
4+
## Properties
5+
6+
Name | Type | Description | Notes
7+
------------ | ------------- | ------------- | -------------
8+
**id** | **int** | |
9+
**name** | **str** | |
10+
**gpu_type** | **str** | |
11+
**num_gpu** | **int** | |
12+
**cpu** | **int** | |
13+
**memory** | **int** | |
14+
**accelerator_resource_key** | **str** | |
15+
**node_affinity_labels** | **Dict[str, str]** | |
16+
**accelerator_memory** | **int** | | [optional]
17+
18+
## Example
19+
20+
```python
21+
from platform_api_python_client.models.hardware_preset_response import HardwarePresetResponse
22+
23+
# TODO update the JSON string below
24+
json = "{}"
25+
# create an instance of HardwarePresetResponse from a JSON string
26+
hardware_preset_response_instance = HardwarePresetResponse.from_json(json)
27+
# print the JSON string representation of the object
28+
print(HardwarePresetResponse.to_json())
29+
30+
# convert the object into a dict
31+
hardware_preset_response_dict = hardware_preset_response_instance.to_dict()
32+
# create an instance of HardwarePresetResponse from a dict
33+
hardware_preset_response_from_dict = HardwarePresetResponse.from_dict(hardware_preset_response_dict)
34+
```
35+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
36+
37+

0 commit comments

Comments
 (0)