Skip to content

Update autogen client with v2 bundles #88

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Mar 27, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion launch/api_client/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
Generated by: https://openapi-generator.tech
"""

__version__ = "1.0.6"
__version__ = "1.1.0"

# import ApiClient
from launch.api_client.api_client import ApiClient
Expand Down
2 changes: 1 addition & 1 deletion launch/api_client/api_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -1033,7 +1033,7 @@ def __init__(
self.default_headers[header_name] = header_value
self.cookie = cookie
# Set default User-Agent.
self.user_agent = "OpenAPI-Generator/1.0.6/python"
self.user_agent = "OpenAPI-Generator/1.1.0/python"

def __enter__(self):
return self
Expand Down
18 changes: 18 additions & 0 deletions launch/api_client/apis/path_to_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,16 @@
V1ModelEndpointsSchemaJson,
)
from launch.api_client.apis.paths.v1_sync_tasks import V1SyncTasks
from launch.api_client.apis.paths.v2_model_bundles import V2ModelBundles
from launch.api_client.apis.paths.v2_model_bundles_clone_with_changes import (
V2ModelBundlesCloneWithChanges,
)
from launch.api_client.apis.paths.v2_model_bundles_latest import (
V2ModelBundlesLatest,
)
from launch.api_client.apis.paths.v2_model_bundles_model_bundle_id import (
V2ModelBundlesModelBundleId,
)
from launch.api_client.paths import PathValues

PathToApi = typing_extensions.TypedDict(
Expand All @@ -53,6 +63,10 @@
PathValues.V1_MODELENDPOINTSSCHEMA_JSON: V1ModelEndpointsSchemaJson,
PathValues.V1_MODELENDPOINTS_MODEL_ENDPOINT_ID: V1ModelEndpointsModelEndpointId,
PathValues.V1_SYNCTASKS: V1SyncTasks,
PathValues.V2_MODELBUNDLES: V2ModelBundles,
PathValues.V2_MODELBUNDLES_CLONEWITHCHANGES: V2ModelBundlesCloneWithChanges,
PathValues.V2_MODELBUNDLES_LATEST: V2ModelBundlesLatest,
PathValues.V2_MODELBUNDLES_MODEL_BUNDLE_ID: V2ModelBundlesModelBundleId,
},
)

Expand All @@ -74,5 +88,9 @@
PathValues.V1_MODELENDPOINTSSCHEMA_JSON: V1ModelEndpointsSchemaJson,
PathValues.V1_MODELENDPOINTS_MODEL_ENDPOINT_ID: V1ModelEndpointsModelEndpointId,
PathValues.V1_SYNCTASKS: V1SyncTasks,
PathValues.V2_MODELBUNDLES: V2ModelBundles,
PathValues.V2_MODELBUNDLES_CLONEWITHCHANGES: V2ModelBundlesCloneWithChanges,
PathValues.V2_MODELBUNDLES_LATEST: V2ModelBundlesLatest,
PathValues.V2_MODELBUNDLES_MODEL_BUNDLE_ID: V2ModelBundlesModelBundleId,
}
)
9 changes: 9 additions & 0 deletions launch/api_client/apis/paths/v2_model_bundles.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
from launch.api_client.paths.v2_model_bundles.get import ApiForget
from launch.api_client.paths.v2_model_bundles.post import ApiForpost


class V2ModelBundles(
ApiForget,
ApiForpost,
):
pass
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
from launch.api_client.paths.v2_model_bundles_clone_with_changes.post import (
ApiForpost,
)


class V2ModelBundlesCloneWithChanges(
ApiForpost,
):
pass
7 changes: 7 additions & 0 deletions launch/api_client/apis/paths/v2_model_bundles_latest.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
from launch.api_client.paths.v2_model_bundles_latest.get import ApiForget


class V2ModelBundlesLatest(
ApiForget,
):
pass
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
from launch.api_client.paths.v2_model_bundles_model_bundle_id.get import (
ApiForget,
)


class V2ModelBundlesModelBundleId(
ApiForget,
):
pass
20 changes: 20 additions & 0 deletions launch/api_client/apis/tags/default_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -66,27 +66,47 @@
from launch.api_client.paths.v1_sync_tasks.post import (
CreateSyncInferenceTaskV1SyncTasksPost,
)
from launch.api_client.paths.v2_model_bundles.get import (
ListModelBundlesV2ModelBundlesGet,
)
from launch.api_client.paths.v2_model_bundles.post import (
CreateModelBundleV2ModelBundlesPost,
)
from launch.api_client.paths.v2_model_bundles_clone_with_changes.post import (
CloneModelBundleWithChangesV2ModelBundlesCloneWithChangesPost,
)
from launch.api_client.paths.v2_model_bundles_latest.get import (
GetLatestModelBundleV2ModelBundlesLatestGet,
)
from launch.api_client.paths.v2_model_bundles_model_bundle_id.get import (
GetModelBundleV2ModelBundlesModelBundleIdGet,
)


class DefaultApi(
CloneModelBundleWithChangesV1ModelBundlesCloneWithChangesPost,
CloneModelBundleWithChangesV2ModelBundlesCloneWithChangesPost,
CreateAsyncInferenceTaskV1AsyncTasksPost,
CreateBatchJobV1BatchJobsPost,
CreateModelBundleV1ModelBundlesPost,
CreateModelBundleV2ModelBundlesPost,
CreateModelEndpointV1ModelEndpointsPost,
CreateSyncInferenceTaskV1SyncTasksPost,
DeleteModelEndpointV1ModelEndpointsModelEndpointIdDelete,
GetAsyncInferenceTaskV1AsyncTasksTaskIdGet,
GetBatchJobV1BatchJobsBatchJobIdGet,
GetLatestModelBundleV1ModelBundlesLatestGet,
GetLatestModelBundleV2ModelBundlesLatestGet,
GetModelBundleV1ModelBundlesModelBundleIdGet,
GetModelBundleV2ModelBundlesModelBundleIdGet,
GetModelEndpointV1ModelEndpointsModelEndpointIdGet,
GetModelEndpointsApiV1ModelEndpointsApiGet,
GetModelEndpointsSchemaV1ModelEndpointsSchemaJsonGet,
HealthcheckHealthcheckGet,
HealthcheckHealthzGet,
HealthcheckReadyzGet,
ListModelBundlesV1ModelBundlesGet,
ListModelBundlesV2ModelBundlesGet,
ListModelEndpointsV1ModelEndpointsGet,
UpdateBatchJobV1BatchJobsBatchJobIdPut,
UpdateModelEndpointV1ModelEndpointsModelEndpointIdPut,
Expand Down
2 changes: 1 addition & 1 deletion launch/api_client/configuration.py
Original file line number Diff line number Diff line change
Expand Up @@ -396,7 +396,7 @@ def to_debug_report(self):
"OS: {env}\n"
"Python Version: {pyversion}\n"
"Version of the API: 1.0.0\n"
"SDK Package Version: 1.0.6".format(env=sys.platform, pyversion=sys.version)
"SDK Package Version: 1.1.0".format(env=sys.platform, pyversion=sys.version)
)

def get_host_settings(self):
Expand Down
14 changes: 0 additions & 14 deletions launch/api_client/docs/CallbackAuth.md

This file was deleted.

12 changes: 0 additions & 12 deletions launch/api_client/docs/CallbackBasicAuth.md

This file was deleted.

12 changes: 0 additions & 12 deletions launch/api_client/docs/CallbackmTLSAuth.md

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
from launch.api_client import schemas # noqa: F401


class CloneModelBundleRequest(schemas.DictSchema):
class CloneModelBundleV2Request(schemas.DictSchema):
"""NOTE: This class is auto generated by OpenAPI Generator.
Ref: https://openapi-generator.tech

Expand Down Expand Up @@ -132,7 +132,7 @@ def __new__(
tuple,
bytes,
],
) -> "CloneModelBundleRequest":
) -> "CloneModelBundleV2Request":
return super().__new__(
cls,
*_args,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ import frozendict # noqa: F401
import typing_extensions # noqa: F401
from launch_client import schemas # noqa: F401

class CloneModelBundleRequest(schemas.DictSchema):
class CloneModelBundleV2Request(schemas.DictSchema):
"""NOTE: This class is auto generated by OpenAPI Generator.
Ref: https://openapi-generator.tech

Expand Down Expand Up @@ -115,7 +115,7 @@ class CloneModelBundleRequest(schemas.DictSchema):
tuple,
bytes,
],
) -> "CloneModelBundleRequest":
) -> "CloneModelBundleV2Request":
return super().__new__(
cls,
*_args,
Expand Down
Loading