Skip to content
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.5"
__version__ = "1.0.6"

# import ApiClient
from launch.api_client.api_client import ApiClient
Expand Down
70 changes: 62 additions & 8 deletions launch/api_client/api_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -416,7 +416,9 @@ def __init__(
self.content = content

def _serialize_json(
self, in_data: typing.Union[None, int, float, str, bool, dict, list], eliminate_whitespace: bool = False
self,
in_data: typing.Union[None, int, float, str, bool, dict, list],
eliminate_whitespace: bool = False,
) -> str:
if eliminate_whitespace:
return json.dumps(in_data, separators=self._json_encoder.compact_separators)
Expand Down Expand Up @@ -481,7 +483,19 @@ def __serialize_simple(
def serialize(
self,
in_data: typing.Union[
Schema, Decimal, int, float, str, date, datetime, None, bool, list, tuple, dict, frozendict.frozendict
Schema,
Decimal,
int,
float,
str,
date,
datetime,
None,
bool,
list,
tuple,
dict,
frozendict.frozendict,
],
) -> typing.Dict[str, str]:
if self.schema:
Expand Down Expand Up @@ -597,7 +611,19 @@ def get_prefix_separator_iterator(self) -> typing.Optional[PrefixSeparatorIterat
def serialize(
self,
in_data: typing.Union[
Schema, Decimal, int, float, str, date, datetime, None, bool, list, tuple, dict, frozendict.frozendict
Schema,
Decimal,
int,
float,
str,
date,
datetime,
None,
bool,
list,
tuple,
dict,
frozendict.frozendict,
],
prefix_separator_iterator: typing.Optional[PrefixSeparatorIterator] = None,
) -> typing.Dict[str, str]:
Expand Down Expand Up @@ -665,7 +691,19 @@ def __init__(
def serialize(
self,
in_data: typing.Union[
Schema, Decimal, int, float, str, date, datetime, None, bool, list, tuple, dict, frozendict.frozendict
Schema,
Decimal,
int,
float,
str,
date,
datetime,
None,
bool,
list,
tuple,
dict,
frozendict.frozendict,
],
) -> typing.Dict[str, str]:
if self.schema:
Expand Down Expand Up @@ -732,7 +770,19 @@ def __to_headers(in_data: typing.Tuple[typing.Tuple[str, str], ...]) -> HTTPHead
def serialize(
self,
in_data: typing.Union[
Schema, Decimal, int, float, str, date, datetime, None, bool, list, tuple, dict, frozendict.frozendict
Schema,
Decimal,
int,
float,
str,
date,
datetime,
None,
bool,
list,
tuple,
dict,
frozendict.frozendict,
],
) -> HTTPHeaderDict:
if self.schema:
Expand Down Expand Up @@ -890,7 +940,9 @@ def __deserialize_application_octet_stream(
return response.data

@staticmethod
def __deserialize_multipart_form_data(response: urllib3.HTTPResponse) -> typing.Dict[str, typing.Any]:
def __deserialize_multipart_form_data(
response: urllib3.HTTPResponse,
) -> typing.Dict[str, typing.Any]:
msg = email.message_from_bytes(response.data)
return {
part.get_param("name", header="Content-Disposition"): part.get_payload(decode=True).decode(
Expand Down Expand Up @@ -981,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.5/python"
self.user_agent = "OpenAPI-Generator/1.0.6/python"

def __enter__(self):
return self
Expand Down Expand Up @@ -1243,7 +1295,9 @@ def _verify_typed_dict_inputs_oapg(
if required_keys_with_unset_values:
raise ApiValueError(
"{} contains invalid unset values for {} required keys: {}".format(
cls.__name__, len(required_keys_with_unset_values), required_keys_with_unset_values
cls.__name__,
len(required_keys_with_unset_values),
required_keys_with_unset_values,
)
)

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.5".format(env=sys.platform, pyversion=sys.version)
"SDK Package Version: 1.0.6".format(env=sys.platform, pyversion=sys.version)
)

def get_host_settings(self):
Expand Down
143 changes: 143 additions & 0 deletions launch/api_client/model/clone_model_bundle_v1_request.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,143 @@
# coding: utf-8

"""
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
"""

import decimal # noqa: F401
import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
import uuid # noqa: F401
from datetime import date, datetime # noqa: F401

import frozendict # noqa: F401
import typing_extensions # noqa: F401

from launch.api_client import schemas # noqa: F401


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

Do not edit the class manually.

Request object for cloning a Model Bundle from another one.
"""

class MetaOapg:
required = {
"original_model_bundle_id",
}

class properties:
original_model_bundle_id = schemas.StrSchema
new_app_config = schemas.DictSchema
__annotations__ = {
"original_model_bundle_id": original_model_bundle_id,
"new_app_config": new_app_config,
}

original_model_bundle_id: MetaOapg.properties.original_model_bundle_id

@typing.overload
def __getitem__(
self, name: typing_extensions.Literal["original_model_bundle_id"]
) -> MetaOapg.properties.original_model_bundle_id:
...

@typing.overload
def __getitem__(self, name: typing_extensions.Literal["new_app_config"]) -> MetaOapg.properties.new_app_config:
...

@typing.overload
def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema:
...

def __getitem__(
self,
name: typing.Union[
typing_extensions.Literal[
"original_model_bundle_id",
"new_app_config",
],
str,
],
):
# dict_instance[name] accessor
return super().__getitem__(name)

@typing.overload
def get_item_oapg(
self, name: typing_extensions.Literal["original_model_bundle_id"]
) -> MetaOapg.properties.original_model_bundle_id:
...

@typing.overload
def get_item_oapg(
self, name: typing_extensions.Literal["new_app_config"]
) -> typing.Union[MetaOapg.properties.new_app_config, schemas.Unset]:
...

@typing.overload
def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]:
...

def get_item_oapg(
self,
name: typing.Union[
typing_extensions.Literal[
"original_model_bundle_id",
"new_app_config",
],
str,
],
):
return super().get_item_oapg(name)

def __new__(
cls,
*_args: typing.Union[
dict,
frozendict.frozendict,
],
original_model_bundle_id: typing.Union[
MetaOapg.properties.original_model_bundle_id,
str,
],
new_app_config: typing.Union[
MetaOapg.properties.new_app_config, dict, frozendict.frozendict, schemas.Unset
] = schemas.unset,
_configuration: typing.Optional[schemas.Configuration] = None,
**kwargs: typing.Union[
schemas.AnyTypeSchema,
dict,
frozendict.frozendict,
str,
date,
datetime,
uuid.UUID,
int,
float,
decimal.Decimal,
None,
list,
tuple,
bytes,
],
) -> "CloneModelBundleV1Request":
return super().__new__(
cls,
*_args,
original_model_bundle_id=original_model_bundle_id,
new_app_config=new_app_config,
_configuration=_configuration,
**kwargs,
)
Loading