Skip to content

Commit

Permalink
add autogen python client
Browse files Browse the repository at this point in the history
  • Loading branch information
phil-scale committed Mar 7, 2023
1 parent 489e943 commit 388cf5e
Show file tree
Hide file tree
Showing 193 changed files with 3,407 additions and 2,141 deletions.
3 changes: 1 addition & 2 deletions .pylintrc
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,5 @@ reports=no
max-line-length=79

[MASTER]
# Ignore anything inside launch/clientlib (since it's documentation)
ignore=clientlib,api_client
ignore=api_client,openapi_client
extension-pkg-whitelist=pydantic
40 changes: 13 additions & 27 deletions launch/api_client/__init__.py
Original file line number Diff line number Diff line change
@@ -1,30 +1,16 @@
# coding: utf-8
import inspect

# flake8: noqa
from pydantic import BaseModel

"""
launch
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
The version of the OpenAPI document: 1.0.0
Generated by: https://openapi-generator.tech
"""

__version__ = "1.0.5"

# import ApiClient
from launch.api_client.api_client import ApiClient

# import Configuration
from launch.api_client.configuration import Configuration

# import exceptions
from launch.api_client.exceptions import (
ApiAttributeError,
ApiException,
ApiKeyError,
ApiTypeError,
ApiValueError,
OpenApiException,
from launch.api_client import models
from launch.api_client.api_client import ( # noqa F401
ApiClient,
AsyncApis,
SyncApis,
)

for model in inspect.getmembers(models, inspect.isclass):
if model[1].__module__ == "launch.api_client.models":
model_class = model[1]
if isinstance(model_class, BaseModel):
model_class.update_forward_refs()
Empty file.
Loading

0 comments on commit 388cf5e

Please sign in to comment.