Skip to content

Commit e2a0d89

Browse files
Update docs and external client for priority API change (#87)
* new docs * format * format isort * new changes * new formatted changes * formatting * updated client * changing from str to bool * removing site * making sure? * update to v1
1 parent 432dc14 commit e2a0d89

File tree

121 files changed

+10592
-324
lines changed

Some content is hidden

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

121 files changed

+10592
-324
lines changed

launch/api_client/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
Generated by: https://openapi-generator.tech
1212
"""
1313

14-
__version__ = "1.0.5"
14+
__version__ = "1.0.6"
1515

1616
# import ApiClient
1717
from launch.api_client.api_client import ApiClient

launch/api_client/api_client.py

Lines changed: 62 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -416,7 +416,9 @@ def __init__(
416416
self.content = content
417417

418418
def _serialize_json(
419-
self, in_data: typing.Union[None, int, float, str, bool, dict, list], eliminate_whitespace: bool = False
419+
self,
420+
in_data: typing.Union[None, int, float, str, bool, dict, list],
421+
eliminate_whitespace: bool = False,
420422
) -> str:
421423
if eliminate_whitespace:
422424
return json.dumps(in_data, separators=self._json_encoder.compact_separators)
@@ -481,7 +483,19 @@ def __serialize_simple(
481483
def serialize(
482484
self,
483485
in_data: typing.Union[
484-
Schema, Decimal, int, float, str, date, datetime, None, bool, list, tuple, dict, frozendict.frozendict
486+
Schema,
487+
Decimal,
488+
int,
489+
float,
490+
str,
491+
date,
492+
datetime,
493+
None,
494+
bool,
495+
list,
496+
tuple,
497+
dict,
498+
frozendict.frozendict,
485499
],
486500
) -> typing.Dict[str, str]:
487501
if self.schema:
@@ -597,7 +611,19 @@ def get_prefix_separator_iterator(self) -> typing.Optional[PrefixSeparatorIterat
597611
def serialize(
598612
self,
599613
in_data: typing.Union[
600-
Schema, Decimal, int, float, str, date, datetime, None, bool, list, tuple, dict, frozendict.frozendict
614+
Schema,
615+
Decimal,
616+
int,
617+
float,
618+
str,
619+
date,
620+
datetime,
621+
None,
622+
bool,
623+
list,
624+
tuple,
625+
dict,
626+
frozendict.frozendict,
601627
],
602628
prefix_separator_iterator: typing.Optional[PrefixSeparatorIterator] = None,
603629
) -> typing.Dict[str, str]:
@@ -665,7 +691,19 @@ def __init__(
665691
def serialize(
666692
self,
667693
in_data: typing.Union[
668-
Schema, Decimal, int, float, str, date, datetime, None, bool, list, tuple, dict, frozendict.frozendict
694+
Schema,
695+
Decimal,
696+
int,
697+
float,
698+
str,
699+
date,
700+
datetime,
701+
None,
702+
bool,
703+
list,
704+
tuple,
705+
dict,
706+
frozendict.frozendict,
669707
],
670708
) -> typing.Dict[str, str]:
671709
if self.schema:
@@ -732,7 +770,19 @@ def __to_headers(in_data: typing.Tuple[typing.Tuple[str, str], ...]) -> HTTPHead
732770
def serialize(
733771
self,
734772
in_data: typing.Union[
735-
Schema, Decimal, int, float, str, date, datetime, None, bool, list, tuple, dict, frozendict.frozendict
773+
Schema,
774+
Decimal,
775+
int,
776+
float,
777+
str,
778+
date,
779+
datetime,
780+
None,
781+
bool,
782+
list,
783+
tuple,
784+
dict,
785+
frozendict.frozendict,
736786
],
737787
) -> HTTPHeaderDict:
738788
if self.schema:
@@ -890,7 +940,9 @@ def __deserialize_application_octet_stream(
890940
return response.data
891941

892942
@staticmethod
893-
def __deserialize_multipart_form_data(response: urllib3.HTTPResponse) -> typing.Dict[str, typing.Any]:
943+
def __deserialize_multipart_form_data(
944+
response: urllib3.HTTPResponse,
945+
) -> typing.Dict[str, typing.Any]:
894946
msg = email.message_from_bytes(response.data)
895947
return {
896948
part.get_param("name", header="Content-Disposition"): part.get_payload(decode=True).decode(
@@ -981,7 +1033,7 @@ def __init__(
9811033
self.default_headers[header_name] = header_value
9821034
self.cookie = cookie
9831035
# Set default User-Agent.
984-
self.user_agent = "OpenAPI-Generator/1.0.5/python"
1036+
self.user_agent = "OpenAPI-Generator/1.0.6/python"
9851037

9861038
def __enter__(self):
9871039
return self
@@ -1243,7 +1295,9 @@ def _verify_typed_dict_inputs_oapg(
12431295
if required_keys_with_unset_values:
12441296
raise ApiValueError(
12451297
"{} contains invalid unset values for {} required keys: {}".format(
1246-
cls.__name__, len(required_keys_with_unset_values), required_keys_with_unset_values
1298+
cls.__name__,
1299+
len(required_keys_with_unset_values),
1300+
required_keys_with_unset_values,
12471301
)
12481302
)
12491303

launch/api_client/configuration.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -396,7 +396,7 @@ def to_debug_report(self):
396396
"OS: {env}\n"
397397
"Python Version: {pyversion}\n"
398398
"Version of the API: 1.0.0\n"
399-
"SDK Package Version: 1.0.5".format(env=sys.platform, pyversion=sys.version)
399+
"SDK Package Version: 1.0.6".format(env=sys.platform, pyversion=sys.version)
400400
)
401401

402402
def get_host_settings(self):
Lines changed: 143 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,143 @@
1+
# coding: utf-8
2+
3+
"""
4+
launch
5+
6+
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
7+
8+
The version of the OpenAPI document: 1.0.0
9+
Generated by: https://openapi-generator.tech
10+
"""
11+
12+
import decimal # noqa: F401
13+
import functools # noqa: F401
14+
import io # noqa: F401
15+
import re # noqa: F401
16+
import typing # noqa: F401
17+
import uuid # noqa: F401
18+
from datetime import date, datetime # noqa: F401
19+
20+
import frozendict # noqa: F401
21+
import typing_extensions # noqa: F401
22+
23+
from launch.api_client import schemas # noqa: F401
24+
25+
26+
class CloneModelBundleV1Request(schemas.DictSchema):
27+
"""NOTE: This class is auto generated by OpenAPI Generator.
28+
Ref: https://openapi-generator.tech
29+
30+
Do not edit the class manually.
31+
32+
Request object for cloning a Model Bundle from another one.
33+
"""
34+
35+
class MetaOapg:
36+
required = {
37+
"original_model_bundle_id",
38+
}
39+
40+
class properties:
41+
original_model_bundle_id = schemas.StrSchema
42+
new_app_config = schemas.DictSchema
43+
__annotations__ = {
44+
"original_model_bundle_id": original_model_bundle_id,
45+
"new_app_config": new_app_config,
46+
}
47+
48+
original_model_bundle_id: MetaOapg.properties.original_model_bundle_id
49+
50+
@typing.overload
51+
def __getitem__(
52+
self, name: typing_extensions.Literal["original_model_bundle_id"]
53+
) -> MetaOapg.properties.original_model_bundle_id:
54+
...
55+
56+
@typing.overload
57+
def __getitem__(self, name: typing_extensions.Literal["new_app_config"]) -> MetaOapg.properties.new_app_config:
58+
...
59+
60+
@typing.overload
61+
def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema:
62+
...
63+
64+
def __getitem__(
65+
self,
66+
name: typing.Union[
67+
typing_extensions.Literal[
68+
"original_model_bundle_id",
69+
"new_app_config",
70+
],
71+
str,
72+
],
73+
):
74+
# dict_instance[name] accessor
75+
return super().__getitem__(name)
76+
77+
@typing.overload
78+
def get_item_oapg(
79+
self, name: typing_extensions.Literal["original_model_bundle_id"]
80+
) -> MetaOapg.properties.original_model_bundle_id:
81+
...
82+
83+
@typing.overload
84+
def get_item_oapg(
85+
self, name: typing_extensions.Literal["new_app_config"]
86+
) -> typing.Union[MetaOapg.properties.new_app_config, schemas.Unset]:
87+
...
88+
89+
@typing.overload
90+
def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]:
91+
...
92+
93+
def get_item_oapg(
94+
self,
95+
name: typing.Union[
96+
typing_extensions.Literal[
97+
"original_model_bundle_id",
98+
"new_app_config",
99+
],
100+
str,
101+
],
102+
):
103+
return super().get_item_oapg(name)
104+
105+
def __new__(
106+
cls,
107+
*_args: typing.Union[
108+
dict,
109+
frozendict.frozendict,
110+
],
111+
original_model_bundle_id: typing.Union[
112+
MetaOapg.properties.original_model_bundle_id,
113+
str,
114+
],
115+
new_app_config: typing.Union[
116+
MetaOapg.properties.new_app_config, dict, frozendict.frozendict, schemas.Unset
117+
] = schemas.unset,
118+
_configuration: typing.Optional[schemas.Configuration] = None,
119+
**kwargs: typing.Union[
120+
schemas.AnyTypeSchema,
121+
dict,
122+
frozendict.frozendict,
123+
str,
124+
date,
125+
datetime,
126+
uuid.UUID,
127+
int,
128+
float,
129+
decimal.Decimal,
130+
None,
131+
list,
132+
tuple,
133+
bytes,
134+
],
135+
) -> "CloneModelBundleV1Request":
136+
return super().__new__(
137+
cls,
138+
*_args,
139+
original_model_bundle_id=original_model_bundle_id,
140+
new_app_config=new_app_config,
141+
_configuration=_configuration,
142+
**kwargs,
143+
)

0 commit comments

Comments
 (0)