Skip to content

Commit 388cf5e

Browse files
committed
add autogen python client
1 parent 489e943 commit 388cf5e

File tree

193 files changed

+3407
-2141
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

193 files changed

+3407
-2141
lines changed

.pylintrc

+1-2
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,5 @@ reports=no
2626
max-line-length=79
2727

2828
[MASTER]
29-
# Ignore anything inside launch/clientlib (since it's documentation)
30-
ignore=clientlib,api_client
29+
ignore=api_client,openapi_client
3130
extension-pkg-whitelist=pydantic

launch/api_client/__init__.py

+13-27
Original file line numberDiff line numberDiff line change
@@ -1,30 +1,16 @@
1-
# coding: utf-8
1+
import inspect
22

3-
# flake8: noqa
3+
from pydantic import BaseModel
44

5-
"""
6-
launch
7-
8-
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
9-
10-
The version of the OpenAPI document: 1.0.0
11-
Generated by: https://openapi-generator.tech
12-
"""
13-
14-
__version__ = "1.0.5"
15-
16-
# import ApiClient
17-
from launch.api_client.api_client import ApiClient
18-
19-
# import Configuration
20-
from launch.api_client.configuration import Configuration
21-
22-
# import exceptions
23-
from launch.api_client.exceptions import (
24-
ApiAttributeError,
25-
ApiException,
26-
ApiKeyError,
27-
ApiTypeError,
28-
ApiValueError,
29-
OpenApiException,
5+
from launch.api_client import models
6+
from launch.api_client.api_client import ( # noqa F401
7+
ApiClient,
8+
AsyncApis,
9+
SyncApis,
3010
)
11+
12+
for model in inspect.getmembers(models, inspect.isclass):
13+
if model[1].__module__ == "launch.api_client.models":
14+
model_class = model[1]
15+
if isinstance(model_class, BaseModel):
16+
model_class.update_forward_refs()

launch/api_client/api/__init__.py

Whitespace-only changes.

0 commit comments

Comments
 (0)