Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ No description provided (generated by Openapi Generator https://github.com/opena
This Python package is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project:

- API version: 0.1.0
- Package version: 4.1.7
- Package version: 4.1.8
- Generator version: 7.9.0
- Build package: org.openapitools.codegen.languages.PythonClientCodegen

Expand Down Expand Up @@ -186,6 +186,7 @@ Class | Method | HTTP request | Description
- [GetRagDeploymentResponse](docs/GetRagDeploymentResponse.md)
- [HTTPValidationError](docs/HTTPValidationError.md)
- [HardwareInstanceResponse](docs/HardwareInstanceResponse.md)
- [ImagePullSecretCredentials](docs/ImagePullSecretCredentials.md)
- [ListAPIKeyResponse](docs/ListAPIKeyResponse.md)
- [ListCServeRecipeResponse](docs/ListCServeRecipeResponse.md)
- [ListDailyBillResponse](docs/ListDailyBillResponse.md)
Expand All @@ -201,6 +202,7 @@ Class | Method | HTTP request | Description
- [PrebuiltImageResponse](docs/PrebuiltImageResponse.md)
- [RevisionPodDetails](docs/RevisionPodDetails.md)
- [RolloutStatus](docs/RolloutStatus.md)
- [RolloutStrategyParams](docs/RolloutStrategyParams.md)
- [ServiceStatus](docs/ServiceStatus.md)
- [UpdateDeploymentResponse](docs/UpdateDeploymentResponse.md)
- [UpdateDeploymentStatusV3Request](docs/UpdateDeploymentStatusV3Request.md)
Expand Down
2 changes: 2 additions & 0 deletions docs/CreateCServeV3DeploymentRequest.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@

Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**max_surge** | **int** | | [optional]
**max_unavailable** | **int** | | [optional]
**name** | **str** | |
**cluster_id** | **int** | |
**hardware_instance_id** | **int** | |
Expand Down
3 changes: 3 additions & 0 deletions docs/CreateInferenceV3DeploymentRequest.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,13 @@

Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**max_surge** | **int** | | [optional]
**max_unavailable** | **int** | | [optional]
**name** | **str** | |
**cluster_id** | **int** | |
**hardware_instance_id** | **int** | |
**image_url** | **str** | |
**image_pull_secret_credentials** | [**ImagePullSecretCredentials**](ImagePullSecretCredentials.md) | | [optional]
**port** | **int** | |
**min_replicas** | **int** | |
**max_replicas** | **int** | |
Expand Down
1 change: 1 addition & 0 deletions docs/DeploymentResponse.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ Name | Type | Description | Notes
**healthcheck** | **str** | | [optional]
**command** | **List[str]** | | [optional]
**command_args** | **List[str]** | | [optional]
**image_pull_secret_credentials** | [**ImagePullSecretCredentials**](ImagePullSecretCredentials.md) | | [optional]

## Example

Expand Down
9 changes: 6 additions & 3 deletions docs/EXTERNALApi.md
Original file line number Diff line number Diff line change
Expand Up @@ -2642,7 +2642,7 @@ Name | Type | Description | Notes
[[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)

# **rollout_existing_revision_deployments_revisions_deployment_id_revision_number_put**
> UpdateDeploymentResponse rollout_existing_revision_deployments_revisions_deployment_id_revision_number_put(deployment_id, revision_number)
> UpdateDeploymentResponse rollout_existing_revision_deployments_revisions_deployment_id_revision_number_put(deployment_id, revision_number, rollout_strategy_params=rollout_strategy_params)

Rollout Existing Revision

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

```python
import platform_api_python_client
from platform_api_python_client.models.rollout_strategy_params import RolloutStrategyParams
from platform_api_python_client.models.update_deployment_response import UpdateDeploymentResponse
from platform_api_python_client.rest import ApiException
from pprint import pprint
Expand All @@ -2680,10 +2681,11 @@ with platform_api_python_client.ApiClient(configuration) as api_client:
api_instance = platform_api_python_client.EXTERNALApi(api_client)
deployment_id = 56 # int |
revision_number = 56 # int |
rollout_strategy_params = platform_api_python_client.RolloutStrategyParams() # RolloutStrategyParams | (optional)

try:
# Rollout Existing Revision
api_response = api_instance.rollout_existing_revision_deployments_revisions_deployment_id_revision_number_put(deployment_id, revision_number)
api_response = api_instance.rollout_existing_revision_deployments_revisions_deployment_id_revision_number_put(deployment_id, revision_number, rollout_strategy_params=rollout_strategy_params)
print("The response of EXTERNALApi->rollout_existing_revision_deployments_revisions_deployment_id_revision_number_put:\n")
pprint(api_response)
except Exception as e:
Expand All @@ -2699,6 +2701,7 @@ Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**deployment_id** | **int**| |
**revision_number** | **int**| |
**rollout_strategy_params** | [**RolloutStrategyParams**](RolloutStrategyParams.md)| | [optional]

### Return type

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

### HTTP request headers

- **Content-Type**: Not defined
- **Content-Type**: application/json
- **Accept**: application/json

### HTTP response details
Expand Down
1 change: 1 addition & 0 deletions docs/GetInferenceV3DeploymentResponse.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ Name | Type | Description | Notes
**env_vars** | **Dict[str, str]** | | [optional]
**command** | **List[str]** | | [optional]
**command_args** | **List[str]** | | [optional]
**image_pull_secret_credentials** | [**ImagePullSecretCredentials**](ImagePullSecretCredentials.md) | | [optional]

## Example

Expand Down
30 changes: 30 additions & 0 deletions docs/ImagePullSecretCredentials.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
# ImagePullSecretCredentials


## Properties

Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**username** | **str** | |
**password** | **str** | |

## Example

```python
from platform_api_python_client.models.image_pull_secret_credentials import ImagePullSecretCredentials

# TODO update the JSON string below
json = "{}"
# create an instance of ImagePullSecretCredentials from a JSON string
image_pull_secret_credentials_instance = ImagePullSecretCredentials.from_json(json)
# print the JSON string representation of the object
print(ImagePullSecretCredentials.to_json())

# convert the object into a dict
image_pull_secret_credentials_dict = image_pull_secret_credentials_instance.to_dict()
# create an instance of ImagePullSecretCredentials from a dict
image_pull_secret_credentials_from_dict = ImagePullSecretCredentials.from_dict(image_pull_secret_credentials_dict)
```
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)


2 changes: 1 addition & 1 deletion docs/RolloutStatus.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@

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

* `UNKNOWN` (value: `'Unknown'`)
* `MISSING` (value: `'Missing'`)

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

Expand Down
30 changes: 30 additions & 0 deletions docs/RolloutStrategyParams.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
# RolloutStrategyParams


## Properties

Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**max_surge** | **int** | | [optional]
**max_unavailable** | **int** | | [optional]

## Example

```python
from platform_api_python_client.models.rollout_strategy_params import RolloutStrategyParams

# TODO update the JSON string below
json = "{}"
# create an instance of RolloutStrategyParams from a JSON string
rollout_strategy_params_instance = RolloutStrategyParams.from_json(json)
# print the JSON string representation of the object
print(RolloutStrategyParams.to_json())

# convert the object into a dict
rollout_strategy_params_dict = rollout_strategy_params_instance.to_dict()
# create an instance of RolloutStrategyParams from a dict
rollout_strategy_params_from_dict = RolloutStrategyParams.from_dict(rollout_strategy_params_dict)
```
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)


4 changes: 3 additions & 1 deletion platform_api_python_client/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
""" # noqa: E501


__version__ = "4.1.7"
__version__ = "4.1.8"

# import apis into sdk package
from platform_api_python_client.api.external_api import EXTERNALApi
Expand Down Expand Up @@ -74,6 +74,7 @@
from platform_api_python_client.models.get_rag_deployment_response import GetRagDeploymentResponse
from platform_api_python_client.models.http_validation_error import HTTPValidationError
from platform_api_python_client.models.hardware_instance_response import HardwareInstanceResponse
from platform_api_python_client.models.image_pull_secret_credentials import ImagePullSecretCredentials
from platform_api_python_client.models.list_api_key_response import ListAPIKeyResponse
from platform_api_python_client.models.list_c_serve_recipe_response import ListCServeRecipeResponse
from platform_api_python_client.models.list_daily_bill_response import ListDailyBillResponse
Expand All @@ -89,6 +90,7 @@
from platform_api_python_client.models.prebuilt_image_response import PrebuiltImageResponse
from platform_api_python_client.models.revision_pod_details import RevisionPodDetails
from platform_api_python_client.models.rollout_status import RolloutStatus
from platform_api_python_client.models.rollout_strategy_params import RolloutStrategyParams
from platform_api_python_client.models.service_status import ServiceStatus
from platform_api_python_client.models.update_deployment_response import UpdateDeploymentResponse
from platform_api_python_client.models.update_deployment_status_v3_request import UpdateDeploymentStatusV3Request
Expand Down
29 changes: 29 additions & 0 deletions platform_api_python_client/api/external_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@
from platform_api_python_client.models.list_prebuilt_image_response import ListPrebuiltImageResponse
from platform_api_python_client.models.list_user_vault_items_response import ListUserVaultItemsResponse
from platform_api_python_client.models.metric import Metric
from platform_api_python_client.models.rollout_strategy_params import RolloutStrategyParams
from platform_api_python_client.models.update_deployment_response import UpdateDeploymentResponse
from platform_api_python_client.models.update_deployment_status_v3_request import UpdateDeploymentStatusV3Request
from platform_api_python_client.models.user_vault_item import UserVaultItem
Expand Down Expand Up @@ -9189,6 +9190,7 @@ def rollout_existing_revision_deployments_revisions_deployment_id_revision_numbe
self,
deployment_id: StrictInt,
revision_number: StrictInt,
rollout_strategy_params: Optional[RolloutStrategyParams] = None,
_request_timeout: Union[
None,
Annotated[StrictFloat, Field(gt=0)],
Expand All @@ -9210,6 +9212,8 @@ def rollout_existing_revision_deployments_revisions_deployment_id_revision_numbe
:type deployment_id: int
:param revision_number: (required)
:type revision_number: int
:param rollout_strategy_params:
:type rollout_strategy_params: RolloutStrategyParams
:param _request_timeout: timeout setting for this request. If one
number provided, it will be total request
timeout. It can also be a pair (tuple) of
Expand All @@ -9235,6 +9239,7 @@ def rollout_existing_revision_deployments_revisions_deployment_id_revision_numbe
_param = self._rollout_existing_revision_deployments_revisions_deployment_id_revision_number_put_serialize(
deployment_id=deployment_id,
revision_number=revision_number,
rollout_strategy_params=rollout_strategy_params,
_request_auth=_request_auth,
_content_type=_content_type,
_headers=_headers,
Expand All @@ -9261,6 +9266,7 @@ def rollout_existing_revision_deployments_revisions_deployment_id_revision_numbe
self,
deployment_id: StrictInt,
revision_number: StrictInt,
rollout_strategy_params: Optional[RolloutStrategyParams] = None,
_request_timeout: Union[
None,
Annotated[StrictFloat, Field(gt=0)],
Expand All @@ -9282,6 +9288,8 @@ def rollout_existing_revision_deployments_revisions_deployment_id_revision_numbe
:type deployment_id: int
:param revision_number: (required)
:type revision_number: int
:param rollout_strategy_params:
:type rollout_strategy_params: RolloutStrategyParams
:param _request_timeout: timeout setting for this request. If one
number provided, it will be total request
timeout. It can also be a pair (tuple) of
Expand All @@ -9307,6 +9315,7 @@ def rollout_existing_revision_deployments_revisions_deployment_id_revision_numbe
_param = self._rollout_existing_revision_deployments_revisions_deployment_id_revision_number_put_serialize(
deployment_id=deployment_id,
revision_number=revision_number,
rollout_strategy_params=rollout_strategy_params,
_request_auth=_request_auth,
_content_type=_content_type,
_headers=_headers,
Expand All @@ -9333,6 +9342,7 @@ def rollout_existing_revision_deployments_revisions_deployment_id_revision_numbe
self,
deployment_id: StrictInt,
revision_number: StrictInt,
rollout_strategy_params: Optional[RolloutStrategyParams] = None,
_request_timeout: Union[
None,
Annotated[StrictFloat, Field(gt=0)],
Expand All @@ -9354,6 +9364,8 @@ def rollout_existing_revision_deployments_revisions_deployment_id_revision_numbe
:type deployment_id: int
:param revision_number: (required)
:type revision_number: int
:param rollout_strategy_params:
:type rollout_strategy_params: RolloutStrategyParams
:param _request_timeout: timeout setting for this request. If one
number provided, it will be total request
timeout. It can also be a pair (tuple) of
Expand All @@ -9379,6 +9391,7 @@ def rollout_existing_revision_deployments_revisions_deployment_id_revision_numbe
_param = self._rollout_existing_revision_deployments_revisions_deployment_id_revision_number_put_serialize(
deployment_id=deployment_id,
revision_number=revision_number,
rollout_strategy_params=rollout_strategy_params,
_request_auth=_request_auth,
_content_type=_content_type,
_headers=_headers,
Expand All @@ -9400,6 +9413,7 @@ def _rollout_existing_revision_deployments_revisions_deployment_id_revision_numb
self,
deployment_id,
revision_number,
rollout_strategy_params,
_request_auth,
_content_type,
_headers,
Expand Down Expand Up @@ -9429,6 +9443,8 @@ def _rollout_existing_revision_deployments_revisions_deployment_id_revision_numb
# process the header parameters
# process the form parameters
# process the body parameter
if rollout_strategy_params is not None:
_body_params = rollout_strategy_params


# set the HTTP header `Accept`
Expand All @@ -9439,6 +9455,19 @@ def _rollout_existing_revision_deployments_revisions_deployment_id_revision_numb
]
)

# set the HTTP header `Content-Type`
if _content_type:
_header_params['Content-Type'] = _content_type
else:
_default_content_type = (
self.api_client.select_header_content_type(
[
'application/json'
]
)
)
if _default_content_type is not None:
_header_params['Content-Type'] = _default_content_type

# authentication setting
_auth_settings: List[str] = [
Expand Down
2 changes: 1 addition & 1 deletion platform_api_python_client/api_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ def __init__(
self.default_headers[header_name] = header_value
self.cookie = cookie
# Set default User-Agent.
self.user_agent = 'OpenAPI-Generator/4.1.7/python'
self.user_agent = 'OpenAPI-Generator/4.1.8/python'
self.client_side_validation = configuration.client_side_validation

def __enter__(self):
Expand Down
2 changes: 1 addition & 1 deletion platform_api_python_client/configuration.py
Original file line number Diff line number Diff line change
Expand Up @@ -392,7 +392,7 @@ def to_debug_report(self):
"OS: {env}\n"\
"Python Version: {pyversion}\n"\
"Version of the API: 0.1.0\n"\
"SDK Package Version: 4.1.7".\
"SDK Package Version: 4.1.8".\
format(env=sys.platform, pyversion=sys.version)

def get_host_settings(self):
Expand Down
2 changes: 2 additions & 0 deletions platform_api_python_client/models/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@
from platform_api_python_client.models.get_rag_deployment_response import GetRagDeploymentResponse
from platform_api_python_client.models.http_validation_error import HTTPValidationError
from platform_api_python_client.models.hardware_instance_response import HardwareInstanceResponse
from platform_api_python_client.models.image_pull_secret_credentials import ImagePullSecretCredentials
from platform_api_python_client.models.list_api_key_response import ListAPIKeyResponse
from platform_api_python_client.models.list_c_serve_recipe_response import ListCServeRecipeResponse
from platform_api_python_client.models.list_daily_bill_response import ListDailyBillResponse
Expand All @@ -72,6 +73,7 @@
from platform_api_python_client.models.prebuilt_image_response import PrebuiltImageResponse
from platform_api_python_client.models.revision_pod_details import RevisionPodDetails
from platform_api_python_client.models.rollout_status import RolloutStatus
from platform_api_python_client.models.rollout_strategy_params import RolloutStrategyParams
from platform_api_python_client.models.service_status import ServiceStatus
from platform_api_python_client.models.update_deployment_response import UpdateDeploymentResponse
from platform_api_python_client.models.update_deployment_status_v3_request import UpdateDeploymentStatusV3Request
Expand Down
Loading