Skip to content

Commit

Permalink
Re-generate Python SDK (#54)
Browse files Browse the repository at this point in the history
  • Loading branch information
Adrian Gonzalez-Martin authored Jan 31, 2023
1 parent af04dd7 commit f2986fe
Show file tree
Hide file tree
Showing 38 changed files with 2,185 additions and 23 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.0",
"packageVersion": "2.0.1",
"packageUrl": "https://deploy.seldon.io"
}
11 changes: 10 additions & 1 deletion 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.0
- Package version: 2.0.1
- Build package: io.swagger.codegen.languages.PythonClientCodegen

## Requirements.
Expand Down Expand Up @@ -111,13 +111,18 @@ Class | Method | HTTP request | Description
*ExperimentsApi* | [**update_pipeline_experiment**](docs/ExperimentsApi.md#update_pipeline_experiment) | **PUT** /namespaces/{namespace}/pipelines/{name}/experiment |
*ExplainApi* | [**explain_seldon_deployment**](docs/ExplainApi.md#explain_seldon_deployment) | **POST** /namespaces/{namespace}/seldondeployments/{name}/explain |
*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_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 |
*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 |
*LoadtestJobsApi* | [**create_loadtest_seldon_deployment**](docs/LoadtestJobsApi.md#create_loadtest_seldon_deployment) | **POST** /namespaces/{namespace}/seldondeployments/{name}/loadtestjobs |
Expand Down Expand Up @@ -479,6 +484,10 @@ Class | Method | HTTP request | Description
- [V1DeleteSecretResponse](docs/V1DeleteSecretResponse.md)
- [V1DeleteUserFromGroupResponse](docs/V1DeleteUserFromGroupResponse.md)
- [V1DeleteUserResponse](docs/V1DeleteUserResponse.md)
- [V1DependencyHealthResponse](docs/V1DependencyHealthResponse.md)
- [V1DeployDependency](docs/V1DeployDependency.md)
- [V1DeployDependencyHealth](docs/V1DeployDependencyHealth.md)
- [V1DeployDependencyStatus](docs/V1DeployDependencyStatus.md)
- [V1DeploymentStatus](docs/V1DeploymentStatus.md)
- [V1DeploymentType](docs/V1DeploymentType.md)
- [V1FeatureCategorySchema](docs/V1FeatureCategorySchema.md)
Expand Down
1 change: 1 addition & 0 deletions python/docs/BasicDetectorConfiguration.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ Name | Type | Description | Notes
**drift_batch_size** | **str** | | [optional]
**drift_type_feature** | **bool** | | [optional]
**env_secret_ref** | **str** | | [optional]
**project** | **str** | | [optional]
**storage_uri** | **str** | | [optional]

[[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
1 change: 1 addition & 0 deletions python/docs/DetectorDeploymentConfiguration.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ Name | Type | Description | Notes
**event_source** | **str** | | [optional]
**event_type** | **str** | | [optional]
**http_port** | **str** | | [optional]
**memory_requirement** | **str** | | [optional]
**model_name** | **str** | | [optional]
**prom_scraping** | **bool** | | [optional]
**protocol** | **str** | | [optional]
Expand Down
220 changes: 220 additions & 0 deletions python/docs/GitOpsApi.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,11 @@ All URIs are relative to *http://X.X.X.X/seldon-deploy/api/v1alpha1*

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_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 |
Expand All @@ -13,6 +17,114 @@ Method | HTTP request | Description
[**seldon_deployment_git_revert**](GitOpsApi.md#seldon_deployment_git_revert) | **GET** /namespaces/{namespace}/seldondeployments/{name}/gitrevert |


# **read_experiment_git_diff**
> FileDiff read_experiment_git_diff(name, namespace, hash=hash)


Read the git diff for an experiment

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

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

### Parameters

Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**name** | **str**| Name identifies a resource |
**namespace** | **str**| Namespace provides a logical grouping of resources |
**hash** | **str**| Hash | [optional]

### Return type

[**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_experiment_git_logs**
> list[AuditLog] read_experiment_git_logs(name, namespace)


Read the git commits for an experiment

### 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))
name = 'name_example' # str | Name identifies a resource
namespace = 'namespace_example' # str | Namespace provides a logical grouping of resources

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

### Parameters

Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**name** | **str**| Name identifies a resource |
**namespace** | **str**| Namespace provides a logical grouping of resources |

### Return type

[**list[AuditLog]**](AuditLog.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 @@ -64,6 +176,114 @@ 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_model_git_diff**
> FileDiff read_model_git_diff(name, namespace, hash=hash)


Read the git diff for a model

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

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

### Parameters

Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**name** | **str**| Name identifies a resource |
**namespace** | **str**| Namespace provides a logical grouping of resources |
**hash** | **str**| Hash | [optional]

### Return type

[**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_model_git_logs**
> list[AuditLog] read_model_git_logs(name, namespace)


Read the git commits for a model

### 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))
name = 'name_example' # str | Name identifies a resource
namespace = 'namespace_example' # str | Namespace provides a logical grouping of resources

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

### Parameters

Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**name** | **str**| Name identifies a resource |
**namespace** | **str**| Namespace provides a logical grouping of resources |

### Return type

[**list[AuditLog]**](AuditLog.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_pipeline_git_diff**
> FileDiff read_pipeline_git_diff(name, namespace, hash=hash)
Expand Down
59 changes: 59 additions & 0 deletions python/docs/HealthcheckServiceApi.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
# seldon_deploy_sdk.HealthcheckServiceApi

All URIs are relative to *http://X.X.X.X/seldon-deploy/api/v1alpha1*

Method | HTTP request | Description
------------- | ------------- | -------------
[**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


# **healthcheck_service_get_dependency_health**
> V1DependencyHealthResponse healthcheck_service_get_dependency_health(dependency)
List the current health of a specific Seldon Deploy dependency or all of them

### 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.HealthcheckServiceApi(seldon_deploy_sdk.ApiClient(configuration))
dependency = 'dependency_example' # str |

try:
# List the current health of a specific Seldon Deploy dependency or all of them
api_response = api_instance.healthcheck_service_get_dependency_health(dependency)
pprint(api_response)
except ApiException as e:
print("Exception when calling HealthcheckServiceApi->healthcheck_service_get_dependency_health: %s\n" % e)
```

### Parameters

Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**dependency** | **str**| |

### Return type

[**V1DependencyHealthResponse**](V1DependencyHealthResponse.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)

4 changes: 2 additions & 2 deletions python/docs/ModelSpec.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@ Name | Type | Description | Notes
**dedicated** | **bool** | Dedicated server exclusive to this model Default false | [optional]
**explainer** | [**ExplainerSpec**](ExplainerSpec.md) | | [optional]
**logger** | [**LoggingSpec**](LoggingSpec.md) | | [optional]
**max_replicas** | **int** | Max number of replicas - default equal to replicas | [optional]
**max_replicas** | **int** | Max number of replicas - default equal to 0 | [optional]
**memory** | [**Quantity**](Quantity.md) | | [optional]
**min_replicas** | **int** | Min number of replicas - default equal to replicas | [optional]
**min_replicas** | **int** | Min number of replicas - default equal to 0 | [optional]
**model_type** | **str** | Model type +optional | [optional]
**parameters** | [**list[ParameterSpec]**](ParameterSpec.md) | Parameters to load with model | [optional]
**preloaded** | **bool** | Model already loaded on a server. Don't schedule. Default false | [optional]
Expand Down
10 changes: 10 additions & 0 deletions python/docs/V1DependencyHealthResponse.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
# V1DependencyHealthResponse

## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**dependencies_health** | [**list[V1DeployDependencyHealth]**](V1DeployDependencyHealth.md) | | [optional]

[[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 changes: 9 additions & 0 deletions python/docs/V1DeployDependency.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# V1DeployDependency

## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------

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


Loading

0 comments on commit f2986fe

Please sign in to comment.