Skip to content

Commit 1329945

Browse files
author
Adrian Gonzalez-Martin
authored
Re-generate SDK for Deploy 2.1.0 (#57)
1 parent 1cf2cd7 commit 1329945

29 files changed

+749
-52
lines changed

config/python.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"projectName": "seldon-deploy-sdk",
33
"packageName": "seldon_deploy_sdk",
4-
"packageVersion": "2.0.1",
4+
"packageVersion": "2.1.0",
55
"packageUrl": "https://deploy.seldon.io"
66
}

python/README.md

+6-3
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ API to interact and manage the lifecycle of your machine learning models deploye
44
This Python package is automatically generated by the [Swagger Codegen](https://github.com/swagger-api/swagger-codegen) project:
55

66
- API version: v1alpha1
7-
- Package version: 2.0.1
7+
- Package version: 2.1.0
88
- Build package: io.swagger.codegen.languages.PythonClientCodegen
99

1010
## Requirements.
@@ -113,15 +113,16 @@ Class | Method | HTTP request | Description
113113
*ExplainApi* | [**explain_seldon_pipeline**](docs/ExplainApi.md#explain_seldon_pipeline) | **POST** /namespaces/{namespace}/pipelines/{name}/explain |
114114
*GitOpsApi* | [**read_experiment_git_diff**](docs/GitOpsApi.md#read_experiment_git_diff) | **GET** /namespaces/{namespace}/experiments/{name}/gitdiff |
115115
*GitOpsApi* | [**read_experiment_git_logs**](docs/GitOpsApi.md#read_experiment_git_logs) | **GET** /namespaces/{namespace}/experiments/{name}/gitlogs |
116+
*GitOpsApi* | [**read_git_diffs**](docs/GitOpsApi.md#read_git_diffs) | **GET** /namespaces/{namespace}/gitdiffs |
116117
*GitOpsApi* | [**read_git_ops_status**](docs/GitOpsApi.md#read_git_ops_status) | **GET** /namespaces/{namespace}/gitops-status |
117118
*GitOpsApi* | [**read_model_git_diff**](docs/GitOpsApi.md#read_model_git_diff) | **GET** /namespaces/{namespace}/models/{name}/gitdiff |
118119
*GitOpsApi* | [**read_model_git_logs**](docs/GitOpsApi.md#read_model_git_logs) | **GET** /namespaces/{namespace}/models/{name}/gitlogs |
119120
*GitOpsApi* | [**read_pipeline_git_diff**](docs/GitOpsApi.md#read_pipeline_git_diff) | **GET** /namespaces/{namespace}/pipelines/{name}/gitdiff |
120121
*GitOpsApi* | [**read_pipeline_git_logs**](docs/GitOpsApi.md#read_pipeline_git_logs) | **GET** /namespaces/{namespace}/pipelines/{name}/gitlogs |
121122
*GitOpsApi* | [**read_seldon_deployment_git_diff**](docs/GitOpsApi.md#read_seldon_deployment_git_diff) | **GET** /namespaces/{namespace}/seldondeployments/{name}/gitdiff |
122123
*GitOpsApi* | [**read_seldon_deployment_git_logs**](docs/GitOpsApi.md#read_seldon_deployment_git_logs) | **GET** /namespaces/{namespace}/seldondeployments/{name}/gitlogs |
123-
*GitOpsApi* | [**seldon_deployment_git_restore**](docs/GitOpsApi.md#seldon_deployment_git_restore) | **GET** /namespaces/{namespace}/seldondeployments/{name}/gitrestore |
124-
*GitOpsApi* | [**seldon_deployment_git_revert**](docs/GitOpsApi.md#seldon_deployment_git_revert) | **GET** /namespaces/{namespace}/seldondeployments/{name}/gitrevert |
124+
*GitOpsApi* | [**seldon_deployment_git_restore**](docs/GitOpsApi.md#seldon_deployment_git_restore) | **POST** /namespaces/{namespace}/seldondeployments/{name}/gitrestore |
125+
*GitOpsApi* | [**seldon_deployment_git_revert**](docs/GitOpsApi.md#seldon_deployment_git_revert) | **POST** /namespaces/{namespace}/seldondeployments/{name}/gitrevert |
125126
*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
126127
*KubernetesResourcesApi* | [**list_seldon_deployment_resources**](docs/KubernetesResourcesApi.md#list_seldon_deployment_resources) | **GET** /namespaces/{namespace}/seldondeployments/{name}/resources |
127128
*LoadtestJobsApi* | [**create_loadtest_pipeline**](docs/LoadtestJobsApi.md#create_loadtest_pipeline) | **POST** /namespaces/{namespace}/pipelines/{name}/loadtestjobs |
@@ -179,6 +180,7 @@ Class | Method | HTTP request | Description
179180
*PipelinesApi* | [**read_pipeline**](docs/PipelinesApi.md#read_pipeline) | **GET** /namespaces/{namespace}/pipelines/{name} |
180181
*PipelinesApi* | [**read_pipeline_explainer**](docs/PipelinesApi.md#read_pipeline_explainer) | **GET** /namespaces/{namespace}/pipelines/{name}/explainer |
181182
*PipelinesApi* | [**update_pipeline**](docs/PipelinesApi.md#update_pipeline) | **PUT** /namespaces/{namespace}/pipelines/{name} |
183+
*PipelinesApi* | [**update_pipeline_explainer**](docs/PipelinesApi.md#update_pipeline_explainer) | **PUT** /namespaces/{namespace}/pipelines/{name}/explainer |
182184
*PredictApi* | [**predict_file_seldon_deployment**](docs/PredictApi.md#predict_file_seldon_deployment) | **POST** /namespaces/{namespace}/seldondeployments/{name}/predictfile |
183185
*PredictApi* | [**predict_file_seldon_pipeline**](docs/PredictApi.md#predict_file_seldon_pipeline) | **POST** /namespaces/{namespace}/pipelines/{name}/predictfile |
184186
*PredictApi* | [**predict_seldon_deployment**](docs/PredictApi.md#predict_seldon_deployment) | **POST** /namespaces/{namespace}/seldondeployments/{name}/predict |
@@ -468,6 +470,7 @@ Class | Method | HTTP request | Description
468470
- [UserInfo](docs/UserInfo.md)
469471
- [V1AddUserToGroupResponse](docs/V1AddUserToGroupResponse.md)
470472
- [V1ArtifactType](docs/V1ArtifactType.md)
473+
- [V1BucketSecretFormat](docs/V1BucketSecretFormat.md)
471474
- [V1CreateGCSBucketSecretResponse](docs/V1CreateGCSBucketSecretResponse.md)
472475
- [V1CreateGroupRequest](docs/V1CreateGroupRequest.md)
473476
- [V1CreateGroupResponse](docs/V1CreateGroupResponse.md)

python/docs/BatchJobDefinition.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ Name | Type | Description | Notes
55
------------ | ------------- | ------------- | -------------
66
**batch_data_type** | **str** | Batch Data Type (data, json or str) | [optional]
77
**batch_interval** | **float** | Interval between batches | [optional]
8-
**batch_method** | **str** | Batch Method (predict) | [optional]
8+
**batch_method** | **str** | Batch Method (predict, feedback (for SCv1)) | [optional]
99
**batch_payload_type** | **str** | Batch Payload Type (ndarray, tensor, tftensor, v2raw, v2binary - only if DataType=data) | [optional]
1010
**batch_retries** | **int** | Number of retries for each instance | [optional]
1111
**batch_size** | **int** | Size of the batch (number of predictions per request) | [optional]

python/docs/GitOpsApi.md

+64-6
Original file line numberDiff line numberDiff line change
@@ -6,15 +6,16 @@ Method | HTTP request | Description
66
------------- | ------------- | -------------
77
[**read_experiment_git_diff**](GitOpsApi.md#read_experiment_git_diff) | **GET** /namespaces/{namespace}/experiments/{name}/gitdiff |
88
[**read_experiment_git_logs**](GitOpsApi.md#read_experiment_git_logs) | **GET** /namespaces/{namespace}/experiments/{name}/gitlogs |
9+
[**read_git_diffs**](GitOpsApi.md#read_git_diffs) | **GET** /namespaces/{namespace}/gitdiffs |
910
[**read_git_ops_status**](GitOpsApi.md#read_git_ops_status) | **GET** /namespaces/{namespace}/gitops-status |
1011
[**read_model_git_diff**](GitOpsApi.md#read_model_git_diff) | **GET** /namespaces/{namespace}/models/{name}/gitdiff |
1112
[**read_model_git_logs**](GitOpsApi.md#read_model_git_logs) | **GET** /namespaces/{namespace}/models/{name}/gitlogs |
1213
[**read_pipeline_git_diff**](GitOpsApi.md#read_pipeline_git_diff) | **GET** /namespaces/{namespace}/pipelines/{name}/gitdiff |
1314
[**read_pipeline_git_logs**](GitOpsApi.md#read_pipeline_git_logs) | **GET** /namespaces/{namespace}/pipelines/{name}/gitlogs |
1415
[**read_seldon_deployment_git_diff**](GitOpsApi.md#read_seldon_deployment_git_diff) | **GET** /namespaces/{namespace}/seldondeployments/{name}/gitdiff |
1516
[**read_seldon_deployment_git_logs**](GitOpsApi.md#read_seldon_deployment_git_logs) | **GET** /namespaces/{namespace}/seldondeployments/{name}/gitlogs |
16-
[**seldon_deployment_git_restore**](GitOpsApi.md#seldon_deployment_git_restore) | **GET** /namespaces/{namespace}/seldondeployments/{name}/gitrestore |
17-
[**seldon_deployment_git_revert**](GitOpsApi.md#seldon_deployment_git_revert) | **GET** /namespaces/{namespace}/seldondeployments/{name}/gitrevert |
17+
[**seldon_deployment_git_restore**](GitOpsApi.md#seldon_deployment_git_restore) | **POST** /namespaces/{namespace}/seldondeployments/{name}/gitrestore |
18+
[**seldon_deployment_git_revert**](GitOpsApi.md#seldon_deployment_git_revert) | **POST** /namespaces/{namespace}/seldondeployments/{name}/gitrevert |
1819

1920

2021
# **read_experiment_git_diff**
@@ -125,6 +126,59 @@ Name | Type | Description | Notes
125126

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

129+
# **read_git_diffs**
130+
> list[FileDiff] read_git_diffs(hashes, namespace)
131+
132+
133+
134+
Read the git diffs from hashes
135+
136+
### Example
137+
```python
138+
from __future__ import print_function
139+
import time
140+
import seldon_deploy_sdk
141+
from seldon_deploy_sdk.rest import ApiException
142+
from pprint import pprint
143+
144+
# Configure OAuth2 access token for authorization: OAuth2
145+
configuration = seldon_deploy_sdk.Configuration()
146+
configuration.access_token = 'YOUR_ACCESS_TOKEN'
147+
148+
# create an instance of the API class
149+
api_instance = seldon_deploy_sdk.GitOpsApi(seldon_deploy_sdk.ApiClient(configuration))
150+
hashes = ['hashes_example'] # list[str] | Hashes is an array of git commit hashes to get diffs for
151+
namespace = 'namespace_example' # str | Namespace provides a logical grouping of resources
152+
153+
try:
154+
api_response = api_instance.read_git_diffs(hashes, namespace)
155+
pprint(api_response)
156+
except ApiException as e:
157+
print("Exception when calling GitOpsApi->read_git_diffs: %s\n" % e)
158+
```
159+
160+
### Parameters
161+
162+
Name | Type | Description | Notes
163+
------------- | ------------- | ------------- | -------------
164+
**hashes** | [**list[str]**](str.md)| Hashes is an array of git commit hashes to get diffs for |
165+
**namespace** | **str**| Namespace provides a logical grouping of resources |
166+
167+
### Return type
168+
169+
[**list[FileDiff]**](FileDiff.md)
170+
171+
### Authorization
172+
173+
[OAuth2](../README.md#OAuth2)
174+
175+
### HTTP request headers
176+
177+
- **Content-Type**: application/json
178+
- **Accept**: application/json
179+
180+
[[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)
181+
128182
# **read_git_ops_status**
129183
> object read_git_ops_status(namespace)
130184
@@ -501,7 +555,7 @@ Name | Type | Description | Notes
501555
[[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)
502556

503557
# **seldon_deployment_git_restore**
504-
> Message seldon_deployment_git_restore(name, namespace, hash=hash, message=message)
558+
> Message seldon_deployment_git_restore(name, namespace, hash=hash, action=action, message=message)
505559
506560

507561

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

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

545601
### Return type
@@ -558,7 +614,7 @@ Name | Type | Description | Notes
558614
[[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)
559615

560616
# **seldon_deployment_git_revert**
561-
> Message seldon_deployment_git_revert(name, namespace, hash=hash, message=message)
617+
> Message seldon_deployment_git_revert(name, namespace, hash=hash, action=action, message=message)
562618
563619

564620

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

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

602660
### Return type

python/docs/PipelinesApi.md

+60
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ Method | HTTP request | Description
1313
[**read_pipeline**](PipelinesApi.md#read_pipeline) | **GET** /namespaces/{namespace}/pipelines/{name} |
1414
[**read_pipeline_explainer**](PipelinesApi.md#read_pipeline_explainer) | **GET** /namespaces/{namespace}/pipelines/{name}/explainer |
1515
[**update_pipeline**](PipelinesApi.md#update_pipeline) | **PUT** /namespaces/{namespace}/pipelines/{name} |
16+
[**update_pipeline_explainer**](PipelinesApi.md#update_pipeline_explainer) | **PUT** /namespaces/{namespace}/pipelines/{name}/explainer |
1617

1718

1819
# **create_pipeline**
@@ -514,3 +515,62 @@ Name | Type | Description | Notes
514515

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

518+
# **update_pipeline_explainer**
519+
> SeldonModel update_pipeline_explainer(name, namespace, model, action=action, message=message)
520+
521+
522+
523+
Update the specified Seldon Pipeline Explainer
524+
525+
### Example
526+
```python
527+
from __future__ import print_function
528+
import time
529+
import seldon_deploy_sdk
530+
from seldon_deploy_sdk.rest import ApiException
531+
from pprint import pprint
532+
533+
# Configure OAuth2 access token for authorization: OAuth2
534+
configuration = seldon_deploy_sdk.Configuration()
535+
configuration.access_token = 'YOUR_ACCESS_TOKEN'
536+
537+
# create an instance of the API class
538+
api_instance = seldon_deploy_sdk.PipelinesApi(seldon_deploy_sdk.ApiClient(configuration))
539+
name = 'name_example' # str | Name identifies a resource
540+
namespace = 'namespace_example' # str | Namespace provides a logical grouping of resources
541+
model = seldon_deploy_sdk.Model() # Model | Seldon Model
542+
action = 'action_example' # str | Action (optional)
543+
message = 'message_example' # str | Message (optional)
544+
545+
try:
546+
api_response = api_instance.update_pipeline_explainer(name, namespace, model, action=action, message=message)
547+
pprint(api_response)
548+
except ApiException as e:
549+
print("Exception when calling PipelinesApi->update_pipeline_explainer: %s\n" % e)
550+
```
551+
552+
### Parameters
553+
554+
Name | Type | Description | Notes
555+
------------- | ------------- | ------------- | -------------
556+
**name** | **str**| Name identifies a resource |
557+
**namespace** | **str**| Namespace provides a logical grouping of resources |
558+
**model** | [**Model**](Model.md)| Seldon Model |
559+
**action** | **str**| Action | [optional]
560+
**message** | **str**| Message | [optional]
561+
562+
### Return type
563+
564+
[**SeldonModel**](SeldonModel.md)
565+
566+
### Authorization
567+
568+
[OAuth2](../README.md#OAuth2)
569+
570+
### HTTP request headers
571+
572+
- **Content-Type**: application/json
573+
- **Accept**: application/json
574+
575+
[[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)
576+

0 commit comments

Comments
 (0)