Skip to content

Commit b72adc4

Browse files
Update clients to latest platform release (4.1.8) (#55)
1 parent ae09eb5 commit b72adc4

28 files changed

+479
-17
lines changed

README.md

Lines changed: 3 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.1.7
7+
- Package version: 4.1.8
88
- Generator version: 7.9.0
99
- Build package: org.openapitools.codegen.languages.PythonClientCodegen
1010

@@ -186,6 +186,7 @@ Class | Method | HTTP request | Description
186186
- [GetRagDeploymentResponse](docs/GetRagDeploymentResponse.md)
187187
- [HTTPValidationError](docs/HTTPValidationError.md)
188188
- [HardwareInstanceResponse](docs/HardwareInstanceResponse.md)
189+
- [ImagePullSecretCredentials](docs/ImagePullSecretCredentials.md)
189190
- [ListAPIKeyResponse](docs/ListAPIKeyResponse.md)
190191
- [ListCServeRecipeResponse](docs/ListCServeRecipeResponse.md)
191192
- [ListDailyBillResponse](docs/ListDailyBillResponse.md)
@@ -201,6 +202,7 @@ Class | Method | HTTP request | Description
201202
- [PrebuiltImageResponse](docs/PrebuiltImageResponse.md)
202203
- [RevisionPodDetails](docs/RevisionPodDetails.md)
203204
- [RolloutStatus](docs/RolloutStatus.md)
205+
- [RolloutStrategyParams](docs/RolloutStrategyParams.md)
204206
- [ServiceStatus](docs/ServiceStatus.md)
205207
- [UpdateDeploymentResponse](docs/UpdateDeploymentResponse.md)
206208
- [UpdateDeploymentStatusV3Request](docs/UpdateDeploymentStatusV3Request.md)

docs/CreateCServeV3DeploymentRequest.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@
55

66
Name | Type | Description | Notes
77
------------ | ------------- | ------------- | -------------
8+
**max_surge** | **int** | | [optional]
9+
**max_unavailable** | **int** | | [optional]
810
**name** | **str** | |
911
**cluster_id** | **int** | |
1012
**hardware_instance_id** | **int** | |

docs/CreateInferenceV3DeploymentRequest.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,13 @@
55

66
Name | Type | Description | Notes
77
------------ | ------------- | ------------- | -------------
8+
**max_surge** | **int** | | [optional]
9+
**max_unavailable** | **int** | | [optional]
810
**name** | **str** | |
911
**cluster_id** | **int** | |
1012
**hardware_instance_id** | **int** | |
1113
**image_url** | **str** | |
14+
**image_pull_secret_credentials** | [**ImagePullSecretCredentials**](ImagePullSecretCredentials.md) | | [optional]
1215
**port** | **int** | |
1316
**min_replicas** | **int** | |
1417
**max_replicas** | **int** | |

docs/DeploymentResponse.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ Name | Type | Description | Notes
2929
**healthcheck** | **str** | | [optional]
3030
**command** | **List[str]** | | [optional]
3131
**command_args** | **List[str]** | | [optional]
32+
**image_pull_secret_credentials** | [**ImagePullSecretCredentials**](ImagePullSecretCredentials.md) | | [optional]
3233

3334
## Example
3435

docs/EXTERNALApi.md

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2642,7 +2642,7 @@ Name | Type | Description | Notes
26422642
[[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)
26432643

26442644
# **rollout_existing_revision_deployments_revisions_deployment_id_revision_number_put**
2645-
> UpdateDeploymentResponse rollout_existing_revision_deployments_revisions_deployment_id_revision_number_put(deployment_id, revision_number)
2645+
> UpdateDeploymentResponse rollout_existing_revision_deployments_revisions_deployment_id_revision_number_put(deployment_id, revision_number, rollout_strategy_params=rollout_strategy_params)
26462646
26472647
Rollout Existing Revision
26482648

@@ -2654,6 +2654,7 @@ Change the selected revision for a deployment and apply the changes.
26542654

26552655
```python
26562656
import platform_api_python_client
2657+
from platform_api_python_client.models.rollout_strategy_params import RolloutStrategyParams
26572658
from platform_api_python_client.models.update_deployment_response import UpdateDeploymentResponse
26582659
from platform_api_python_client.rest import ApiException
26592660
from pprint import pprint
@@ -2680,10 +2681,11 @@ with platform_api_python_client.ApiClient(configuration) as api_client:
26802681
api_instance = platform_api_python_client.EXTERNALApi(api_client)
26812682
deployment_id = 56 # int |
26822683
revision_number = 56 # int |
2684+
rollout_strategy_params = platform_api_python_client.RolloutStrategyParams() # RolloutStrategyParams | (optional)
26832685

26842686
try:
26852687
# Rollout Existing Revision
2686-
api_response = api_instance.rollout_existing_revision_deployments_revisions_deployment_id_revision_number_put(deployment_id, revision_number)
2688+
api_response = api_instance.rollout_existing_revision_deployments_revisions_deployment_id_revision_number_put(deployment_id, revision_number, rollout_strategy_params=rollout_strategy_params)
26872689
print("The response of EXTERNALApi->rollout_existing_revision_deployments_revisions_deployment_id_revision_number_put:\n")
26882690
pprint(api_response)
26892691
except Exception as e:
@@ -2699,6 +2701,7 @@ Name | Type | Description | Notes
26992701
------------- | ------------- | ------------- | -------------
27002702
**deployment_id** | **int**| |
27012703
**revision_number** | **int**| |
2704+
**rollout_strategy_params** | [**RolloutStrategyParams**](RolloutStrategyParams.md)| | [optional]
27022705

27032706
### Return type
27042707

@@ -2710,7 +2713,7 @@ Name | Type | Description | Notes
27102713

27112714
### HTTP request headers
27122715

2713-
- **Content-Type**: Not defined
2716+
- **Content-Type**: application/json
27142717
- **Accept**: application/json
27152718

27162719
### HTTP response details

docs/GetInferenceV3DeploymentResponse.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ Name | Type | Description | Notes
2727
**env_vars** | **Dict[str, str]** | | [optional]
2828
**command** | **List[str]** | | [optional]
2929
**command_args** | **List[str]** | | [optional]
30+
**image_pull_secret_credentials** | [**ImagePullSecretCredentials**](ImagePullSecretCredentials.md) | | [optional]
3031

3132
## Example
3233

docs/ImagePullSecretCredentials.md

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

docs/RolloutStatus.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111

1212
* `DEGRADED` (value: `'Degraded'`)
1313

14-
* `UNKNOWN` (value: `'Unknown'`)
14+
* `MISSING` (value: `'Missing'`)
1515

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

docs/RolloutStrategyParams.md

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

platform_api_python_client/__init__.py

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

1616

17-
__version__ = "4.1.7"
17+
__version__ = "4.1.8"
1818

1919
# import apis into sdk package
2020
from platform_api_python_client.api.external_api import EXTERNALApi
@@ -74,6 +74,7 @@
7474
from platform_api_python_client.models.get_rag_deployment_response import GetRagDeploymentResponse
7575
from platform_api_python_client.models.http_validation_error import HTTPValidationError
7676
from platform_api_python_client.models.hardware_instance_response import HardwareInstanceResponse
77+
from platform_api_python_client.models.image_pull_secret_credentials import ImagePullSecretCredentials
7778
from platform_api_python_client.models.list_api_key_response import ListAPIKeyResponse
7879
from platform_api_python_client.models.list_c_serve_recipe_response import ListCServeRecipeResponse
7980
from platform_api_python_client.models.list_daily_bill_response import ListDailyBillResponse
@@ -89,6 +90,7 @@
8990
from platform_api_python_client.models.prebuilt_image_response import PrebuiltImageResponse
9091
from platform_api_python_client.models.revision_pod_details import RevisionPodDetails
9192
from platform_api_python_client.models.rollout_status import RolloutStatus
93+
from platform_api_python_client.models.rollout_strategy_params import RolloutStrategyParams
9294
from platform_api_python_client.models.service_status import ServiceStatus
9395
from platform_api_python_client.models.update_deployment_response import UpdateDeploymentResponse
9496
from platform_api_python_client.models.update_deployment_status_v3_request import UpdateDeploymentStatusV3Request

0 commit comments

Comments
 (0)