Skip to content

Commit

Permalink
Update SDK with latest addition of PyfuncEnsemblers
Browse files Browse the repository at this point in the history
  • Loading branch information
deadlycoconuts committed Mar 3, 2022
1 parent de81de9 commit 3634821
Show file tree
Hide file tree
Showing 12 changed files with 116 additions and 702 deletions.
1 change: 0 additions & 1 deletion sdk/samples/router/create_from_existing_router.py
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,6 @@ def main(turing_api: str, project: str):

# Create an ensembler for the router
ensembler = DockerRouterEnsemblerConfig(
id=1,
image="ealen/echo-server:0.5.1",
resource_request=ResourceRequest(
min_replica=1,
Expand Down
1 change: 0 additions & 1 deletion sdk/samples/router/general.py
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,6 @@ def main(turing_api: str, project: str):

# Create an ensembler for the router
ensembler = DockerRouterEnsemblerConfig(
id=1,
image="ealen/echo-server:0.5.1",
resource_request=ResourceRequest(
min_replica=1,
Expand Down
31 changes: 15 additions & 16 deletions sdk/turing/generated/api/router_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,12 +21,11 @@
none_type,
validate_and_convert_types
)
from turing.generated.model.inline_response200 import InlineResponse200
from turing.generated.model.inline_response2001 import InlineResponse2001
from turing.generated.model.inline_response2002 import InlineResponse2002
from turing.generated.model.inline_response202 import InlineResponse202
from turing.generated.model.event import Event
from turing.generated.model.id_object import IdObject
from turing.generated.model.router_config import RouterConfig
from turing.generated.model.router_details import RouterDetails
from turing.generated.model.router_id_and_version import RouterIdAndVersion
from turing.generated.model.router_version import RouterVersion


Expand Down Expand Up @@ -325,7 +324,7 @@ def __projects_project_id_routers_router_id_delete(
async_req (bool): execute request asynchronously
Returns:
InlineResponse200
IdObject
If the method is called asynchronously, returns the request
thread.
"""
Expand Down Expand Up @@ -356,7 +355,7 @@ def __projects_project_id_routers_router_id_delete(

self.projects_project_id_routers_router_id_delete = _Endpoint(
settings={
'response_type': (InlineResponse200,),
'response_type': (IdObject,),
'auth': [],
'endpoint_path': '/projects/{project_id}/routers/{router_id}',
'operation_id': 'projects_project_id_routers_router_id_delete',
Expand Down Expand Up @@ -451,7 +450,7 @@ def __projects_project_id_routers_router_id_deploy_post(
async_req (bool): execute request asynchronously
Returns:
InlineResponse202
RouterIdAndVersion
If the method is called asynchronously, returns the request
thread.
"""
Expand Down Expand Up @@ -482,7 +481,7 @@ def __projects_project_id_routers_router_id_deploy_post(

self.projects_project_id_routers_router_id_deploy_post = _Endpoint(
settings={
'response_type': (InlineResponse202,),
'response_type': (RouterIdAndVersion,),
'auth': [],
'endpoint_path': '/projects/{project_id}/routers/{router_id}/deploy',
'operation_id': 'projects_project_id_routers_router_id_deploy_post',
Expand Down Expand Up @@ -577,7 +576,7 @@ def __projects_project_id_routers_router_id_events_get(
async_req (bool): execute request asynchronously
Returns:
InlineResponse2002
[Event]
If the method is called asynchronously, returns the request
thread.
"""
Expand Down Expand Up @@ -608,7 +607,7 @@ def __projects_project_id_routers_router_id_events_get(

self.projects_project_id_routers_router_id_events_get = _Endpoint(
settings={
'response_type': (InlineResponse2002,),
'response_type': ([Event],),
'auth': [],
'endpoint_path': '/projects/{project_id}/routers/{router_id}/events',
'operation_id': 'projects_project_id_routers_router_id_events_get',
Expand Down Expand Up @@ -966,7 +965,7 @@ def __projects_project_id_routers_router_id_undeploy_post(
async_req (bool): execute request asynchronously
Returns:
InlineResponse2001
IdObject
If the method is called asynchronously, returns the request
thread.
"""
Expand Down Expand Up @@ -997,7 +996,7 @@ def __projects_project_id_routers_router_id_undeploy_post(

self.projects_project_id_routers_router_id_undeploy_post = _Endpoint(
settings={
'response_type': (InlineResponse2001,),
'response_type': (IdObject,),
'auth': [],
'endpoint_path': '/projects/{project_id}/routers/{router_id}/undeploy',
'operation_id': 'projects_project_id_routers_router_id_undeploy_post',
Expand Down Expand Up @@ -1220,7 +1219,7 @@ def __projects_project_id_routers_router_id_versions_version_delete(
async_req (bool): execute request asynchronously
Returns:
InlineResponse202
RouterIdAndVersion
If the method is called asynchronously, returns the request
thread.
"""
Expand Down Expand Up @@ -1253,7 +1252,7 @@ def __projects_project_id_routers_router_id_versions_version_delete(

self.projects_project_id_routers_router_id_versions_version_delete = _Endpoint(
settings={
'response_type': (InlineResponse202,),
'response_type': (RouterIdAndVersion,),
'auth': [],
'endpoint_path': '/projects/{project_id}/routers/{router_id}/versions/{version}',
'operation_id': 'projects_project_id_routers_router_id_versions_version_delete',
Expand Down Expand Up @@ -1356,7 +1355,7 @@ def __projects_project_id_routers_router_id_versions_version_deploy_post(
async_req (bool): execute request asynchronously
Returns:
InlineResponse202
RouterIdAndVersion
If the method is called asynchronously, returns the request
thread.
"""
Expand Down Expand Up @@ -1389,7 +1388,7 @@ def __projects_project_id_routers_router_id_versions_version_deploy_post(

self.projects_project_id_routers_router_id_versions_version_deploy_post = _Endpoint(
settings={
'response_type': (InlineResponse202,),
'response_type': (RouterIdAndVersion,),
'auth': [],
'endpoint_path': '/projects/{project_id}/routers/{router_id}/versions/{version}/deploy',
'operation_id': 'projects_project_id_routers_router_id_versions_version_deploy_post',
Expand Down
3 changes: 3 additions & 0 deletions sdk/turing/generated/model/ensembler_infra_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,7 @@ def openapi_types():
'ensembler_name': (str,), # noqa: E501
'service_account_name': (str,), # noqa: E501
'resources': (EnsemblingResources,), # noqa: E501
'run_id': (str,), # noqa: E501
'env': ([EnvVar],), # noqa: E501
}

Expand All @@ -96,6 +97,7 @@ def discriminator():
'ensembler_name': 'ensembler_name', # noqa: E501
'service_account_name': 'service_account_name', # noqa: E501
'resources': 'resources', # noqa: E501
'run_id': 'run_id', # noqa: E501
'env': 'env', # noqa: E501
}

Expand Down Expand Up @@ -149,6 +151,7 @@ def __init__(self, *args, **kwargs): # noqa: E501
ensembler_name (str): [optional] # noqa: E501
service_account_name (str): [optional] # noqa: E501
resources (EnsemblingResources): [optional] # noqa: E501
run_id (str): [optional] # noqa: E501
env ([EnvVar]): [optional] # noqa: E501
"""

Expand Down
166 changes: 0 additions & 166 deletions sdk/turing/generated/model/inline_response200.py

This file was deleted.

Loading

0 comments on commit 3634821

Please sign in to comment.