Skip to content

Commit

Permalink
Re-generate SDK for Deploy 2.1.0 (#57)
Browse files Browse the repository at this point in the history
  • Loading branch information
Adrian Gonzalez-Martin authored Jun 8, 2023
1 parent 1cf2cd7 commit 1329945
Show file tree
Hide file tree
Showing 29 changed files with 749 additions and 52 deletions.
2 changes: 1 addition & 1 deletion config/python.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"projectName": "seldon-deploy-sdk",
"packageName": "seldon_deploy_sdk",
"packageVersion": "2.0.1",
"packageVersion": "2.1.0",
"packageUrl": "https://deploy.seldon.io"
}
9 changes: 6 additions & 3 deletions python/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ API to interact and manage the lifecycle of your machine learning models deploye
This Python package is automatically generated by the [Swagger Codegen](https://github.com/swagger-api/swagger-codegen) project:

- API version: v1alpha1
- Package version: 2.0.1
- Package version: 2.1.0
- Build package: io.swagger.codegen.languages.PythonClientCodegen

## Requirements.
Expand Down Expand Up @@ -113,15 +113,16 @@ Class | Method | HTTP request | Description
*ExplainApi* | [**explain_seldon_pipeline**](docs/ExplainApi.md#explain_seldon_pipeline) | **POST** /namespaces/{namespace}/pipelines/{name}/explain |
*GitOpsApi* | [**read_experiment_git_diff**](docs/GitOpsApi.md#read_experiment_git_diff) | **GET** /namespaces/{namespace}/experiments/{name}/gitdiff |
*GitOpsApi* | [**read_experiment_git_logs**](docs/GitOpsApi.md#read_experiment_git_logs) | **GET** /namespaces/{namespace}/experiments/{name}/gitlogs |
*GitOpsApi* | [**read_git_diffs**](docs/GitOpsApi.md#read_git_diffs) | **GET** /namespaces/{namespace}/gitdiffs |
*GitOpsApi* | [**read_git_ops_status**](docs/GitOpsApi.md#read_git_ops_status) | **GET** /namespaces/{namespace}/gitops-status |
*GitOpsApi* | [**read_model_git_diff**](docs/GitOpsApi.md#read_model_git_diff) | **GET** /namespaces/{namespace}/models/{name}/gitdiff |
*GitOpsApi* | [**read_model_git_logs**](docs/GitOpsApi.md#read_model_git_logs) | **GET** /namespaces/{namespace}/models/{name}/gitlogs |
*GitOpsApi* | [**read_pipeline_git_diff**](docs/GitOpsApi.md#read_pipeline_git_diff) | **GET** /namespaces/{namespace}/pipelines/{name}/gitdiff |
*GitOpsApi* | [**read_pipeline_git_logs**](docs/GitOpsApi.md#read_pipeline_git_logs) | **GET** /namespaces/{namespace}/pipelines/{name}/gitlogs |
*GitOpsApi* | [**read_seldon_deployment_git_diff**](docs/GitOpsApi.md#read_seldon_deployment_git_diff) | **GET** /namespaces/{namespace}/seldondeployments/{name}/gitdiff |
*GitOpsApi* | [**read_seldon_deployment_git_logs**](docs/GitOpsApi.md#read_seldon_deployment_git_logs) | **GET** /namespaces/{namespace}/seldondeployments/{name}/gitlogs |
*GitOpsApi* | [**seldon_deployment_git_restore**](docs/GitOpsApi.md#seldon_deployment_git_restore) | **GET** /namespaces/{namespace}/seldondeployments/{name}/gitrestore |
*GitOpsApi* | [**seldon_deployment_git_revert**](docs/GitOpsApi.md#seldon_deployment_git_revert) | **GET** /namespaces/{namespace}/seldondeployments/{name}/gitrevert |
*GitOpsApi* | [**seldon_deployment_git_restore**](docs/GitOpsApi.md#seldon_deployment_git_restore) | **POST** /namespaces/{namespace}/seldondeployments/{name}/gitrestore |
*GitOpsApi* | [**seldon_deployment_git_revert**](docs/GitOpsApi.md#seldon_deployment_git_revert) | **POST** /namespaces/{namespace}/seldondeployments/{name}/gitrevert |
*HealthcheckServiceApi* | [**healthcheck_service_get_dependency_health**](docs/HealthcheckServiceApi.md#healthcheck_service_get_dependency_health) | **GET** /healthcheck/{dependency} | List the current health of a specific Seldon Deploy dependency or all of them
*KubernetesResourcesApi* | [**list_seldon_deployment_resources**](docs/KubernetesResourcesApi.md#list_seldon_deployment_resources) | **GET** /namespaces/{namespace}/seldondeployments/{name}/resources |
*LoadtestJobsApi* | [**create_loadtest_pipeline**](docs/LoadtestJobsApi.md#create_loadtest_pipeline) | **POST** /namespaces/{namespace}/pipelines/{name}/loadtestjobs |
Expand Down Expand Up @@ -179,6 +180,7 @@ Class | Method | HTTP request | Description
*PipelinesApi* | [**read_pipeline**](docs/PipelinesApi.md#read_pipeline) | **GET** /namespaces/{namespace}/pipelines/{name} |
*PipelinesApi* | [**read_pipeline_explainer**](docs/PipelinesApi.md#read_pipeline_explainer) | **GET** /namespaces/{namespace}/pipelines/{name}/explainer |
*PipelinesApi* | [**update_pipeline**](docs/PipelinesApi.md#update_pipeline) | **PUT** /namespaces/{namespace}/pipelines/{name} |
*PipelinesApi* | [**update_pipeline_explainer**](docs/PipelinesApi.md#update_pipeline_explainer) | **PUT** /namespaces/{namespace}/pipelines/{name}/explainer |
*PredictApi* | [**predict_file_seldon_deployment**](docs/PredictApi.md#predict_file_seldon_deployment) | **POST** /namespaces/{namespace}/seldondeployments/{name}/predictfile |
*PredictApi* | [**predict_file_seldon_pipeline**](docs/PredictApi.md#predict_file_seldon_pipeline) | **POST** /namespaces/{namespace}/pipelines/{name}/predictfile |
*PredictApi* | [**predict_seldon_deployment**](docs/PredictApi.md#predict_seldon_deployment) | **POST** /namespaces/{namespace}/seldondeployments/{name}/predict |
Expand Down Expand Up @@ -468,6 +470,7 @@ Class | Method | HTTP request | Description
- [UserInfo](docs/UserInfo.md)
- [V1AddUserToGroupResponse](docs/V1AddUserToGroupResponse.md)
- [V1ArtifactType](docs/V1ArtifactType.md)
- [V1BucketSecretFormat](docs/V1BucketSecretFormat.md)
- [V1CreateGCSBucketSecretResponse](docs/V1CreateGCSBucketSecretResponse.md)
- [V1CreateGroupRequest](docs/V1CreateGroupRequest.md)
- [V1CreateGroupResponse](docs/V1CreateGroupResponse.md)
Expand Down
2 changes: 1 addition & 1 deletion python/docs/BatchJobDefinition.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**batch_data_type** | **str** | Batch Data Type (data, json or str) | [optional]
**batch_interval** | **float** | Interval between batches | [optional]
**batch_method** | **str** | Batch Method (predict) | [optional]
**batch_method** | **str** | Batch Method (predict, feedback (for SCv1)) | [optional]
**batch_payload_type** | **str** | Batch Payload Type (ndarray, tensor, tftensor, v2raw, v2binary - only if DataType=data) | [optional]
**batch_retries** | **int** | Number of retries for each instance | [optional]
**batch_size** | **int** | Size of the batch (number of predictions per request) | [optional]
Expand Down
70 changes: 64 additions & 6 deletions python/docs/GitOpsApi.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,16 @@ Method | HTTP request | Description
------------- | ------------- | -------------
[**read_experiment_git_diff**](GitOpsApi.md#read_experiment_git_diff) | **GET** /namespaces/{namespace}/experiments/{name}/gitdiff |
[**read_experiment_git_logs**](GitOpsApi.md#read_experiment_git_logs) | **GET** /namespaces/{namespace}/experiments/{name}/gitlogs |
[**read_git_diffs**](GitOpsApi.md#read_git_diffs) | **GET** /namespaces/{namespace}/gitdiffs |
[**read_git_ops_status**](GitOpsApi.md#read_git_ops_status) | **GET** /namespaces/{namespace}/gitops-status |
[**read_model_git_diff**](GitOpsApi.md#read_model_git_diff) | **GET** /namespaces/{namespace}/models/{name}/gitdiff |
[**read_model_git_logs**](GitOpsApi.md#read_model_git_logs) | **GET** /namespaces/{namespace}/models/{name}/gitlogs |
[**read_pipeline_git_diff**](GitOpsApi.md#read_pipeline_git_diff) | **GET** /namespaces/{namespace}/pipelines/{name}/gitdiff |
[**read_pipeline_git_logs**](GitOpsApi.md#read_pipeline_git_logs) | **GET** /namespaces/{namespace}/pipelines/{name}/gitlogs |
[**read_seldon_deployment_git_diff**](GitOpsApi.md#read_seldon_deployment_git_diff) | **GET** /namespaces/{namespace}/seldondeployments/{name}/gitdiff |
[**read_seldon_deployment_git_logs**](GitOpsApi.md#read_seldon_deployment_git_logs) | **GET** /namespaces/{namespace}/seldondeployments/{name}/gitlogs |
[**seldon_deployment_git_restore**](GitOpsApi.md#seldon_deployment_git_restore) | **GET** /namespaces/{namespace}/seldondeployments/{name}/gitrestore |
[**seldon_deployment_git_revert**](GitOpsApi.md#seldon_deployment_git_revert) | **GET** /namespaces/{namespace}/seldondeployments/{name}/gitrevert |
[**seldon_deployment_git_restore**](GitOpsApi.md#seldon_deployment_git_restore) | **POST** /namespaces/{namespace}/seldondeployments/{name}/gitrestore |
[**seldon_deployment_git_revert**](GitOpsApi.md#seldon_deployment_git_revert) | **POST** /namespaces/{namespace}/seldondeployments/{name}/gitrevert |


# **read_experiment_git_diff**
Expand Down Expand Up @@ -125,6 +126,59 @@ 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)

# **read_git_diffs**
> list[FileDiff] read_git_diffs(hashes, namespace)


Read the git diffs from hashes

### Example
```python
from __future__ import print_function
import time
import seldon_deploy_sdk
from seldon_deploy_sdk.rest import ApiException
from pprint import pprint

# Configure OAuth2 access token for authorization: OAuth2
configuration = seldon_deploy_sdk.Configuration()
configuration.access_token = 'YOUR_ACCESS_TOKEN'

# create an instance of the API class
api_instance = seldon_deploy_sdk.GitOpsApi(seldon_deploy_sdk.ApiClient(configuration))
hashes = ['hashes_example'] # list[str] | Hashes is an array of git commit hashes to get diffs for
namespace = 'namespace_example' # str | Namespace provides a logical grouping of resources

try:
api_response = api_instance.read_git_diffs(hashes, namespace)
pprint(api_response)
except ApiException as e:
print("Exception when calling GitOpsApi->read_git_diffs: %s\n" % e)
```

### Parameters

Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**hashes** | [**list[str]**](str.md)| Hashes is an array of git commit hashes to get diffs for |
**namespace** | **str**| Namespace provides a logical grouping of resources |

### Return type

[**list[FileDiff]**](FileDiff.md)

### Authorization

[OAuth2](../README.md#OAuth2)

### HTTP request headers

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

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

# **read_git_ops_status**
> object read_git_ops_status(namespace)
Expand Down Expand Up @@ -501,7 +555,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)

# **seldon_deployment_git_restore**
> Message seldon_deployment_git_restore(name, namespace, hash=hash, message=message)
> Message seldon_deployment_git_restore(name, namespace, hash=hash, action=action, message=message)


Expand All @@ -524,10 +578,11 @@ api_instance = seldon_deploy_sdk.GitOpsApi(seldon_deploy_sdk.ApiClient(configura
name = 'name_example' # str | Name identifies a resource
namespace = 'namespace_example' # str | Namespace provides a logical grouping of resources
hash = 'hash_example' # str | Hash (optional)
action = 'action_example' # str | Action (optional)
message = 'message_example' # str | Message (optional)

try:
api_response = api_instance.seldon_deployment_git_restore(name, namespace, hash=hash, message=message)
api_response = api_instance.seldon_deployment_git_restore(name, namespace, hash=hash, action=action, message=message)
pprint(api_response)
except ApiException as e:
print("Exception when calling GitOpsApi->seldon_deployment_git_restore: %s\n" % e)
Expand All @@ -540,6 +595,7 @@ Name | Type | Description | Notes
**name** | **str**| Name identifies a resource |
**namespace** | **str**| Namespace provides a logical grouping of resources |
**hash** | **str**| Hash | [optional]
**action** | **str**| Action | [optional]
**message** | **str**| Message | [optional]

### Return type
Expand All @@ -558,7 +614,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)

# **seldon_deployment_git_revert**
> Message seldon_deployment_git_revert(name, namespace, hash=hash, message=message)
> Message seldon_deployment_git_revert(name, namespace, hash=hash, action=action, message=message)


Expand All @@ -581,10 +637,11 @@ api_instance = seldon_deploy_sdk.GitOpsApi(seldon_deploy_sdk.ApiClient(configura
name = 'name_example' # str | Name identifies a resource
namespace = 'namespace_example' # str | Namespace provides a logical grouping of resources
hash = 'hash_example' # str | Hash (optional)
action = 'action_example' # str | Action (optional)
message = 'message_example' # str | Message (optional)

try:
api_response = api_instance.seldon_deployment_git_revert(name, namespace, hash=hash, message=message)
api_response = api_instance.seldon_deployment_git_revert(name, namespace, hash=hash, action=action, message=message)
pprint(api_response)
except ApiException as e:
print("Exception when calling GitOpsApi->seldon_deployment_git_revert: %s\n" % e)
Expand All @@ -597,6 +654,7 @@ Name | Type | Description | Notes
**name** | **str**| Name identifies a resource |
**namespace** | **str**| Namespace provides a logical grouping of resources |
**hash** | **str**| Hash | [optional]
**action** | **str**| Action | [optional]
**message** | **str**| Message | [optional]

### Return type
Expand Down
60 changes: 60 additions & 0 deletions python/docs/PipelinesApi.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ Method | HTTP request | Description
[**read_pipeline**](PipelinesApi.md#read_pipeline) | **GET** /namespaces/{namespace}/pipelines/{name} |
[**read_pipeline_explainer**](PipelinesApi.md#read_pipeline_explainer) | **GET** /namespaces/{namespace}/pipelines/{name}/explainer |
[**update_pipeline**](PipelinesApi.md#update_pipeline) | **PUT** /namespaces/{namespace}/pipelines/{name} |
[**update_pipeline_explainer**](PipelinesApi.md#update_pipeline_explainer) | **PUT** /namespaces/{namespace}/pipelines/{name}/explainer |


# **create_pipeline**
Expand Down Expand Up @@ -514,3 +515,62 @@ 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)

# **update_pipeline_explainer**
> SeldonModel update_pipeline_explainer(name, namespace, model, action=action, message=message)


Update the specified Seldon Pipeline Explainer

### Example
```python
from __future__ import print_function
import time
import seldon_deploy_sdk
from seldon_deploy_sdk.rest import ApiException
from pprint import pprint

# Configure OAuth2 access token for authorization: OAuth2
configuration = seldon_deploy_sdk.Configuration()
configuration.access_token = 'YOUR_ACCESS_TOKEN'

# create an instance of the API class
api_instance = seldon_deploy_sdk.PipelinesApi(seldon_deploy_sdk.ApiClient(configuration))
name = 'name_example' # str | Name identifies a resource
namespace = 'namespace_example' # str | Namespace provides a logical grouping of resources
model = seldon_deploy_sdk.Model() # Model | Seldon Model
action = 'action_example' # str | Action (optional)
message = 'message_example' # str | Message (optional)

try:
api_response = api_instance.update_pipeline_explainer(name, namespace, model, action=action, message=message)
pprint(api_response)
except ApiException as e:
print("Exception when calling PipelinesApi->update_pipeline_explainer: %s\n" % e)
```

### Parameters

Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**name** | **str**| Name identifies a resource |
**namespace** | **str**| Namespace provides a logical grouping of resources |
**model** | [**Model**](Model.md)| Seldon Model |
**action** | **str**| Action | [optional]
**message** | **str**| Message | [optional]

### Return type

[**SeldonModel**](SeldonModel.md)

### Authorization

[OAuth2](../README.md#OAuth2)

### HTTP request headers

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

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

Loading

0 comments on commit 1329945

Please sign in to comment.