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.1.0"
__version__ = "1.1.1"

# 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.1.0/python"
self.user_agent = "OpenAPI-Generator/1.1.1/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
25 changes: 25 additions & 0 deletions launch/api_client/apis/path_to_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,21 @@
from launch.api_client.apis.paths.v1_batch_jobs_batch_job_id import (
V1BatchJobsBatchJobId,
)
from launch.api_client.apis.paths.v1_docker_image_batch_job_bundles import (
V1DockerImageBatchJobBundles,
)
from launch.api_client.apis.paths.v1_docker_image_batch_job_bundles_docker_image_batch_job_bundle_id import (
V1DockerImageBatchJobBundlesDockerImageBatchJobBundleId,
)
from launch.api_client.apis.paths.v1_docker_image_batch_job_bundles_latest import (
V1DockerImageBatchJobBundlesLatest,
)
from launch.api_client.apis.paths.v1_docker_image_batch_jobs import (
V1DockerImageBatchJobs,
)
from launch.api_client.apis.paths.v1_docker_image_batch_jobs_batch_job_id import (
V1DockerImageBatchJobsBatchJobId,
)
from launch.api_client.apis.paths.v1_model_bundles import V1ModelBundles
from launch.api_client.apis.paths.v1_model_bundles_clone_with_changes import (
V1ModelBundlesCloneWithChanges,
Expand Down Expand Up @@ -54,6 +69,11 @@
PathValues.V1_ASYNCTASKS_TASK_ID: V1AsyncTasksTaskId,
PathValues.V1_BATCHJOBS: V1BatchJobs,
PathValues.V1_BATCHJOBS_BATCH_JOB_ID: V1BatchJobsBatchJobId,
PathValues.V1_DOCKERIMAGEBATCHJOBBUNDLES: V1DockerImageBatchJobBundles,
PathValues.V1_DOCKERIMAGEBATCHJOBBUNDLES_LATEST: V1DockerImageBatchJobBundlesLatest,
PathValues.V1_DOCKERIMAGEBATCHJOBBUNDLES_DOCKER_IMAGE_BATCH_JOB_BUNDLE_ID: V1DockerImageBatchJobBundlesDockerImageBatchJobBundleId,
PathValues.V1_DOCKERIMAGEBATCHJOBS: V1DockerImageBatchJobs,
PathValues.V1_DOCKERIMAGEBATCHJOBS_BATCH_JOB_ID: V1DockerImageBatchJobsBatchJobId,
PathValues.V1_MODELBUNDLES: V1ModelBundles,
PathValues.V1_MODELBUNDLES_CLONEWITHCHANGES: V1ModelBundlesCloneWithChanges,
PathValues.V1_MODELBUNDLES_LATEST: V1ModelBundlesLatest,
Expand All @@ -79,6 +99,11 @@
PathValues.V1_ASYNCTASKS_TASK_ID: V1AsyncTasksTaskId,
PathValues.V1_BATCHJOBS: V1BatchJobs,
PathValues.V1_BATCHJOBS_BATCH_JOB_ID: V1BatchJobsBatchJobId,
PathValues.V1_DOCKERIMAGEBATCHJOBBUNDLES: V1DockerImageBatchJobBundles,
PathValues.V1_DOCKERIMAGEBATCHJOBBUNDLES_LATEST: V1DockerImageBatchJobBundlesLatest,
PathValues.V1_DOCKERIMAGEBATCHJOBBUNDLES_DOCKER_IMAGE_BATCH_JOB_BUNDLE_ID: V1DockerImageBatchJobBundlesDockerImageBatchJobBundleId,
PathValues.V1_DOCKERIMAGEBATCHJOBS: V1DockerImageBatchJobs,
PathValues.V1_DOCKERIMAGEBATCHJOBS_BATCH_JOB_ID: V1DockerImageBatchJobsBatchJobId,
PathValues.V1_MODELBUNDLES: V1ModelBundles,
PathValues.V1_MODELBUNDLES_CLONEWITHCHANGES: V1ModelBundlesCloneWithChanges,
PathValues.V1_MODELBUNDLES_LATEST: V1ModelBundlesLatest,
Expand Down
13 changes: 13 additions & 0 deletions launch/api_client/apis/paths/v1_docker_image_batch_job_bundles.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
from launch.api_client.paths.v1_docker_image_batch_job_bundles.get import (
ApiForget,
)
from launch.api_client.paths.v1_docker_image_batch_job_bundles.post import (
ApiForpost,
)


class V1DockerImageBatchJobBundles(
ApiForget,
ApiForpost,
):
pass
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
from launch.api_client.paths.v1_docker_image_batch_job_bundles_docker_image_batch_job_bundle_id.get import (
ApiForget,
)


class V1DockerImageBatchJobBundlesDockerImageBatchJobBundleId(
ApiForget,
):
pass
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
from launch.api_client.paths.v1_docker_image_batch_job_bundles_latest.get import (
ApiForget,
)


class V1DockerImageBatchJobBundlesLatest(
ApiForget,
):
pass
7 changes: 7 additions & 0 deletions launch/api_client/apis/paths/v1_docker_image_batch_jobs.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
from launch.api_client.paths.v1_docker_image_batch_jobs.post import ApiForpost


class V1DockerImageBatchJobs(
ApiForpost,
):
pass
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
from launch.api_client.paths.v1_docker_image_batch_jobs_batch_job_id.get import (
ApiForget,
)
from launch.api_client.paths.v1_docker_image_batch_jobs_batch_job_id.put import (
ApiForput,
)


class V1DockerImageBatchJobsBatchJobId(
ApiForget,
ApiForput,
):
pass
28 changes: 28 additions & 0 deletions launch/api_client/apis/tags/default_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,27 @@
from launch.api_client.paths.v1_batch_jobs_batch_job_id.put import (
UpdateBatchJobV1BatchJobsBatchJobIdPut,
)
from launch.api_client.paths.v1_docker_image_batch_job_bundles.get import (
ListDockerImageBatchJobModelBundlesV1DockerImageBatchJobBundlesGet,
)
from launch.api_client.paths.v1_docker_image_batch_job_bundles.post import (
CreateDockerImageBatchJobBundleV1DockerImageBatchJobBundlesPost,
)
from launch.api_client.paths.v1_docker_image_batch_job_bundles_docker_image_batch_job_bundle_id.get import (
GetDockerImageBatchJobModelBundleV1DockerImageBatchJobBundlesDockerImageBatchJobBundleIdGet,
)
from launch.api_client.paths.v1_docker_image_batch_job_bundles_latest.get import (
GetLatestDockerImageBatchJobBundleV1DockerImageBatchJobBundlesLatestGet,
)
from launch.api_client.paths.v1_docker_image_batch_jobs.post import (
CreateDockerImageBatchJobV1DockerImageBatchJobsPost,
)
from launch.api_client.paths.v1_docker_image_batch_jobs_batch_job_id.get import (
GetDockerImageBatchJobV1DockerImageBatchJobsBatchJobIdGet,
)
from launch.api_client.paths.v1_docker_image_batch_jobs_batch_job_id.put import (
UpdateDockerImageBatchJobV1DockerImageBatchJobsBatchJobIdPut,
)
from launch.api_client.paths.v1_model_bundles.get import (
ListModelBundlesV1ModelBundlesGet,
)
Expand Down Expand Up @@ -88,13 +109,18 @@ class DefaultApi(
CloneModelBundleWithChangesV2ModelBundlesCloneWithChangesPost,
CreateAsyncInferenceTaskV1AsyncTasksPost,
CreateBatchJobV1BatchJobsPost,
CreateDockerImageBatchJobBundleV1DockerImageBatchJobBundlesPost,
CreateDockerImageBatchJobV1DockerImageBatchJobsPost,
CreateModelBundleV1ModelBundlesPost,
CreateModelBundleV2ModelBundlesPost,
CreateModelEndpointV1ModelEndpointsPost,
CreateSyncInferenceTaskV1SyncTasksPost,
DeleteModelEndpointV1ModelEndpointsModelEndpointIdDelete,
GetAsyncInferenceTaskV1AsyncTasksTaskIdGet,
GetBatchJobV1BatchJobsBatchJobIdGet,
GetDockerImageBatchJobModelBundleV1DockerImageBatchJobBundlesDockerImageBatchJobBundleIdGet,
GetDockerImageBatchJobV1DockerImageBatchJobsBatchJobIdGet,
GetLatestDockerImageBatchJobBundleV1DockerImageBatchJobBundlesLatestGet,
GetLatestModelBundleV1ModelBundlesLatestGet,
GetLatestModelBundleV2ModelBundlesLatestGet,
GetModelBundleV1ModelBundlesModelBundleIdGet,
Expand All @@ -105,10 +131,12 @@ class DefaultApi(
HealthcheckHealthcheckGet,
HealthcheckHealthzGet,
HealthcheckReadyzGet,
ListDockerImageBatchJobModelBundlesV1DockerImageBatchJobBundlesGet,
ListModelBundlesV1ModelBundlesGet,
ListModelBundlesV2ModelBundlesGet,
ListModelEndpointsV1ModelEndpointsGet,
UpdateBatchJobV1BatchJobsBatchJobIdPut,
UpdateDockerImageBatchJobV1DockerImageBatchJobsBatchJobIdPut,
UpdateModelEndpointV1ModelEndpointsModelEndpointIdPut,
):
"""NOTE: This class is auto generated by OpenAPI Generator
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.1.0".format(env=sys.platform, pyversion=sys.version)
"SDK Package Version: 1.1.1".format(env=sys.platform, pyversion=sys.version)
)

def get_host_settings(self):
Expand Down
3 changes: 1 addition & 2 deletions launch/api_client/model/batch_job_serialization_format.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,7 @@ from datetime import date, datetime # noqa: F401

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

from launch.api_client import schemas # noqa: F401
from launch_client import schemas # noqa: F401

class BatchJobSerializationFormat(schemas.EnumBase, schemas.StrSchema):
"""NOTE: This class is auto generated by OpenAPI Generator.
Expand Down
3 changes: 1 addition & 2 deletions launch/api_client/model/batch_job_status.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,7 @@ from datetime import date, datetime # noqa: F401

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

from launch.api_client import schemas # noqa: F401
from launch_client import schemas # noqa: F401

class BatchJobStatus(schemas.EnumBase, schemas.StrSchema):
"""NOTE: This class is auto generated by OpenAPI Generator.
Expand Down
7 changes: 3 additions & 4 deletions launch/api_client/model/callback_auth.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,7 @@ from datetime import date, datetime # noqa: F401

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

from launch.api_client import schemas # noqa: F401
from launch_client import schemas # noqa: F401

class CallbackAuth(
schemas.ComposedSchema,
Expand Down Expand Up @@ -101,5 +100,5 @@ class CallbackAuth(
**kwargs,
)

from launch.api_client.model.callback_basic_auth import CallbackBasicAuth
from launch.api_client.model.callbackm_tls_auth import CallbackmTLSAuth
from launch_client.model.callback_basic_auth import CallbackBasicAuth
from launch_client.model.callbackm_tls_auth import CallbackmTLSAuth
3 changes: 1 addition & 2 deletions launch/api_client/model/callback_basic_auth.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,7 @@ from datetime import date, datetime # noqa: F401

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

from launch.api_client import schemas # noqa: F401
from launch_client import schemas # noqa: F401

class CallbackBasicAuth(schemas.DictSchema):
"""NOTE: This class is auto generated by OpenAPI Generator.
Expand Down
3 changes: 1 addition & 2 deletions launch/api_client/model/callbackm_tls_auth.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,7 @@ from datetime import date, datetime # noqa: F401

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

from launch.api_client import schemas # noqa: F401
from launch_client import schemas # noqa: F401

class CallbackmTLSAuth(schemas.DictSchema):
"""NOTE: This class is auto generated by OpenAPI Generator.
Expand Down
3 changes: 1 addition & 2 deletions launch/api_client/model/clone_model_bundle_v1_request.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,7 @@ from datetime import date, datetime # noqa: F401

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

from launch.api_client import schemas # noqa: F401
from launch_client import schemas # noqa: F401

class CloneModelBundleV1Request(schemas.DictSchema):
"""NOTE: This class is auto generated by OpenAPI Generator.
Expand Down
3 changes: 1 addition & 2 deletions launch/api_client/model/clone_model_bundle_v2_request.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,7 @@ from datetime import date, datetime # noqa: F401

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

from launch.api_client import schemas # noqa: F401
from launch_client import schemas # noqa: F401

class CloneModelBundleV2Request(schemas.DictSchema):
"""NOTE: This class is auto generated by OpenAPI Generator.
Expand Down
Loading