Skip to content

Commit f2986fe

Browse files
author
Adrian Gonzalez-Martin
authored
Re-generate Python SDK (#54)
1 parent af04dd7 commit f2986fe

38 files changed

+2185
-23
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.0",
4+
"packageVersion": "2.0.1",
55
"packageUrl": "https://deploy.seldon.io"
66
}

python/README.md

+10-1
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.0
7+
- Package version: 2.0.1
88
- Build package: io.swagger.codegen.languages.PythonClientCodegen
99

1010
## Requirements.
@@ -111,13 +111,18 @@ Class | Method | HTTP request | Description
111111
*ExperimentsApi* | [**update_pipeline_experiment**](docs/ExperimentsApi.md#update_pipeline_experiment) | **PUT** /namespaces/{namespace}/pipelines/{name}/experiment |
112112
*ExplainApi* | [**explain_seldon_deployment**](docs/ExplainApi.md#explain_seldon_deployment) | **POST** /namespaces/{namespace}/seldondeployments/{name}/explain |
113113
*ExplainApi* | [**explain_seldon_pipeline**](docs/ExplainApi.md#explain_seldon_pipeline) | **POST** /namespaces/{namespace}/pipelines/{name}/explain |
114+
*GitOpsApi* | [**read_experiment_git_diff**](docs/GitOpsApi.md#read_experiment_git_diff) | **GET** /namespaces/{namespace}/experiments/{name}/gitdiff |
115+
*GitOpsApi* | [**read_experiment_git_logs**](docs/GitOpsApi.md#read_experiment_git_logs) | **GET** /namespaces/{namespace}/experiments/{name}/gitlogs |
114116
*GitOpsApi* | [**read_git_ops_status**](docs/GitOpsApi.md#read_git_ops_status) | **GET** /namespaces/{namespace}/gitops-status |
117+
*GitOpsApi* | [**read_model_git_diff**](docs/GitOpsApi.md#read_model_git_diff) | **GET** /namespaces/{namespace}/models/{name}/gitdiff |
118+
*GitOpsApi* | [**read_model_git_logs**](docs/GitOpsApi.md#read_model_git_logs) | **GET** /namespaces/{namespace}/models/{name}/gitlogs |
115119
*GitOpsApi* | [**read_pipeline_git_diff**](docs/GitOpsApi.md#read_pipeline_git_diff) | **GET** /namespaces/{namespace}/pipelines/{name}/gitdiff |
116120
*GitOpsApi* | [**read_pipeline_git_logs**](docs/GitOpsApi.md#read_pipeline_git_logs) | **GET** /namespaces/{namespace}/pipelines/{name}/gitlogs |
117121
*GitOpsApi* | [**read_seldon_deployment_git_diff**](docs/GitOpsApi.md#read_seldon_deployment_git_diff) | **GET** /namespaces/{namespace}/seldondeployments/{name}/gitdiff |
118122
*GitOpsApi* | [**read_seldon_deployment_git_logs**](docs/GitOpsApi.md#read_seldon_deployment_git_logs) | **GET** /namespaces/{namespace}/seldondeployments/{name}/gitlogs |
119123
*GitOpsApi* | [**seldon_deployment_git_restore**](docs/GitOpsApi.md#seldon_deployment_git_restore) | **GET** /namespaces/{namespace}/seldondeployments/{name}/gitrestore |
120124
*GitOpsApi* | [**seldon_deployment_git_revert**](docs/GitOpsApi.md#seldon_deployment_git_revert) | **GET** /namespaces/{namespace}/seldondeployments/{name}/gitrevert |
125+
*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
121126
*KubernetesResourcesApi* | [**list_seldon_deployment_resources**](docs/KubernetesResourcesApi.md#list_seldon_deployment_resources) | **GET** /namespaces/{namespace}/seldondeployments/{name}/resources |
122127
*LoadtestJobsApi* | [**create_loadtest_pipeline**](docs/LoadtestJobsApi.md#create_loadtest_pipeline) | **POST** /namespaces/{namespace}/pipelines/{name}/loadtestjobs |
123128
*LoadtestJobsApi* | [**create_loadtest_seldon_deployment**](docs/LoadtestJobsApi.md#create_loadtest_seldon_deployment) | **POST** /namespaces/{namespace}/seldondeployments/{name}/loadtestjobs |
@@ -479,6 +484,10 @@ Class | Method | HTTP request | Description
479484
- [V1DeleteSecretResponse](docs/V1DeleteSecretResponse.md)
480485
- [V1DeleteUserFromGroupResponse](docs/V1DeleteUserFromGroupResponse.md)
481486
- [V1DeleteUserResponse](docs/V1DeleteUserResponse.md)
487+
- [V1DependencyHealthResponse](docs/V1DependencyHealthResponse.md)
488+
- [V1DeployDependency](docs/V1DeployDependency.md)
489+
- [V1DeployDependencyHealth](docs/V1DeployDependencyHealth.md)
490+
- [V1DeployDependencyStatus](docs/V1DeployDependencyStatus.md)
482491
- [V1DeploymentStatus](docs/V1DeploymentStatus.md)
483492
- [V1DeploymentType](docs/V1DeploymentType.md)
484493
- [V1FeatureCategorySchema](docs/V1FeatureCategorySchema.md)

python/docs/BasicDetectorConfiguration.md

+1
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ Name | Type | Description | Notes
66
**drift_batch_size** | **str** | | [optional]
77
**drift_type_feature** | **bool** | | [optional]
88
**env_secret_ref** | **str** | | [optional]
9+
**project** | **str** | | [optional]
910
**storage_uri** | **str** | | [optional]
1011

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

python/docs/DetectorDeploymentConfiguration.md

+1
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ Name | Type | Description | Notes
66
**event_source** | **str** | | [optional]
77
**event_type** | **str** | | [optional]
88
**http_port** | **str** | | [optional]
9+
**memory_requirement** | **str** | | [optional]
910
**model_name** | **str** | | [optional]
1011
**prom_scraping** | **bool** | | [optional]
1112
**protocol** | **str** | | [optional]

python/docs/GitOpsApi.md

+220
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,11 @@ All URIs are relative to *http://X.X.X.X/seldon-deploy/api/v1alpha1*
44

55
Method | HTTP request | Description
66
------------- | ------------- | -------------
7+
[**read_experiment_git_diff**](GitOpsApi.md#read_experiment_git_diff) | **GET** /namespaces/{namespace}/experiments/{name}/gitdiff |
8+
[**read_experiment_git_logs**](GitOpsApi.md#read_experiment_git_logs) | **GET** /namespaces/{namespace}/experiments/{name}/gitlogs |
79
[**read_git_ops_status**](GitOpsApi.md#read_git_ops_status) | **GET** /namespaces/{namespace}/gitops-status |
10+
[**read_model_git_diff**](GitOpsApi.md#read_model_git_diff) | **GET** /namespaces/{namespace}/models/{name}/gitdiff |
11+
[**read_model_git_logs**](GitOpsApi.md#read_model_git_logs) | **GET** /namespaces/{namespace}/models/{name}/gitlogs |
812
[**read_pipeline_git_diff**](GitOpsApi.md#read_pipeline_git_diff) | **GET** /namespaces/{namespace}/pipelines/{name}/gitdiff |
913
[**read_pipeline_git_logs**](GitOpsApi.md#read_pipeline_git_logs) | **GET** /namespaces/{namespace}/pipelines/{name}/gitlogs |
1014
[**read_seldon_deployment_git_diff**](GitOpsApi.md#read_seldon_deployment_git_diff) | **GET** /namespaces/{namespace}/seldondeployments/{name}/gitdiff |
@@ -13,6 +17,114 @@ Method | HTTP request | Description
1317
[**seldon_deployment_git_revert**](GitOpsApi.md#seldon_deployment_git_revert) | **GET** /namespaces/{namespace}/seldondeployments/{name}/gitrevert |
1418

1519

20+
# **read_experiment_git_diff**
21+
> FileDiff read_experiment_git_diff(name, namespace, hash=hash)
22+
23+
24+
25+
Read the git diff for an experiment
26+
27+
### Example
28+
```python
29+
from __future__ import print_function
30+
import time
31+
import seldon_deploy_sdk
32+
from seldon_deploy_sdk.rest import ApiException
33+
from pprint import pprint
34+
35+
# Configure OAuth2 access token for authorization: OAuth2
36+
configuration = seldon_deploy_sdk.Configuration()
37+
configuration.access_token = 'YOUR_ACCESS_TOKEN'
38+
39+
# create an instance of the API class
40+
api_instance = seldon_deploy_sdk.GitOpsApi(seldon_deploy_sdk.ApiClient(configuration))
41+
name = 'name_example' # str | Name identifies a resource
42+
namespace = 'namespace_example' # str | Namespace provides a logical grouping of resources
43+
hash = 'hash_example' # str | Hash (optional)
44+
45+
try:
46+
api_response = api_instance.read_experiment_git_diff(name, namespace, hash=hash)
47+
pprint(api_response)
48+
except ApiException as e:
49+
print("Exception when calling GitOpsApi->read_experiment_git_diff: %s\n" % e)
50+
```
51+
52+
### Parameters
53+
54+
Name | Type | Description | Notes
55+
------------- | ------------- | ------------- | -------------
56+
**name** | **str**| Name identifies a resource |
57+
**namespace** | **str**| Namespace provides a logical grouping of resources |
58+
**hash** | **str**| Hash | [optional]
59+
60+
### Return type
61+
62+
[**FileDiff**](FileDiff.md)
63+
64+
### Authorization
65+
66+
[OAuth2](../README.md#OAuth2)
67+
68+
### HTTP request headers
69+
70+
- **Content-Type**: application/json
71+
- **Accept**: application/json
72+
73+
[[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)
74+
75+
# **read_experiment_git_logs**
76+
> list[AuditLog] read_experiment_git_logs(name, namespace)
77+
78+
79+
80+
Read the git commits for an experiment
81+
82+
### Example
83+
```python
84+
from __future__ import print_function
85+
import time
86+
import seldon_deploy_sdk
87+
from seldon_deploy_sdk.rest import ApiException
88+
from pprint import pprint
89+
90+
# Configure OAuth2 access token for authorization: OAuth2
91+
configuration = seldon_deploy_sdk.Configuration()
92+
configuration.access_token = 'YOUR_ACCESS_TOKEN'
93+
94+
# create an instance of the API class
95+
api_instance = seldon_deploy_sdk.GitOpsApi(seldon_deploy_sdk.ApiClient(configuration))
96+
name = 'name_example' # str | Name identifies a resource
97+
namespace = 'namespace_example' # str | Namespace provides a logical grouping of resources
98+
99+
try:
100+
api_response = api_instance.read_experiment_git_logs(name, namespace)
101+
pprint(api_response)
102+
except ApiException as e:
103+
print("Exception when calling GitOpsApi->read_experiment_git_logs: %s\n" % e)
104+
```
105+
106+
### Parameters
107+
108+
Name | Type | Description | Notes
109+
------------- | ------------- | ------------- | -------------
110+
**name** | **str**| Name identifies a resource |
111+
**namespace** | **str**| Namespace provides a logical grouping of resources |
112+
113+
### Return type
114+
115+
[**list[AuditLog]**](AuditLog.md)
116+
117+
### Authorization
118+
119+
[OAuth2](../README.md#OAuth2)
120+
121+
### HTTP request headers
122+
123+
- **Content-Type**: application/json
124+
- **Accept**: application/json
125+
126+
[[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)
127+
16128
# **read_git_ops_status**
17129
> object read_git_ops_status(namespace)
18130
@@ -64,6 +176,114 @@ Name | Type | Description | Notes
64176

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

179+
# **read_model_git_diff**
180+
> FileDiff read_model_git_diff(name, namespace, hash=hash)
181+
182+
183+
184+
Read the git diff for a model
185+
186+
### Example
187+
```python
188+
from __future__ import print_function
189+
import time
190+
import seldon_deploy_sdk
191+
from seldon_deploy_sdk.rest import ApiException
192+
from pprint import pprint
193+
194+
# Configure OAuth2 access token for authorization: OAuth2
195+
configuration = seldon_deploy_sdk.Configuration()
196+
configuration.access_token = 'YOUR_ACCESS_TOKEN'
197+
198+
# create an instance of the API class
199+
api_instance = seldon_deploy_sdk.GitOpsApi(seldon_deploy_sdk.ApiClient(configuration))
200+
name = 'name_example' # str | Name identifies a resource
201+
namespace = 'namespace_example' # str | Namespace provides a logical grouping of resources
202+
hash = 'hash_example' # str | Hash (optional)
203+
204+
try:
205+
api_response = api_instance.read_model_git_diff(name, namespace, hash=hash)
206+
pprint(api_response)
207+
except ApiException as e:
208+
print("Exception when calling GitOpsApi->read_model_git_diff: %s\n" % e)
209+
```
210+
211+
### Parameters
212+
213+
Name | Type | Description | Notes
214+
------------- | ------------- | ------------- | -------------
215+
**name** | **str**| Name identifies a resource |
216+
**namespace** | **str**| Namespace provides a logical grouping of resources |
217+
**hash** | **str**| Hash | [optional]
218+
219+
### Return type
220+
221+
[**FileDiff**](FileDiff.md)
222+
223+
### Authorization
224+
225+
[OAuth2](../README.md#OAuth2)
226+
227+
### HTTP request headers
228+
229+
- **Content-Type**: application/json
230+
- **Accept**: application/json
231+
232+
[[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)
233+
234+
# **read_model_git_logs**
235+
> list[AuditLog] read_model_git_logs(name, namespace)
236+
237+
238+
239+
Read the git commits for a model
240+
241+
### Example
242+
```python
243+
from __future__ import print_function
244+
import time
245+
import seldon_deploy_sdk
246+
from seldon_deploy_sdk.rest import ApiException
247+
from pprint import pprint
248+
249+
# Configure OAuth2 access token for authorization: OAuth2
250+
configuration = seldon_deploy_sdk.Configuration()
251+
configuration.access_token = 'YOUR_ACCESS_TOKEN'
252+
253+
# create an instance of the API class
254+
api_instance = seldon_deploy_sdk.GitOpsApi(seldon_deploy_sdk.ApiClient(configuration))
255+
name = 'name_example' # str | Name identifies a resource
256+
namespace = 'namespace_example' # str | Namespace provides a logical grouping of resources
257+
258+
try:
259+
api_response = api_instance.read_model_git_logs(name, namespace)
260+
pprint(api_response)
261+
except ApiException as e:
262+
print("Exception when calling GitOpsApi->read_model_git_logs: %s\n" % e)
263+
```
264+
265+
### Parameters
266+
267+
Name | Type | Description | Notes
268+
------------- | ------------- | ------------- | -------------
269+
**name** | **str**| Name identifies a resource |
270+
**namespace** | **str**| Namespace provides a logical grouping of resources |
271+
272+
### Return type
273+
274+
[**list[AuditLog]**](AuditLog.md)
275+
276+
### Authorization
277+
278+
[OAuth2](../README.md#OAuth2)
279+
280+
### HTTP request headers
281+
282+
- **Content-Type**: application/json
283+
- **Accept**: application/json
284+
285+
[[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)
286+
67287
# **read_pipeline_git_diff**
68288
> FileDiff read_pipeline_git_diff(name, namespace, hash=hash)
69289

python/docs/HealthcheckServiceApi.md

+59
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,59 @@
1+
# seldon_deploy_sdk.HealthcheckServiceApi
2+
3+
All URIs are relative to *http://X.X.X.X/seldon-deploy/api/v1alpha1*
4+
5+
Method | HTTP request | Description
6+
------------- | ------------- | -------------
7+
[**healthcheck_service_get_dependency_health**](HealthcheckServiceApi.md#healthcheck_service_get_dependency_health) | **GET** /healthcheck/{dependency} | List the current health of a specific Seldon Deploy dependency or all of them
8+
9+
10+
# **healthcheck_service_get_dependency_health**
11+
> V1DependencyHealthResponse healthcheck_service_get_dependency_health(dependency)
12+
13+
List the current health of a specific Seldon Deploy dependency or all of them
14+
15+
### Example
16+
```python
17+
from __future__ import print_function
18+
import time
19+
import seldon_deploy_sdk
20+
from seldon_deploy_sdk.rest import ApiException
21+
from pprint import pprint
22+
23+
# Configure OAuth2 access token for authorization: OAuth2
24+
configuration = seldon_deploy_sdk.Configuration()
25+
configuration.access_token = 'YOUR_ACCESS_TOKEN'
26+
27+
# create an instance of the API class
28+
api_instance = seldon_deploy_sdk.HealthcheckServiceApi(seldon_deploy_sdk.ApiClient(configuration))
29+
dependency = 'dependency_example' # str |
30+
31+
try:
32+
# List the current health of a specific Seldon Deploy dependency or all of them
33+
api_response = api_instance.healthcheck_service_get_dependency_health(dependency)
34+
pprint(api_response)
35+
except ApiException as e:
36+
print("Exception when calling HealthcheckServiceApi->healthcheck_service_get_dependency_health: %s\n" % e)
37+
```
38+
39+
### Parameters
40+
41+
Name | Type | Description | Notes
42+
------------- | ------------- | ------------- | -------------
43+
**dependency** | **str**| |
44+
45+
### Return type
46+
47+
[**V1DependencyHealthResponse**](V1DependencyHealthResponse.md)
48+
49+
### Authorization
50+
51+
[OAuth2](../README.md#OAuth2)
52+
53+
### HTTP request headers
54+
55+
- **Content-Type**: application/json
56+
- **Accept**: application/json
57+
58+
[[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)
59+

python/docs/ModelSpec.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,9 @@ Name | Type | Description | Notes
77
**dedicated** | **bool** | Dedicated server exclusive to this model Default false | [optional]
88
**explainer** | [**ExplainerSpec**](ExplainerSpec.md) | | [optional]
99
**logger** | [**LoggingSpec**](LoggingSpec.md) | | [optional]
10-
**max_replicas** | **int** | Max number of replicas - default equal to replicas | [optional]
10+
**max_replicas** | **int** | Max number of replicas - default equal to 0 | [optional]
1111
**memory** | [**Quantity**](Quantity.md) | | [optional]
12-
**min_replicas** | **int** | Min number of replicas - default equal to replicas | [optional]
12+
**min_replicas** | **int** | Min number of replicas - default equal to 0 | [optional]
1313
**model_type** | **str** | Model type +optional | [optional]
1414
**parameters** | [**list[ParameterSpec]**](ParameterSpec.md) | Parameters to load with model | [optional]
1515
**preloaded** | **bool** | Model already loaded on a server. Don't schedule. Default false | [optional]
+10
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
# V1DependencyHealthResponse
2+
3+
## Properties
4+
Name | Type | Description | Notes
5+
------------ | ------------- | ------------- | -------------
6+
**dependencies_health** | [**list[V1DeployDependencyHealth]**](V1DeployDependencyHealth.md) | | [optional]
7+
8+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
9+
10+

python/docs/V1DeployDependency.md

+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
# V1DeployDependency
2+
3+
## Properties
4+
Name | Type | Description | Notes
5+
------------ | ------------- | ------------- | -------------
6+
7+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
8+
9+

0 commit comments

Comments
 (0)