Skip to content

Commit

Permalink
Regenerate python clients
Browse files Browse the repository at this point in the history
  • Loading branch information
jakubno committed Oct 13, 2023
1 parent af7904d commit d47871a
Show file tree
Hide file tree
Showing 48 changed files with 599 additions and 4,839 deletions.
5 changes: 4 additions & 1 deletion packages/python-sdk/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ generate-v2:
# Waiting for https://github.com/OpenAPITools/openapi-generator/pull/16655 to be merged
# Using this branch to use pydantic v2: https://github.com/fa0311/openapi-generator/tree/oshmoun-master-2
# After released, use npx -yes @openapitools/openapi-generator-cli generate
java -jar <OPENAPI-TOOL-PATH>/openapi-generator/modules/openapi-generator-cli/target/openapi-generator-cli.jar generate \
java -jar ~/Work/e2b/openapi-generator/modules/openapi-generator-cli/target/openapi-generator-cli.jar generate \
-i ../../spec/openapi.yml \
--library asyncio \
-g python \
Expand Down Expand Up @@ -43,3 +43,6 @@ generate-v1:
rm -r ./e2b/api/.openapi-generator
mv ./e2b/api/__init__.py.bck ./e2b/api/__init__.py
black .

.PHONY: generate
generate: generate-v1 generate-v2
20 changes: 6 additions & 14 deletions packages/python-sdk/e2b/api/v1/client/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,11 @@
# flake8: noqa

"""
Devbook
E2B API
Devbook API # noqa: E501
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
The version of the OpenAPI document: 1.0.0
The version of the OpenAPI document: 0.1.0
Generated by OpenAPI Generator (https://openapi-generator.tech)
Do not edit the class manually.
Expand All @@ -19,7 +19,7 @@
# import apis into sdk package
from e2b.api.v1.client.api.default_api import DefaultApi
from e2b.api.v1.client.api.envs_api import EnvsApi
from e2b.api.v1.client.api.sessions_api import SessionsApi
from e2b.api.v1.client.api.instances_api import InstancesApi

# import ApiClient
from e2b.api.v1.client.api_response import ApiResponse
Expand All @@ -34,15 +34,7 @@

# import models into sdk package
from e2b.api.v1.client.models.environment import Environment
from e2b.api.v1.client.models.environment_state import EnvironmentState
from e2b.api.v1.client.models.environment_state_update import EnvironmentStateUpdate
from e2b.api.v1.client.models.environment_title_update import EnvironmentTitleUpdate
from e2b.api.v1.client.models.envs_get200_response_inner import EnvsGet200ResponseInner
from e2b.api.v1.client.models.error import Error
from e2b.api.v1.client.models.new_environment import NewEnvironment
from e2b.api.v1.client.models.new_session import NewSession
from e2b.api.v1.client.models.session import Session
from e2b.api.v1.client.models.sessions_get200_response_inner import (
SessionsGet200ResponseInner,
)
from e2b.api.v1.client.models.template import Template
from e2b.api.v1.client.models.instance import Instance
from e2b.api.v1.client.models.new_instance import NewInstance
2 changes: 1 addition & 1 deletion packages/python-sdk/e2b/api/v1/client/api/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@
# import apis into api package
from e2b.api.v1.client.api.default_api import DefaultApi
from e2b.api.v1.client.api.envs_api import EnvsApi
from e2b.api.v1.client.api.sessions_api import SessionsApi
from e2b.api.v1.client.api.instances_api import InstancesApi
6 changes: 3 additions & 3 deletions packages/python-sdk/e2b/api/v1/client/api/default_api.py
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
# coding: utf-8

"""
Devbook
E2B API
Devbook API # noqa: E501
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
The version of the OpenAPI document: 1.0.0
The version of the OpenAPI document: 0.1.0
Generated by OpenAPI Generator (https://openapi-generator.tech)
Do not edit the class manually.
Expand Down
Loading

0 comments on commit d47871a

Please sign in to comment.