Skip to content

Commit 8da64e8

Browse files
Update clients to latest platform release (4.26.0) (#105)
Co-authored-by: platform CI <automation@centml.ai>
1 parent 65621e8 commit 8da64e8

27 files changed

Lines changed: 981 additions & 10 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.0
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/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/DeploymentResponse.md‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@ Name | Type | Description | Notes
4545
**config_file** | [**ConfigFileMount**](ConfigFileMount.md) | | [optional]
4646
**metrics** | [**MetricsConfig**](MetricsConfig.md) | | [optional]
4747
**exposed_port** | **int** | |
48+
**volume_mounts** | [**List[VolumeMount]**](VolumeMount.md) | | [optional]
4849
**ssh_public_key** | **str** | | [optional]
4950
**ssh_password** | **str** | | [optional]
5051

‎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/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/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+

‎docs/ListHardwarePresetResponse.md‎

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
# ListHardwarePresetResponse
2+
3+
4+
## Properties
5+
6+
Name | Type | Description | Notes
7+
------------ | ------------- | ------------- | -------------
8+
**results** | [**List[HardwarePresetResponse]**](HardwarePresetResponse.md) | |
9+
10+
## Example
11+
12+
```python
13+
from platform_api_python_client.models.list_hardware_preset_response import ListHardwarePresetResponse
14+
15+
# TODO update the JSON string below
16+
json = "{}"
17+
# create an instance of ListHardwarePresetResponse from a JSON string
18+
list_hardware_preset_response_instance = ListHardwarePresetResponse.from_json(json)
19+
# print the JSON string representation of the object
20+
print(ListHardwarePresetResponse.to_json())
21+
22+
# convert the object into a dict
23+
list_hardware_preset_response_dict = list_hardware_preset_response_instance.to_dict()
24+
# create an instance of ListHardwarePresetResponse from a dict
25+
list_hardware_preset_response_from_dict = ListHardwarePresetResponse.from_dict(list_hardware_preset_response_dict)
26+
```
27+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
28+
29+

‎docs/VolumeMount.md‎

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
# VolumeMount
2+
3+
4+
## Properties
5+
6+
Name | Type | Description | Notes
7+
------------ | ------------- | ------------- | -------------
8+
**volume_id** | **int** | |
9+
**mount_path** | **str** | |
10+
**read_only** | **bool** | | [optional] [default to False]
11+
12+
## Example
13+
14+
```python
15+
from platform_api_python_client.models.volume_mount import VolumeMount
16+
17+
# TODO update the JSON string below
18+
json = "{}"
19+
# create an instance of VolumeMount from a JSON string
20+
volume_mount_instance = VolumeMount.from_json(json)
21+
# print the JSON string representation of the object
22+
print(VolumeMount.to_json())
23+
24+
# convert the object into a dict
25+
volume_mount_dict = volume_mount_instance.to_dict()
26+
# create an instance of VolumeMount from a dict
27+
volume_mount_from_dict = VolumeMount.from_dict(volume_mount_dict)
28+
```
29+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
30+
31+

‎platform_api_python_client/__init__.py‎

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
""" # noqa: E501
1515

1616

17-
__version__ = "4.25.0"
17+
__version__ = "4.26.0"
1818

1919
# import apis into sdk package
2020
from platform_api_python_client.api.external_api import EXTERNALApi
@@ -105,6 +105,7 @@
105105
from platform_api_python_client.models.gpu_type_capacity import GpuTypeCapacity
106106
from platform_api_python_client.models.http_validation_error import HTTPValidationError
107107
from platform_api_python_client.models.hardware_instance_response import HardwareInstanceResponse
108+
from platform_api_python_client.models.hardware_preset_response import HardwarePresetResponse
108109
from platform_api_python_client.models.image_pull_secret_credentials import ImagePullSecretCredentials
109110
from platform_api_python_client.models.ingress_nginx import IngressNginx
110111
from platform_api_python_client.models.invite_user_request import InviteUserRequest
@@ -121,6 +122,7 @@
121122
from platform_api_python_client.models.list_get_cluster_response import ListGetClusterResponse
122123
from platform_api_python_client.models.list_get_deployment_response import ListGetDeploymentResponse
123124
from platform_api_python_client.models.list_hardware_instance_response import ListHardwareInstanceResponse
125+
from platform_api_python_client.models.list_hardware_preset_response import ListHardwarePresetResponse
124126
from platform_api_python_client.models.list_prebuilt_image_response import ListPrebuiltImageResponse
125127
from platform_api_python_client.models.list_service_accounts_response import ListServiceAccountsResponse
126128
from platform_api_python_client.models.list_user_vault_items_response import ListUserVaultItemsResponse
@@ -156,5 +158,6 @@
156158
from platform_api_python_client.models.vault_scope import VaultScope
157159
from platform_api_python_client.models.volume_access_mode import VolumeAccessMode
158160
from platform_api_python_client.models.volume_backend import VolumeBackend
161+
from platform_api_python_client.models.volume_mount import VolumeMount
159162
from platform_api_python_client.models.volume_status import VolumeStatus
160163
from platform_api_python_client.models.volume_status_response import VolumeStatusResponse

0 commit comments

Comments
 (0)